From c3c6ca7281f2815d9caa6a654da9616ee2d3d4fe Mon Sep 17 00:00:00 2001 From: snowykami Date: Sun, 6 Oct 2024 05:48:27 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=96=B0=E5=A2=9E=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-Cuq_bkbw.js => index-Cj1iUgBT.js} | 76 +++++++++---------- api/frontend/web/assets/index-DhV9f_LC.css | 1 + api/frontend/web/assets/index-p74jbBOU.css | 1 - api/frontend/web/index.html | 4 +- 4 files changed, 41 insertions(+), 41 deletions(-) rename api/frontend/web/assets/{index-Cuq_bkbw.js => index-Cj1iUgBT.js} (50%) create mode 100644 api/frontend/web/assets/index-DhV9f_LC.css delete mode 100644 api/frontend/web/assets/index-p74jbBOU.css diff --git a/api/frontend/web/assets/index-Cuq_bkbw.js b/api/frontend/web/assets/index-Cj1iUgBT.js similarity index 50% rename from api/frontend/web/assets/index-Cuq_bkbw.js rename to api/frontend/web/assets/index-Cj1iUgBT.js index 101cfa8..d3a1e89 100644 --- a/api/frontend/web/assets/index-Cuq_bkbw.js +++ b/api/frontend/web/assets/index-Cj1iUgBT.js @@ -1,24 +1,24 @@ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const A of i.addedNodes)A.tagName==="LINK"&&A.rel==="modulepreload"&&n(A)}).observe(document,{childList:!0,subtree:!0});function e(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=e(a);fetch(a.href,i)}})();/** -* @vue/shared v3.5.10 +* @vue/shared v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function fB(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const he={},ms=[],sa=()=>{},rk=()=>!1,_d=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),cB=r=>r.startsWith("onUpdate:"),Ze=Object.assign,hB=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},nk=Object.prototype.hasOwnProperty,re=(r,t)=>nk.call(r,t),Ot=Array.isArray,ws=r=>Cd(r)==="[object Map]",qD=r=>Cd(r)==="[object Set]",kt=r=>typeof r=="function",Qe=r=>typeof r=="string",ji=r=>typeof r=="symbol",ge=r=>r!==null&&typeof r=="object",jD=r=>(ge(r)||kt(r))&&kt(r.then)&&kt(r.catch),tQ=Object.prototype.toString,Cd=r=>tQ.call(r),ak=r=>Cd(r).slice(8,-1),eQ=r=>Cd(r)==="[object Object]",vB=r=>Qe(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,du=fB(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Sd=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},ik=/-(\w)/g,pn=Sd(r=>r.replace(ik,(t,e)=>e?e.toUpperCase():"")),Ak=/\B([A-Z])/g,wo=Sd(r=>r.replace(Ak,"-$1").toLowerCase()),xd=Sd(r=>r.charAt(0).toUpperCase()+r.slice(1)),Qp=Sd(r=>r?`on${xd(r)}`:""),Gi=(r,t)=>!Object.is(r,t),Lp=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},ok=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let jC;const nQ=()=>jC||(jC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ga(r){if(Ot(r)){const t={};for(let e=0;e{if(e){const n=e.split(lk);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function dB(r){let t="";if(Qe(r))t=r;else if(Ot(r))for(let e=0;e!!(r&&r.__v_isRef===!0),Ce=r=>Qe(r)?r:r==null?"":Ot(r)||ge(r)&&(r.toString===tQ||!kt(r.toString))?iQ(r)?Ce(r.value):JSON.stringify(r,AQ,2):String(r),AQ=(r,t)=>iQ(t)?AQ(r,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[Mp(n,i)+" =>"]=a,e),{})}:qD(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Mp(e))}:ji(t)?Mp(t):ge(t)&&!Ot(t)&&!eQ(t)?String(t):t,Mp=(r,t="")=>{var e;return ji(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/** -* @vue/reactivity v3.5.10 +**//*! #__NO_SIDE_EFFECTS__ */function TB(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const he={},Ts=[],fa=()=>{},Ik=()=>!1,Md=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),IB=r=>r.startsWith("onUpdate:"),Oe=Object.assign,FB=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},Fk=Object.prototype.hasOwnProperty,ne=(r,t)=>Fk.call(r,t),Ut=Array.isArray,Is=r=>Ud(r)==="[object Map]",yL=r=>Ud(r)==="[object Set]",kt=r=>typeof r=="function",Ie=r=>typeof r=="string",AA=r=>typeof r=="symbol",pe=r=>r!==null&&typeof r=="object",mL=r=>(pe(r)||kt(r))&&kt(r.then)&&kt(r.catch),wL=Object.prototype.toString,Ud=r=>wL.call(r),Ek=r=>Ud(r).slice(8,-1),BL=r=>Ud(r)==="[object Object]",EB=r=>Ie(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,_u=TB(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pd=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},Dk=/-(\w)/g,Bn=Pd(r=>r.replace(Dk,(t,e)=>e?e.toUpperCase():"")),Lk=/\B([A-Z])/g,Fo=Pd(r=>r.replace(Lk,"-$1").toLowerCase()),Rd=Pd(r=>r.charAt(0).toUpperCase()+r.slice(1)),Wp=Pd(r=>r?`on${Rd(r)}`:""),Zi=(r,t)=>!Object.is(r,t),Xp=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},Qk=r=>{const t=parseFloat(r);return isNaN(t)?r:t},Mk=r=>{const t=Ie(r)?Number(r):NaN;return isNaN(t)?r:t};let h1;const CL=()=>h1||(h1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function za(r){if(Ut(r)){const t={};for(let e=0;e{if(e){const n=e.split(Pk);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Fi(r){let t="";if(Ie(r))t=r;else if(Ut(r))for(let e=0;e!!(r&&r.__v_isRef===!0),Ce=r=>Ie(r)?r:r==null?"":Ut(r)||pe(r)&&(r.toString===wL||!kt(r.toString))?xL(r)?Ce(r.value):JSON.stringify(r,bL,2):String(r),bL=(r,t)=>xL(t)?bL(r,t.value):Is(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[Yp(n,i)+" =>"]=a,e),{})}:yL(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Yp(e))}:AA(t)?Yp(t):pe(t)&&!Ut(t)&&!BL(t)?String(t):t,Yp=(r,t="")=>{var e;return AA(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/** +* @vue/reactivity v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Vr;class vk{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Vr,!t&&Vr&&(this.index=(Vr.scopes||(Vr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t0)return;let r;for(;hs;){let t=hs,e;for(;t;)t.flags&1||(t.flags&=-9),t=t.next;for(t=hs,hs=void 0;t;){if(e=t.next,t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){r||(r=n)}t=e}}if(r)throw r}function uQ(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fQ(r){let t,e=r.depsTail,n=e;for(;n;){const a=n.prevDep;n.version===-1?(n===e&&(e=a),yB(n),pk(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}r.deps=t,r.depsTail=e}function Rm(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(cQ(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function cQ(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===Gu))return;r.globalVersion=Gu;const t=r.dep;if(r.flags|=2,t.version>0&&!r.isSSR&&r.deps&&!Rm(r)){r.flags&=-3;return}const e=ce,n=Ln;ce=r,Ln=!0;try{uQ(r);const a=r.fn(r._value);(t.version===0||Gi(a,r._value))&&(r._value=a,t.version++)}catch(a){throw t.version++,a}finally{ce=e,Ln=n,fQ(r),r.flags&=-3}}function yB(r,t=!1){const{dep:e,prevSub:n,nextSub:a}=r;if(n&&(n.nextSub=a,r.prevSub=void 0),a&&(a.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n),!e.subs&&e.computed){e.computed.flags&=-5;for(let i=e.computed.deps;i;i=i.nextDep)yB(i,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function pk(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let Ln=!0;const hQ=[];function tA(){hQ.push(Ln),Ln=!1}function eA(){const r=hQ.pop();Ln=r===void 0?!0:r}function t1(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=ce;ce=void 0;try{t()}finally{ce=e}}}let Gu=0;class gk{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class mB{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ce||!Ln||ce===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==ce)e=this.activeLink=new gk(ce,this),ce.deps?(e.prevDep=ce.depsTail,ce.depsTail.nextDep=e,ce.depsTail=e):ce.deps=ce.depsTail=e,vQ(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=ce.depsTail,e.nextDep=void 0,ce.depsTail.nextDep=e,ce.depsTail=e,ce.deps===e&&(ce.deps=n)}return e}trigger(t){this.version++,Gu++,this.notify(t)}notify(t){pB();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{gB()}}}function vQ(r){if(r.dep.sc++,r.sub.flags&4){const t=r.dep.computed;if(t&&!r.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)vQ(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const Hm=new WeakMap,qA=Symbol(""),Om=Symbol(""),Ku=Symbol("");function or(r,t,e){if(Ln&&ce){let n=Hm.get(r);n||Hm.set(r,n=new Map);let a=n.get(e);a||(n.set(e,a=new mB),a.target=r,a.map=n,a.key=e),a.track()}}function Ua(r,t,e,n,a,i){const A=Hm.get(r);if(!A){Gu++;return}const o=s=>{s&&s.trigger()};if(pB(),t==="clear")A.forEach(o);else{const s=Ot(r),l=s&&vB(e);if(s&&e==="length"){const u=Number(n);A.forEach((f,c)=>{(c==="length"||c===Ku||!ji(c)&&c>=u)&&o(f)})}else switch(e!==void 0&&o(A.get(e)),l&&o(A.get(Ku)),t){case"add":s?l&&o(A.get("length")):(o(A.get(qA)),ws(r)&&o(A.get(Om)));break;case"delete":s||(o(A.get(qA)),ws(r)&&o(A.get(Om)));break;case"set":ws(r)&&o(A.get(qA));break}}gB()}function Eo(r){const t=ne(r);return t===r?t:(or(t,"iterate",Ku),vn(r)?t:t.map(ar))}function bd(r){return or(r=ne(r),"iterate",Ku),r}const yk={__proto__:null,[Symbol.iterator](){return Pp(this,Symbol.iterator,ar)},concat(...r){return Eo(this).concat(...r.map(t=>Ot(t)?Eo(t):t))},entries(){return Pp(this,"entries",r=>(r[1]=ar(r[1]),r))},every(r,t){return Ca(this,"every",r,t,void 0,arguments)},filter(r,t){return Ca(this,"filter",r,t,e=>e.map(ar),arguments)},find(r,t){return Ca(this,"find",r,t,ar,arguments)},findIndex(r,t){return Ca(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return Ca(this,"findLast",r,t,ar,arguments)},findLastIndex(r,t){return Ca(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return Ca(this,"forEach",r,t,void 0,arguments)},includes(...r){return Rp(this,"includes",r)},indexOf(...r){return Rp(this,"indexOf",r)},join(r){return Eo(this).join(r)},lastIndexOf(...r){return Rp(this,"lastIndexOf",r)},map(r,t){return Ca(this,"map",r,t,void 0,arguments)},pop(){return cl(this,"pop")},push(...r){return cl(this,"push",r)},reduce(r,...t){return e1(this,"reduce",r,t)},reduceRight(r,...t){return e1(this,"reduceRight",r,t)},shift(){return cl(this,"shift")},some(r,t){return Ca(this,"some",r,t,void 0,arguments)},splice(...r){return cl(this,"splice",r)},toReversed(){return Eo(this).toReversed()},toSorted(r){return Eo(this).toSorted(r)},toSpliced(...r){return Eo(this).toSpliced(...r)},unshift(...r){return cl(this,"unshift",r)},values(){return Pp(this,"values",ar)}};function Pp(r,t,e){const n=bd(r),a=n[t]();return n!==r&&!vn(r)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.value&&(i.value=e(i.value)),i}),a}const mk=Array.prototype;function Ca(r,t,e,n,a,i){const A=bd(r),o=A!==r&&!vn(r),s=A[t];if(s!==mk[t]){const f=s.apply(r,i);return o?ar(f):f}let l=e;A!==r&&(o?l=function(f,c){return e.call(this,ar(f),c,r)}:e.length>2&&(l=function(f,c){return e.call(this,f,c,r)}));const u=s.call(A,l,n);return o&&a?a(u):u}function e1(r,t,e,n){const a=bd(r);let i=e;return a!==r&&(vn(r)?e.length>3&&(i=function(A,o,s){return e.call(this,A,o,s,r)}):i=function(A,o,s){return e.call(this,A,ar(o),s,r)}),a[t](i,...n)}function Rp(r,t,e){const n=ne(r);or(n,"iterate",Ku);const a=n[t](...e);return(a===-1||a===!1)&&CB(e[0])?(e[0]=ne(e[0]),n[t](...e)):a}function cl(r,t,e=[]){tA(),pB();const n=ne(r)[t].apply(r,e);return gB(),eA(),n}const wk=fB("__proto__,__v_isRef,__isVue"),dQ=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(ji));function Bk(r){ji(r)||(r=String(r));const t=ne(this);return or(t,"has",r),t.hasOwnProperty(r)}class pQ{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const a=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!a;if(e==="__v_isReadonly")return a;if(e==="__v_isShallow")return i;if(e==="__v_raw")return n===(a?i?Mk:wQ:i?mQ:yQ).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const A=Ot(t);if(!a){let s;if(A&&(s=yk[e]))return s;if(e==="hasOwnProperty")return Bk}const o=Reflect.get(t,e,Ar(t)?t:n);return(ji(e)?dQ.has(e):wk(e))||(a||or(t,"get",e),i)?o:Ar(o)?A&&vB(e)?o:o.value:ge(o)?a?_Q(o):Id(o):o}}class gQ extends pQ{constructor(t=!1){super(!1,t)}set(t,e,n,a){let i=t[e];if(!this._isShallow){const s=uo(i);if(!vn(n)&&!uo(n)&&(i=ne(i),n=ne(n)),!Ot(t)&&Ar(i)&&!Ar(n))return s?!1:(i.value=n,!0)}const A=Ot(t)&&vB(e)?Number(e)r,Td=r=>Reflect.getPrototypeOf(r);function tc(r,t,e=!1,n=!1){r=r.__v_raw;const a=ne(r),i=ne(t);e||(Gi(t,i)&&or(a,"get",t),or(a,"get",i));const{has:A}=Td(a),o=n?wB:e?SB:ar;if(A.call(a,t))return o(r.get(t));if(A.call(a,i))return o(r.get(i));r!==a&&r.get(t)}function ec(r,t=!1){const e=this.__v_raw,n=ne(e),a=ne(r);return t||(Gi(r,a)&&or(n,"has",r),or(n,"has",a)),r===a?e.has(r):e.has(r)||e.has(a)}function rc(r,t=!1){return r=r.__v_raw,!t&&or(ne(r),"iterate",qA),Reflect.get(r,"size",r)}function r1(r,t=!1){!t&&!vn(r)&&!uo(r)&&(r=ne(r));const e=ne(this);return Td(e).has.call(e,r)||(e.add(r),Ua(e,"add",r,r)),this}function n1(r,t,e=!1){!e&&!vn(t)&&!uo(t)&&(t=ne(t));const n=ne(this),{has:a,get:i}=Td(n);let A=a.call(n,r);A||(r=ne(r),A=a.call(n,r));const o=i.call(n,r);return n.set(r,t),A?Gi(t,o)&&Ua(n,"set",r,t):Ua(n,"add",r,t),this}function a1(r){const t=ne(this),{has:e,get:n}=Td(t);let a=e.call(t,r);a||(r=ne(r),a=e.call(t,r)),n&&n.call(t,r);const i=t.delete(r);return a&&Ua(t,"delete",r,void 0),i}function i1(){const r=ne(this),t=r.size!==0,e=r.clear();return t&&Ua(r,"clear",void 0,void 0),e}function nc(r,t){return function(n,a){const i=this,A=i.__v_raw,o=ne(A),s=t?wB:r?SB:ar;return!r&&or(o,"iterate",qA),A.forEach((l,u)=>n.call(a,s(l),s(u),i))}}function ac(r,t,e){return function(...n){const a=this.__v_raw,i=ne(a),A=ws(i),o=r==="entries"||r===Symbol.iterator&&A,s=r==="keys"&&A,l=a[r](...n),u=e?wB:t?SB:ar;return!t&&or(i,"iterate",s?Om:qA),{next(){const{value:f,done:c}=l.next();return c?{value:f,done:c}:{value:o?[u(f[0]),u(f[1])]:u(f),done:c}},[Symbol.iterator](){return this}}}}function ni(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function bk(){const r={get(i){return tc(this,i)},get size(){return rc(this)},has:ec,add:r1,set:n1,delete:a1,clear:i1,forEach:nc(!1,!1)},t={get(i){return tc(this,i,!1,!0)},get size(){return rc(this)},has:ec,add(i){return r1.call(this,i,!0)},set(i,A){return n1.call(this,i,A,!0)},delete:a1,clear:i1,forEach:nc(!1,!0)},e={get(i){return tc(this,i,!0)},get size(){return rc(this,!0)},has(i){return ec.call(this,i,!0)},add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear"),forEach:nc(!0,!1)},n={get(i){return tc(this,i,!0,!0)},get size(){return rc(this,!0)},has(i){return ec.call(this,i,!0)},add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear"),forEach:nc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=ac(i,!1,!1),e[i]=ac(i,!0,!1),t[i]=ac(i,!1,!0),n[i]=ac(i,!0,!0)}),[r,e,t,n]}const[Tk,Ik,Fk,Ek]=bk();function BB(r,t){const e=t?r?Ek:Fk:r?Ik:Tk;return(n,a,i)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(re(e,a)&&a in n?e:n,a,i)}const Dk={get:BB(!1,!1)},Qk={get:BB(!1,!0)},Lk={get:BB(!0,!1)};const yQ=new WeakMap,mQ=new WeakMap,wQ=new WeakMap,Mk=new WeakMap;function Uk(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pk(r){return r.__v_skip||!Object.isExtensible(r)?0:Uk(ak(r))}function Id(r){return uo(r)?r:_B(r,!1,Ck,Dk,yQ)}function BQ(r){return _B(r,!1,xk,Qk,mQ)}function _Q(r){return _B(r,!0,Sk,Lk,wQ)}function _B(r,t,e,n,a){if(!ge(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const i=a.get(r);if(i)return i;const A=Pk(r);if(A===0)return r;const o=new Proxy(r,A===2?n:e);return a.set(r,o),o}function Bs(r){return uo(r)?Bs(r.__v_raw):!!(r&&r.__v_isReactive)}function uo(r){return!!(r&&r.__v_isReadonly)}function vn(r){return!!(r&&r.__v_isShallow)}function CB(r){return r?!!r.__v_raw:!1}function ne(r){const t=r&&r.__v_raw;return t?ne(t):r}function Rk(r){return!re(r,"__v_skip")&&Object.isExtensible(r)&&rQ(r,"__v_skip",!0),r}const ar=r=>ge(r)?Id(r):r,SB=r=>ge(r)?_Q(r):r;function Ar(r){return r?r.__v_isRef===!0:!1}function jn(r){return CQ(r,!1)}function Hk(r){return CQ(r,!0)}function CQ(r,t){return Ar(r)?r:new Ok(r,t)}class Ok{constructor(t,e){this.dep=new mB,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:ne(t),this._value=e?t:ar(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||vn(t)||uo(t);t=n?t:ne(t),Gi(t,e)&&(this._rawValue=t,this._value=n?t:ar(t),this.dep.trigger())}}function la(r){return Ar(r)?r.value:r}const kk={get:(r,t,e)=>t==="__v_raw"?r:la(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const a=r[t];return Ar(a)&&!Ar(e)?(a.value=e,!0):Reflect.set(r,t,e,n)}};function SQ(r){return Bs(r)?r:new Proxy(r,kk)}class Nk{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new mB(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ce!==this)return lQ(this),!0}get value(){const t=this.dep.track();return cQ(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vk(r,t,e=!1){let n,a;return kt(r)?n=r:(n=r.get,a=r.set),new Nk(n,a,e)}const ic={},fv=new WeakMap;let DA;function Gk(r,t=!1,e=DA){if(e){let n=fv.get(e);n||fv.set(e,n=[]),n.push(r)}}function Kk(r,t,e=he){const{immediate:n,deep:a,once:i,scheduler:A,augmentJob:o,call:s}=e,l=w=>a?w:vn(w)||a===!1||a===0?Si(w,1):Si(w);let u,f,c,h,v=!1,d=!1;if(Ar(r)?(f=()=>r.value,v=vn(r)):Bs(r)?(f=()=>l(r),v=!0):Ot(r)?(d=!0,v=r.some(w=>Bs(w)||vn(w)),f=()=>r.map(w=>{if(Ar(w))return w.value;if(Bs(w))return l(w);if(kt(w))return s?s(w,2):w()})):kt(r)?t?f=s?()=>s(r,2):r:f=()=>{if(c){tA();try{c()}finally{eA()}}const w=DA;DA=u;try{return s?s(r,3,[h]):r(h)}finally{DA=w}}:f=sa,t&&a){const w=f,_=a===!0?1/0:a;f=()=>Si(w(),_)}const p=dk(),g=()=>{u.stop(),p&&hB(p.effects,u)};if(i&&t){const w=t;t=(..._)=>{w(..._),g()}}let y=d?new Array(r.length).fill(ic):ic;const m=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(t){const _=u.run();if(a||v||(d?_.some((B,C)=>Gi(B,y[C])):Gi(_,y))){c&&c();const B=DA;DA=u;try{const C=[_,y===ic?void 0:d&&y[0]===ic?[]:y,h];s?s(t,3,C):t(...C),y=_}finally{DA=B}}}else u.run()};return o&&o(m),u=new oQ(f),u.scheduler=A?()=>A(m,!1):m,h=w=>Gk(w,!1,u),c=u.onStop=()=>{const w=fv.get(u);if(w){if(s)s(w,4);else for(const _ of w)_();fv.delete(u)}},t?n?m(!0):y=u.run():A?A(m.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function Si(r,t=1/0,e){if(t<=0||!ge(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),t--,Ar(r))Si(r.value,t,e);else if(Ot(r))for(let n=0;n{Si(n,t,e)});else if(eQ(r)){for(const n in r)Si(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&Si(r[n],t,e)}return r}/** -* @vue/runtime-core v3.5.10 +**/let Kr;class Nk{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Kr,!t&&Kr&&(this.index=(Kr.scopes||(Kr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t0)return;if(Su){let t=Su;for(Su=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let r;for(;Cu;){let t=Cu;for(Cu=void 0;t;){const e=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){r||(r=n)}t=e}}if(r)throw r}function EL(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function DL(r){let t,e=r.depsTail,n=e;for(;n;){const a=n.prevDep;n.version===-1?(n===e&&(e=a),QB(n),Gk(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=a}r.deps=t,r.depsTail=e}function jm(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(LL(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function LL(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===qu))return;r.globalVersion=qu;const t=r.dep;if(r.flags|=2,t.version>0&&!r.isSSR&&r.deps&&!jm(r)){r.flags&=-3;return}const e=ce,n=Pn;ce=r,Pn=!0;try{EL(r);const a=r.fn(r._value);(t.version===0||Zi(a,r._value))&&(r._value=a,t.version++)}catch(a){throw t.version++,a}finally{ce=e,Pn=n,DL(r),r.flags&=-3}}function QB(r,t=!1){const{dep:e,prevSub:n,nextSub:a}=r;if(n&&(n.nextSub=a,r.prevSub=void 0),a&&(a.prevSub=n,r.nextSub=void 0),e.subs===r&&(e.subs=n),!e.subs&&e.computed){e.computed.flags&=-5;for(let i=e.computed.deps;i;i=i.nextDep)QB(i,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function Gk(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let Pn=!0;const QL=[];function oA(){QL.push(Pn),Pn=!1}function sA(){const r=QL.pop();Pn=r===void 0?!0:r}function v1(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=ce;ce=void 0;try{t()}finally{ce=e}}}let qu=0;class Kk{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class MB{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ce||!Pn||ce===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==ce)e=this.activeLink=new Kk(ce,this),ce.deps?(e.prevDep=ce.depsTail,ce.depsTail.nextDep=e,ce.depsTail=e):ce.deps=ce.depsTail=e,ML(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=ce.depsTail,e.nextDep=void 0,ce.depsTail.nextDep=e,ce.depsTail=e,ce.deps===e&&(ce.deps=n)}return e}trigger(t){this.version++,qu++,this.notify(t)}notify(t){DB();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{LB()}}}function ML(r){if(r.dep.sc++,r.sub.flags&4){const t=r.dep.computed;if(t&&!r.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ML(n)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const t0=new WeakMap,so=Symbol(""),e0=Symbol(""),ju=Symbol("");function sr(r,t,e){if(Pn&&ce){let n=t0.get(r);n||t0.set(r,n=new Map);let a=n.get(e);a||(n.set(e,a=new MB),a.map=n,a.key=e),a.track()}}function Ra(r,t,e,n,a,i){const A=t0.get(r);if(!A){qu++;return}const o=s=>{s&&s.trigger()};if(DB(),t==="clear")A.forEach(o);else{const s=Ut(r),l=s&&EB(e);if(s&&e==="length"){const u=Number(n);A.forEach((f,c)=>{(c==="length"||c===ju||!AA(c)&&c>=u)&&o(f)})}else switch(e!==void 0&&o(A.get(e)),l&&o(A.get(ju)),t){case"add":s?l&&o(A.get("length")):(o(A.get(so)),Is(r)&&o(A.get(e0)));break;case"delete":s||(o(A.get(so)),Is(r)&&o(A.get(e0)));break;case"set":Is(r)&&o(A.get(so));break}}LB()}function Oo(r){const t=jt(r);return t===r?t:(sr(t,"iterate",ju),mn(r)?t:t.map(ir))}function Hd(r){return sr(r=jt(r),"iterate",ju),r}const zk={__proto__:null,[Symbol.iterator](){return $p(this,Symbol.iterator,ir)},concat(...r){return Oo(this).concat(...r.map(t=>Ut(t)?Oo(t):t))},entries(){return $p(this,"entries",r=>(r[1]=ir(r[1]),r))},every(r,t){return xa(this,"every",r,t,void 0,arguments)},filter(r,t){return xa(this,"filter",r,t,e=>e.map(ir),arguments)},find(r,t){return xa(this,"find",r,t,ir,arguments)},findIndex(r,t){return xa(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return xa(this,"findLast",r,t,ir,arguments)},findLastIndex(r,t){return xa(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return xa(this,"forEach",r,t,void 0,arguments)},includes(...r){return Jp(this,"includes",r)},indexOf(...r){return Jp(this,"indexOf",r)},join(r){return Oo(this).join(r)},lastIndexOf(...r){return Jp(this,"lastIndexOf",r)},map(r,t){return xa(this,"map",r,t,void 0,arguments)},pop(){return ml(this,"pop")},push(...r){return ml(this,"push",r)},reduce(r,...t){return d1(this,"reduce",r,t)},reduceRight(r,...t){return d1(this,"reduceRight",r,t)},shift(){return ml(this,"shift")},some(r,t){return xa(this,"some",r,t,void 0,arguments)},splice(...r){return ml(this,"splice",r)},toReversed(){return Oo(this).toReversed()},toSorted(r){return Oo(this).toSorted(r)},toSpliced(...r){return Oo(this).toSpliced(...r)},unshift(...r){return ml(this,"unshift",r)},values(){return $p(this,"values",ir)}};function $p(r,t,e){const n=Hd(r),a=n[t]();return n!==r&&!mn(r)&&(a._next=a.next,a.next=()=>{const i=a._next();return i.value&&(i.value=e(i.value)),i}),a}const Wk=Array.prototype;function xa(r,t,e,n,a,i){const A=Hd(r),o=A!==r&&!mn(r),s=A[t];if(s!==Wk[t]){const f=s.apply(r,i);return o?ir(f):f}let l=e;A!==r&&(o?l=function(f,c){return e.call(this,ir(f),c,r)}:e.length>2&&(l=function(f,c){return e.call(this,f,c,r)}));const u=s.call(A,l,n);return o&&a?a(u):u}function d1(r,t,e,n){const a=Hd(r);let i=e;return a!==r&&(mn(r)?e.length>3&&(i=function(A,o,s){return e.call(this,A,o,s,r)}):i=function(A,o,s){return e.call(this,A,ir(o),s,r)}),a[t](i,...n)}function Jp(r,t,e){const n=jt(r);sr(n,"iterate",ju);const a=n[t](...e);return(a===-1||a===!1)&&HB(e[0])?(e[0]=jt(e[0]),n[t](...e)):a}function ml(r,t,e=[]){oA(),DB();const n=jt(r)[t].apply(r,e);return LB(),sA(),n}const Xk=TB("__proto__,__v_isRef,__isVue"),UL=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(AA));function Yk(r){AA(r)||(r=String(r));const t=jt(this);return sr(t,"has",r),t.hasOwnProperty(r)}class PL{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const a=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!a;if(e==="__v_isReadonly")return a;if(e==="__v_isShallow")return i;if(e==="__v_raw")return n===(a?i?oN:kL:i?OL:HL).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const A=Ut(t);if(!a){let s;if(A&&(s=zk[e]))return s;if(e==="hasOwnProperty")return Yk}const o=Reflect.get(t,e,or(t)?t:n);return(AA(e)?UL.has(e):Xk(e))||(a||sr(t,"get",e),i)?o:or(o)?A&&EB(e)?o:o.value:pe(o)?a?VL(o):kd(o):o}}class RL extends PL{constructor(t=!1){super(!1,t)}set(t,e,n,a){let i=t[e];if(!this._isShallow){const s=Bo(i);if(!mn(n)&&!Bo(n)&&(i=jt(i),n=jt(n)),!Ut(t)&&or(i)&&!or(n))return s?!1:(i.value=n,!0)}const A=Ut(t)&&EB(e)?Number(e)r,Od=r=>Reflect.getPrototypeOf(r);function uc(r,t,e=!1,n=!1){r=r.__v_raw;const a=jt(r),i=jt(t);e||(Zi(t,i)&&sr(a,"get",t),sr(a,"get",i));const{has:A}=Od(a),o=n?UB:e?OB:ir;if(A.call(a,t))return o(r.get(t));if(A.call(a,i))return o(r.get(i));r!==a&&r.get(t)}function fc(r,t=!1){const e=this.__v_raw,n=jt(e),a=jt(r);return t||(Zi(r,a)&&sr(n,"has",r),sr(n,"has",a)),r===a?e.has(r):e.has(r)||e.has(a)}function cc(r,t=!1){return r=r.__v_raw,!t&&sr(jt(r),"iterate",so),Reflect.get(r,"size",r)}function p1(r,t=!1){!t&&!mn(r)&&!Bo(r)&&(r=jt(r));const e=jt(this);return Od(e).has.call(e,r)||(e.add(r),Ra(e,"add",r,r)),this}function g1(r,t,e=!1){!e&&!mn(t)&&!Bo(t)&&(t=jt(t));const n=jt(this),{has:a,get:i}=Od(n);let A=a.call(n,r);A||(r=jt(r),A=a.call(n,r));const o=i.call(n,r);return n.set(r,t),A?Zi(t,o)&&Ra(n,"set",r,t):Ra(n,"add",r,t),this}function y1(r){const t=jt(this),{has:e,get:n}=Od(t);let a=e.call(t,r);a||(r=jt(r),a=e.call(t,r)),n&&n.call(t,r);const i=t.delete(r);return a&&Ra(t,"delete",r,void 0),i}function m1(){const r=jt(this),t=r.size!==0,e=r.clear();return t&&Ra(r,"clear",void 0,void 0),e}function hc(r,t){return function(n,a){const i=this,A=i.__v_raw,o=jt(A),s=t?UB:r?OB:ir;return!r&&sr(o,"iterate",so),A.forEach((l,u)=>n.call(a,s(l),s(u),i))}}function vc(r,t,e){return function(...n){const a=this.__v_raw,i=jt(a),A=Is(i),o=r==="entries"||r===Symbol.iterator&&A,s=r==="keys"&&A,l=a[r](...n),u=e?UB:t?OB:ir;return!t&&sr(i,"iterate",s?e0:so),{next(){const{value:f,done:c}=l.next();return c?{value:f,done:c}:{value:o?[u(f[0]),u(f[1])]:u(f),done:c}},[Symbol.iterator](){return this}}}}function ii(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function jk(){const r={get(i){return uc(this,i)},get size(){return cc(this)},has:fc,add:p1,set:g1,delete:y1,clear:m1,forEach:hc(!1,!1)},t={get(i){return uc(this,i,!1,!0)},get size(){return cc(this)},has:fc,add(i){return p1.call(this,i,!0)},set(i,A){return g1.call(this,i,A,!0)},delete:y1,clear:m1,forEach:hc(!1,!0)},e={get(i){return uc(this,i,!0)},get size(){return cc(this,!0)},has(i){return fc.call(this,i,!0)},add:ii("add"),set:ii("set"),delete:ii("delete"),clear:ii("clear"),forEach:hc(!0,!1)},n={get(i){return uc(this,i,!0,!0)},get size(){return cc(this,!0)},has(i){return fc.call(this,i,!0)},add:ii("add"),set:ii("set"),delete:ii("delete"),clear:ii("clear"),forEach:hc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=vc(i,!1,!1),e[i]=vc(i,!0,!1),t[i]=vc(i,!1,!0),n[i]=vc(i,!0,!0)}),[r,e,t,n]}const[tN,eN,rN,nN]=jk();function PB(r,t){const e=t?r?nN:rN:r?eN:tN;return(n,a,i)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(ne(e,a)&&a in n?e:n,a,i)}const aN={get:PB(!1,!1)},iN={get:PB(!1,!0)},AN={get:PB(!0,!1)};const HL=new WeakMap,OL=new WeakMap,kL=new WeakMap,oN=new WeakMap;function sN(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function lN(r){return r.__v_skip||!Object.isExtensible(r)?0:sN(Ek(r))}function kd(r){return Bo(r)?r:RB(r,!1,$k,aN,HL)}function NL(r){return RB(r,!1,qk,iN,OL)}function VL(r){return RB(r,!0,Jk,AN,kL)}function RB(r,t,e,n,a){if(!pe(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const i=a.get(r);if(i)return i;const A=lN(r);if(A===0)return r;const o=new Proxy(r,A===2?n:e);return a.set(r,o),o}function Fs(r){return Bo(r)?Fs(r.__v_raw):!!(r&&r.__v_isReactive)}function Bo(r){return!!(r&&r.__v_isReadonly)}function mn(r){return!!(r&&r.__v_isShallow)}function HB(r){return r?!!r.__v_raw:!1}function jt(r){const t=r&&r.__v_raw;return t?jt(t):r}function uN(r){return!ne(r,"__v_skip")&&Object.isExtensible(r)&&_L(r,"__v_skip",!0),r}const ir=r=>pe(r)?kd(r):r,OB=r=>pe(r)?VL(r):r;function or(r){return r?r.__v_isRef===!0:!1}function Er(r){return GL(r,!1)}function fN(r){return GL(r,!0)}function GL(r,t){return or(r)?r:new cN(r,t)}class cN{constructor(t,e){this.dep=new MB,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:jt(t),this._value=e?t:ir(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this.__v_isShallow||mn(t)||Bo(t);t=n?t:jt(t),Zi(t,e)&&(this._rawValue=t,this._value=n?t:ir(t),this.dep.trigger())}}function ca(r){return or(r)?r.value:r}const hN={get:(r,t,e)=>t==="__v_raw"?r:ca(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const a=r[t];return or(a)&&!or(e)?(a.value=e,!0):Reflect.set(r,t,e,n)}};function KL(r){return Fs(r)?r:new Proxy(r,hN)}class vN{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new MB(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ce!==this)return FL(this,!0),!0}get value(){const t=this.dep.track();return LL(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function dN(r,t,e=!1){let n,a;return kt(r)?n=r:(n=r.get,a=r.set),new vN(n,a,e)}const dc={},_v=new WeakMap;let kA;function pN(r,t=!1,e=kA){if(e){let n=_v.get(e);n||_v.set(e,n=[]),n.push(r)}}function gN(r,t,e=he){const{immediate:n,deep:a,once:i,scheduler:A,augmentJob:o,call:s}=e,l=w=>a?w:mn(w)||a===!1||a===0?Ei(w,1):Ei(w);let u,f,c,h,v=!1,d=!1;if(or(r)?(f=()=>r.value,v=mn(r)):Fs(r)?(f=()=>l(r),v=!0):Ut(r)?(d=!0,v=r.some(w=>Fs(w)||mn(w)),f=()=>r.map(w=>{if(or(w))return w.value;if(Fs(w))return l(w);if(kt(w))return s?s(w,2):w()})):kt(r)?t?f=s?()=>s(r,2):r:f=()=>{if(c){oA();try{c()}finally{sA()}}const w=kA;kA=u;try{return s?s(r,3,[h]):r(h)}finally{kA=w}}:f=fa,t&&a){const w=f,_=a===!0?1/0:a;f=()=>Ei(w(),_)}const p=Vk(),g=()=>{u.stop(),p&&FB(p.effects,u)};if(i&&t){const w=t;t=(..._)=>{w(..._),g()}}let y=d?new Array(r.length).fill(dc):dc;const m=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(t){const _=u.run();if(a||v||(d?_.some((B,C)=>Zi(B,y[C])):Zi(_,y))){c&&c();const B=kA;kA=u;try{const C=[_,y===dc?void 0:d&&y[0]===dc?[]:y,h];s?s(t,3,C):t(...C),y=_}finally{kA=B}}}else u.run()};return o&&o(m),u=new TL(f),u.scheduler=A?()=>A(m,!1):m,h=w=>pN(w,!1,u),c=u.onStop=()=>{const w=_v.get(u);if(w){if(s)s(w,4);else for(const _ of w)_();_v.delete(u)}},t?n?m(!0):y=u.run():A?A(m.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function Ei(r,t=1/0,e){if(t<=0||!pe(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),t--,or(r))Ei(r.value,t,e);else if(Ut(r))for(let n=0;n{Ei(n,t,e)});else if(BL(r)){for(const n in r)Ei(r[n],t,e);for(const n of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,n)&&Ei(r[n],t,e)}return r}/** +* @vue/runtime-core v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function If(r,t,e,n){try{return n?r(...n):r()}catch(a){Fd(a,t,e)}}function ca(r,t,e,n){if(kt(r)){const a=If(r,t,e,n);return a&&jD(a)&&a.catch(i=>{Fd(i,t,e)}),a}if(Ot(r)){const a=[];for(let i=0;i>>1,a=gr[n],i=Wu(a);i=Wu(e)?gr.push(r):gr.splice(Wk(t),0,r),r.flags|=1,TQ()}}function TQ(){!zu&&!km&&(km=!0,xB=xQ.then(FQ))}function Xk(r){Ot(r)?_s.push(...r):yi&&r.id===-1?yi.splice(as+1,0,r):r.flags&1||(_s.push(r),r.flags|=1),TQ()}function A1(r,t,e=zu?qn+1:0){for(;eWu(e)-Wu(n));if(_s.length=0,yi){yi.push(...t);return}for(yi=t,as=0;asr.id==null?r.flags&2?-1:1/0:r.id;function FQ(r){km=!1,zu=!0;try{for(qn=0;qn{n._d&&d1(-1);const i=cv(t);let A;try{A=r(...a)}finally{cv(i),n._d&&d1(1)}return A};return n._n=!0,n._c=!0,n._d=!0,n}function aA(r,t,e,n){const a=r.dirs,i=t&&t.dirs;for(let A=0;Ar.__isTeleport;function TB(r,t){r.shapeFlag&6&&r.component?(r.transition=t,TB(r.component.subTree,t)):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Bo(r,t){return kt(r)?Ze({name:r.name},t,{setup:r}):r}function DQ(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function Nm(r,t,e,n,a=!1){if(Ot(r)){r.forEach((v,d)=>Nm(v,t&&(Ot(t)?t[d]:t),e,n,a));return}if(pu(n)&&!a)return;const i=n.shapeFlag&4?MB(n.component):n.el,A=a?null:i,{i:o,r:s}=r,l=t&&t.r,u=o.refs===he?o.refs={}:o.refs,f=o.setupState,c=ne(f),h=f===he?()=>!1:v=>re(c,v);if(l!=null&&l!==s&&(Qe(l)?(u[l]=null,h(l)&&(f[l]=null)):Ar(l)&&(l.value=null)),kt(s))If(s,o,12,[A,u]);else{const v=Qe(s),d=Ar(s);if(v||d){const p=()=>{if(r.f){const g=v?h(s)?f[s]:u[s]:s.value;a?Ot(g)&&hB(g,i):Ot(g)?g.includes(i)||g.push(i):v?(u[s]=[i],h(s)&&(f[s]=u[s])):(s.value=[i],r.k&&(u[r.k]=s.value))}else v?(u[s]=A,h(s)&&(f[s]=A)):d&&(s.value=A,r.k&&(u[r.k]=A))};A?(p.id=-1,Nr(p,e)):p()}}}const pu=r=>!!r.type.__asyncLoader,QQ=r=>r.type.__isKeepAlive;function Jk(r,t){LQ(r,"a",t)}function qk(r,t){LQ(r,"da",t)}function LQ(r,t,e=ir){const n=r.__wdc||(r.__wdc=()=>{let a=e;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(Ed(t,n,e),e){let a=e.parent;for(;a&&a.parent;)QQ(a.parent.vnode)&&jk(n,t,e,a),a=a.parent}}function jk(r,t,e,n){const a=Ed(t,r,n,!0);FB(()=>{hB(n[t],a)},e)}function Ed(r,t,e=ir,n=!1){if(e){const a=e[r]||(e[r]=[]),i=t.__weh||(t.__weh=(...A)=>{tA();const o=Ff(e),s=ca(t,e,r,A);return o(),eA(),s});return n?a.unshift(i):a.push(i),i}}const ja=r=>(t,e=ir)=>{(!Ld||r==="sp")&&Ed(r,(...n)=>t(...n),e)},tN=ja("bm"),IB=ja("m"),eN=ja("bu"),rN=ja("u"),nN=ja("bum"),FB=ja("um"),aN=ja("sp"),iN=ja("rtg"),AN=ja("rtc");function oN(r,t=ir){Ed("ec",r,t)}const sN="components";function lN(r,t){return fN(sN,r,!0,t)||r}const uN=Symbol.for("v-ndc");function fN(r,t,e=!0,n=!1){const a=En||ir;if(a){const i=a.type;{const o=JN(i,!1);if(o&&(o===t||o===pn(t)||o===xd(pn(t))))return i}const A=o1(a[r]||i[r],t)||o1(a.appContext[r],t);return!A&&n?i:A}}function o1(r,t){return r&&(r[t]||r[pn(t)]||r[xd(pn(t))])}function Vm(r,t,e,n){let a;const i=e,A=Ot(r);if(A||Qe(r)){const o=A&&Bs(r);let s=!1;o&&(s=!vn(r),r=bd(r)),a=new Array(r.length);for(let l=0,u=r.length;lt(o,s,void 0,i));else{const o=Object.keys(r);a=new Array(o.length);for(let s=0,l=o.length;sr?tL(r)?MB(r):Gm(r.parent):null,gu=Ze(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>Gm(r.parent),$root:r=>Gm(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>EB(r),$forceUpdate:r=>r.f||(r.f=()=>{bB(r.update)}),$nextTick:r=>r.n||(r.n=bQ.bind(r.proxy)),$watch:r=>QN.bind(r)}),Hp=(r,t)=>r!==he&&!r.__isScriptSetup&&re(r,t),cN={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:a,props:i,accessCache:A,type:o,appContext:s}=r;let l;if(t[0]!=="$"){const h=A[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return a[t];case 4:return e[t];case 3:return i[t]}else{if(Hp(n,t))return A[t]=1,n[t];if(a!==he&&re(a,t))return A[t]=2,a[t];if((l=r.propsOptions[0])&&re(l,t))return A[t]=3,i[t];if(e!==he&&re(e,t))return A[t]=4,e[t];Km&&(A[t]=0)}}const u=gu[t];let f,c;if(u)return t==="$attrs"&&or(r.attrs,"get",""),u(r);if((f=o.__cssModules)&&(f=f[t]))return f;if(e!==he&&re(e,t))return A[t]=4,e[t];if(c=s.config.globalProperties,re(c,t))return c[t]},set({_:r},t,e){const{data:n,setupState:a,ctx:i}=r;return Hp(a,t)?(a[t]=e,!0):n!==he&&re(n,t)?(n[t]=e,!0):re(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(i[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:a,propsOptions:i}},A){let o;return!!e[A]||r!==he&&re(r,A)||Hp(t,A)||(o=i[0])&&re(o,A)||re(n,A)||re(gu,A)||re(a.config.globalProperties,A)},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:re(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function s1(r){return Ot(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let Km=!0;function hN(r){const t=EB(r),e=r.proxy,n=r.ctx;Km=!1,t.beforeCreate&&l1(t.beforeCreate,r,"bc");const{data:a,computed:i,methods:A,watch:o,provide:s,inject:l,created:u,beforeMount:f,mounted:c,beforeUpdate:h,updated:v,activated:d,deactivated:p,beforeDestroy:g,beforeUnmount:y,destroyed:m,unmounted:w,render:_,renderTracked:B,renderTriggered:C,errorCaptured:S,serverPrefetch:x,expose:b,inheritAttrs:I,components:F,directives:E,filters:D}=t;if(l&&vN(l,n,null),A)for(const R in A){const P=A[R];kt(P)&&(n[R]=P.bind(e))}if(a){const R=a.call(e,e);ge(R)&&(r.data=Id(R))}if(Km=!0,i)for(const R in i){const P=i[R],O=kt(P)?P.bind(e,e):kt(P.get)?P.get.bind(e,e):sa,G=!kt(P)&&kt(P.set)?P.set.bind(e):sa,X=be({get:O,set:G});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>X.value,set:J=>X.value=J})}if(o)for(const R in o)MQ(o[R],n,e,R);if(s){const R=kt(s)?s.call(e):s;Reflect.ownKeys(R).forEach(P=>{Mh(P,R[P])})}u&&l1(u,r,"c");function M(R,P){Ot(P)?P.forEach(O=>R(O.bind(e))):P&&R(P.bind(e))}if(M(tN,f),M(IB,c),M(eN,h),M(rN,v),M(Jk,d),M(qk,p),M(oN,S),M(AN,B),M(iN,C),M(nN,y),M(FB,w),M(aN,x),Ot(b))if(b.length){const R=r.exposed||(r.exposed={});b.forEach(P=>{Object.defineProperty(R,P,{get:()=>e[P],set:O=>e[P]=O})})}else r.exposed||(r.exposed={});_&&r.render===sa&&(r.render=_),I!=null&&(r.inheritAttrs=I),F&&(r.components=F),E&&(r.directives=E),x&&DQ(r)}function vN(r,t,e=sa){Ot(r)&&(r=zm(r));for(const n in r){const a=r[n];let i;ge(a)?"default"in a?i=Pa(a.from||n,a.default,!0):i=Pa(a.from||n):i=Pa(a),Ar(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:A=>i.value=A}):t[n]=i}}function l1(r,t,e){ca(Ot(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function MQ(r,t,e,n){let a=n.includes(".")?YQ(e,n):()=>e[n];if(Qe(r)){const i=t[r];kt(i)&&yu(a,i)}else if(kt(r))yu(a,r.bind(e));else if(ge(r))if(Ot(r))r.forEach(i=>MQ(i,t,e,n));else{const i=kt(r.handler)?r.handler.bind(e):t[r.handler];kt(i)&&yu(a,i,r)}}function EB(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:A}}=r.appContext,o=i.get(t);let s;return o?s=o:!a.length&&!e&&!n?s=t:(s={},a.length&&a.forEach(l=>hv(s,l,A,!0)),hv(s,t,A)),ge(t)&&i.set(t,s),s}function hv(r,t,e,n=!1){const{mixins:a,extends:i}=t;i&&hv(r,i,e,!0),a&&a.forEach(A=>hv(r,A,e,!0));for(const A in t)if(!(n&&A==="expose")){const o=dN[A]||e&&e[A];r[A]=o?o(r[A],t[A]):t[A]}return r}const dN={data:u1,props:f1,emits:f1,methods:Zl,computed:Zl,beforeCreate:fr,created:fr,beforeMount:fr,mounted:fr,beforeUpdate:fr,updated:fr,beforeDestroy:fr,beforeUnmount:fr,destroyed:fr,unmounted:fr,activated:fr,deactivated:fr,errorCaptured:fr,serverPrefetch:fr,components:Zl,directives:Zl,watch:gN,provide:u1,inject:pN};function u1(r,t){return t?r?function(){return Ze(kt(r)?r.call(this,this):r,kt(t)?t.call(this,this):t)}:t:r}function pN(r,t){return Zl(zm(r),zm(t))}function zm(r){if(Ot(r)){const t={};for(let e=0;e1)return e&&kt(t)?t.call(n&&n.proxy):t}}const PQ={},RQ=()=>Object.create(PQ),HQ=r=>Object.getPrototypeOf(r)===PQ;function wN(r,t,e,n=!1){const a={},i=RQ();r.propsDefaults=Object.create(null),OQ(r,t,a,i);for(const A in r.propsOptions[0])A in a||(a[A]=void 0);e?r.props=n?a:BQ(a):r.type.props?r.props=a:r.props=i,r.attrs=i}function BN(r,t,e,n){const{props:a,attrs:i,vnode:{patchFlag:A}}=r,o=ne(a),[s]=r.propsOptions;let l=!1;if((n||A>0)&&!(A&16)){if(A&8){const u=r.vnode.dynamicProps;for(let f=0;f{s=!0;const[c,h]=kQ(f,t,!0);Ze(A,c),h&&o.push(...h)};!e&&t.mixins.length&&t.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}if(!i&&!s)return ge(r)&&n.set(r,ms),ms;if(Ot(i))for(let u=0;ur[0]==="_"||r==="$stable",DB=r=>Ot(r)?r.map(ea):[ea(r)],CN=(r,t,e)=>{if(t._n)return t;const n=Yk((...a)=>DB(t(...a)),e);return n._c=!1,n},VQ=(r,t,e)=>{const n=r._ctx;for(const a in r){if(NQ(a))continue;const i=r[a];if(kt(i))t[a]=CN(a,i,n);else if(i!=null){const A=DB(i);t[a]=()=>A}}},GQ=(r,t)=>{const e=DB(t);r.slots.default=()=>e},KQ=(r,t,e)=>{for(const n in t)(e||n!=="_")&&(r[n]=t[n])},SN=(r,t,e)=>{const n=r.slots=RQ();if(r.vnode.shapeFlag&32){const a=t._;a?(KQ(n,t,e),e&&rQ(n,"_",a,!0)):VQ(t,n)}else t&&GQ(r,t)},xN=(r,t,e)=>{const{vnode:n,slots:a}=r;let i=!0,A=he;if(n.shapeFlag&32){const o=t._;o?e&&o===1?i=!1:KQ(a,t,e):(i=!t.$stable,VQ(t,a)),A=t}else t&&(GQ(r,t),A={default:1});if(i)for(const o in a)!NQ(o)&&A[o]==null&&delete a[o]},Nr=ON;function bN(r){return TN(r)}function TN(r,t){const e=nQ();e.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:A,createText:o,createComment:s,setText:l,setElementText:u,parentNode:f,nextSibling:c,setScopeId:h=sa,insertStaticContent:v}=r,d=(L,U,k,Z=null,W=null,tt=null,ot=void 0,ut=null,at=!!U.dynamicChildren)=>{if(L===U)return;L&&!hl(L,U)&&(Z=N(L),J(L,W,tt,!0),L=null),U.patchFlag===-2&&(at=!1,U.dynamicChildren=null);const{type:rt,ref:Ft,shapeFlag:dt}=U;switch(rt){case Qd:p(L,U,k,Z);break;case fo:g(L,U,k,Z);break;case Np:L==null&&y(U,k,Z,ot);break;case Fr:F(L,U,k,Z,W,tt,ot,ut,at);break;default:dt&1?_(L,U,k,Z,W,tt,ot,ut,at):dt&6?E(L,U,k,Z,W,tt,ot,ut,at):(dt&64||dt&128)&&rt.process(L,U,k,Z,W,tt,ot,ut,at,q)}Ft!=null&&W&&Nm(Ft,L&&L.ref,tt,U||L,!U)},p=(L,U,k,Z)=>{if(L==null)n(U.el=o(U.children),k,Z);else{const W=U.el=L.el;U.children!==L.children&&l(W,U.children)}},g=(L,U,k,Z)=>{L==null?n(U.el=s(U.children||""),k,Z):U.el=L.el},y=(L,U,k,Z)=>{[L.el,L.anchor]=v(L.children,U,k,Z,L.el,L.anchor)},m=({el:L,anchor:U},k,Z)=>{let W;for(;L&&L!==U;)W=c(L),n(L,k,Z),L=W;n(U,k,Z)},w=({el:L,anchor:U})=>{let k;for(;L&&L!==U;)k=c(L),a(L),L=k;a(U)},_=(L,U,k,Z,W,tt,ot,ut,at)=>{U.type==="svg"?ot="svg":U.type==="math"&&(ot="mathml"),L==null?B(U,k,Z,W,tt,ot,ut,at):x(L,U,W,tt,ot,ut,at)},B=(L,U,k,Z,W,tt,ot,ut)=>{let at,rt;const{props:Ft,shapeFlag:dt,transition:Tt,dirs:Pt}=L;if(at=L.el=A(L.type,tt,Ft&&Ft.is,Ft),dt&8?u(at,L.children):dt&16&&S(L.children,at,null,Z,W,Op(L,tt),ot,ut),Pt&&aA(L,null,Z,"created"),C(at,L,L.scopeId,ot,Z),Ft){for(const fe in Ft)fe!=="value"&&!du(fe)&&i(at,fe,null,Ft[fe],tt,Z);"value"in Ft&&i(at,"value",null,Ft.value,tt),(rt=Ft.onVnodeBeforeMount)&&Gn(rt,Z,L)}Pt&&aA(L,null,Z,"beforeMount");const Zt=IN(W,Tt);Zt&&Tt.beforeEnter(at),n(at,U,k),((rt=Ft&&Ft.onVnodeMounted)||Zt||Pt)&&Nr(()=>{rt&&Gn(rt,Z,L),Zt&&Tt.enter(at),Pt&&aA(L,null,Z,"mounted")},W)},C=(L,U,k,Z,W)=>{if(k&&h(L,k),Z)for(let tt=0;tt{for(let rt=at;rt{const ut=U.el=L.el;let{patchFlag:at,dynamicChildren:rt,dirs:Ft}=U;at|=L.patchFlag&16;const dt=L.props||he,Tt=U.props||he;let Pt;if(k&&iA(k,!1),(Pt=Tt.onVnodeBeforeUpdate)&&Gn(Pt,k,U,L),Ft&&aA(U,L,k,"beforeUpdate"),k&&iA(k,!0),(dt.innerHTML&&Tt.innerHTML==null||dt.textContent&&Tt.textContent==null)&&u(ut,""),rt?b(L.dynamicChildren,rt,ut,k,Z,Op(U,W),tt):ot||P(L,U,ut,null,k,Z,Op(U,W),tt,!1),at>0){if(at&16)I(ut,dt,Tt,k,W);else if(at&2&&dt.class!==Tt.class&&i(ut,"class",null,Tt.class,W),at&4&&i(ut,"style",dt.style,Tt.style,W),at&8){const Zt=U.dynamicProps;for(let fe=0;fe{Pt&&Gn(Pt,k,U,L),Ft&&aA(U,L,k,"updated")},Z)},b=(L,U,k,Z,W,tt,ot)=>{for(let ut=0;ut{if(U!==k){if(U!==he)for(const tt in U)!du(tt)&&!(tt in k)&&i(L,tt,U[tt],null,W,Z);for(const tt in k){if(du(tt))continue;const ot=k[tt],ut=U[tt];ot!==ut&&tt!=="value"&&i(L,tt,ut,ot,W,Z)}"value"in k&&i(L,"value",U.value,k.value,W)}},F=(L,U,k,Z,W,tt,ot,ut,at)=>{const rt=U.el=L?L.el:o(""),Ft=U.anchor=L?L.anchor:o("");let{patchFlag:dt,dynamicChildren:Tt,slotScopeIds:Pt}=U;Pt&&(ut=ut?ut.concat(Pt):Pt),L==null?(n(rt,k,Z),n(Ft,k,Z),S(U.children||[],k,Ft,W,tt,ot,ut,at)):dt>0&&dt&64&&Tt&&L.dynamicChildren?(b(L.dynamicChildren,Tt,k,W,tt,ot,ut),(U.key!=null||W&&U===W.subTree)&&zQ(L,U,!0)):P(L,U,k,Ft,W,tt,ot,ut,at)},E=(L,U,k,Z,W,tt,ot,ut,at)=>{U.slotScopeIds=ut,L==null?U.shapeFlag&512?W.ctx.activate(U,k,Z,ot,at):D(U,k,Z,W,tt,ot,at):Q(L,U,at)},D=(L,U,k,Z,W,tt,ot)=>{const ut=L.component=WN(L,Z,W);if(QQ(L)&&(ut.ctx.renderer=q),XN(ut,!1,ot),ut.asyncDep){if(W&&W.registerDep(ut,M,ot),!L.el){const at=ut.subTree=yr(fo);g(null,at,U,k)}}else M(ut,L,U,k,W,tt,ot)},Q=(L,U,k)=>{const Z=U.component=L.component;if(RN(L,U,k))if(Z.asyncDep&&!Z.asyncResolved){R(Z,U,k);return}else Z.next=U,Z.update();else U.el=L.el,Z.vnode=U},M=(L,U,k,Z,W,tt,ot)=>{const ut=()=>{if(L.isMounted){let{next:dt,bu:Tt,u:Pt,parent:Zt,vnode:fe}=L;{const Rr=WQ(L);if(Rr){dt&&(dt.el=fe.el,R(L,dt,ot)),Rr.asyncDep.then(()=>{L.isUnmounted||ut()});return}}let ae=dt,Pr;iA(L,!1),dt?(dt.el=fe.el,R(L,dt,ot)):dt=fe,Tt&&Lp(Tt),(Pr=dt.props&&dt.props.onVnodeBeforeUpdate)&&Gn(Pr,Zt,dt,fe),iA(L,!0);const qe=kp(L),Bn=L.subTree;L.subTree=qe,d(Bn,qe,f(Bn.el),N(Bn),L,W,tt),dt.el=qe.el,ae===null&&HN(L,qe.el),Pt&&Nr(Pt,W),(Pr=dt.props&&dt.props.onVnodeUpdated)&&Nr(()=>Gn(Pr,Zt,dt,fe),W)}else{let dt;const{el:Tt,props:Pt}=U,{bm:Zt,m:fe,parent:ae,root:Pr,type:qe}=L,Bn=pu(U);if(iA(L,!1),Zt&&Lp(Zt),!Bn&&(dt=Pt&&Pt.onVnodeBeforeMount)&&Gn(dt,ae,U),iA(L,!0),Tt&&ct){const Rr=()=>{L.subTree=kp(L),ct(Tt,L.subTree,L,W,null)};Bn&&qe.__asyncHydrate?qe.__asyncHydrate(Tt,L,Rr):Rr()}else{Pr.ce&&Pr.ce._injectChildStyle(qe);const Rr=L.subTree=kp(L);d(null,Rr,k,Z,L,W,tt),U.el=Rr.el}if(fe&&Nr(fe,W),!Bn&&(dt=Pt&&Pt.onVnodeMounted)){const Rr=U;Nr(()=>Gn(dt,ae,Rr),W)}(U.shapeFlag&256||ae&&pu(ae.vnode)&&ae.vnode.shapeFlag&256)&&L.a&&Nr(L.a,W),L.isMounted=!0,U=k=Z=null}};L.scope.on();const at=L.effect=new oQ(ut);L.scope.off();const rt=L.update=at.run.bind(at),Ft=L.job=at.runIfDirty.bind(at);Ft.i=L,Ft.id=L.uid,at.scheduler=()=>bB(Ft),iA(L,!0),rt()},R=(L,U,k)=>{U.component=L;const Z=L.vnode.props;L.vnode=U,L.next=null,BN(L,U.props,Z,k),xN(L,U.children,k),tA(),A1(L),eA()},P=(L,U,k,Z,W,tt,ot,ut,at=!1)=>{const rt=L&&L.children,Ft=L?L.shapeFlag:0,dt=U.children,{patchFlag:Tt,shapeFlag:Pt}=U;if(Tt>0){if(Tt&128){G(rt,dt,k,Z,W,tt,ot,ut,at);return}else if(Tt&256){O(rt,dt,k,Z,W,tt,ot,ut,at);return}}Pt&8?(Ft&16&&Bt(rt,W,tt),dt!==rt&&u(k,dt)):Ft&16?Pt&16?G(rt,dt,k,Z,W,tt,ot,ut,at):Bt(rt,W,tt,!0):(Ft&8&&u(k,""),Pt&16&&S(dt,k,Z,W,tt,ot,ut,at))},O=(L,U,k,Z,W,tt,ot,ut,at)=>{L=L||ms,U=U||ms;const rt=L.length,Ft=U.length,dt=Math.min(rt,Ft);let Tt;for(Tt=0;TtFt?Bt(L,W,tt,!0,!1,dt):S(U,k,Z,W,tt,ot,ut,at,dt)},G=(L,U,k,Z,W,tt,ot,ut,at)=>{let rt=0;const Ft=U.length;let dt=L.length-1,Tt=Ft-1;for(;rt<=dt&&rt<=Tt;){const Pt=L[rt],Zt=U[rt]=at?mi(U[rt]):ea(U[rt]);if(hl(Pt,Zt))d(Pt,Zt,k,null,W,tt,ot,ut,at);else break;rt++}for(;rt<=dt&&rt<=Tt;){const Pt=L[dt],Zt=U[Tt]=at?mi(U[Tt]):ea(U[Tt]);if(hl(Pt,Zt))d(Pt,Zt,k,null,W,tt,ot,ut,at);else break;dt--,Tt--}if(rt>dt){if(rt<=Tt){const Pt=Tt+1,Zt=PtTt)for(;rt<=dt;)J(L[rt],W,tt,!0),rt++;else{const Pt=rt,Zt=rt,fe=new Map;for(rt=Zt;rt<=Tt;rt++){const Hr=U[rt]=at?mi(U[rt]):ea(U[rt]);Hr.key!=null&&fe.set(Hr.key,rt)}let ae,Pr=0;const qe=Tt-Zt+1;let Bn=!1,Rr=0;const fl=new Array(qe);for(rt=0;rt=qe){J(Hr,W,tt,!0);continue}let Vn;if(Hr.key!=null)Vn=fe.get(Hr.key);else for(ae=Zt;ae<=Tt;ae++)if(fl[ae-Zt]===0&&hl(Hr,U[ae])){Vn=ae;break}Vn===void 0?J(Hr,W,tt,!0):(fl[Vn-Zt]=rt+1,Vn>=Rr?Rr=Vn:Bn=!0,d(Hr,U[Vn],k,null,W,tt,ot,ut,at),Pr++)}const JC=Bn?FN(fl):ms;for(ae=JC.length-1,rt=qe-1;rt>=0;rt--){const Hr=Zt+rt,Vn=U[Hr],qC=Hr+1{const{el:tt,type:ot,transition:ut,children:at,shapeFlag:rt}=L;if(rt&6){X(L.component.subTree,U,k,Z);return}if(rt&128){L.suspense.move(U,k,Z);return}if(rt&64){ot.move(L,U,k,q);return}if(ot===Fr){n(tt,U,k);for(let dt=0;dtut.enter(tt),W);else{const{leave:dt,delayLeave:Tt,afterLeave:Pt}=ut,Zt=()=>n(tt,U,k),fe=()=>{dt(tt,()=>{Zt(),Pt&&Pt()})};Tt?Tt(tt,Zt,fe):fe()}else n(tt,U,k)},J=(L,U,k,Z=!1,W=!1)=>{const{type:tt,props:ot,ref:ut,children:at,dynamicChildren:rt,shapeFlag:Ft,patchFlag:dt,dirs:Tt,cacheIndex:Pt}=L;if(dt===-2&&(W=!1),ut!=null&&Nm(ut,null,k,L,!0),Pt!=null&&(U.renderCache[Pt]=void 0),Ft&256){U.ctx.deactivate(L);return}const Zt=Ft&1&&Tt,fe=!pu(L);let ae;if(fe&&(ae=ot&&ot.onVnodeBeforeUnmount)&&Gn(ae,U,L),Ft&6)wt(L.component,k,Z);else{if(Ft&128){L.suspense.unmount(k,Z);return}Zt&&aA(L,null,U,"beforeUnmount"),Ft&64?L.type.remove(L,U,k,q,Z):rt&&!rt.hasOnce&&(tt!==Fr||dt>0&&dt&64)?Bt(rt,U,k,!1,!0):(tt===Fr&&dt&384||!W&&Ft&16)&&Bt(at,U,k),Z&&At(L)}(fe&&(ae=ot&&ot.onVnodeUnmounted)||Zt)&&Nr(()=>{ae&&Gn(ae,U,L),Zt&&aA(L,null,U,"unmounted")},k)},At=L=>{const{type:U,el:k,anchor:Z,transition:W}=L;if(U===Fr){lt(k,Z);return}if(U===Np){w(L);return}const tt=()=>{a(k),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(L.shapeFlag&1&&W&&!W.persisted){const{leave:ot,delayLeave:ut}=W,at=()=>ot(k,tt);ut?ut(L.el,tt,at):at()}else tt()},lt=(L,U)=>{let k;for(;L!==U;)k=c(L),a(L),L=k;a(U)},wt=(L,U,k)=>{const{bum:Z,scope:W,job:tt,subTree:ot,um:ut,m:at,a:rt}=L;h1(at),h1(rt),Z&&Lp(Z),W.stop(),tt&&(tt.flags|=8,J(ot,L,U,k)),ut&&Nr(ut,U),Nr(()=>{L.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},Bt=(L,U,k,Z=!1,W=!1,tt=0)=>{for(let ot=tt;ot{if(L.shapeFlag&6)return N(L.component.subTree);if(L.shapeFlag&128)return L.suspense.next();const U=c(L.anchor||L.el),k=U&&U[Zk];return k?c(k):U};let z=!1;const $=(L,U,k)=>{L==null?U._vnode&&J(U._vnode,null,null,!0):d(U._vnode||null,L,U,null,null,null,k),U._vnode=L,z||(z=!0,A1(),IQ(),z=!1)},q={p:d,um:J,m:X,r:At,mt:D,mc:S,pc:P,pbc:b,n:N,o:r};let j,ct;return{render:$,hydrate:j,createApp:mN($,j)}}function Op({type:r,props:t},e){return e==="svg"&&r==="foreignObject"||e==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function iA({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function IN(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function zQ(r,t,e=!1){const n=r.children,a=t.children;if(Ot(n)&&Ot(a))for(let i=0;i>1,r[e[o]]0&&(t[n]=e[i-1]),e[i]=n)}}for(i=e.length,A=e[i-1];i-- >0;)e[i]=A,A=t[A];return e}function WQ(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:WQ(t)}function h1(r){if(r)for(let t=0;tPa(EN);function yu(r,t,e){return XQ(r,t,e)}function XQ(r,t,e=he){const{immediate:n,deep:a,flush:i,once:A}=e,o=Ze({},e);let s;if(Ld)if(i==="sync"){const c=DN();s=c.__watcherHandles||(c.__watcherHandles=[])}else if(!t||n)o.once=!0;else{const c=()=>{};return c.stop=sa,c.resume=sa,c.pause=sa,c}const l=ir;o.call=(c,h,v)=>ca(c,l,h,v);let u=!1;i==="post"?o.scheduler=c=>{Nr(c,l&&l.suspense)}:i!=="sync"&&(u=!0,o.scheduler=(c,h)=>{h?c():bB(c)}),o.augmentJob=c=>{t&&(c.flags|=4),u&&(c.flags|=2,l&&(c.id=l.uid,c.i=l))};const f=Kk(r,t,o);return s&&s.push(f),f}function QN(r,t,e){const n=this.proxy,a=Qe(r)?r.includes(".")?YQ(n,r):()=>n[r]:r.bind(n,n);let i;kt(t)?i=t:(i=t.handler,e=t);const A=Ff(this),o=XQ(a,i.bind(n),e);return A(),o}function YQ(r,t){const e=t.split(".");return()=>{let n=r;for(let a=0;at==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${pn(t)}Modifiers`]||r[`${wo(t)}Modifiers`];function MN(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||he;let a=e;const i=t.startsWith("update:"),A=i&&LN(n,t.slice(7));A&&(A.trim&&(a=e.map(u=>Qe(u)?u.trim():u)),A.number&&(a=e.map(ok)));let o,s=n[o=Qp(t)]||n[o=Qp(pn(t))];!s&&i&&(s=n[o=Qp(wo(t))]),s&&ca(s,r,6,a);const l=n[o+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[o])return;r.emitted[o]=!0,ca(l,r,6,a)}}function ZQ(r,t,e=!1){const n=t.emitsCache,a=n.get(r);if(a!==void 0)return a;const i=r.emits;let A={},o=!1;if(!kt(r)){const s=l=>{const u=ZQ(l,t,!0);u&&(o=!0,Ze(A,u))};!e&&t.mixins.length&&t.mixins.forEach(s),r.extends&&s(r.extends),r.mixins&&r.mixins.forEach(s)}return!i&&!o?(ge(r)&&n.set(r,null),null):(Ot(i)?i.forEach(s=>A[s]=null):Ze(A,i),ge(r)&&n.set(r,A),A)}function Dd(r,t){return!r||!_d(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(r,t[0].toLowerCase()+t.slice(1))||re(r,wo(t))||re(r,t))}function kp(r){const{type:t,vnode:e,proxy:n,withProxy:a,propsOptions:[i],slots:A,attrs:o,emit:s,render:l,renderCache:u,props:f,data:c,setupState:h,ctx:v,inheritAttrs:d}=r,p=cv(r);let g,y;try{if(e.shapeFlag&4){const w=a||n,_=w;g=ea(l.call(_,w,u,f,h,c,v)),y=o}else{const w=t;g=ea(w.length>1?w(f,{attrs:o,slots:A,emit:s}):w(f,null)),y=t.props?o:UN(o)}}catch(w){mu.length=0,Fd(w,r,1),g=yr(fo)}let m=g;if(y&&d!==!1){const w=Object.keys(y),{shapeFlag:_}=m;w.length&&_&7&&(i&&w.some(cB)&&(y=PN(y,i)),m=Ds(m,y,!1,!0))}return e.dirs&&(m=Ds(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(e.dirs):e.dirs),e.transition&&TB(m,e.transition),g=m,cv(p),g}const UN=r=>{let t;for(const e in r)(e==="class"||e==="style"||_d(e))&&((t||(t={}))[e]=r[e]);return t},PN=(r,t)=>{const e={};for(const n in r)(!cB(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function RN(r,t,e){const{props:n,children:a,component:i}=r,{props:A,children:o,patchFlag:s}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&s>=0){if(s&1024)return!0;if(s&16)return n?v1(n,A,l):!!A;if(s&8){const u=t.dynamicProps;for(let f=0;fr.__isSuspense;function ON(r,t){t&&t.pendingBranch?Ot(r)?t.effects.push(...r):t.effects.push(r):Xk(r)}const Fr=Symbol.for("v-fgt"),Qd=Symbol.for("v-txt"),fo=Symbol.for("v-cmt"),Np=Symbol.for("v-stc"),mu=[];let Kr=null;function Er(r=!1){mu.push(Kr=r?null:[])}function kN(){mu.pop(),Kr=mu[mu.length-1]||null}let Xu=1;function d1(r){Xu+=r,r<0&&Kr&&(Kr.hasOnce=!0)}function JQ(r){return r.dynamicChildren=Xu>0?Kr||ms:null,kN(),Xu>0&&Kr&&Kr.push(r),r}function Fn(r,t,e,n,a,i){return JQ(St(r,t,e,n,a,i,!0))}function QB(r,t,e,n,a){return JQ(yr(r,t,e,n,a,!0))}function vv(r){return r?r.__v_isVNode===!0:!1}function hl(r,t){return r.type===t.type&&r.key===t.key}const qQ=({key:r})=>r??null,Uh=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?Qe(r)||Ar(r)||kt(r)?{i:En,r,k:t,f:!!e}:r:null);function St(r,t=null,e=null,n=0,a=null,i=r===Fr?0:1,A=!1,o=!1){const s={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&qQ(t),ref:t&&Uh(t),scopeId:EQ,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:En};return o?(LB(s,e),i&128&&r.normalize(s)):e&&(s.shapeFlag|=Qe(e)?8:16),Xu>0&&!A&&Kr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Kr.push(s),s}const yr=NN;function NN(r,t=null,e=null,n=0,a=null,i=!1){if((!r||r===uN)&&(r=fo),vv(r)){const o=Ds(r,t,!0);return e&&LB(o,e),Xu>0&&!i&&Kr&&(o.shapeFlag&6?Kr[Kr.indexOf(r)]=o:Kr.push(o)),o.patchFlag=-2,o}if(qN(r)&&(r=r.__vccOpts),t){t=VN(t);let{class:o,style:s}=t;o&&!Qe(o)&&(t.class=dB(o)),ge(s)&&(CB(s)&&!Ot(s)&&(s=Ze({},s)),t.style=Ga(s))}const A=Qe(r)?1:$Q(r)?128:$k(r)?64:ge(r)?4:kt(r)?2:0;return St(r,t,e,n,a,A,i,!0)}function VN(r){return r?CB(r)||HQ(r)?Ze({},r):r:null}function Ds(r,t,e=!1,n=!1){const{props:a,ref:i,patchFlag:A,children:o,transition:s}=r,l=t?GN(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:r.type,props:l,key:l&&qQ(l),ref:t&&t.ref?e&&i?Ot(i)?i.concat(Uh(t)):[i,Uh(t)]:Uh(t):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:o,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==Fr?A===-1?16:A|16:A,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:s,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Ds(r.ssContent),ssFallback:r.ssFallback&&Ds(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return s&&n&&TB(u,s.clone(u)),u}function dv(r=" ",t=0){return yr(Qd,null,r,t)}function jQ(r="",t=!1){return t?(Er(),QB(fo,null,r)):yr(fo,null,r)}function ea(r){return r==null||typeof r=="boolean"?yr(fo):Ot(r)?yr(Fr,null,r.slice()):vv(r)?mi(r):yr(Qd,null,String(r))}function mi(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Ds(r)}function LB(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(Ot(t))e=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),LB(r,a()),a._c&&(a._d=!0));return}else{e=32;const a=t._;!a&&!HQ(t)?t._ctx=En:a===3&&En&&(En.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else kt(t)?(t={default:t,_ctx:En},e=32):(t=String(t),n&64?(e=16,t=[dv(t)]):e=8);r.children=t,r.shapeFlag|=e}function GN(...r){const t={};for(let e=0;e{let a;return(a=r[e])||(a=r[e]=[]),a.push(n),i=>{a.length>1?a.forEach(A=>A(i)):a[0](i)}};pv=t("__VUE_INSTANCE_SETTERS__",e=>ir=e),Xm=t("__VUE_SSR_SETTERS__",e=>Ld=e)}const Ff=r=>{const t=ir;return pv(r),r.scope.on(),()=>{r.scope.off(),pv(t)}},p1=()=>{ir&&ir.scope.off(),pv(null)};function tL(r){return r.vnode.shapeFlag&4}let Ld=!1;function XN(r,t=!1,e=!1){t&&Xm(t);const{props:n,children:a}=r.vnode,i=tL(r);wN(r,n,i,t),SN(r,a,e);const A=i?YN(r,t):void 0;return t&&Xm(!1),A}function YN(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,cN);const{setup:n}=e;if(n){const a=r.setupContext=n.length>1?$N(r):null,i=Ff(r);tA();const A=If(n,r,0,[r.props,a]);if(eA(),i(),jD(A)){if(pu(r)||DQ(r),A.then(p1,p1),t)return A.then(o=>{g1(r,o,t)}).catch(o=>{Fd(o,r,0)});r.asyncDep=A}else g1(r,A,t)}else eL(r,t)}function g1(r,t,e){kt(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:ge(t)&&(r.setupState=SQ(t)),eL(r,e)}let y1;function eL(r,t,e){const n=r.type;if(!r.render){if(!t&&y1&&!n.render){const a=n.template||EB(r).template;if(a){const{isCustomElement:i,compilerOptions:A}=r.appContext.config,{delimiters:o,compilerOptions:s}=n,l=Ze(Ze({isCustomElement:i,delimiters:o},A),s);n.render=y1(a,l)}}r.render=n.render||sa}{const a=Ff(r);tA();try{hN(r)}finally{eA(),a()}}}const ZN={get(r,t){return or(r,"get",""),r[t]}};function $N(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,ZN),slots:r.slots,emit:r.emit,expose:t}}function MB(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(SQ(Rk(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in gu)return gu[e](r)},has(t,e){return e in t||e in gu}})):r.proxy}function JN(r,t=!0){return kt(r)?r.displayName||r.name:r.name||t&&r.__name}function qN(r){return kt(r)&&"__vccOpts"in r}const be=(r,t)=>Vk(r,t,Ld);function rL(r,t,e){const n=arguments.length;return n===2?ge(t)&&!Ot(t)?vv(t)?yr(r,null,[t]):yr(r,t):yr(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&vv(e)&&(e=[e]),yr(r,t,e))}const jN="3.5.10";/** -* @vue/runtime-dom v3.5.10 +**/function Hf(r,t,e,n){try{return n?r(...n):r()}catch(a){Nd(a,t,e)}}function On(r,t,e,n){if(kt(r)){const a=Hf(r,t,e,n);return a&&mL(a)&&a.catch(i=>{Nd(i,t,e)}),a}if(Ut(r)){const a=[];for(let i=0;i>>1,a=yr[n],i=tf(a);i=tf(e)?yr.push(r):yr.splice(mN(t),0,r),r.flags|=1,XL()}}function XL(){Cv||(Cv=zL.then(ZL))}function wN(r){Ut(r)?Es.push(...r):_i&&r.id===-1?_i.splice(hs+1,0,r):r.flags&1||(Es.push(r),r.flags|=1),XL()}function w1(r,t,e=ra+1){for(;etf(e)-tf(n));if(Es.length=0,_i){_i.push(...t);return}for(_i=t,hs=0;hs<_i.length;hs++){const e=_i[hs];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}_i=null,hs=0}}const tf=r=>r.id==null?r.flags&2?-1:1/0:r.id;function ZL(r){try{for(ra=0;ra{n._d&&E1(-1);const i=Sv(t);let A;try{A=r(...a)}finally{Sv(i),n._d&&E1(1)}return A};return n._n=!0,n._c=!0,n._d=!0,n}function fA(r,t,e,n){const a=r.dirs,i=t&&t.dirs;for(let A=0;Ar.__isTeleport,Ci=Symbol("_leaveCb"),pc=Symbol("_enterCb");function _N(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Kd(()=>{r.isMounted=!0}),AQ(()=>{r.isUnmounting=!0}),r}const Jr=[Function,Array],jL={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Jr,onEnter:Jr,onAfterEnter:Jr,onEnterCancelled:Jr,onBeforeLeave:Jr,onLeave:Jr,onAfterLeave:Jr,onLeaveCancelled:Jr,onBeforeAppear:Jr,onAppear:Jr,onAfterAppear:Jr,onAppearCancelled:Jr},tQ=r=>{const t=r.subTree;return t.component?tQ(t.component):t},CN={name:"BaseTransition",props:jL,setup(r,{slots:t}){const e=w4(),n=_N();return()=>{const a=t.default&&nQ(t.default(),!0);if(!a||!a.length)return;const i=eQ(a),A=jt(r),{mode:o}=A;if(n.isLeaving)return qp(i);const s=B1(i);if(!s)return qp(i);let l=r0(s,A,n,e,c=>l=c);s.type!==Ur&&ef(s,l);const u=e.subTree,f=u&&B1(u);if(f&&f.type!==Ur&&!XA(s,f)&&tQ(e).type!==Ur){const c=r0(f,A,n,e);if(ef(f,c),o==="out-in"&&s.type!==Ur)return n.isLeaving=!0,c.afterLeave=()=>{n.isLeaving=!1,e.job.flags&8||e.update(),delete c.afterLeave},qp(i);o==="in-out"&&s.type!==Ur&&(c.delayLeave=(h,v,d)=>{const p=rQ(n,f);p[String(f.key)]=f,h[Ci]=()=>{v(),h[Ci]=void 0,delete l.delayedLeave},l.delayedLeave=d})}return i}}};function eQ(r){let t=r[0];if(r.length>1){for(const e of r)if(e.type!==Ur){t=e;break}}return t}const SN=CN;function rQ(r,t){const{leavingVNodes:e}=r;let n=e.get(t.type);return n||(n=Object.create(null),e.set(t.type,n)),n}function r0(r,t,e,n,a){const{appear:i,mode:A,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:h,onAfterLeave:v,onLeaveCancelled:d,onBeforeAppear:p,onAppear:g,onAfterAppear:y,onAppearCancelled:m}=t,w=String(r.key),_=rQ(e,r),B=(S,b)=>{S&&On(S,n,9,b)},C=(S,b)=>{const T=b[1];B(S,b),Ut(S)?S.every(F=>F.length<=1)&&T():S.length<=1&&T()},x={mode:A,persisted:o,beforeEnter(S){let b=s;if(!e.isMounted)if(i)b=p||s;else return;S[Ci]&&S[Ci](!0);const T=_[w];T&&XA(r,T)&&T.el[Ci]&&T.el[Ci](),B(b,[S])},enter(S){let b=l,T=u,F=f;if(!e.isMounted)if(i)b=g||l,T=y||u,F=m||f;else return;let E=!1;const D=S[pc]=L=>{E||(E=!0,L?B(F,[S]):B(T,[S]),x.delayedLeave&&x.delayedLeave(),S[pc]=void 0)};b?C(b,[S,D]):D()},leave(S,b){const T=String(r.key);if(S[pc]&&S[pc](!0),e.isUnmounting)return b();B(c,[S]);let F=!1;const E=S[Ci]=D=>{F||(F=!0,b(),D?B(d,[S]):B(v,[S]),S[Ci]=void 0,_[T]===r&&delete _[T])};_[T]=r,h?C(h,[S,E]):E()},clone(S){const b=r0(S,t,e,n,a);return a&&a(b),b}};return x}function qp(r){if(Vd(r))return r=$i(r),r.children=null,r}function B1(r){if(!Vd(r))return qL(r.type)&&r.children?eQ(r.children):r;const{shapeFlag:t,children:e}=r;if(e){if(t&16)return e[0];if(t&32&&kt(e.default))return e.default()}}function ef(r,t){r.shapeFlag&6&&r.component?(r.transition=t,ef(r.component.subTree,t)):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}function nQ(r,t=!1,e){let n=[],a=0;for(let i=0;i1)for(let i=0;in0(v,t&&(Ut(t)?t[d]:t),e,n,a));return}if(xu(n)&&!a)return;const i=n.shapeFlag&4?XB(n.component):n.el,A=a?null:i,{i:o,r:s}=r,l=t&&t.r,u=o.refs===he?o.refs={}:o.refs,f=o.setupState,c=jt(f),h=f===he?()=>!1:v=>ne(c,v);if(l!=null&&l!==s&&(Ie(l)?(u[l]=null,h(l)&&(f[l]=null)):or(l)&&(l.value=null)),kt(s))Hf(s,o,12,[A,u]);else{const v=Ie(s),d=or(s);if(v||d){const p=()=>{if(r.f){const g=v?h(s)?f[s]:u[s]:s.value;a?Ut(g)&&FB(g,i):Ut(g)?g.includes(i)||g.push(i):v?(u[s]=[i],h(s)&&(f[s]=u[s])):(s.value=[i],r.k&&(u[r.k]=s.value))}else v?(u[s]=A,h(s)&&(f[s]=A)):d&&(s.value=A,r.k&&(u[r.k]=A))};A?(p.id=-1,Gr(p,e)):p()}}}const xu=r=>!!r.type.__asyncLoader,Vd=r=>r.type.__isKeepAlive;function xN(r,t){iQ(r,"a",t)}function bN(r,t){iQ(r,"da",t)}function iQ(r,t,e=Ye){const n=r.__wdc||(r.__wdc=()=>{let a=e;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(Gd(t,n,e),e){let a=e.parent;for(;a&&a.parent;)Vd(a.parent.vnode)&&TN(n,t,e,a),a=a.parent}}function TN(r,t,e,n){const a=Gd(t,r,n,!0);NB(()=>{FB(n[t],a)},e)}function Gd(r,t,e=Ye,n=!1){if(e){const a=e[r]||(e[r]=[]),i=t.__weh||(t.__weh=(...A)=>{oA();const o=Of(e),s=On(t,e,r,A);return o(),sA(),s});return n?a.unshift(i):a.push(i),i}}const ei=r=>(t,e=Ye)=>{(!Xd||r==="sp")&&Gd(r,(...n)=>t(...n),e)},IN=ei("bm"),Kd=ei("m"),FN=ei("bu"),EN=ei("u"),AQ=ei("bum"),NB=ei("um"),DN=ei("sp"),LN=ei("rtg"),QN=ei("rtc");function MN(r,t=Ye){Gd("ec",r,t)}const UN="components";function PN(r,t){return HN(UN,r,!0,t)||r}const RN=Symbol.for("v-ndc");function HN(r,t,e=!0,n=!1){const a=dn||Ye;if(a){const i=a.type;{const o=x4(i,!1);if(o&&(o===t||o===Bn(t)||o===Rd(Bn(t))))return i}const A=_1(a[r]||i[r],t)||_1(a.appContext[r],t);return!A&&n?i:A}}function _1(r,t){return r&&(r[t]||r[Bn(t)]||r[Rd(Bn(t))])}function a0(r,t,e,n){let a;const i=e,A=Ut(r);if(A||Ie(r)){const o=A&&Fs(r);let s=!1;o&&(s=!mn(r),r=Hd(r)),a=new Array(r.length);for(let l=0,u=r.length;lt(o,s,void 0,i));else{const o=Object.keys(r);a=new Array(o.length);for(let s=0,l=o.length;sr?bQ(r)?XB(r):i0(r.parent):null,bu=Oe(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>i0(r.parent),$root:r=>i0(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>VB(r),$forceUpdate:r=>r.f||(r.f=()=>{kB(r.update)}),$nextTick:r=>r.n||(r.n=WL.bind(r.proxy)),$watch:r=>i4.bind(r)}),jp=(r,t)=>r!==he&&!r.__isScriptSetup&&ne(r,t),ON={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:a,props:i,accessCache:A,type:o,appContext:s}=r;let l;if(t[0]!=="$"){const h=A[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return a[t];case 4:return e[t];case 3:return i[t]}else{if(jp(n,t))return A[t]=1,n[t];if(a!==he&&ne(a,t))return A[t]=2,a[t];if((l=r.propsOptions[0])&&ne(l,t))return A[t]=3,i[t];if(e!==he&&ne(e,t))return A[t]=4,e[t];A0&&(A[t]=0)}}const u=bu[t];let f,c;if(u)return t==="$attrs"&&sr(r.attrs,"get",""),u(r);if((f=o.__cssModules)&&(f=f[t]))return f;if(e!==he&&ne(e,t))return A[t]=4,e[t];if(c=s.config.globalProperties,ne(c,t))return c[t]},set({_:r},t,e){const{data:n,setupState:a,ctx:i}=r;return jp(a,t)?(a[t]=e,!0):n!==he&&ne(n,t)?(n[t]=e,!0):ne(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(i[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:a,propsOptions:i}},A){let o;return!!e[A]||r!==he&&ne(r,A)||jp(t,A)||(o=i[0])&&ne(o,A)||ne(n,A)||ne(bu,A)||ne(a.config.globalProperties,A)},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:ne(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function C1(r){return Ut(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let A0=!0;function kN(r){const t=VB(r),e=r.proxy,n=r.ctx;A0=!1,t.beforeCreate&&S1(t.beforeCreate,r,"bc");const{data:a,computed:i,methods:A,watch:o,provide:s,inject:l,created:u,beforeMount:f,mounted:c,beforeUpdate:h,updated:v,activated:d,deactivated:p,beforeDestroy:g,beforeUnmount:y,destroyed:m,unmounted:w,render:_,renderTracked:B,renderTriggered:C,errorCaptured:x,serverPrefetch:S,expose:b,inheritAttrs:T,components:F,directives:E,filters:D}=t;if(l&&NN(l,n,null),A)for(const R in A){const P=A[R];kt(P)&&(n[R]=P.bind(e))}if(a){const R=a.call(e,e);pe(R)&&(r.data=kd(R))}if(A0=!0,i)for(const R in i){const P=i[R],O=kt(P)?P.bind(e,e):kt(P.get)?P.get.bind(e,e):fa,G=!kt(P)&&kt(P.set)?P.set.bind(e):fa,X=be({get:O,set:G});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>X.value,set:J=>X.value=J})}if(o)for(const R in o)oQ(o[R],n,e,R);if(s){const R=kt(s)?s.call(e):s;Reflect.ownKeys(R).forEach(P=>{zh(P,R[P])})}u&&S1(u,r,"c");function M(R,P){Ut(P)?P.forEach(O=>R(O.bind(e))):P&&R(P.bind(e))}if(M(IN,f),M(Kd,c),M(FN,h),M(EN,v),M(xN,d),M(bN,p),M(MN,x),M(QN,B),M(LN,C),M(AQ,y),M(NB,w),M(DN,S),Ut(b))if(b.length){const R=r.exposed||(r.exposed={});b.forEach(P=>{Object.defineProperty(R,P,{get:()=>e[P],set:O=>e[P]=O})})}else r.exposed||(r.exposed={});_&&r.render===fa&&(r.render=_),T!=null&&(r.inheritAttrs=T),F&&(r.components=F),E&&(r.directives=E),S&&aQ(r)}function NN(r,t,e=fa){Ut(r)&&(r=o0(r));for(const n in r){const a=r[n];let i;pe(a)?"default"in a?i=Ha(a.from||n,a.default,!0):i=Ha(a.from||n):i=Ha(a),or(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:A=>i.value=A}):t[n]=i}}function S1(r,t,e){On(Ut(r)?r.map(n=>n.bind(t.proxy)):r.bind(t.proxy),t,e)}function oQ(r,t,e,n){let a=n.includes(".")?BQ(e,n):()=>e[n];if(Ie(r)){const i=t[r];kt(i)&&Tu(a,i)}else if(kt(r))Tu(a,r.bind(e));else if(pe(r))if(Ut(r))r.forEach(i=>oQ(i,t,e,n));else{const i=kt(r.handler)?r.handler.bind(e):t[r.handler];kt(i)&&Tu(a,i,r)}}function VB(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:A}}=r.appContext,o=i.get(t);let s;return o?s=o:!a.length&&!e&&!n?s=t:(s={},a.length&&a.forEach(l=>xv(s,l,A,!0)),xv(s,t,A)),pe(t)&&i.set(t,s),s}function xv(r,t,e,n=!1){const{mixins:a,extends:i}=t;i&&xv(r,i,e,!0),a&&a.forEach(A=>xv(r,A,e,!0));for(const A in t)if(!(n&&A==="expose")){const o=VN[A]||e&&e[A];r[A]=o?o(r[A],t[A]):t[A]}return r}const VN={data:x1,props:b1,emits:b1,methods:ru,computed:ru,beforeCreate:cr,created:cr,beforeMount:cr,mounted:cr,beforeUpdate:cr,updated:cr,beforeDestroy:cr,beforeUnmount:cr,destroyed:cr,unmounted:cr,activated:cr,deactivated:cr,errorCaptured:cr,serverPrefetch:cr,components:ru,directives:ru,watch:KN,provide:x1,inject:GN};function x1(r,t){return t?r?function(){return Oe(kt(r)?r.call(this,this):r,kt(t)?t.call(this,this):t)}:t:r}function GN(r,t){return ru(o0(r),o0(t))}function o0(r){if(Ut(r)){const t={};for(let e=0;e1)return e&&kt(t)?t.call(n&&n.proxy):t}}const lQ={},uQ=()=>Object.create(lQ),fQ=r=>Object.getPrototypeOf(r)===lQ;function XN(r,t,e,n=!1){const a={},i=uQ();r.propsDefaults=Object.create(null),cQ(r,t,a,i);for(const A in r.propsOptions[0])A in a||(a[A]=void 0);e?r.props=n?a:NL(a):r.type.props?r.props=a:r.props=i,r.attrs=i}function YN(r,t,e,n){const{props:a,attrs:i,vnode:{patchFlag:A}}=r,o=jt(a),[s]=r.propsOptions;let l=!1;if((n||A>0)&&!(A&16)){if(A&8){const u=r.vnode.dynamicProps;for(let f=0;f{s=!0;const[c,h]=hQ(f,t,!0);Oe(A,c),h&&o.push(...h)};!e&&t.mixins.length&&t.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}if(!i&&!s)return pe(r)&&n.set(r,Ts),Ts;if(Ut(i))for(let u=0;ur[0]==="_"||r==="$stable",GB=r=>Ut(r)?r.map(aa):[aa(r)],$N=(r,t,e)=>{if(t._n)return t;const n=JL((...a)=>GB(t(...a)),e);return n._c=!1,n},dQ=(r,t,e)=>{const n=r._ctx;for(const a in r){if(vQ(a))continue;const i=r[a];if(kt(i))t[a]=$N(a,i,n);else if(i!=null){const A=GB(i);t[a]=()=>A}}},pQ=(r,t)=>{const e=GB(t);r.slots.default=()=>e},gQ=(r,t,e)=>{for(const n in t)(e||n!=="_")&&(r[n]=t[n])},JN=(r,t,e)=>{const n=r.slots=uQ();if(r.vnode.shapeFlag&32){const a=t._;a?(gQ(n,t,e),e&&_L(n,"_",a,!0)):dQ(t,n)}else t&&pQ(r,t)},qN=(r,t,e)=>{const{vnode:n,slots:a}=r;let i=!0,A=he;if(n.shapeFlag&32){const o=t._;o?e&&o===1?i=!1:gQ(a,t,e):(i=!t.$stable,dQ(t,a)),A=t}else t&&(pQ(r,t),A={default:1});if(i)for(const o in a)!vQ(o)&&A[o]==null&&delete a[o]},Gr=c4;function jN(r){return t4(r)}function t4(r,t){const e=CL();e.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:A,createText:o,createComment:s,setText:l,setElementText:u,parentNode:f,nextSibling:c,setScopeId:h=fa,insertStaticContent:v}=r,d=(Q,U,k,Z=null,W=null,tt=null,ot=void 0,ut=null,at=!!U.dynamicChildren)=>{if(Q===U)return;Q&&!XA(Q,U)&&(Z=N(Q),J(Q,W,tt,!0),Q=null),U.patchFlag===-2&&(at=!1,U.dynamicChildren=null);const{type:rt,ref:Ft,shapeFlag:dt}=U;switch(rt){case Wd:p(Q,U,k,Z);break;case Ur:g(Q,U,k,Z);break;case rg:Q==null&&y(U,k,Z,ot);break;case mr:F(Q,U,k,Z,W,tt,ot,ut,at);break;default:dt&1?_(Q,U,k,Z,W,tt,ot,ut,at):dt&6?E(Q,U,k,Z,W,tt,ot,ut,at):(dt&64||dt&128)&&rt.process(Q,U,k,Z,W,tt,ot,ut,at,q)}Ft!=null&&W&&n0(Ft,Q&&Q.ref,tt,U||Q,!U)},p=(Q,U,k,Z)=>{if(Q==null)n(U.el=o(U.children),k,Z);else{const W=U.el=Q.el;U.children!==Q.children&&l(W,U.children)}},g=(Q,U,k,Z)=>{Q==null?n(U.el=s(U.children||""),k,Z):U.el=Q.el},y=(Q,U,k,Z)=>{[Q.el,Q.anchor]=v(Q.children,U,k,Z,Q.el,Q.anchor)},m=({el:Q,anchor:U},k,Z)=>{let W;for(;Q&&Q!==U;)W=c(Q),n(Q,k,Z),Q=W;n(U,k,Z)},w=({el:Q,anchor:U})=>{let k;for(;Q&&Q!==U;)k=c(Q),a(Q),Q=k;a(U)},_=(Q,U,k,Z,W,tt,ot,ut,at)=>{U.type==="svg"?ot="svg":U.type==="math"&&(ot="mathml"),Q==null?B(U,k,Z,W,tt,ot,ut,at):S(Q,U,W,tt,ot,ut,at)},B=(Q,U,k,Z,W,tt,ot,ut)=>{let at,rt;const{props:Ft,shapeFlag:dt,transition:Tt,dirs:Rt}=Q;if(at=Q.el=A(Q.type,tt,Ft&&Ft.is,Ft),dt&8?u(at,Q.children):dt&16&&x(Q.children,at,null,Z,W,tg(Q,tt),ot,ut),Rt&&fA(Q,null,Z,"created"),C(at,Q,Q.scopeId,ot,Z),Ft){for(const fe in Ft)fe!=="value"&&!_u(fe)&&i(at,fe,null,Ft[fe],tt,Z);"value"in Ft&&i(at,"value",null,Ft.value,tt),(rt=Ft.onVnodeBeforeMount)&&Xn(rt,Z,Q)}Rt&&fA(Q,null,Z,"beforeMount");const Zt=e4(W,Tt);Zt&&Tt.beforeEnter(at),n(at,U,k),((rt=Ft&&Ft.onVnodeMounted)||Zt||Rt)&&Gr(()=>{rt&&Xn(rt,Z,Q),Zt&&Tt.enter(at),Rt&&fA(Q,null,Z,"mounted")},W)},C=(Q,U,k,Z,W)=>{if(k&&h(Q,k),Z)for(let tt=0;tt{for(let rt=at;rt{const ut=U.el=Q.el;let{patchFlag:at,dynamicChildren:rt,dirs:Ft}=U;at|=Q.patchFlag&16;const dt=Q.props||he,Tt=U.props||he;let Rt;if(k&&cA(k,!1),(Rt=Tt.onVnodeBeforeUpdate)&&Xn(Rt,k,U,Q),Ft&&fA(U,Q,k,"beforeUpdate"),k&&cA(k,!0),(dt.innerHTML&&Tt.innerHTML==null||dt.textContent&&Tt.textContent==null)&&u(ut,""),rt?b(Q.dynamicChildren,rt,ut,k,Z,tg(U,W),tt):ot||P(Q,U,ut,null,k,Z,tg(U,W),tt,!1),at>0){if(at&16)T(ut,dt,Tt,k,W);else if(at&2&&dt.class!==Tt.class&&i(ut,"class",null,Tt.class,W),at&4&&i(ut,"style",dt.style,Tt.style,W),at&8){const Zt=U.dynamicProps;for(let fe=0;fe{Rt&&Xn(Rt,k,U,Q),Ft&&fA(U,Q,k,"updated")},Z)},b=(Q,U,k,Z,W,tt,ot)=>{for(let ut=0;ut{if(U!==k){if(U!==he)for(const tt in U)!_u(tt)&&!(tt in k)&&i(Q,tt,U[tt],null,W,Z);for(const tt in k){if(_u(tt))continue;const ot=k[tt],ut=U[tt];ot!==ut&&tt!=="value"&&i(Q,tt,ut,ot,W,Z)}"value"in k&&i(Q,"value",U.value,k.value,W)}},F=(Q,U,k,Z,W,tt,ot,ut,at)=>{const rt=U.el=Q?Q.el:o(""),Ft=U.anchor=Q?Q.anchor:o("");let{patchFlag:dt,dynamicChildren:Tt,slotScopeIds:Rt}=U;Rt&&(ut=ut?ut.concat(Rt):Rt),Q==null?(n(rt,k,Z),n(Ft,k,Z),x(U.children||[],k,Ft,W,tt,ot,ut,at)):dt>0&&dt&64&&Tt&&Q.dynamicChildren?(b(Q.dynamicChildren,Tt,k,W,tt,ot,ut),(U.key!=null||W&&U===W.subTree)&&yQ(Q,U,!0)):P(Q,U,k,Ft,W,tt,ot,ut,at)},E=(Q,U,k,Z,W,tt,ot,ut,at)=>{U.slotScopeIds=ut,Q==null?U.shapeFlag&512?W.ctx.activate(U,k,Z,ot,at):D(U,k,Z,W,tt,ot,at):L(Q,U,at)},D=(Q,U,k,Z,W,tt,ot)=>{const ut=Q.component=m4(Q,Z,W);if(Vd(Q)&&(ut.ctx.renderer=q),B4(ut,!1,ot),ut.asyncDep){if(W&&W.registerDep(ut,M,ot),!Q.el){const at=ut.subTree=Ar(Ur);g(null,at,U,k)}}else M(ut,Q,U,k,W,tt,ot)},L=(Q,U,k)=>{const Z=U.component=Q.component;if(u4(Q,U,k))if(Z.asyncDep&&!Z.asyncResolved){R(Z,U,k);return}else Z.next=U,Z.update();else U.el=Q.el,Z.vnode=U},M=(Q,U,k,Z,W,tt,ot)=>{const ut=()=>{if(Q.isMounted){let{next:dt,bu:Tt,u:Rt,parent:Zt,vnode:fe}=Q;{const Or=mQ(Q);if(Or){dt&&(dt.el=fe.el,R(Q,dt,ot)),Or.asyncDep.then(()=>{Q.isUnmounted||ut()});return}}let ae=dt,Hr;cA(Q,!1),dt?(dt.el=fe.el,R(Q,dt,ot)):dt=fe,Tt&&Xp(Tt),(Hr=dt.props&&dt.props.onVnodeBeforeUpdate)&&Xn(Hr,Zt,dt,fe),cA(Q,!0);const je=eg(Q),bn=Q.subTree;Q.subTree=je,d(bn,je,f(bn.el),N(bn),Q,W,tt),dt.el=je.el,ae===null&&f4(Q,je.el),Rt&&Gr(Rt,W),(Hr=dt.props&&dt.props.onVnodeUpdated)&&Gr(()=>Xn(Hr,Zt,dt,fe),W)}else{let dt;const{el:Tt,props:Rt}=U,{bm:Zt,m:fe,parent:ae,root:Hr,type:je}=Q,bn=xu(U);if(cA(Q,!1),Zt&&Xp(Zt),!bn&&(dt=Rt&&Rt.onVnodeBeforeMount)&&Xn(dt,ae,U),cA(Q,!0),Tt&&ct){const Or=()=>{Q.subTree=eg(Q),ct(Tt,Q.subTree,Q,W,null)};bn&&je.__asyncHydrate?je.__asyncHydrate(Tt,Q,Or):Or()}else{Hr.ce&&Hr.ce._injectChildStyle(je);const Or=Q.subTree=eg(Q);d(null,Or,k,Z,Q,W,tt),U.el=Or.el}if(fe&&Gr(fe,W),!bn&&(dt=Rt&&Rt.onVnodeMounted)){const Or=U;Gr(()=>Xn(dt,ae,Or),W)}(U.shapeFlag&256||ae&&xu(ae.vnode)&&ae.vnode.shapeFlag&256)&&Q.a&&Gr(Q.a,W),Q.isMounted=!0,U=k=Z=null}};Q.scope.on();const at=Q.effect=new TL(ut);Q.scope.off();const rt=Q.update=at.run.bind(at),Ft=Q.job=at.runIfDirty.bind(at);Ft.i=Q,Ft.id=Q.uid,at.scheduler=()=>kB(Ft),cA(Q,!0),rt()},R=(Q,U,k)=>{U.component=Q;const Z=Q.vnode.props;Q.vnode=U,Q.next=null,YN(Q,U.props,Z,k),qN(Q,U.children,k),oA(),w1(Q),sA()},P=(Q,U,k,Z,W,tt,ot,ut,at=!1)=>{const rt=Q&&Q.children,Ft=Q?Q.shapeFlag:0,dt=U.children,{patchFlag:Tt,shapeFlag:Rt}=U;if(Tt>0){if(Tt&128){G(rt,dt,k,Z,W,tt,ot,ut,at);return}else if(Tt&256){O(rt,dt,k,Z,W,tt,ot,ut,at);return}}Rt&8?(Ft&16&&_t(rt,W,tt),dt!==rt&&u(k,dt)):Ft&16?Rt&16?G(rt,dt,k,Z,W,tt,ot,ut,at):_t(rt,W,tt,!0):(Ft&8&&u(k,""),Rt&16&&x(dt,k,Z,W,tt,ot,ut,at))},O=(Q,U,k,Z,W,tt,ot,ut,at)=>{Q=Q||Ts,U=U||Ts;const rt=Q.length,Ft=U.length,dt=Math.min(rt,Ft);let Tt;for(Tt=0;TtFt?_t(Q,W,tt,!0,!1,dt):x(U,k,Z,W,tt,ot,ut,at,dt)},G=(Q,U,k,Z,W,tt,ot,ut,at)=>{let rt=0;const Ft=U.length;let dt=Q.length-1,Tt=Ft-1;for(;rt<=dt&&rt<=Tt;){const Rt=Q[rt],Zt=U[rt]=at?Si(U[rt]):aa(U[rt]);if(XA(Rt,Zt))d(Rt,Zt,k,null,W,tt,ot,ut,at);else break;rt++}for(;rt<=dt&&rt<=Tt;){const Rt=Q[dt],Zt=U[Tt]=at?Si(U[Tt]):aa(U[Tt]);if(XA(Rt,Zt))d(Rt,Zt,k,null,W,tt,ot,ut,at);else break;dt--,Tt--}if(rt>dt){if(rt<=Tt){const Rt=Tt+1,Zt=RtTt)for(;rt<=dt;)J(Q[rt],W,tt,!0),rt++;else{const Rt=rt,Zt=rt,fe=new Map;for(rt=Zt;rt<=Tt;rt++){const kr=U[rt]=at?Si(U[rt]):aa(U[rt]);kr.key!=null&&fe.set(kr.key,rt)}let ae,Hr=0;const je=Tt-Zt+1;let bn=!1,Or=0;const yl=new Array(je);for(rt=0;rt=je){J(kr,W,tt,!0);continue}let Wn;if(kr.key!=null)Wn=fe.get(kr.key);else for(ae=Zt;ae<=Tt;ae++)if(yl[ae-Zt]===0&&XA(kr,U[ae])){Wn=ae;break}Wn===void 0?J(kr,W,tt,!0):(yl[Wn-Zt]=rt+1,Wn>=Or?Or=Wn:bn=!0,d(kr,U[Wn],k,null,W,tt,ot,ut,at),Hr++)}const f1=bn?r4(yl):Ts;for(ae=f1.length-1,rt=je-1;rt>=0;rt--){const kr=Zt+rt,Wn=U[kr],c1=kr+1{const{el:tt,type:ot,transition:ut,children:at,shapeFlag:rt}=Q;if(rt&6){X(Q.component.subTree,U,k,Z);return}if(rt&128){Q.suspense.move(U,k,Z);return}if(rt&64){ot.move(Q,U,k,q);return}if(ot===mr){n(tt,U,k);for(let dt=0;dtut.enter(tt),W);else{const{leave:dt,delayLeave:Tt,afterLeave:Rt}=ut,Zt=()=>n(tt,U,k),fe=()=>{dt(tt,()=>{Zt(),Rt&&Rt()})};Tt?Tt(tt,Zt,fe):fe()}else n(tt,U,k)},J=(Q,U,k,Z=!1,W=!1)=>{const{type:tt,props:ot,ref:ut,children:at,dynamicChildren:rt,shapeFlag:Ft,patchFlag:dt,dirs:Tt,cacheIndex:Rt}=Q;if(dt===-2&&(W=!1),ut!=null&&n0(ut,null,k,Q,!0),Rt!=null&&(U.renderCache[Rt]=void 0),Ft&256){U.ctx.deactivate(Q);return}const Zt=Ft&1&&Tt,fe=!xu(Q);let ae;if(fe&&(ae=ot&&ot.onVnodeBeforeUnmount)&&Xn(ae,U,Q),Ft&6)Bt(Q.component,k,Z);else{if(Ft&128){Q.suspense.unmount(k,Z);return}Zt&&fA(Q,null,U,"beforeUnmount"),Ft&64?Q.type.remove(Q,U,k,q,Z):rt&&!rt.hasOnce&&(tt!==mr||dt>0&&dt&64)?_t(rt,U,k,!1,!0):(tt===mr&&dt&384||!W&&Ft&16)&&_t(at,U,k),Z&&At(Q)}(fe&&(ae=ot&&ot.onVnodeUnmounted)||Zt)&&Gr(()=>{ae&&Xn(ae,U,Q),Zt&&fA(Q,null,U,"unmounted")},k)},At=Q=>{const{type:U,el:k,anchor:Z,transition:W}=Q;if(U===mr){lt(k,Z);return}if(U===rg){w(Q);return}const tt=()=>{a(k),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(Q.shapeFlag&1&&W&&!W.persisted){const{leave:ot,delayLeave:ut}=W,at=()=>ot(k,tt);ut?ut(Q.el,tt,at):at()}else tt()},lt=(Q,U)=>{let k;for(;Q!==U;)k=c(Q),a(Q),Q=k;a(U)},Bt=(Q,U,k)=>{const{bum:Z,scope:W,job:tt,subTree:ot,um:ut,m:at,a:rt}=Q;I1(at),I1(rt),Z&&Xp(Z),W.stop(),tt&&(tt.flags|=8,J(ot,Q,U,k)),ut&&Gr(ut,U),Gr(()=>{Q.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&Q.asyncDep&&!Q.asyncResolved&&Q.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},_t=(Q,U,k,Z=!1,W=!1,tt=0)=>{for(let ot=tt;ot{if(Q.shapeFlag&6)return N(Q.component.subTree);if(Q.shapeFlag&128)return Q.suspense.next();const U=c(Q.anchor||Q.el),k=U&&U[BN];return k?c(k):U};let z=!1;const $=(Q,U,k)=>{Q==null?U._vnode&&J(U._vnode,null,null,!0):d(U._vnode||null,Q,U,null,null,null,k),U._vnode=Q,z||(z=!0,w1(),YL(),z=!1)},q={p:d,um:J,m:X,r:At,mt:D,mc:x,pc:P,pbc:b,n:N,o:r};let j,ct;return{render:$,hydrate:j,createApp:WN($,j)}}function tg({type:r,props:t},e){return e==="svg"&&r==="foreignObject"||e==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function cA({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function e4(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function yQ(r,t,e=!1){const n=r.children,a=t.children;if(Ut(n)&&Ut(a))for(let i=0;i>1,r[e[o]]0&&(t[n]=e[i-1]),e[i]=n)}}for(i=e.length,A=e[i-1];i-- >0;)e[i]=A,A=t[A];return e}function mQ(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:mQ(t)}function I1(r){if(r)for(let t=0;tHa(n4);function Tu(r,t,e){return wQ(r,t,e)}function wQ(r,t,e=he){const{immediate:n,deep:a,flush:i,once:A}=e,o=Oe({},e);let s;if(Xd)if(i==="sync"){const c=a4();s=c.__watcherHandles||(c.__watcherHandles=[])}else if(!t||n)o.once=!0;else{const c=()=>{};return c.stop=fa,c.resume=fa,c.pause=fa,c}const l=Ye;o.call=(c,h,v)=>On(c,l,h,v);let u=!1;i==="post"?o.scheduler=c=>{Gr(c,l&&l.suspense)}:i!=="sync"&&(u=!0,o.scheduler=(c,h)=>{h?c():kB(c)}),o.augmentJob=c=>{t&&(c.flags|=4),u&&(c.flags|=2,l&&(c.id=l.uid,c.i=l))};const f=gN(r,t,o);return s&&s.push(f),f}function i4(r,t,e){const n=this.proxy,a=Ie(r)?r.includes(".")?BQ(n,r):()=>n[r]:r.bind(n,n);let i;kt(t)?i=t:(i=t.handler,e=t);const A=Of(this),o=wQ(a,i.bind(n),e);return A(),o}function BQ(r,t){const e=t.split(".");return()=>{let n=r;for(let a=0;at==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${Bn(t)}Modifiers`]||r[`${Fo(t)}Modifiers`];function o4(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||he;let a=e;const i=t.startsWith("update:"),A=i&&A4(n,t.slice(7));A&&(A.trim&&(a=e.map(u=>Ie(u)?u.trim():u)),A.number&&(a=e.map(Qk)));let o,s=n[o=Wp(t)]||n[o=Wp(Bn(t))];!s&&i&&(s=n[o=Wp(Fo(t))]),s&&On(s,r,6,a);const l=n[o+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[o])return;r.emitted[o]=!0,On(l,r,6,a)}}function _Q(r,t,e=!1){const n=t.emitsCache,a=n.get(r);if(a!==void 0)return a;const i=r.emits;let A={},o=!1;if(!kt(r)){const s=l=>{const u=_Q(l,t,!0);u&&(o=!0,Oe(A,u))};!e&&t.mixins.length&&t.mixins.forEach(s),r.extends&&s(r.extends),r.mixins&&r.mixins.forEach(s)}return!i&&!o?(pe(r)&&n.set(r,null),null):(Ut(i)?i.forEach(s=>A[s]=null):Oe(A,i),pe(r)&&n.set(r,A),A)}function zd(r,t){return!r||!Md(t)?!1:(t=t.slice(2).replace(/Once$/,""),ne(r,t[0].toLowerCase()+t.slice(1))||ne(r,Fo(t))||ne(r,t))}function eg(r){const{type:t,vnode:e,proxy:n,withProxy:a,propsOptions:[i],slots:A,attrs:o,emit:s,render:l,renderCache:u,props:f,data:c,setupState:h,ctx:v,inheritAttrs:d}=r,p=Sv(r);let g,y;try{if(e.shapeFlag&4){const w=a||n,_=w;g=aa(l.call(_,w,u,f,h,c,v)),y=o}else{const w=t;g=aa(w.length>1?w(f,{attrs:o,slots:A,emit:s}):w(f,null)),y=t.props?o:s4(o)}}catch(w){Iu.length=0,Nd(w,r,1),g=Ar(Ur)}let m=g;if(y&&d!==!1){const w=Object.keys(y),{shapeFlag:_}=m;w.length&&_&7&&(i&&w.some(IB)&&(y=l4(y,i)),m=$i(m,y,!1,!0))}return e.dirs&&(m=$i(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(e.dirs):e.dirs),e.transition&&ef(m,e.transition),g=m,Sv(p),g}const s4=r=>{let t;for(const e in r)(e==="class"||e==="style"||Md(e))&&((t||(t={}))[e]=r[e]);return t},l4=(r,t)=>{const e={};for(const n in r)(!IB(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function u4(r,t,e){const{props:n,children:a,component:i}=r,{props:A,children:o,patchFlag:s}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&s>=0){if(s&1024)return!0;if(s&16)return n?F1(n,A,l):!!A;if(s&8){const u=t.dynamicProps;for(let f=0;fr.__isSuspense;function c4(r,t){t&&t.pendingBranch?Ut(r)?t.effects.push(...r):t.effects.push(r):wN(r)}const mr=Symbol.for("v-fgt"),Wd=Symbol.for("v-txt"),Ur=Symbol.for("v-cmt"),rg=Symbol.for("v-stc"),Iu=[];let Wr=null;function wr(r=!1){Iu.push(Wr=r?null:[])}function h4(){Iu.pop(),Wr=Iu[Iu.length-1]||null}let rf=1;function E1(r){rf+=r,r<0&&Wr&&(Wr.hasOnce=!0)}function SQ(r){return r.dynamicChildren=rf>0?Wr||Ts:null,h4(),rf>0&&Wr&&Wr.push(r),r}function cn(r,t,e,n,a,i){return SQ(mt(r,t,e,n,a,i,!0))}function KB(r,t,e,n,a){return SQ(Ar(r,t,e,n,a,!0))}function bv(r){return r?r.__v_isVNode===!0:!1}function XA(r,t){return r.type===t.type&&r.key===t.key}const xQ=({key:r})=>r??null,Wh=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?Ie(r)||or(r)||kt(r)?{i:dn,r,k:t,f:!!e}:r:null);function mt(r,t=null,e=null,n=0,a=null,i=r===mr?0:1,A=!1,o=!1){const s={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&xQ(t),ref:t&&Wh(t),scopeId:$L,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:dn};return o?(WB(s,e),i&128&&r.normalize(s)):e&&(s.shapeFlag|=Ie(e)?8:16),rf>0&&!A&&Wr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Wr.push(s),s}const Ar=v4;function v4(r,t=null,e=null,n=0,a=null,i=!1){if((!r||r===RN)&&(r=Ur),bv(r)){const o=$i(r,t,!0);return e&&WB(o,e),rf>0&&!i&&Wr&&(o.shapeFlag&6?Wr[Wr.indexOf(r)]=o:Wr.push(o)),o.patchFlag=-2,o}if(b4(r)&&(r=r.__vccOpts),t){t=d4(t);let{class:o,style:s}=t;o&&!Ie(o)&&(t.class=Fi(o)),pe(s)&&(HB(s)&&!Ut(s)&&(s=Oe({},s)),t.style=za(s))}const A=Ie(r)?1:CQ(r)?128:qL(r)?64:pe(r)?4:kt(r)?2:0;return mt(r,t,e,n,a,A,i,!0)}function d4(r){return r?HB(r)||fQ(r)?Oe({},r):r:null}function $i(r,t,e=!1,n=!1){const{props:a,ref:i,patchFlag:A,children:o,transition:s}=r,l=t?p4(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:r.type,props:l,key:l&&xQ(l),ref:t&&t.ref?e&&i?Ut(i)?i.concat(Wh(t)):[i,Wh(t)]:Wh(t):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:o,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==mr?A===-1?16:A|16:A,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:s,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&$i(r.ssContent),ssFallback:r.ssFallback&&$i(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return s&&n&&ef(u,s.clone(u)),u}function Tv(r=" ",t=0){return Ar(Wd,null,r,t)}function zB(r="",t=!1){return t?(wr(),KB(Ur,null,r)):Ar(Ur,null,r)}function aa(r){return r==null||typeof r=="boolean"?Ar(Ur):Ut(r)?Ar(mr,null,r.slice()):bv(r)?Si(r):Ar(Wd,null,String(r))}function Si(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:$i(r)}function WB(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(Ut(t))e=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),WB(r,a()),a._c&&(a._d=!0));return}else{e=32;const a=t._;!a&&!fQ(t)?t._ctx=dn:a===3&&dn&&(dn.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else kt(t)?(t={default:t,_ctx:dn},e=32):(t=String(t),n&64?(e=16,t=[Tv(t)]):e=8);r.children=t,r.shapeFlag|=e}function p4(...r){const t={};for(let e=0;eYe||dn;let Iv,l0;{const r=CL(),t=(e,n)=>{let a;return(a=r[e])||(a=r[e]=[]),a.push(n),i=>{a.length>1?a.forEach(A=>A(i)):a[0](i)}};Iv=t("__VUE_INSTANCE_SETTERS__",e=>Ye=e),l0=t("__VUE_SSR_SETTERS__",e=>Xd=e)}const Of=r=>{const t=Ye;return Iv(r),r.scope.on(),()=>{r.scope.off(),Iv(t)}},D1=()=>{Ye&&Ye.scope.off(),Iv(null)};function bQ(r){return r.vnode.shapeFlag&4}let Xd=!1;function B4(r,t=!1,e=!1){t&&l0(t);const{props:n,children:a}=r.vnode,i=bQ(r);XN(r,n,i,t),JN(r,a,e);const A=i?_4(r,t):void 0;return t&&l0(!1),A}function _4(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,ON);const{setup:n}=e;if(n){const a=r.setupContext=n.length>1?S4(r):null,i=Of(r);oA();const A=Hf(n,r,0,[r.props,a]);if(sA(),i(),mL(A)){if(xu(r)||aQ(r),A.then(D1,D1),t)return A.then(o=>{L1(r,o,t)}).catch(o=>{Nd(o,r,0)});r.asyncDep=A}else L1(r,A,t)}else TQ(r,t)}function L1(r,t,e){kt(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:pe(t)&&(r.setupState=KL(t)),TQ(r,e)}let Q1;function TQ(r,t,e){const n=r.type;if(!r.render){if(!t&&Q1&&!n.render){const a=n.template||VB(r).template;if(a){const{isCustomElement:i,compilerOptions:A}=r.appContext.config,{delimiters:o,compilerOptions:s}=n,l=Oe(Oe({isCustomElement:i,delimiters:o},A),s);n.render=Q1(a,l)}}r.render=n.render||fa}{const a=Of(r);oA();try{kN(r)}finally{sA(),a()}}}const C4={get(r,t){return sr(r,"get",""),r[t]}};function S4(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,C4),slots:r.slots,emit:r.emit,expose:t}}function XB(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(KL(uN(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in bu)return bu[e](r)},has(t,e){return e in t||e in bu}})):r.proxy}function x4(r,t=!0){return kt(r)?r.displayName||r.name:r.name||t&&r.__name}function b4(r){return kt(r)&&"__vccOpts"in r}const be=(r,t)=>dN(r,t,Xd);function YB(r,t,e){const n=arguments.length;return n===2?pe(t)&&!Ut(t)?bv(t)?Ar(r,null,[t]):Ar(r,t):Ar(r,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&bv(e)&&(e=[e]),Ar(r,t,e))}const T4="3.5.11";/** +* @vue/runtime-dom v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Ym;const m1=typeof window<"u"&&window.trustedTypes;if(m1)try{Ym=m1.createPolicy("vue",{createHTML:r=>r})}catch{}const nL=Ym?r=>Ym.createHTML(r):r=>r,t4="http://www.w3.org/2000/svg",e4="http://www.w3.org/1998/Math/MathML",Ea=typeof document<"u"?document:null,w1=Ea&&Ea.createElement("template"),r4={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const a=t==="svg"?Ea.createElementNS(t4,r):t==="mathml"?Ea.createElementNS(e4,r):e?Ea.createElement(r,{is:e}):Ea.createElement(r);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>Ea.createTextNode(r),createComment:r=>Ea.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Ea.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,a,i){const A=e?e.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),e),!(a===i||!(a=a.nextSibling)););else{w1.innerHTML=nL(n==="svg"?`${r}`:n==="mathml"?`${r}`:r);const o=w1.content;if(n==="svg"||n==="mathml"){const s=o.firstChild;for(;s.firstChild;)o.appendChild(s.firstChild);o.removeChild(s)}t.insertBefore(o,e)}return[A?A.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},n4=Symbol("_vtc");function a4(r,t,e){const n=r[n4];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const B1=Symbol("_vod"),i4=Symbol("_vsh"),A4=Symbol(""),o4=/(^|;)\s*display\s*:/;function s4(r,t,e){const n=r.style,a=Qe(e);let i=!1;if(e&&!a){if(t)if(Qe(t))for(const A of t.split(";")){const o=A.slice(0,A.indexOf(":")).trim();e[o]==null&&Ph(n,o,"")}else for(const A in t)e[A]==null&&Ph(n,A,"");for(const A in e)A==="display"&&(i=!0),Ph(n,A,e[A])}else if(a){if(t!==e){const A=n[A4];A&&(e+=";"+A),n.cssText=e,i=o4.test(e)}}else t&&r.removeAttribute("style");B1 in r&&(r[B1]=i?n.display:"",r[i4]&&(n.display="none"))}const _1=/\s*!important$/;function Ph(r,t,e){if(Ot(e))e.forEach(n=>Ph(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=l4(r,t);_1.test(e)?r.setProperty(wo(n),e.replace(_1,""),"important"):r[n]=e}}const C1=["Webkit","Moz","ms"],Vp={};function l4(r,t){const e=Vp[t];if(e)return e;let n=pn(t);if(n!=="filter"&&n in r)return Vp[t]=n;n=xd(n);for(let a=0;aGp||(v4.then(()=>Gp=0),Gp=Date.now());function p4(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;ca(g4(n,e.value),t,5,[n])};return e.value=r,e.attached=d4(),e}function g4(r,t){if(Ot(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const F1=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,y4=(r,t,e,n,a,i)=>{const A=a==="svg";t==="class"?a4(r,n,A):t==="style"?s4(r,e,n):_d(t)?cB(t)||c4(r,t,e,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):m4(r,t,n,A))?(b1(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&x1(r,t,n,A,i,t!=="value")):r._isVueCE&&(/[A-Z]/.test(t)||!Qe(n))?b1(r,pn(t),n):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),x1(r,t,n,A))};function m4(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&F1(t)&&kt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return F1(t)&&Qe(e)?!1:t in r}const w4=Ze({patchProp:y4},r4);let E1;function B4(){return E1||(E1=bN(w4))}const _4=(...r)=>{const t=B4().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=S4(n);if(!a)return;const i=t._component;!kt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const A=e(a,!1,C4(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),A},t};function C4(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function S4(r){return Qe(r)?document.querySelector(r):r}const x4=Bo({__name:"App",setup(r){console.log("App.vue");const t=new Date().getFullYear();return(e,n)=>{const a=lN("router-view");return Er(),Fn(Fr,null,[n[4]||(n[4]=St("h1",{style:{"text-align":"center"}},"Server Status",-1)),yr(a),St("footer",null,[n[0]||(n[0]=St("a",{href:"https://github.com/snowykami/server-status-server"},"Server status dashboard",-1)),n[1]||(n[1]=St("br",null,null,-1)),dv(" © Copyright 2024-"+Ce(la(t))+" ",1),n[2]||(n[2]=St("a",{href:"https://sfkm.me",target:"_blank"},"Snowykami",-1)),n[3]||(n[3]=dv(" All Rights Reserved "))])],64)}}}),Ws=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},b4=Ws(x4,[["__scopeId","data-v-49c835b0"]]);/*! +**/let u0;const M1=typeof window<"u"&&window.trustedTypes;if(M1)try{u0=M1.createPolicy("vue",{createHTML:r=>r})}catch{}const IQ=u0?r=>u0.createHTML(r):r=>r,I4="http://www.w3.org/2000/svg",F4="http://www.w3.org/1998/Math/MathML",La=typeof document<"u"?document:null,U1=La&&La.createElement("template"),E4={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const a=t==="svg"?La.createElementNS(I4,r):t==="mathml"?La.createElementNS(F4,r):e?La.createElement(r,{is:e}):La.createElement(r);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>La.createTextNode(r),createComment:r=>La.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>La.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,a,i){const A=e?e.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),e),!(a===i||!(a=a.nextSibling)););else{U1.innerHTML=IQ(n==="svg"?`${r}`:n==="mathml"?`${r}`:r);const o=U1.content;if(n==="svg"||n==="mathml"){const s=o.firstChild;for(;s.firstChild;)o.appendChild(s.firstChild);o.removeChild(s)}t.insertBefore(o,e)}return[A?A.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},Ai="transition",wl="animation",nf=Symbol("_vtc"),FQ={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},D4=Oe({},jL,FQ),L4=r=>(r.displayName="Transition",r.props=D4,r),Q4=L4((r,{slots:t})=>YB(SN,M4(r),t)),hA=(r,t=[])=>{Ut(r)?r.forEach(e=>e(...t)):r&&r(...t)},P1=r=>r?Ut(r)?r.some(t=>t.length>1):r.length>1:!1;function M4(r){const t={};for(const F in r)F in FQ||(t[F]=r[F]);if(r.css===!1)return t;const{name:e="v",type:n,duration:a,enterFromClass:i=`${e}-enter-from`,enterActiveClass:A=`${e}-enter-active`,enterToClass:o=`${e}-enter-to`,appearFromClass:s=i,appearActiveClass:l=A,appearToClass:u=o,leaveFromClass:f=`${e}-leave-from`,leaveActiveClass:c=`${e}-leave-active`,leaveToClass:h=`${e}-leave-to`}=r,v=U4(a),d=v&&v[0],p=v&&v[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:m,onLeave:w,onLeaveCancelled:_,onBeforeAppear:B=g,onAppear:C=y,onAppearCancelled:x=m}=t,S=(F,E,D)=>{vA(F,E?u:o),vA(F,E?l:A),D&&D()},b=(F,E)=>{F._isLeaving=!1,vA(F,f),vA(F,h),vA(F,c),E&&E()},T=F=>(E,D)=>{const L=F?C:y,M=()=>S(E,F,D);hA(L,[E,M]),R1(()=>{vA(E,F?s:i),oi(E,F?u:o),P1(L)||H1(E,n,d,M)})};return Oe(t,{onBeforeEnter(F){hA(g,[F]),oi(F,i),oi(F,A)},onBeforeAppear(F){hA(B,[F]),oi(F,s),oi(F,l)},onEnter:T(!1),onAppear:T(!0),onLeave(F,E){F._isLeaving=!0;const D=()=>b(F,E);oi(F,f),oi(F,c),H4(),R1(()=>{F._isLeaving&&(vA(F,f),oi(F,h),P1(w)||H1(F,n,p,D))}),hA(w,[F,D])},onEnterCancelled(F){S(F,!1),hA(m,[F])},onAppearCancelled(F){S(F,!0),hA(x,[F])},onLeaveCancelled(F){b(F),hA(_,[F])}})}function U4(r){if(r==null)return null;if(pe(r))return[ng(r.enter),ng(r.leave)];{const t=ng(r);return[t,t]}}function ng(r){return Mk(r)}function oi(r,t){t.split(/\s+/).forEach(e=>e&&r.classList.add(e)),(r[nf]||(r[nf]=new Set)).add(t)}function vA(r,t){t.split(/\s+/).forEach(n=>n&&r.classList.remove(n));const e=r[nf];e&&(e.delete(t),e.size||(r[nf]=void 0))}function R1(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let P4=0;function H1(r,t,e,n){const a=r._endId=++P4,i=()=>{a===r._endId&&n()};if(e!=null)return setTimeout(i,e);const{type:A,timeout:o,propCount:s}=R4(r,t);if(!A)return n();const l=A+"end";let u=0;const f=()=>{r.removeEventListener(l,c),i()},c=h=>{h.target===r&&++u>=s&&f()};setTimeout(()=>{u(e[v]||"").split(", "),a=n(`${Ai}Delay`),i=n(`${Ai}Duration`),A=O1(a,i),o=n(`${wl}Delay`),s=n(`${wl}Duration`),l=O1(o,s);let u=null,f=0,c=0;t===Ai?A>0&&(u=Ai,f=A,c=i.length):t===wl?l>0&&(u=wl,f=l,c=s.length):(f=Math.max(A,l),u=f>0?A>l?Ai:wl:null,c=u?u===Ai?i.length:s.length:0);const h=u===Ai&&/\b(transform|all)(,|$)/.test(n(`${Ai}Property`).toString());return{type:u,timeout:f,propCount:c,hasTransform:h}}function O1(r,t){for(;r.lengthk1(e)+k1(r[n])))}function k1(r){return r==="auto"?0:Number(r.slice(0,-1).replace(",","."))*1e3}function H4(){return document.body.offsetHeight}function O4(r,t,e){const n=r[nf];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const N1=Symbol("_vod"),k4=Symbol("_vsh"),N4=Symbol(""),V4=/(^|;)\s*display\s*:/;function G4(r,t,e){const n=r.style,a=Ie(e);let i=!1;if(e&&!a){if(t)if(Ie(t))for(const A of t.split(";")){const o=A.slice(0,A.indexOf(":")).trim();e[o]==null&&Xh(n,o,"")}else for(const A in t)e[A]==null&&Xh(n,A,"");for(const A in e)A==="display"&&(i=!0),Xh(n,A,e[A])}else if(a){if(t!==e){const A=n[N4];A&&(e+=";"+A),n.cssText=e,i=V4.test(e)}}else t&&r.removeAttribute("style");N1 in r&&(r[N1]=i?n.display:"",r[k4]&&(n.display="none"))}const V1=/\s*!important$/;function Xh(r,t,e){if(Ut(e))e.forEach(n=>Xh(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=K4(r,t);V1.test(e)?r.setProperty(Fo(n),e.replace(V1,""),"important"):r[n]=e}}const G1=["Webkit","Moz","ms"],ag={};function K4(r,t){const e=ag[t];if(e)return e;let n=Bn(t);if(n!=="filter"&&n in r)return ag[t]=n;n=Rd(n);for(let a=0;aig||(Z4.then(()=>ig=0),ig=Date.now());function J4(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;On(q4(n,e.value),t,5,[n])};return e.value=r,e.attached=$4(),e}function q4(r,t){if(Ut(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const Z1=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,j4=(r,t,e,n,a,i)=>{const A=a==="svg";t==="class"?O4(r,n,A):t==="style"?G4(r,e,n):Md(t)?IB(t)||X4(r,t,e,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tV(r,t,n,A))?(W1(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&z1(r,t,n,A,i,t!=="value")):r._isVueCE&&(/[A-Z]/.test(t)||!Ie(n))?W1(r,Bn(t),n):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),z1(r,t,n,A))};function tV(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&Z1(t)&&kt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Z1(t)&&Ie(e)?!1:t in r}const eV=Oe({patchProp:j4},E4);let $1;function rV(){return $1||($1=jN(eV))}const nV=(...r)=>{const t=rV().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=iV(n);if(!a)return;const i=t._component;!kt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const A=e(a,!1,aV(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),A},t};function aV(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function iV(r){return Ie(r)?document.querySelector(r):r}const AV=Eo({__name:"App",setup(r){console.log("App.vue");const t=new Date().getFullYear();return(e,n)=>{const a=PN("router-view");return wr(),cn(mr,null,[n[4]||(n[4]=mt("h1",{style:{"text-align":"center"}},"Server Status",-1)),Ar(a),mt("footer",null,[n[0]||(n[0]=mt("a",{href:"https://github.com/snowykami/server-status-server"},"Server status dashboard",-1)),n[1]||(n[1]=mt("br",null,null,-1)),Tv(" © Copyright 2024-"+Ce(ca(t))+" ",1),n[2]||(n[2]=mt("a",{href:"https://sfkm.me",target:"_blank"},"Snowykami",-1)),n[3]||(n[3]=Tv(" All Rights Reserved "))])],64)}}}),js=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},oV=js(AV,[["__scopeId","data-v-49c835b0"]]);/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const is=typeof document<"u";function aL(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function T4(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&aL(r.default)}const ie=Object.assign;function Kp(r,t){const e={};for(const n in t){const a=t[n];e[n]=Pn(a)?a.map(r):r(a)}return e}const wu=()=>{},Pn=Array.isArray,iL=/#/g,I4=/&/g,F4=/\//g,E4=/=/g,D4=/\?/g,AL=/\+/g,Q4=/%5B/g,L4=/%5D/g,oL=/%5E/g,M4=/%60/g,sL=/%7B/g,U4=/%7C/g,lL=/%7D/g,P4=/%20/g;function UB(r){return encodeURI(""+r).replace(U4,"|").replace(Q4,"[").replace(L4,"]")}function R4(r){return UB(r).replace(sL,"{").replace(lL,"}").replace(oL,"^")}function Zm(r){return UB(r).replace(AL,"%2B").replace(P4,"+").replace(iL,"%23").replace(I4,"%26").replace(M4,"`").replace(sL,"{").replace(lL,"}").replace(oL,"^")}function H4(r){return Zm(r).replace(E4,"%3D")}function O4(r){return UB(r).replace(iL,"%23").replace(D4,"%3F")}function k4(r){return r==null?"":O4(r).replace(F4,"%2F")}function Yu(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const N4=/\/$/,V4=r=>r.replace(N4,"");function zp(r,t,e="/"){let n,a={},i="",A="";const o=t.indexOf("#");let s=t.indexOf("?");return o=0&&(s=-1),s>-1&&(n=t.slice(0,s),i=t.slice(s+1,o>-1?o:t.length),a=r(i)),o>-1&&(n=n||t.slice(0,o),A=t.slice(o,t.length)),n=W4(n??t,e),{fullPath:n+(i&&"?")+i+A,path:n,query:a,hash:Yu(A)}}function G4(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function D1(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function K4(r,t,e){const n=t.matched.length-1,a=e.matched.length-1;return n>-1&&n===a&&Qs(t.matched[n],e.matched[a])&&uL(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Qs(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function uL(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!z4(r[e],t[e]))return!1;return!0}function z4(r,t){return Pn(r)?Q1(r,t):Pn(t)?Q1(t,r):r===t}function Q1(r,t){return Pn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function W4(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let i=e.length-1,A,o;for(A=0;A1&&i--;else break;return e.slice(0,i).join("/")+"/"+n.slice(A).join("/")}const ai={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Zu;(function(r){r.pop="pop",r.push="push"})(Zu||(Zu={}));var Bu;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Bu||(Bu={}));function X4(r){if(!r)if(is){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),V4(r)}const Y4=/^[^#]+#/;function Z4(r,t){return r.replace(Y4,"#")+t}function $4(r,t){const e=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:t.behavior,left:n.left-e.left-(t.left||0),top:n.top-e.top-(t.top||0)}}const Md=()=>({left:window.scrollX,top:window.scrollY});function J4(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),a=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!a)return;t=$4(a,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function L1(r,t){return(history.state?history.state.position-t:-1)+r}const $m=new Map;function q4(r,t){$m.set(r,t)}function j4(r){const t=$m.get(r);return $m.delete(r),t}let tV=()=>location.protocol+"//"+location.host;function fL(r,t){const{pathname:e,search:n,hash:a}=t,i=r.indexOf("#");if(i>-1){let o=a.includes(r.slice(i))?r.slice(i).length:1,s=a.slice(o);return s[0]!=="/"&&(s="/"+s),D1(s,"")}return D1(e,r)+n+a}function eV(r,t,e,n){let a=[],i=[],A=null;const o=({state:c})=>{const h=fL(r,location),v=e.value,d=t.value;let p=0;if(c){if(e.value=h,t.value=c,A&&A===v){A=null;return}p=d?c.position-d.position:0}else n(h);a.forEach(g=>{g(e.value,v,{delta:p,type:Zu.pop,direction:p?p>0?Bu.forward:Bu.back:Bu.unknown})})};function s(){A=e.value}function l(c){a.push(c);const h=()=>{const v=a.indexOf(c);v>-1&&a.splice(v,1)};return i.push(h),h}function u(){const{history:c}=window;c.state&&c.replaceState(ie({},c.state,{scroll:Md()}),"")}function f(){for(const c of i)c();i=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:s,listen:l,destroy:f}}function M1(r,t,e,n=!1,a=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:a?Md():null}}function rV(r){const{history:t,location:e}=window,n={value:fL(r,e)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,l,u){const f=r.indexOf("#"),c=f>-1?(e.host&&document.querySelector("base")?r:r.slice(f))+s:tV()+r+s;try{t[u?"replaceState":"pushState"](l,"",c),a.value=l}catch(h){console.error(h),e[u?"replace":"assign"](c)}}function A(s,l){const u=ie({},t.state,M1(a.value.back,s,a.value.forward,!0),l,{position:a.value.position});i(s,u,!0),n.value=s}function o(s,l){const u=ie({},a.value,t.state,{forward:s,scroll:Md()});i(u.current,u,!0);const f=ie({},M1(n.value,s,null),{position:u.position+1},l);i(s,f,!1),n.value=s}return{location:n,state:a,push:o,replace:A}}function nV(r){r=X4(r);const t=rV(r),e=eV(r,t.state,t.location,t.replace);function n(i,A=!0){A||e.pauseListeners(),history.go(i)}const a=ie({location:"",base:r,go:n,createHref:Z4.bind(null,r)},t,e);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function aV(r){return typeof r=="string"||r&&typeof r=="object"}function cL(r){return typeof r=="string"||typeof r=="symbol"}const hL=Symbol("");var U1;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(U1||(U1={}));function Ls(r,t){return ie(new Error,{type:r,[hL]:!0},t)}function Sa(r,t){return r instanceof Error&&hL in r&&(t==null||!!(r.type&t))}const P1="[^/]+?",iV={sensitive:!1,strict:!1,start:!0,end:!0},AV=/[.+*?^${}()[\]/\\]/g;function oV(r,t){const e=ie({},iV,t),n=[];let a=e.start?"^":"";const i=[];for(const l of r){const u=l.length?[]:[90];e.strict&&!l.length&&(a+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function vL(r,t){let e=0;const n=r.score,a=t.score;for(;e0&&t[t.length-1]<0}const lV={type:0,value:""},uV=/[a-zA-Z0-9_]/;function fV(r){if(!r)return[[]];if(r==="/")return[[lV]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(h){throw new Error(`ERR (${e})/"${l}": ${h}`)}let e=0,n=e;const a=[];let i;function A(){i&&a.push(i),i=[]}let o=0,s,l="",u="";function f(){l&&(e===0?i.push({type:0,value:l}):e===1||e===2||e===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=s}for(;o{A(m)}:wu}function A(f){if(cL(f)){const c=n.get(f);c&&(n.delete(f),e.splice(e.indexOf(c),1),c.children.forEach(A),c.alias.forEach(A))}else{const c=e.indexOf(f);c>-1&&(e.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(A),f.alias.forEach(A))}}function o(){return e}function s(f){const c=pV(f,e);e.splice(c,0,f),f.record.name&&!k1(f)&&n.set(f.record.name,f)}function l(f,c){let h,v={},d,p;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw Ls(1,{location:f});p=h.record.name,v=ie(H1(c.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&H1(f.params,h.keys.map(m=>m.name))),d=h.stringify(v)}else if(f.path!=null)d=f.path,h=e.find(m=>m.re.test(d)),h&&(v=h.parse(d),p=h.record.name);else{if(h=c.name?n.get(c.name):e.find(m=>m.re.test(c.path)),!h)throw Ls(1,{location:f,currentLocation:c});p=h.record.name,v=ie({},c.params,f.params),d=h.stringify(v)}const g=[];let y=h;for(;y;)g.unshift(y.record),y=y.parent;return{name:p,path:d,params:v,matched:g,meta:dV(g)}}r.forEach(f=>i(f));function u(){e.length=0,n.clear()}return{addRoute:i,resolve:l,removeRoute:A,clearRoutes:u,getRoutes:o,getRecordMatcher:a}}function H1(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function O1(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:vV(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function vV(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const n in r.components)t[n]=typeof e=="object"?e[n]:e;return t}function k1(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function dV(r){return r.reduce((t,e)=>ie(t,e.meta),{})}function N1(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}function pV(r,t){let e=0,n=t.length;for(;e!==n;){const i=e+n>>1;vL(r,t[i])<0?n=i:e=i+1}const a=gV(r);return a&&(n=t.lastIndexOf(a,n-1)),n}function gV(r){let t=r;for(;t=t.parent;)if(dL(t)&&vL(r,t)===0)return t}function dL({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function yV(r){const t={};if(r===""||r==="?")return t;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let a=0;ai&&Zm(i)):[n&&Zm(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function mV(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=Pn(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const wV=Symbol(""),G1=Symbol(""),PB=Symbol(""),pL=Symbol(""),Jm=Symbol("");function vl(){let r=[];function t(n){return r.push(n),()=>{const a=r.indexOf(n);a>-1&&r.splice(a,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function wi(r,t,e,n,a,i=A=>A()){const A=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(Ls(4,{from:e,to:t})):c instanceof Error?s(c):aV(c)?s(Ls(2,{from:t,to:c})):(A&&n.enterCallbacks[a]===A&&typeof c=="function"&&A.push(c),o())},u=i(()=>r.call(n&&n.instances[a],t,e,l));let f=Promise.resolve(u);r.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function Wp(r,t,e,n,a=i=>i()){const i=[];for(const A of r)for(const o in A.components){let s=A.components[o];if(!(t!=="beforeRouteEnter"&&!A.instances[o]))if(aL(s)){const u=(s.__vccOpts||s)[t];u&&i.push(wi(u,e,n,A,o,a))}else{let l=s();i.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${o}" at "${A.path}"`);const f=T4(u)?u.default:u;A.mods[o]=u,A.components[o]=f;const h=(f.__vccOpts||f)[t];return h&&wi(h,e,n,A,o,a)()}))}}return i}function K1(r){const t=Pa(PB),e=Pa(pL),n=be(()=>{const s=la(r.to);return t.resolve(s)}),a=be(()=>{const{matched:s}=n.value,{length:l}=s,u=s[l-1],f=e.matched;if(!u||!f.length)return-1;const c=f.findIndex(Qs.bind(null,u));if(c>-1)return c;const h=z1(s[l-2]);return l>1&&z1(u)===h&&f[f.length-1].path!==h?f.findIndex(Qs.bind(null,s[l-2])):c}),i=be(()=>a.value>-1&&SV(e.params,n.value.params)),A=be(()=>a.value>-1&&a.value===e.matched.length-1&&uL(e.params,n.value.params));function o(s={}){return CV(s)?t[la(r.replace)?"replace":"push"](la(r.to)).catch(wu):Promise.resolve()}return{route:n,href:be(()=>n.value.href),isActive:i,isExactActive:A,navigate:o}}const BV=Bo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:K1,setup(r,{slots:t}){const e=Id(K1(r)),{options:n}=Pa(PB),a=be(()=>({[W1(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[W1(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const i=t.default&&t.default(e);return r.custom?i:rL("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:a.value},i)}}}),_V=BV;function CV(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function SV(r,t){for(const e in t){const n=t[e],a=r[e];if(typeof n=="string"){if(n!==a)return!1}else if(!Pn(a)||a.length!==n.length||n.some((i,A)=>i!==a[A]))return!1}return!0}function z1(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const W1=(r,t,e)=>r??t??e,xV=Bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=Pa(Jm),a=be(()=>r.route||n.value),i=Pa(G1,0),A=be(()=>{let l=la(i);const{matched:u}=a.value;let f;for(;(f=u[l])&&!f.components;)l++;return l}),o=be(()=>a.value.matched[A.value]);Mh(G1,be(()=>A.value+1)),Mh(wV,o),Mh(Jm,a);const s=jn();return yu(()=>[s.value,o.value,r.name],([l,u,f],[c,h,v])=>{u&&(u.instances[f]=l,h&&h!==u&&l&&l===c&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),l&&u&&(!h||!Qs(u,h)||!c)&&(u.enterCallbacks[f]||[]).forEach(d=>d(l))},{flush:"post"}),()=>{const l=a.value,u=r.name,f=o.value,c=f&&f.components[u];if(!c)return X1(e.default,{Component:c,route:l});const h=f.props[u],v=h?h===!0?l.params:typeof h=="function"?h(l):h:null,p=rL(c,ie({},v,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[u]=null)},ref:s}));return X1(e.default,{Component:p,route:l})||p}}});function X1(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const bV=xV;function TV(r){const t=hV(r.routes,r),e=r.parseQuery||yV,n=r.stringifyQuery||V1,a=r.history,i=vl(),A=vl(),o=vl(),s=Hk(ai);let l=ai;is&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Kp.bind(null,N=>""+N),f=Kp.bind(null,k4),c=Kp.bind(null,Yu);function h(N,z){let $,q;return cL(N)?($=t.getRecordMatcher(N),q=z):q=N,t.addRoute(q,$)}function v(N){const z=t.getRecordMatcher(N);z&&t.removeRoute(z)}function d(){return t.getRoutes().map(N=>N.record)}function p(N){return!!t.getRecordMatcher(N)}function g(N,z){if(z=ie({},z||s.value),typeof N=="string"){const U=zp(e,N,z.path),k=t.resolve({path:U.path},z),Z=a.createHref(U.fullPath);return ie(U,k,{params:c(k.params),hash:Yu(U.hash),redirectedFrom:void 0,href:Z})}let $;if(N.path!=null)$=ie({},N,{path:zp(e,N.path,z.path).path});else{const U=ie({},N.params);for(const k in U)U[k]==null&&delete U[k];$=ie({},N,{params:f(U)}),z.params=f(z.params)}const q=t.resolve($,z),j=N.hash||"";q.params=u(c(q.params));const ct=G4(n,ie({},N,{hash:R4(j),path:q.path})),L=a.createHref(ct);return ie({fullPath:ct,hash:j,query:n===V1?mV(N.query):N.query||{}},q,{redirectedFrom:void 0,href:L})}function y(N){return typeof N=="string"?zp(e,N,s.value.path):ie({},N)}function m(N,z){if(l!==N)return Ls(8,{from:z,to:N})}function w(N){return C(N)}function _(N){return w(ie(y(N),{replace:!0}))}function B(N){const z=N.matched[N.matched.length-1];if(z&&z.redirect){const{redirect:$}=z;let q=typeof $=="function"?$(N):$;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=y(q):{path:q},q.params={}),ie({query:N.query,hash:N.hash,params:q.path!=null?{}:N.params},q)}}function C(N,z){const $=l=g(N),q=s.value,j=N.state,ct=N.force,L=N.replace===!0,U=B($);if(U)return C(ie(y(U),{state:typeof U=="object"?ie({},j,U.state):j,force:ct,replace:L}),z||$);const k=$;k.redirectedFrom=z;let Z;return!ct&&K4(n,q,$)&&(Z=Ls(16,{to:k,from:q}),X(q,q,!0,!1)),(Z?Promise.resolve(Z):b(k,q)).catch(W=>Sa(W)?Sa(W,2)?W:G(W):P(W,k,q)).then(W=>{if(W){if(Sa(W,2))return C(ie({replace:L},y(W.to),{state:typeof W.to=="object"?ie({},j,W.to.state):j,force:ct}),z||k)}else W=F(k,q,!0,L,j);return I(k,q,W),W})}function S(N,z){const $=m(N,z);return $?Promise.reject($):Promise.resolve()}function x(N){const z=lt.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(N):N()}function b(N,z){let $;const[q,j,ct]=IV(N,z);$=Wp(q.reverse(),"beforeRouteLeave",N,z);for(const U of q)U.leaveGuards.forEach(k=>{$.push(wi(k,N,z))});const L=S.bind(null,N,z);return $.push(L),Bt($).then(()=>{$=[];for(const U of i.list())$.push(wi(U,N,z));return $.push(L),Bt($)}).then(()=>{$=Wp(j,"beforeRouteUpdate",N,z);for(const U of j)U.updateGuards.forEach(k=>{$.push(wi(k,N,z))});return $.push(L),Bt($)}).then(()=>{$=[];for(const U of ct)if(U.beforeEnter)if(Pn(U.beforeEnter))for(const k of U.beforeEnter)$.push(wi(k,N,z));else $.push(wi(U.beforeEnter,N,z));return $.push(L),Bt($)}).then(()=>(N.matched.forEach(U=>U.enterCallbacks={}),$=Wp(ct,"beforeRouteEnter",N,z,x),$.push(L),Bt($))).then(()=>{$=[];for(const U of A.list())$.push(wi(U,N,z));return $.push(L),Bt($)}).catch(U=>Sa(U,8)?U:Promise.reject(U))}function I(N,z,$){o.list().forEach(q=>x(()=>q(N,z,$)))}function F(N,z,$,q,j){const ct=m(N,z);if(ct)return ct;const L=z===ai,U=is?history.state:{};$&&(q||L?a.replace(N.fullPath,ie({scroll:L&&U&&U.scroll},j)):a.push(N.fullPath,j)),s.value=N,X(N,z,$,L),G()}let E;function D(){E||(E=a.listen((N,z,$)=>{if(!wt.listening)return;const q=g(N),j=B(q);if(j){C(ie(j,{replace:!0}),q).catch(wu);return}l=q;const ct=s.value;is&&q4(L1(ct.fullPath,$.delta),Md()),b(q,ct).catch(L=>Sa(L,12)?L:Sa(L,2)?(C(L.to,q).then(U=>{Sa(U,20)&&!$.delta&&$.type===Zu.pop&&a.go(-1,!1)}).catch(wu),Promise.reject()):($.delta&&a.go(-$.delta,!1),P(L,q,ct))).then(L=>{L=L||F(q,ct,!1),L&&($.delta&&!Sa(L,8)?a.go(-$.delta,!1):$.type===Zu.pop&&Sa(L,20)&&a.go(-1,!1)),I(q,ct,L)}).catch(wu)}))}let Q=vl(),M=vl(),R;function P(N,z,$){G(N);const q=M.list();return q.length?q.forEach(j=>j(N,z,$)):console.error(N),Promise.reject(N)}function O(){return R&&s.value!==ai?Promise.resolve():new Promise((N,z)=>{Q.add([N,z])})}function G(N){return R||(R=!N,D(),Q.list().forEach(([z,$])=>N?$(N):z()),Q.reset()),N}function X(N,z,$,q){const{scrollBehavior:j}=r;if(!is||!j)return Promise.resolve();const ct=!$&&j4(L1(N.fullPath,0))||(q||!$)&&history.state&&history.state.scroll||null;return bQ().then(()=>j(N,z,ct)).then(L=>L&&J4(L)).catch(L=>P(L,N,z))}const J=N=>a.go(N);let At;const lt=new Set,wt={currentRoute:s,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:d,resolve:g,options:r,push:w,replace:_,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:A.add,afterEach:o.add,onError:M.add,isReady:O,install(N){const z=this;N.component("RouterLink",_V),N.component("RouterView",bV),N.config.globalProperties.$router=z,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>la(s)}),is&&!At&&s.value===ai&&(At=!0,w(a.location).catch(j=>{}));const $={};for(const j in ai)Object.defineProperty($,j,{get:()=>s.value[j],enumerable:!0});N.provide(PB,z),N.provide(pL,BQ($)),N.provide(Jm,s);const q=N.unmount;lt.add(N),N.unmount=function(){lt.delete(N),lt.size<1&&(l=ai,E&&E(),E=null,s.value=ai,At=!1,R=!1),q()}}};function Bt(N){return N.reduce((z,$)=>z.then(()=>x($)),Promise.resolve())}return wt}function IV(r,t){const e=[],n=[],a=[],i=Math.max(t.matched.length,r.matched.length);for(let A=0;AQs(l,o))?n.push(o):e.push(o));const s=r.matched[A];s&&(t.matched.find(l=>Qs(l,s))||a.push(s))}return[e,n,a]}const FV="";async function Y1(){return(await fetch(`${FV}/api/status`)).json()}const EV="/svg/screenshots.svg",DV="/svg/timezone.svg",QV="/svg/label.svg";/*! ***************************************************************************** + */const vs=typeof document<"u";function EQ(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function sV(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&EQ(r.default)}const ie=Object.assign;function Ag(r,t){const e={};for(const n in t){const a=t[n];e[n]=kn(a)?a.map(r):r(a)}return e}const Fu=()=>{},kn=Array.isArray,DQ=/#/g,lV=/&/g,uV=/\//g,fV=/=/g,cV=/\?/g,LQ=/\+/g,hV=/%5B/g,vV=/%5D/g,QQ=/%5E/g,dV=/%60/g,MQ=/%7B/g,pV=/%7C/g,UQ=/%7D/g,gV=/%20/g;function ZB(r){return encodeURI(""+r).replace(pV,"|").replace(hV,"[").replace(vV,"]")}function yV(r){return ZB(r).replace(MQ,"{").replace(UQ,"}").replace(QQ,"^")}function f0(r){return ZB(r).replace(LQ,"%2B").replace(gV,"+").replace(DQ,"%23").replace(lV,"%26").replace(dV,"`").replace(MQ,"{").replace(UQ,"}").replace(QQ,"^")}function mV(r){return f0(r).replace(fV,"%3D")}function wV(r){return ZB(r).replace(DQ,"%23").replace(cV,"%3F")}function BV(r){return r==null?"":wV(r).replace(uV,"%2F")}function af(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const _V=/\/$/,CV=r=>r.replace(_V,"");function og(r,t,e="/"){let n,a={},i="",A="";const o=t.indexOf("#");let s=t.indexOf("?");return o=0&&(s=-1),s>-1&&(n=t.slice(0,s),i=t.slice(s+1,o>-1?o:t.length),a=r(i)),o>-1&&(n=n||t.slice(0,o),A=t.slice(o,t.length)),n=TV(n??t,e),{fullPath:n+(i&&"?")+i+A,path:n,query:a,hash:af(A)}}function SV(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function J1(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function xV(r,t,e){const n=t.matched.length-1,a=e.matched.length-1;return n>-1&&n===a&&Os(t.matched[n],e.matched[a])&&PQ(t.params,e.params)&&r(t.query)===r(e.query)&&t.hash===e.hash}function Os(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function PQ(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!bV(r[e],t[e]))return!1;return!0}function bV(r,t){return kn(r)?q1(r,t):kn(t)?q1(t,r):r===t}function q1(r,t){return kn(t)?r.length===t.length&&r.every((e,n)=>e===t[n]):r.length===1&&r[0]===t}function TV(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),n=r.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let i=e.length-1,A,o;for(A=0;A1&&i--;else break;return e.slice(0,i).join("/")+"/"+n.slice(A).join("/")}const si={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Af;(function(r){r.pop="pop",r.push="push"})(Af||(Af={}));var Eu;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Eu||(Eu={}));function IV(r){if(!r)if(vs){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),CV(r)}const FV=/^[^#]+#/;function EV(r,t){return r.replace(FV,"#")+t}function DV(r,t){const e=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:t.behavior,left:n.left-e.left-(t.left||0),top:n.top-e.top-(t.top||0)}}const Yd=()=>({left:window.scrollX,top:window.scrollY});function LV(r){let t;if("el"in r){const e=r.el,n=typeof e=="string"&&e.startsWith("#"),a=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!a)return;t=DV(a,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function j1(r,t){return(history.state?history.state.position-t:-1)+r}const c0=new Map;function QV(r,t){c0.set(r,t)}function MV(r){const t=c0.get(r);return c0.delete(r),t}let UV=()=>location.protocol+"//"+location.host;function RQ(r,t){const{pathname:e,search:n,hash:a}=t,i=r.indexOf("#");if(i>-1){let o=a.includes(r.slice(i))?r.slice(i).length:1,s=a.slice(o);return s[0]!=="/"&&(s="/"+s),J1(s,"")}return J1(e,r)+n+a}function PV(r,t,e,n){let a=[],i=[],A=null;const o=({state:c})=>{const h=RQ(r,location),v=e.value,d=t.value;let p=0;if(c){if(e.value=h,t.value=c,A&&A===v){A=null;return}p=d?c.position-d.position:0}else n(h);a.forEach(g=>{g(e.value,v,{delta:p,type:Af.pop,direction:p?p>0?Eu.forward:Eu.back:Eu.unknown})})};function s(){A=e.value}function l(c){a.push(c);const h=()=>{const v=a.indexOf(c);v>-1&&a.splice(v,1)};return i.push(h),h}function u(){const{history:c}=window;c.state&&c.replaceState(ie({},c.state,{scroll:Yd()}),"")}function f(){for(const c of i)c();i=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:s,listen:l,destroy:f}}function tS(r,t,e,n=!1,a=!1){return{back:r,current:t,forward:e,replaced:n,position:window.history.length,scroll:a?Yd():null}}function RV(r){const{history:t,location:e}=window,n={value:RQ(r,e)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,l,u){const f=r.indexOf("#"),c=f>-1?(e.host&&document.querySelector("base")?r:r.slice(f))+s:UV()+r+s;try{t[u?"replaceState":"pushState"](l,"",c),a.value=l}catch(h){console.error(h),e[u?"replace":"assign"](c)}}function A(s,l){const u=ie({},t.state,tS(a.value.back,s,a.value.forward,!0),l,{position:a.value.position});i(s,u,!0),n.value=s}function o(s,l){const u=ie({},a.value,t.state,{forward:s,scroll:Yd()});i(u.current,u,!0);const f=ie({},tS(n.value,s,null),{position:u.position+1},l);i(s,f,!1),n.value=s}return{location:n,state:a,push:o,replace:A}}function HV(r){r=IV(r);const t=RV(r),e=PV(r,t.state,t.location,t.replace);function n(i,A=!0){A||e.pauseListeners(),history.go(i)}const a=ie({location:"",base:r,go:n,createHref:EV.bind(null,r)},t,e);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function OV(r){return typeof r=="string"||r&&typeof r=="object"}function HQ(r){return typeof r=="string"||typeof r=="symbol"}const OQ=Symbol("");var eS;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(eS||(eS={}));function ks(r,t){return ie(new Error,{type:r,[OQ]:!0},t)}function ba(r,t){return r instanceof Error&&OQ in r&&(t==null||!!(r.type&t))}const rS="[^/]+?",kV={sensitive:!1,strict:!1,start:!0,end:!0},NV=/[.+*?^${}()[\]/\\]/g;function VV(r,t){const e=ie({},kV,t),n=[];let a=e.start?"^":"";const i=[];for(const l of r){const u=l.length?[]:[90];e.strict&&!l.length&&(a+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function kQ(r,t){let e=0;const n=r.score,a=t.score;for(;e0&&t[t.length-1]<0}const KV={type:0,value:""},zV=/[a-zA-Z0-9_]/;function WV(r){if(!r)return[[]];if(r==="/")return[[KV]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(h){throw new Error(`ERR (${e})/"${l}": ${h}`)}let e=0,n=e;const a=[];let i;function A(){i&&a.push(i),i=[]}let o=0,s,l="",u="";function f(){l&&(e===0?i.push({type:0,value:l}):e===1||e===2||e===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=s}for(;o{A(m)}:Fu}function A(f){if(HQ(f)){const c=n.get(f);c&&(n.delete(f),e.splice(e.indexOf(c),1),c.children.forEach(A),c.alias.forEach(A))}else{const c=e.indexOf(f);c>-1&&(e.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(A),f.alias.forEach(A))}}function o(){return e}function s(f){const c=JV(f,e);e.splice(c,0,f),f.record.name&&!AS(f)&&n.set(f.record.name,f)}function l(f,c){let h,v={},d,p;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw ks(1,{location:f});p=h.record.name,v=ie(aS(c.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&aS(f.params,h.keys.map(m=>m.name))),d=h.stringify(v)}else if(f.path!=null)d=f.path,h=e.find(m=>m.re.test(d)),h&&(v=h.parse(d),p=h.record.name);else{if(h=c.name?n.get(c.name):e.find(m=>m.re.test(c.path)),!h)throw ks(1,{location:f,currentLocation:c});p=h.record.name,v=ie({},c.params,f.params),d=h.stringify(v)}const g=[];let y=h;for(;y;)g.unshift(y.record),y=y.parent;return{name:p,path:d,params:v,matched:g,meta:$V(g)}}r.forEach(f=>i(f));function u(){e.length=0,n.clear()}return{addRoute:i,resolve:l,removeRoute:A,clearRoutes:u,getRoutes:o,getRecordMatcher:a}}function aS(r,t){const e={};for(const n of t)n in r&&(e[n]=r[n]);return e}function iS(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:ZV(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ZV(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const n in r.components)t[n]=typeof e=="object"?e[n]:e;return t}function AS(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function $V(r){return r.reduce((t,e)=>ie(t,e.meta),{})}function oS(r,t){const e={};for(const n in r)e[n]=n in t?t[n]:r[n];return e}function JV(r,t){let e=0,n=t.length;for(;e!==n;){const i=e+n>>1;kQ(r,t[i])<0?n=i:e=i+1}const a=qV(r);return a&&(n=t.lastIndexOf(a,n-1)),n}function qV(r){let t=r;for(;t=t.parent;)if(NQ(t)&&kQ(r,t)===0)return t}function NQ({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function jV(r){const t={};if(r===""||r==="?")return t;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let a=0;ai&&f0(i)):[n&&f0(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function tG(r){const t={};for(const e in r){const n=r[e];n!==void 0&&(t[e]=kn(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const eG=Symbol(""),lS=Symbol(""),$B=Symbol(""),VQ=Symbol(""),h0=Symbol("");function Bl(){let r=[];function t(n){return r.push(n),()=>{const a=r.indexOf(n);a>-1&&r.splice(a,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function xi(r,t,e,n,a,i=A=>A()){const A=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(ks(4,{from:e,to:t})):c instanceof Error?s(c):OV(c)?s(ks(2,{from:t,to:c})):(A&&n.enterCallbacks[a]===A&&typeof c=="function"&&A.push(c),o())},u=i(()=>r.call(n&&n.instances[a],t,e,l));let f=Promise.resolve(u);r.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function sg(r,t,e,n,a=i=>i()){const i=[];for(const A of r)for(const o in A.components){let s=A.components[o];if(!(t!=="beforeRouteEnter"&&!A.instances[o]))if(EQ(s)){const u=(s.__vccOpts||s)[t];u&&i.push(xi(u,e,n,A,o,a))}else{let l=s();i.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${o}" at "${A.path}"`);const f=sV(u)?u.default:u;A.mods[o]=u,A.components[o]=f;const h=(f.__vccOpts||f)[t];return h&&xi(h,e,n,A,o,a)()}))}}return i}function uS(r){const t=Ha($B),e=Ha(VQ),n=be(()=>{const s=ca(r.to);return t.resolve(s)}),a=be(()=>{const{matched:s}=n.value,{length:l}=s,u=s[l-1],f=e.matched;if(!u||!f.length)return-1;const c=f.findIndex(Os.bind(null,u));if(c>-1)return c;const h=fS(s[l-2]);return l>1&&fS(u)===h&&f[f.length-1].path!==h?f.findIndex(Os.bind(null,s[l-2])):c}),i=be(()=>a.value>-1&&iG(e.params,n.value.params)),A=be(()=>a.value>-1&&a.value===e.matched.length-1&&PQ(e.params,n.value.params));function o(s={}){return aG(s)?t[ca(r.replace)?"replace":"push"](ca(r.to)).catch(Fu):Promise.resolve()}return{route:n,href:be(()=>n.value.href),isActive:i,isExactActive:A,navigate:o}}const rG=Eo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:uS,setup(r,{slots:t}){const e=kd(uS(r)),{options:n}=Ha($B),a=be(()=>({[cS(r.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[cS(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const i=t.default&&t.default(e);return r.custom?i:YB("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:a.value},i)}}}),nG=rG;function aG(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function iG(r,t){for(const e in t){const n=t[e],a=r[e];if(typeof n=="string"){if(n!==a)return!1}else if(!kn(a)||a.length!==n.length||n.some((i,A)=>i!==a[A]))return!1}return!0}function fS(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const cS=(r,t,e)=>r??t??e,AG=Eo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const n=Ha(h0),a=be(()=>r.route||n.value),i=Ha(lS,0),A=be(()=>{let l=ca(i);const{matched:u}=a.value;let f;for(;(f=u[l])&&!f.components;)l++;return l}),o=be(()=>a.value.matched[A.value]);zh(lS,be(()=>A.value+1)),zh(eG,o),zh(h0,a);const s=Er();return Tu(()=>[s.value,o.value,r.name],([l,u,f],[c,h,v])=>{u&&(u.instances[f]=l,h&&h!==u&&l&&l===c&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),l&&u&&(!h||!Os(u,h)||!c)&&(u.enterCallbacks[f]||[]).forEach(d=>d(l))},{flush:"post"}),()=>{const l=a.value,u=r.name,f=o.value,c=f&&f.components[u];if(!c)return hS(e.default,{Component:c,route:l});const h=f.props[u],v=h?h===!0?l.params:typeof h=="function"?h(l):h:null,p=YB(c,ie({},v,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[u]=null)},ref:s}));return hS(e.default,{Component:p,route:l})||p}}});function hS(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const oG=AG;function sG(r){const t=YV(r.routes,r),e=r.parseQuery||jV,n=r.stringifyQuery||sS,a=r.history,i=Bl(),A=Bl(),o=Bl(),s=fN(si);let l=si;vs&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ag.bind(null,N=>""+N),f=Ag.bind(null,BV),c=Ag.bind(null,af);function h(N,z){let $,q;return HQ(N)?($=t.getRecordMatcher(N),q=z):q=N,t.addRoute(q,$)}function v(N){const z=t.getRecordMatcher(N);z&&t.removeRoute(z)}function d(){return t.getRoutes().map(N=>N.record)}function p(N){return!!t.getRecordMatcher(N)}function g(N,z){if(z=ie({},z||s.value),typeof N=="string"){const U=og(e,N,z.path),k=t.resolve({path:U.path},z),Z=a.createHref(U.fullPath);return ie(U,k,{params:c(k.params),hash:af(U.hash),redirectedFrom:void 0,href:Z})}let $;if(N.path!=null)$=ie({},N,{path:og(e,N.path,z.path).path});else{const U=ie({},N.params);for(const k in U)U[k]==null&&delete U[k];$=ie({},N,{params:f(U)}),z.params=f(z.params)}const q=t.resolve($,z),j=N.hash||"";q.params=u(c(q.params));const ct=SV(n,ie({},N,{hash:yV(j),path:q.path})),Q=a.createHref(ct);return ie({fullPath:ct,hash:j,query:n===sS?tG(N.query):N.query||{}},q,{redirectedFrom:void 0,href:Q})}function y(N){return typeof N=="string"?og(e,N,s.value.path):ie({},N)}function m(N,z){if(l!==N)return ks(8,{from:z,to:N})}function w(N){return C(N)}function _(N){return w(ie(y(N),{replace:!0}))}function B(N){const z=N.matched[N.matched.length-1];if(z&&z.redirect){const{redirect:$}=z;let q=typeof $=="function"?$(N):$;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=y(q):{path:q},q.params={}),ie({query:N.query,hash:N.hash,params:q.path!=null?{}:N.params},q)}}function C(N,z){const $=l=g(N),q=s.value,j=N.state,ct=N.force,Q=N.replace===!0,U=B($);if(U)return C(ie(y(U),{state:typeof U=="object"?ie({},j,U.state):j,force:ct,replace:Q}),z||$);const k=$;k.redirectedFrom=z;let Z;return!ct&&xV(n,q,$)&&(Z=ks(16,{to:k,from:q}),X(q,q,!0,!1)),(Z?Promise.resolve(Z):b(k,q)).catch(W=>ba(W)?ba(W,2)?W:G(W):P(W,k,q)).then(W=>{if(W){if(ba(W,2))return C(ie({replace:Q},y(W.to),{state:typeof W.to=="object"?ie({},j,W.to.state):j,force:ct}),z||k)}else W=F(k,q,!0,Q,j);return T(k,q,W),W})}function x(N,z){const $=m(N,z);return $?Promise.reject($):Promise.resolve()}function S(N){const z=lt.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(N):N()}function b(N,z){let $;const[q,j,ct]=lG(N,z);$=sg(q.reverse(),"beforeRouteLeave",N,z);for(const U of q)U.leaveGuards.forEach(k=>{$.push(xi(k,N,z))});const Q=x.bind(null,N,z);return $.push(Q),_t($).then(()=>{$=[];for(const U of i.list())$.push(xi(U,N,z));return $.push(Q),_t($)}).then(()=>{$=sg(j,"beforeRouteUpdate",N,z);for(const U of j)U.updateGuards.forEach(k=>{$.push(xi(k,N,z))});return $.push(Q),_t($)}).then(()=>{$=[];for(const U of ct)if(U.beforeEnter)if(kn(U.beforeEnter))for(const k of U.beforeEnter)$.push(xi(k,N,z));else $.push(xi(U.beforeEnter,N,z));return $.push(Q),_t($)}).then(()=>(N.matched.forEach(U=>U.enterCallbacks={}),$=sg(ct,"beforeRouteEnter",N,z,S),$.push(Q),_t($))).then(()=>{$=[];for(const U of A.list())$.push(xi(U,N,z));return $.push(Q),_t($)}).catch(U=>ba(U,8)?U:Promise.reject(U))}function T(N,z,$){o.list().forEach(q=>S(()=>q(N,z,$)))}function F(N,z,$,q,j){const ct=m(N,z);if(ct)return ct;const Q=z===si,U=vs?history.state:{};$&&(q||Q?a.replace(N.fullPath,ie({scroll:Q&&U&&U.scroll},j)):a.push(N.fullPath,j)),s.value=N,X(N,z,$,Q),G()}let E;function D(){E||(E=a.listen((N,z,$)=>{if(!Bt.listening)return;const q=g(N),j=B(q);if(j){C(ie(j,{replace:!0}),q).catch(Fu);return}l=q;const ct=s.value;vs&&QV(j1(ct.fullPath,$.delta),Yd()),b(q,ct).catch(Q=>ba(Q,12)?Q:ba(Q,2)?(C(Q.to,q).then(U=>{ba(U,20)&&!$.delta&&$.type===Af.pop&&a.go(-1,!1)}).catch(Fu),Promise.reject()):($.delta&&a.go(-$.delta,!1),P(Q,q,ct))).then(Q=>{Q=Q||F(q,ct,!1),Q&&($.delta&&!ba(Q,8)?a.go(-$.delta,!1):$.type===Af.pop&&ba(Q,20)&&a.go(-1,!1)),T(q,ct,Q)}).catch(Fu)}))}let L=Bl(),M=Bl(),R;function P(N,z,$){G(N);const q=M.list();return q.length?q.forEach(j=>j(N,z,$)):console.error(N),Promise.reject(N)}function O(){return R&&s.value!==si?Promise.resolve():new Promise((N,z)=>{L.add([N,z])})}function G(N){return R||(R=!N,D(),L.list().forEach(([z,$])=>N?$(N):z()),L.reset()),N}function X(N,z,$,q){const{scrollBehavior:j}=r;if(!vs||!j)return Promise.resolve();const ct=!$&&MV(j1(N.fullPath,0))||(q||!$)&&history.state&&history.state.scroll||null;return WL().then(()=>j(N,z,ct)).then(Q=>Q&&LV(Q)).catch(Q=>P(Q,N,z))}const J=N=>a.go(N);let At;const lt=new Set,Bt={currentRoute:s,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:d,resolve:g,options:r,push:w,replace:_,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:A.add,afterEach:o.add,onError:M.add,isReady:O,install(N){const z=this;N.component("RouterLink",nG),N.component("RouterView",oG),N.config.globalProperties.$router=z,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>ca(s)}),vs&&!At&&s.value===si&&(At=!0,w(a.location).catch(j=>{}));const $={};for(const j in si)Object.defineProperty($,j,{get:()=>s.value[j],enumerable:!0});N.provide($B,z),N.provide(VQ,NL($)),N.provide(h0,s);const q=N.unmount;lt.add(N),N.unmount=function(){lt.delete(N),lt.size<1&&(l=si,E&&E(),E=null,s.value=si,At=!1,R=!1),q()}}};function _t(N){return N.reduce((z,$)=>z.then(()=>S($)),Promise.resolve())}return Bt}function lG(r,t){const e=[],n=[],a=[],i=Math.max(t.matched.length,r.matched.length);for(let A=0;AOs(l,o))?n.push(o):e.push(o));const s=r.matched[A];s&&(t.matched.find(l=>Os(l,s))||a.push(s))}return[e,n,a]}const uG="";async function vS(){return(await fetch(`${uG}/api/status`)).json()}const fG="/svg/screenshots.svg",cG="/svg/timezone.svg",hG="/svg/label.svg";/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -31,8 +31,8 @@ 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 qm=function(r,t){return qm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},qm(r,t)};function H(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qm(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var LV=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),MV=function(){function r(){this.browser=new LV,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Ut=new MV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ut.wxa=!0,Ut.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ut.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Ut.node=!0,Ut.svgSupported=!0):UV(navigator.userAgent,Ut);function UV(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),A=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),A&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var o=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in o||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in o)&&!("OTransition"in o),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var RB=12,gL="sans-serif",Ki=RB+"px "+gL,PV=20,RV=100,HV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function OV(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)o=A*e.length;else for(var s=0;s>1)%2;o.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[s]+":0",a[l]+":0",n[1-s]+":auto",a[1-l]+":auto",""].join("!important;"),r.appendChild(A),e.push(A)}return e}function AG(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,A=[],o=[],s=!0,l=0;l<4;l++){var u=r[l].getBoundingClientRect(),f=2*l,c=u.left,h=u.top;A.push(c,h),s=s&&i&&c===i[f]&&h===i[f+1],o.push(r[l].offsetLeft,r[l].offsetTop)}return s&&a?a:(t.srcCoords=A,t[n]=e?q1(o,A):q1(A,o))}function SL(r){return r.nodeName.toUpperCase()==="CANVAS"}var oG=/([&<>"'])/g,sG={"&":"&","<":"<",">":">",'"':""","'":"'"};function Dr(r){return r==null?"":(r+"").replace(oG,function(t,e){return sG[e]})}var lG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yp=[],uG=Ut.browser.firefox&&+Ut.browser.version.split(".")[0]<39;function i0(r,t,e,n){return e=e||{},n?tS(r,t,e):uG&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):tS(r,t,e),e}function tS(r,t,e){if(Ut.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(SL(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(a0(Yp,r,n,a)){e.zrX=Yp[0],e.zrY=Yp[1];return}}e.zrX=e.zrY=0}function KB(r){return r||window.event}function tn(r,t,e){if(t=KB(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var A=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];A&&i0(r,A,t,e)}else{i0(r,t,t,e);var i=fG(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&lG.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function fG(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function A0(r,t,e,n){r.addEventListener(t,e,n)}function cG(r,t,e,n){r.removeEventListener(t,e,n)}var Ka=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function eS(r){return r.which===2||r.which===3}var hG=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},A=0,o=a.length;A1&&n&&n.length>1){var i=rS(n)/rS(a);!isFinite(i)&&(i=1),t.pinchScale=i;var A=vG(n);return t.pinchX=A[0],t.pinchY=A[1],{type:"pinch",target:r[0].target,event:t}}}}};function Wr(){return[1,0,0,1,0,0]}function Hd(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function zB(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ha(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],A=t[1]*e[2]+t[3]*e[3],o=t[0]*e[4]+t[2]*e[5]+t[4],s=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=A,r[4]=o,r[5]=s,r}function va(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Co(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],A=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*(A-n[0])+u*(l-n[1])+n[0],r[5]=f*(l-n[1])-u*(A-n[0])+n[1],r}function WB(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function Zs(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],A=t[3],o=t[5],s=e*A-i*n;return s?(s=1/s,r[0]=A*s,r[1]=-i*s,r[2]=-n*s,r[3]=e*s,r[4]=(n*o-A*a)*s,r[5]=(i*a-e*o)*s,r):null}function dG(r){var t=Wr();return zB(t,r),t}var It=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}(),oc=Math.min,sc=Math.max,AA=new It,oA=new It,sA=new It,lA=new It,dl=new It,pl=new It,Dt=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=oc(t.x,this.x),n=oc(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=sc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=sc(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,a=t.height/e.height,i=Wr();return va(i,i,[-e.x,-e.y]),WB(i,i,[n,a]),va(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=n.x+n.width,A=n.y,o=n.y+n.height,s=t.x,l=t.x+t.width,u=t.y,f=t.y+t.height,c=!(iv&&(v=m,dv&&(v=w,g=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],A=n[4],o=n[5];t.x=e.x*a+A,t.y=e.y*i+o,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}AA.x=sA.x=e.x,AA.y=lA.y=e.y,oA.x=lA.x=e.x+e.width,oA.y=sA.y=e.y+e.height,AA.transform(n),lA.transform(n),oA.transform(n),sA.transform(n),t.x=oc(AA.x,oA.x,sA.x,lA.x),t.y=oc(AA.y,oA.y,sA.y,lA.y);var s=sc(AA.x,oA.x,sA.x,lA.x),l=sc(AA.y,oA.y,sA.y,lA.y);t.width=s-t.x,t.height=l-t.y},r}(),xL="silent";function pG(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:gG}}function gG(){Ka(this.event)}var yG=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(yn),gl=function(){function r(t,e){this.x=t,this.y=e}return r}(),mG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$p=new Dt(0,0,0,0),bL=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this)||this;return o._hovered=new gl(0,0),o.storage=e,o.painter=n,o.painterRoot=i,o._pointerSize=A,a=a||new yG,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new rG(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(T(mG,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,a=e.zrY,i=TL(this,n,a),A=this._hovered,o=A.target;o&&!o.__zr&&(A=this.findHover(A.x,A.y),o=A.target);var s=this._hovered=i?new gl(n,a):this.findHover(n,a),l=s.target,u=this.proxy;u.setCursor&&u.setCursor(l?l.cursor:"default"),o&&l!==o&&this.dispatchToElement(A,"mouseout",e),this.dispatchToElement(s,"mousemove",e),l&&l!==o&&this.dispatchToElement(s,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new gl(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var A="on"+n,o=pG(n,e,a);i&&(i[A]&&(o.cancelBubble=!!i[A].call(i,o)),i.trigger(n,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(n,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(s){typeof s[A]=="function"&&s[A].call(s,o),s.trigger&&s.trigger(n,o)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),A=new gl(e,n);if(nS(i,A,e,n,a),this._pointerSize&&!A.target){for(var o=[],s=this._pointerSize,l=s/2,u=new Dt(e-l,n-l,s,s),f=i.length-1;f>=0;f--){var c=i[f];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&($p.copy(c.getBoundingRect()),c.transform&&$p.applyTransform(c.transform),$p.intersect(u)&&o.push(c))}if(o.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function wG(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var A=n.getClipPath();if(A&&!A.contain(t,e))return!1}n.silent&&(a=!0);var o=n.__hostTarget;n=o||n.parent}return a?xL:!0}return!1}function nS(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var A=r[i],o=void 0;if(A!==a&&!A.ignore&&(o=wG(A,e,n))&&(!t.topTarget&&(t.topTarget=A),o!==xL)){t.target=A;break}}}function TL(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var IL=32,yl=7;function BG(r){for(var t=0;r>=IL;)t|=r&1,r>>=1;return r+t}function aS(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a=0;)a++;return a-t}function _G(r,t,e){for(e--;t>>1,a(i,r[s])<0?o=s:A=s+1;var l=n-A;switch(l){case 3:r[A+3]=r[A+2];case 2:r[A+2]=r[A+1];case 1:r[A+1]=r[A];break;default:for(;l>0;)r[A+l]=r[A+l-1],l--}r[A]=i}}function Jp(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])>0){for(o=n-a;s0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}else{for(o=a+1;so&&(s=o);var l=A;A=a-s,s=a-l}for(A++;A>>1);i(r,t[e+u])>0?A=u+1:s=u}return s}function qp(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])<0){for(o=a+1;so&&(s=o);var l=A;A=a-s,s=a-l}else{for(o=n-a;s=0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}for(A++;A>>1);i(r,t[e+u])<0?s=u:A=u+1}return s}function CG(r,t){var e=yl,n,a,i=0,A=[];n=[],a=[];function o(h,v){n[i]=h,a[i]=v,i+=1}function s(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;u(h)}}function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]=yl||C>=yl);if(S)break;_<0&&(_=0),_+=2}if(e=_,e<1&&(e=1),v===1){for(g=0;g=0;g--)r[B+g]=r[_+g];r[w]=A[m];return}for(var C=e;;){var S=0,x=0,b=!1;do if(t(A[m],r[y])<0){if(r[w--]=r[y--],S++,x=0,--v===0){b=!0;break}}else if(r[w--]=A[m--],x++,S=0,--p===1){b=!0;break}while((S|x)=0;g--)r[B+g]=r[_+g];if(v===0){b=!0;break}}if(r[w--]=A[m--],--p===1){b=!0;break}if(x=p-Jp(r[y],A,0,p,p-1,t),x!==0){for(w-=x,m-=x,p-=x,B=w+1,_=m+1,g=0;g=yl||x>=yl);if(b)break;C<0&&(C=0),C+=2}if(e=C,e<1&&(e=1),p===1){for(w-=v,y-=v,B=w+1,_=y+1,g=v-1;g>=0;g--)r[B+g]=r[_+g];r[w]=A[m]}else{if(p===0)throw new Error;for(_=w-(p-1),g=0;go&&(s=o),iS(r,e,e+s,e+i,t),i=s}A.pushRun(e,i),A.mergeRuns(),a-=i,e+=i}while(a!==0);A.forceMergeRuns()}}var Gr=1,$l=2,As=4,AS=!1;function jp(){AS||(AS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function oS(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var SG=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=oS}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(jp(),u.z=0),isNaN(u.z2)&&(jp(),u.z2=0),isNaN(u.zlevel)&&(jp(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),mv;mv=Ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Cu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Cu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Cu.bounceIn(r*2)*.5:Cu.bounceOut(r*2-1)*.5+.5}},lc=Math.pow,Ri=Math.sqrt,wv=1e-8,FL=1e-4,sS=Ri(3),uc=1/3,ra=_o(),An=_o(),Ss=_o();function Ii(r){return r>-wv&&rwv||r<-wv}function Me(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function lS(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function Bv(r,t,e,n,a,i){var A=n+3*(t-e)-r,o=3*(e-t*2+r),s=3*(t-r),l=r-a,u=o*o-3*A*s,f=o*s-9*A*l,c=s*s-3*o*l,h=0;if(Ii(u)&&Ii(f))if(Ii(o))i[0]=0;else{var v=-s/o;v>=0&&v<=1&&(i[h++]=v)}else{var d=f*f-4*u*c;if(Ii(d)){var p=f/u,v=-o/A+p,g=-p/2;v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g)}else if(d>0){var y=Ri(d),m=u*o+1.5*A*(-f+y),w=u*o+1.5*A*(-f-y);m<0?m=-lc(-m,uc):m=lc(m,uc),w<0?w=-lc(-w,uc):w=lc(w,uc);var v=(-o-(m+w))/(3*A);v>=0&&v<=1&&(i[h++]=v)}else{var _=(2*u*o-3*A*f)/(2*Ri(u*u*u)),B=Math.acos(_)/3,C=Ri(u),S=Math.cos(B),v=(-o-2*C*S)/(3*A),g=(-o+C*(S+sS*Math.sin(B)))/(3*A),x=(-o+C*(S-sS*Math.sin(B)))/(3*A);v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g),x>=0&&x<=1&&(i[h++]=x)}}return h}function DL(r,t,e,n,a){var i=6*e-12*t+6*r,A=9*t+3*n-3*r-9*e,o=3*t-3*r,s=0;if(Ii(A)){if(EL(i)){var l=-o/i;l>=0&&l<=1&&(a[s++]=l)}}else{var u=i*i-4*A*o;if(Ii(u))a[0]=-i/(2*A);else if(u>0){var f=Ri(u),l=(-i+f)/(2*A),c=(-i-f)/(2*A);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function Wi(r,t,e,n,a,i){var A=(t-r)*a+r,o=(e-t)*a+t,s=(n-e)*a+e,l=(o-A)*a+A,u=(s-o)*a+o,f=(u-l)*a+l;i[0]=r,i[1]=A,i[2]=l,i[3]=f,i[4]=f,i[5]=u,i[6]=s,i[7]=n}function QL(r,t,e,n,a,i,A,o,s,l,u){var f,c=.005,h=1/0,v,d,p,g;ra[0]=s,ra[1]=l;for(var y=0;y<1;y+=.05)An[0]=Me(r,e,a,A,y),An[1]=Me(t,n,i,o,y),p=jA(ra,An),p=0&&p=0&&l<=1&&(a[s++]=l)}}else{var u=A*A-4*i*o;if(Ii(u)){var l=-A/(2*i);l>=0&&l<=1&&(a[s++]=l)}else if(u>0){var f=Ri(u),l=(-A+f)/(2*i),c=(-A-f)/(2*i);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function LL(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Ju(r,t,e,n,a){var i=(t-r)*n+r,A=(e-t)*n+t,o=(A-i)*n+i;a[0]=r,a[1]=i,a[2]=o,a[3]=o,a[4]=A,a[5]=e}function ML(r,t,e,n,a,i,A,o,s){var l,u=.005,f=1/0;ra[0]=A,ra[1]=o;for(var c=0;c<1;c+=.05){An[0]=Ve(r,e,a,c),An[1]=Ve(t,n,i,c);var h=jA(ra,An);h=0&&h=1?1:Bv(0,n,i,1,s,o)&&Me(0,a,A,1,o[0])}}}var FG=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Be,this.ondestroy=t.ondestroy||Be,this.onrestart=t.onrestart||Be,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var A=this.easingFunc,o=A?A(i):i;if(this.onframe(o),i===1)if(this.loop){var s=a%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=vt(t)?t:Cu[t]||XB(t)},r}(),UL=function(){function r(t){this.value=t}return r}(),EG=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new UL(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Ef=function(){function r(t){this._list=new EG,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var A=n.len(),o=this._lastRemovedEntry;if(A>=this._maxSize&&A>0){var s=n.head;n.remove(s),delete a[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new UL(e),o.key=t,n.insertEntry(o),a[t]=o}return i},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),uS={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 Mn(r){return r=Math.round(r),r<0?0:r>255?255:r}function DG(r){return r=Math.round(r),r<0?0:r>360?360:r}function qu(r){return r<0?0:r>1?1:r}function tg(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Mn(parseFloat(t)/100*255):Mn(parseInt(t,10))}function to(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?qu(parseFloat(t)/100):qu(parseFloat(t))}function eg(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Fi(r,t,e){return r+(t-r)*e}function jr(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function s0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var PL=new Ef(20),fc=null;function Qo(r,t){fc&&s0(fc,t),fc=PL.put(r,fc||t.slice())}function Xr(r,t){if(r){t=t||[];var e=PL.get(r);if(e)return s0(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in uS)return s0(t,uS[n]),Qo(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){jr(t,0,0,0,1);return}return jr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Qo(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){jr(t,0,0,0,1);return}return jr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Qo(r,t),t}return}var A=n.indexOf("("),o=n.indexOf(")");if(A!==-1&&o+1===a){var s=n.substr(0,A),l=n.substr(A+1,o-(A+1)).split(","),u=1;switch(s){case"rgba":if(l.length!==4)return l.length===3?jr(t,+l[0],+l[1],+l[2],1):jr(t,0,0,0,1);u=to(l.pop());case"rgb":if(l.length>=3)return jr(t,tg(l[0]),tg(l[1]),tg(l[2]),l.length===3?u:to(l[3])),Qo(r,t),t;jr(t,0,0,0,1);return;case"hsla":if(l.length!==4){jr(t,0,0,0,1);return}return l[3]=to(l[3]),l0(l,t),Qo(r,t),t;case"hsl":if(l.length!==3){jr(t,0,0,0,1);return}return l0(l,t),Qo(r,t),t;default:return}}jr(t,0,0,0,1)}}function l0(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=to(r[1]),a=to(r[2]),i=a<=.5?a*(n+1):a+n-a*n,A=a*2-i;return t=t||[],jr(t,Mn(eg(A,i,e+1/3)*255),Mn(eg(A,i,e)*255),Mn(eg(A,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function QG(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),A=i-a,o=(i+a)/2,s,l;if(A===0)s=0,l=0;else{o<.5?l=A/(i+a):l=A/(2-i-a);var u=((i-t)/6+A/2)/A,f=((i-e)/6+A/2)/A,c=((i-n)/6+A/2)/A;t===i?s=c-f:e===i?s=1/3+u-c:n===i&&(s=2/3+f-u),s<0&&(s+=1),s>1&&(s-=1)}var h=[s*360,l,o];return r[3]!=null&&h.push(r[3]),h}}function u0(r,t){var e=Xr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Oa(e,e.length===4?"rgba":"rgb")}}function rg(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=t[a],o=t[i],s=n-a;return e[0]=Mn(Fi(A[0],o[0],s)),e[1]=Mn(Fi(A[1],o[1],s)),e[2]=Mn(Fi(A[2],o[2],s)),e[3]=qu(Fi(A[3],o[3],s)),e}}function LG(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=Xr(t[a]),o=Xr(t[i]),s=n-a,l=Oa([Mn(Fi(A[0],o[0],s)),Mn(Fi(A[1],o[1],s)),Mn(Fi(A[2],o[2],s)),qu(Fi(A[3],o[3],s))],"rgba");return e?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}function Su(r,t,e,n){var a=Xr(r);if(r)return a=QG(a),t!=null&&(a[0]=DG(t)),e!=null&&(a[1]=to(e)),n!=null&&(a[2]=to(n)),Oa(l0(a),"rgba")}function _v(r,t){var e=Xr(r);if(e&&t!=null)return e[3]=qu(t),Oa(e,"rgba")}function Oa(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Cv(r,t){var e=Xr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var fS=new Ef(100);function f0(r){if(nt(r)){var t=fS.get(r);return t||(t=u0(r,-.1),fS.put(r,t)),t}else if(Pd(r)){var e=V({},r);return e.colorStops=Y(r.colorStops,function(n){return{offset:n.offset,color:u0(n.color,-.1)}}),e}return r}var Sv=Math.round;function ju(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Xr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var cS=1e-4;function Ei(r){return r-cS}function cc(r){return Sv(r*1e3)/1e3}function c0(r){return Sv(r*1e4)/1e4}function MG(r){return"matrix("+cc(r[0])+","+cc(r[1])+","+cc(r[2])+","+cc(r[3])+","+c0(r[4])+","+c0(r[5])+")"}var UG={left:"start",right:"end",center:"middle",middle:"middle"};function PG(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function RG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function HG(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function RL(r){return r&&!!r.image}function OG(r){return r&&!!r.svgElement}function YB(r){return RL(r)||OG(r)}function HL(r){return r.type==="linear"}function OL(r){return r.type==="radial"}function kL(r){return r&&(r.type==="linear"||r.type==="radial")}function Od(r){return"url(#"+r+")"}function NL(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function VL(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Rh,a=xt(r.scaleX,1),i=xt(r.scaleY,1),A=r.skewX||0,o=r.skewY||0,s=[];return(t||e)&&s.push("translate("+t+"px,"+e+"px)"),n&&s.push("rotate("+n+")"),(a!==1||i!==1)&&s.push("scale("+a+","+i+")"),(A||o)&&s.push("skew("+Sv(A*Rh)+"deg, "+Sv(o*Rh)+"deg)"),s.join(" ")}var kG=function(){return Ut.hasGlobalWindow&&vt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),h0=Array.prototype.slice;function Da(r,t,e){return(t-r)*e+r}function ng(r,t,e,n){for(var a=t.length,i=0;in?t:r,i=Math.min(e,n),A=a[i-1]||{color:[0,0,0,0],offset:0},o=i;oA;if(o)n.length=A;else for(var s=i;s=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var a=this.keyframes,i=a.length,A=!1,o=vS,s=e;if(sr(e)){var l=KG(e);o=l,(l===1&&!Kt(e[0])||l===2&&!Kt(e[0][0]))&&(A=!0)}else if(Kt(e)&&!$u(e))o=vc;else if(nt(e))if(!isNaN(+e))o=vc;else{var u=Xr(e);u&&(s=u,o=Jl)}else if(Pd(e)){var f=V({},s);f.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:Xr(h.color)}}),HL(e)?o=v0:OL(e)&&(o=d0),s=f}i===0?this.valType=o:(o!==this.valType||o===vS)&&(A=!0),this.discrete=this.discrete||A;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=vt(n)?n:Cu[n]||XB(n)),a.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(d,p){return d.time-p.time});for(var a=this.valType,i=n.length,A=n[i-1],o=this.discrete,s=dc(a),l=dS(a),u=0;u=0&&!(A[u].percent<=e);u--);u=c(u,o-2)}else{for(u=f;ue);u++);u=c(u-1,o-2)}v=A[u+1],h=A[u]}if(h&&v){this._lastFr=u,this._lastFrP=e;var p=v.percent-h.percent,g=p===0?1:c((e-h.percent)/p,1);v.easingFunc&&(g=v.easingFunc(g));var y=n?this._additiveValue:l?ml:t[s];if((dc(i)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[s]=g<1?h.rawValue:v.rawValue;else if(dc(i))i===Vh?ng(y,h[a],v[a],g):NG(y,h[a],v[a],g);else if(dS(i)){var m=h[a],w=v[a],_=i===v0;t[s]={type:_?"linear":"radial",x:Da(m.x,w.x,g),y:Da(m.y,w.y,g),colorStops:Y(m.colorStops,function(C,S){var x=w.colorStops[S];return{offset:Da(C.offset,x.offset,g),color:Nh(ng([],C.color,x.color,g))}}),global:w.global},_?(t[s].x2=Da(m.x2,w.x2,g),t[s].y2=Da(m.y2,w.y2,g)):t[s].r=Da(m.r,w.r,g)}else if(l)ng(y,h[a],v[a],g),n||(t[s]=Nh(y));else{var B=Da(h[a],v[a],g);n?this._additiveValue=B:t[s]=B}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===vc?t[n]=t[n]+a:e===Jl?(Xr(t[n],ml),hc(ml,ml,a,1),t[n]=Nh(ml)):e===Vh?hc(t[n],t[n],a,1):e===GL&&hS(t[n],t[n],a,1)},r}(),ZB=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){kB("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Ht(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,A=0;A0&&s.addKeyframe(0,xu(l),a),this._trackKeys.push(o)}s.addKeyframe(t,xu(e[o]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i1){var o=A.pop();i.addKeyframe(o.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function vs(){return new Date().getTime()}var WG=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,a=e.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=vs()-this._pausedTime,a=n-this._time,i=this._head;i;){var A=i.next,o=i.step(n,a);o&&(i.ondestroy(),this.removeClip(i)),i=A}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(mv(n),!e._paused&&e.update())}mv(n)},t.prototype.start=function(){this._running||(this._time=vs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=vs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=vs()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var a=new ZB(e,n.loop);return this.addAnimator(a),a},t}(yn),XG=300,ag=Ut.domSupported,ig=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Y(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),pS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},gS=!1;function p0(r){var t=r.pointerType;return t==="pen"||t==="touch"}function YG(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Ag(r){r&&(r.zrByTouch=!0)}function ZG(r,t){return tn(r.dom,new $G(r,t),!0)}function KL(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var $G=function(){function r(t,e){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),bn={mousedown:function(r){r=tn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=tn(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=tn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=tn(this.dom,r);var t=r.toElement||r.relatedTarget;KL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){gS=!0,r=tn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){gS||(r=tn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=tn(this.dom,r),Ag(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),bn.mousemove.call(this,r),bn.mousedown.call(this,r)},touchmove:function(r){r=tn(this.dom,r),Ag(r),this.handler.processGesture(r,"change"),bn.mousemove.call(this,r)},touchend:function(r){r=tn(this.dom,r),Ag(r),this.handler.processGesture(r,"end"),bn.mouseup.call(this,r),+new Date-+this.__lastTouchMomentwS||r<-wS}var fA=[],Lo=[],sg=Wr(),lg=Math.abs,La=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return uA(this.rotation)||uA(this.x)||uA(this.y)||uA(this.scaleX-1)||uA(this.scaleY-1)||uA(this.skewX)||uA(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(mS(n),this.invTransform=null);return}n=n||Wr(),e?this.getLocalTransform(n):mS(n),t&&(e?Ha(n,t,n):zB(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(fA);var n=fA[0]<0?-1:1,a=fA[1]<0?-1:1,i=((fA[0]-n)*e+n)/fA[0]||0,A=((fA[1]-a)*e+a)/fA[1]||0;t[0]*=i,t[1]*=i,t[2]*=A,t[3]*=A}this.invTransform=this.invTransform||Wr(),Zs(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Wr(),Ha(Lo,t.invTransform,e),e=Lo);var n=this.originX,a=this.originY;(n||a)&&(sg[4]=n,sg[5]=a,Ha(Lo,e,sg),Lo[4]-=n,Lo[5]-=a,e=Lo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&Ye(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&Ye(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&lg(t[0]-1)>1e-10&&lg(t[3]-1)>1e-10?Math.sqrt(lg(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){WL(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,A=t.scaleY,o=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,f=t.y,c=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||o||s){var v=n+o,d=a+s;e[4]=-v*i-c*d*A,e[5]=-d*A-h*v*i}else e[4]=e[5]=0;return e[0]=i,e[3]=A,e[1]=h*i,e[2]=c*A,l&&Co(e,e,l),e[4]+=n+u,e[5]+=a+f,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),da=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function WL(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function bv(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,A=e.width,o=i/2,s=e.x,l=e.y,u="left",f="top";if(n instanceof Array)s+=Rn(n[0],e.width),l+=Rn(n[1],e.height),u=null,f=null;else switch(n){case"left":s-=a,l+=o,u="right",f="middle";break;case"right":s+=a+A,l+=o,f="middle";break;case"top":s+=A/2,l-=a,u="center",f="bottom";break;case"bottom":s+=A/2,l+=i+a,u="center";break;case"inside":s+=A/2,l+=o,u="center",f="middle";break;case"insideLeft":s+=a,l+=o,f="middle";break;case"insideRight":s+=A-a,l+=o,u="right",f="middle";break;case"insideTop":s+=A/2,l+=a,u="center";break;case"insideBottom":s+=A/2,l+=i-a,u="center",f="bottom";break;case"insideTopLeft":s+=a,l+=a;break;case"insideTopRight":s+=A-a,l+=a,u="right";break;case"insideBottomLeft":s+=a,l+=i-a,f="bottom";break;case"insideBottomRight":s+=A-a,l+=i-a,u="right",f="bottom";break}return r=r||{},r.x=s,r.y=l,r.align=u,r.verticalAlign=f,r}var ug="__zr_normal__",fg=da.concat(["ignore"]),eK=ha(da,function(r,t){return r[t]=!0,r},{ignore:!1}),Mo={},rK=new Dt(0,0,0,0),Nd=function(){function r(t){this.id=wL(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=e.innerTransformable,A=void 0,o=void 0,s=!1;i.parent=a?this:null;var l=!1;if(i.copyTransform(e),n.position!=null){var u=rK;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),a||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mo,n,u):bv(Mo,n,u),i.x=Mo.x,i.y=Mo.y,A=Mo.align,o=Mo.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var c=void 0,h=void 0;f==="center"?(c=u.width*.5,h=u.height*.5):(c=Rn(f[0],u.width),h=Rn(f[1],u.height)),l=!0,i.originX=-i.x+c+(a?0:u.x),i.originY=-i.y+h+(a?0:u.y)}}n.rotation!=null&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],l||(i.originX=-v[0],i.originY=-v[1]));var d=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),m=!0)):(g=n.outsideFill,y=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),m=!0)),g=g||"#000",(g!==p.fill||y!==p.stroke||m!==p.autoStroke||A!==p.align||o!==p.verticalAlign)&&(s=!0,p.fill=g,p.stroke=y,p.autoStroke=m,p.align=A,p.verticalAlign=o,e.setDefaultTextStyle(p)),e.__dirty|=Gr,s&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?w0:m0},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Xr(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),A=0;A<3;A++)n[A]=n[A]*a+(i?0:255)*(1-a);return n[3]=1,Oa(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},V(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(yt(t))for(var n=t,a=Ht(n),i=0;i0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(ug,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===ug,A=this.hasState();if(!(!A&&i)){var o=this.currentStates,s=this.stateTransition;if(!(Qt(o,t)>=0&&(e||o.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!i){kB("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||a);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var f=this._textContent,c=this._textGuide;return f&&f.useState(t,e,n,u),c&&c.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Gr),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,A=t.length,o=A===i.length;if(o){for(var s=0;s0,v);var d=this._textContent,p=this._textGuide;d&&d.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Gr)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var a=this.currentStates.slice(),i=Qt(a,t),A=Qt(a,e)>=0;i>=0?A?a.splice(i,1):a[i]=e:n&&!A&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a=0&&i.splice(A,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,a=n.length,i=[],A=0;A0&&e.during&&i[0].during(function(v,d){e.during(d)});for(var c=0;c0||a.force&&!A.length){var S=void 0,x=void 0,b=void 0;if(o){x={},c&&(S={});for(var w=0;w=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=Qt(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var A=this.__zr;A&&i.removeSelfFromZr(A),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,a=this._children,i=Qt(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a"u"&&typeof self<"u"?Pt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Pt.node=!0,Pt.svgSupported=!0):pG(navigator.userAgent,Pt);function pG(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),A=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),A&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var o=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in o||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in o)&&!("OTransition"in o),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var JB=12,GQ="sans-serif",Ji=JB+"px "+GQ,gG=20,yG=100,mG="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function wG(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)o=A*e.length;else for(var s=0;s>1)%2;o.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[s]+":0",a[l]+":0",n[1-s]+":auto",a[1-l]+":auto",""].join("!important;"),r.appendChild(A),e.push(A)}return e}function NG(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,A=[],o=[],s=!0,l=0;l<4;l++){var u=r[l].getBoundingClientRect(),f=2*l,c=u.left,h=u.top;A.push(c,h),s=s&&i&&c===i[f]&&h===i[f+1],o.push(r[l].offsetLeft,r[l].offsetTop)}return s&&a?a:(t.srcCoords=A,t[n]=e?yS(o,A):yS(A,o))}function $Q(r){return r.nodeName.toUpperCase()==="CANVAS"}var VG=/([&<>"'])/g,GG={"&":"&","<":"<",">":">",'"':""","'":"'"};function Lr(r){return r==null?"":(r+"").replace(VG,function(t,e){return GG[e]})}var KG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ug=[],zG=Pt.browser.firefox&&+Pt.browser.version.split(".")[0]<39;function B0(r,t,e,n){return e=e||{},n?wS(r,t,e):zG&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):wS(r,t,e),e}function wS(r,t,e){if(Pt.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if($Q(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(w0(ug,r,n,a)){e.zrX=ug[0],e.zrY=ug[1];return}}e.zrX=e.zrY=0}function a_(r){return r||window.event}function nn(r,t,e){if(t=a_(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var A=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];A&&B0(r,A,t,e)}else{B0(r,t,t,e);var i=WG(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&KG.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function WG(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function _0(r,t,e,n){r.addEventListener(t,e,n)}function XG(r,t,e,n){r.removeEventListener(t,e,n)}var Wa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function BS(r){return r.which===2||r.which===3}var YG=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},A=0,o=a.length;A1&&n&&n.length>1){var i=_S(n)/_S(a);!isFinite(i)&&(i=1),t.pinchScale=i;var A=ZG(n);return t.pinchX=A[0],t.pinchY=A[1],{type:"pinch",target:r[0].target,event:t}}}}};function Yr(){return[1,0,0,1,0,0]}function qd(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function i_(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function ka(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],A=t[1]*e[2]+t[3]*e[3],o=t[0]*e[4]+t[2]*e[5]+t[4],s=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=A,r[4]=o,r[5]=s,r}function pa(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Lo(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],A=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*(A-n[0])+u*(l-n[1])+n[0],r[5]=f*(l-n[1])-u*(A-n[0])+n[1],r}function A_(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function rl(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],A=t[3],o=t[5],s=e*A-i*n;return s?(s=1/s,r[0]=A*s,r[1]=-i*s,r[2]=-n*s,r[3]=e*s,r[4]=(n*o-A*a)*s,r[5]=(i*a-e*o)*s,r):null}function $G(r){var t=Yr();return i_(t,r),t}var It=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}(),yc=Math.min,mc=Math.max,dA=new It,pA=new It,gA=new It,yA=new It,_l=new It,Cl=new It,Dt=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=yc(t.x,this.x),n=yc(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mc(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,a=t.height/e.height,i=Yr();return pa(i,i,[-e.x,-e.y]),A_(i,i,[n,a]),pa(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=n.x+n.width,A=n.y,o=n.y+n.height,s=t.x,l=t.x+t.width,u=t.y,f=t.y+t.height,c=!(iv&&(v=m,dv&&(v=w,g=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],A=n[4],o=n[5];t.x=e.x*a+A,t.y=e.y*i+o,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}dA.x=gA.x=e.x,dA.y=yA.y=e.y,pA.x=yA.x=e.x+e.width,pA.y=gA.y=e.y+e.height,dA.transform(n),yA.transform(n),pA.transform(n),gA.transform(n),t.x=yc(dA.x,pA.x,gA.x,yA.x),t.y=yc(dA.y,pA.y,gA.y,yA.y);var s=mc(dA.x,pA.x,gA.x,yA.x),l=mc(dA.y,pA.y,gA.y,yA.y);t.width=s-t.x,t.height=l-t.y},r}(),JQ="silent";function JG(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:qG}}function qG(){Wa(this.event)}var jG=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Cn),Sl=function(){function r(t,e){this.x=t,this.y=e}return r}(),tK=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cg=new Dt(0,0,0,0),qQ=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this)||this;return o._hovered=new Sl(0,0),o.storage=e,o.painter=n,o.painterRoot=i,o._pointerSize=A,a=a||new jG,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new RG(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(tK,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,a=e.zrY,i=jQ(this,n,a),A=this._hovered,o=A.target;o&&!o.__zr&&(A=this.findHover(A.x,A.y),o=A.target);var s=this._hovered=i?new Sl(n,a):this.findHover(n,a),l=s.target,u=this.proxy;u.setCursor&&u.setCursor(l?l.cursor:"default"),o&&l!==o&&this.dispatchToElement(A,"mouseout",e),this.dispatchToElement(s,"mousemove",e),l&&l!==o&&this.dispatchToElement(s,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Sl(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var A="on"+n,o=JG(n,e,a);i&&(i[A]&&(o.cancelBubble=!!i[A].call(i,o)),i.trigger(n,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(n,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(s){typeof s[A]=="function"&&s[A].call(s,o),s.trigger&&s.trigger(n,o)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),A=new Sl(e,n);if(CS(i,A,e,n,a),this._pointerSize&&!A.target){for(var o=[],s=this._pointerSize,l=s/2,u=new Dt(e-l,n-l,s,s),f=i.length-1;f>=0;f--){var c=i[f];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(cg.copy(c.getBoundingRect()),c.transform&&cg.applyTransform(c.transform),cg.intersect(u)&&o.push(c))}if(o.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function eK(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var A=n.getClipPath();if(A&&!A.contain(t,e))return!1}n.silent&&(a=!0);var o=n.__hostTarget;n=o||n.parent}return a?JQ:!0}return!1}function CS(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var A=r[i],o=void 0;if(A!==a&&!A.ignore&&(o=eK(A,e,n))&&(!t.topTarget&&(t.topTarget=A),o!==JQ)){t.target=A;break}}}function jQ(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var tM=32,xl=7;function rK(r){for(var t=0;r>=tM;)t|=r&1,r>>=1;return r+t}function SS(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a=0;)a++;return a-t}function nK(r,t,e){for(e--;t>>1,a(i,r[s])<0?o=s:A=s+1;var l=n-A;switch(l){case 3:r[A+3]=r[A+2];case 2:r[A+2]=r[A+1];case 1:r[A+1]=r[A];break;default:for(;l>0;)r[A+l]=r[A+l-1],l--}r[A]=i}}function hg(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])>0){for(o=n-a;s0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}else{for(o=a+1;so&&(s=o);var l=A;A=a-s,s=a-l}for(A++;A>>1);i(r,t[e+u])>0?A=u+1:s=u}return s}function vg(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])<0){for(o=a+1;so&&(s=o);var l=A;A=a-s,s=a-l}else{for(o=n-a;s=0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}for(A++;A>>1);i(r,t[e+u])<0?s=u:A=u+1}return s}function aK(r,t){var e=xl,n,a,i=0,A=[];n=[],a=[];function o(h,v){n[i]=h,a[i]=v,i+=1}function s(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;u(h)}}function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]=xl||C>=xl);if(x)break;_<0&&(_=0),_+=2}if(e=_,e<1&&(e=1),v===1){for(g=0;g=0;g--)r[B+g]=r[_+g];r[w]=A[m];return}for(var C=e;;){var x=0,S=0,b=!1;do if(t(A[m],r[y])<0){if(r[w--]=r[y--],x++,S=0,--v===0){b=!0;break}}else if(r[w--]=A[m--],S++,x=0,--p===1){b=!0;break}while((x|S)=0;g--)r[B+g]=r[_+g];if(v===0){b=!0;break}}if(r[w--]=A[m--],--p===1){b=!0;break}if(S=p-hg(r[y],A,0,p,p-1,t),S!==0){for(w-=S,m-=S,p-=S,B=w+1,_=m+1,g=0;g=xl||S>=xl);if(b)break;C<0&&(C=0),C+=2}if(e=C,e<1&&(e=1),p===1){for(w-=v,y-=v,B=w+1,_=y+1,g=v-1;g>=0;g--)r[B+g]=r[_+g];r[w]=A[m]}else{if(p===0)throw new Error;for(_=w-(p-1),g=0;go&&(s=o),xS(r,e,e+s,e+i,t),i=s}A.pushRun(e,i),A.mergeRuns(),a-=i,e+=i}while(a!==0);A.forceMergeRuns()}}var zr=1,nu=2,ds=4,bS=!1;function dg(){bS||(bS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function TS(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var iK=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=TS}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(dg(),u.z=0),isNaN(u.z2)&&(dg(),u.z2=0),isNaN(u.zlevel)&&(dg(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Dv;Dv=Pt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Lu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Lu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Lu.bounceIn(r*2)*.5:Lu.bounceOut(r*2-1)*.5+.5}},wc=Math.pow,Gi=Math.sqrt,Lv=1e-8,eM=1e-4,IS=Gi(3),Bc=1/3,ia=Do(),ln=Do(),Ls=Do();function Mi(r){return r>-Lv&&rLv||r<-Lv}function Me(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function FS(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function Qv(r,t,e,n,a,i){var A=n+3*(t-e)-r,o=3*(e-t*2+r),s=3*(t-r),l=r-a,u=o*o-3*A*s,f=o*s-9*A*l,c=s*s-3*o*l,h=0;if(Mi(u)&&Mi(f))if(Mi(o))i[0]=0;else{var v=-s/o;v>=0&&v<=1&&(i[h++]=v)}else{var d=f*f-4*u*c;if(Mi(d)){var p=f/u,v=-o/A+p,g=-p/2;v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g)}else if(d>0){var y=Gi(d),m=u*o+1.5*A*(-f+y),w=u*o+1.5*A*(-f-y);m<0?m=-wc(-m,Bc):m=wc(m,Bc),w<0?w=-wc(-w,Bc):w=wc(w,Bc);var v=(-o-(m+w))/(3*A);v>=0&&v<=1&&(i[h++]=v)}else{var _=(2*u*o-3*A*f)/(2*Gi(u*u*u)),B=Math.acos(_)/3,C=Gi(u),x=Math.cos(B),v=(-o-2*C*x)/(3*A),g=(-o+C*(x+IS*Math.sin(B)))/(3*A),S=(-o+C*(x-IS*Math.sin(B)))/(3*A);v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g),S>=0&&S<=1&&(i[h++]=S)}}return h}function nM(r,t,e,n,a){var i=6*e-12*t+6*r,A=9*t+3*n-3*r-9*e,o=3*t-3*r,s=0;if(Mi(A)){if(rM(i)){var l=-o/i;l>=0&&l<=1&&(a[s++]=l)}}else{var u=i*i-4*A*o;if(Mi(u))a[0]=-i/(2*A);else if(u>0){var f=Gi(u),l=(-i+f)/(2*A),c=(-i-f)/(2*A);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function ji(r,t,e,n,a,i){var A=(t-r)*a+r,o=(e-t)*a+t,s=(n-e)*a+e,l=(o-A)*a+A,u=(s-o)*a+o,f=(u-l)*a+l;i[0]=r,i[1]=A,i[2]=l,i[3]=f,i[4]=f,i[5]=u,i[6]=s,i[7]=n}function aM(r,t,e,n,a,i,A,o,s,l,u){var f,c=.005,h=1/0,v,d,p,g;ia[0]=s,ia[1]=l;for(var y=0;y<1;y+=.05)ln[0]=Me(r,e,a,A,y),ln[1]=Me(t,n,i,o,y),p=lo(ia,ln),p=0&&p=0&&l<=1&&(a[s++]=l)}}else{var u=A*A-4*i*o;if(Mi(u)){var l=-A/(2*i);l>=0&&l<=1&&(a[s++]=l)}else if(u>0){var f=Gi(u),l=(-A+f)/(2*i),c=(-A-f)/(2*i);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function iM(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function sf(r,t,e,n,a){var i=(t-r)*n+r,A=(e-t)*n+t,o=(A-i)*n+i;a[0]=r,a[1]=i,a[2]=o,a[3]=o,a[4]=A,a[5]=e}function AM(r,t,e,n,a,i,A,o,s){var l,u=.005,f=1/0;ia[0]=A,ia[1]=o;for(var c=0;c<1;c+=.05){ln[0]=Ge(r,e,a,c),ln[1]=Ge(t,n,i,c);var h=lo(ia,ln);h=0&&h=1?1:Qv(0,n,i,1,s,o)&&Me(0,a,A,1,o[0])}}}var uK=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Be,this.ondestroy=t.ondestroy||Be,this.onrestart=t.onrestart||Be,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var A=this.easingFunc,o=A?A(i):i;if(this.onframe(o),i===1)if(this.loop){var s=a%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=vt(t)?t:Lu[t]||o_(t)},r}(),oM=function(){function r(t){this.value=t}return r}(),fK=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new oM(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),kf=function(){function r(t){this._list=new fK,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var A=n.len(),o=this._lastRemovedEntry;if(A>=this._maxSize&&A>0){var s=n.head;n.remove(s),delete a[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new oM(e),o.key=t,n.insertEntry(o),a[t]=o}return i},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),ES={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 Rn(r){return r=Math.round(r),r<0?0:r>255?255:r}function cK(r){return r=Math.round(r),r<0?0:r>360?360:r}function lf(r){return r<0?0:r>1?1:r}function pg(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Rn(parseFloat(t)/100*255):Rn(parseInt(t,10))}function uo(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?lf(parseFloat(t)/100):lf(parseFloat(t))}function gg(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ui(r,t,e){return r+(t-r)*e}function rn(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function S0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var sM=new kf(20),_c=null;function No(r,t){_c&&S0(_c,t),_c=sM.put(r,_c||t.slice())}function Zr(r,t){if(r){t=t||[];var e=sM.get(r);if(e)return S0(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in ES)return S0(t,ES[n]),No(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){rn(t,0,0,0,1);return}return rn(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),No(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){rn(t,0,0,0,1);return}return rn(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),No(r,t),t}return}var A=n.indexOf("("),o=n.indexOf(")");if(A!==-1&&o+1===a){var s=n.substr(0,A),l=n.substr(A+1,o-(A+1)).split(","),u=1;switch(s){case"rgba":if(l.length!==4)return l.length===3?rn(t,+l[0],+l[1],+l[2],1):rn(t,0,0,0,1);u=uo(l.pop());case"rgb":if(l.length>=3)return rn(t,pg(l[0]),pg(l[1]),pg(l[2]),l.length===3?u:uo(l[3])),No(r,t),t;rn(t,0,0,0,1);return;case"hsla":if(l.length!==4){rn(t,0,0,0,1);return}return l[3]=uo(l[3]),x0(l,t),No(r,t),t;case"hsl":if(l.length!==3){rn(t,0,0,0,1);return}return x0(l,t),No(r,t),t;default:return}}rn(t,0,0,0,1)}}function x0(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=uo(r[1]),a=uo(r[2]),i=a<=.5?a*(n+1):a+n-a*n,A=a*2-i;return t=t||[],rn(t,Rn(gg(A,i,e+1/3)*255),Rn(gg(A,i,e)*255),Rn(gg(A,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function hK(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),A=i-a,o=(i+a)/2,s,l;if(A===0)s=0,l=0;else{o<.5?l=A/(i+a):l=A/(2-i-a);var u=((i-t)/6+A/2)/A,f=((i-e)/6+A/2)/A,c=((i-n)/6+A/2)/A;t===i?s=c-f:e===i?s=1/3+u-c:n===i&&(s=2/3+f-u),s<0&&(s+=1),s>1&&(s-=1)}var h=[s*360,l,o];return r[3]!=null&&h.push(r[3]),h}}function b0(r,t){var e=Zr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Na(e,e.length===4?"rgba":"rgb")}}function yg(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=t[a],o=t[i],s=n-a;return e[0]=Rn(Ui(A[0],o[0],s)),e[1]=Rn(Ui(A[1],o[1],s)),e[2]=Rn(Ui(A[2],o[2],s)),e[3]=lf(Ui(A[3],o[3],s)),e}}function vK(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=Zr(t[a]),o=Zr(t[i]),s=n-a,l=Na([Rn(Ui(A[0],o[0],s)),Rn(Ui(A[1],o[1],s)),Rn(Ui(A[2],o[2],s)),lf(Ui(A[3],o[3],s))],"rgba");return e?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}function Qu(r,t,e,n){var a=Zr(r);if(r)return a=hK(a),t!=null&&(a[0]=cK(t)),e!=null&&(a[1]=uo(e)),n!=null&&(a[2]=uo(n)),Na(x0(a),"rgba")}function Mv(r,t){var e=Zr(r);if(e&&t!=null)return e[3]=lf(t),Na(e,"rgba")}function Na(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Uv(r,t){var e=Zr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var DS=new kf(100);function T0(r){if(nt(r)){var t=DS.get(r);return t||(t=b0(r,-.1),DS.put(r,t)),t}else if($d(r)){var e=V({},r);return e.colorStops=Y(r.colorStops,function(n){return{offset:n.offset,color:b0(n.color,-.1)}}),e}return r}var Pv=Math.round;function uf(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Zr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var LS=1e-4;function Pi(r){return r-LS}function Cc(r){return Pv(r*1e3)/1e3}function I0(r){return Pv(r*1e4)/1e4}function dK(r){return"matrix("+Cc(r[0])+","+Cc(r[1])+","+Cc(r[2])+","+Cc(r[3])+","+I0(r[4])+","+I0(r[5])+")"}var pK={left:"start",right:"end",center:"middle",middle:"middle"};function gK(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function yK(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function mK(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function lM(r){return r&&!!r.image}function wK(r){return r&&!!r.svgElement}function s_(r){return lM(r)||wK(r)}function uM(r){return r.type==="linear"}function fM(r){return r.type==="radial"}function cM(r){return r&&(r.type==="linear"||r.type==="radial")}function jd(r){return"url(#"+r+")"}function hM(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function vM(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Yh,a=xt(r.scaleX,1),i=xt(r.scaleY,1),A=r.skewX||0,o=r.skewY||0,s=[];return(t||e)&&s.push("translate("+t+"px,"+e+"px)"),n&&s.push("rotate("+n+")"),(a!==1||i!==1)&&s.push("scale("+a+","+i+")"),(A||o)&&s.push("skew("+Pv(A*Yh)+"deg, "+Pv(o*Yh)+"deg)"),s.join(" ")}var BK=function(){return Pt.hasGlobalWindow&&vt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),F0=Array.prototype.slice;function Qa(r,t,e){return(t-r)*e+r}function mg(r,t,e,n){for(var a=t.length,i=0;in?t:r,i=Math.min(e,n),A=a[i-1]||{color:[0,0,0,0],offset:0},o=i;oA;if(o)n.length=A;else for(var s=i;s=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var a=this.keyframes,i=a.length,A=!1,o=MS,s=e;if(lr(e)){var l=xK(e);o=l,(l===1&&!Kt(e[0])||l===2&&!Kt(e[0][0]))&&(A=!0)}else if(Kt(e)&&!of(e))o=xc;else if(nt(e))if(!isNaN(+e))o=xc;else{var u=Zr(e);u&&(s=u,o=au)}else if($d(e)){var f=V({},s);f.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:Zr(h.color)}}),uM(e)?o=E0:fM(e)&&(o=D0),s=f}i===0?this.valType=o:(o!==this.valType||o===MS)&&(A=!0),this.discrete=this.discrete||A;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=vt(n)?n:Lu[n]||o_(n)),a.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(d,p){return d.time-p.time});for(var a=this.valType,i=n.length,A=n[i-1],o=this.discrete,s=bc(a),l=US(a),u=0;u=0&&!(A[u].percent<=e);u--);u=c(u,o-2)}else{for(u=f;ue);u++);u=c(u-1,o-2)}v=A[u+1],h=A[u]}if(h&&v){this._lastFr=u,this._lastFrP=e;var p=v.percent-h.percent,g=p===0?1:c((e-h.percent)/p,1);v.easingFunc&&(g=v.easingFunc(g));var y=n?this._additiveValue:l?bl:t[s];if((bc(i)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[s]=g<1?h.rawValue:v.rawValue;else if(bc(i))i===jh?mg(y,h[a],v[a],g):_K(y,h[a],v[a],g);else if(US(i)){var m=h[a],w=v[a],_=i===E0;t[s]={type:_?"linear":"radial",x:Qa(m.x,w.x,g),y:Qa(m.y,w.y,g),colorStops:Y(m.colorStops,function(C,x){var S=w.colorStops[x];return{offset:Qa(C.offset,S.offset,g),color:qh(mg([],C.color,S.color,g))}}),global:w.global},_?(t[s].x2=Qa(m.x2,w.x2,g),t[s].y2=Qa(m.y2,w.y2,g)):t[s].r=Qa(m.r,w.r,g)}else if(l)mg(y,h[a],v[a],g),n||(t[s]=qh(y));else{var B=Qa(h[a],v[a],g);n?this._additiveValue=B:t[s]=B}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===xc?t[n]=t[n]+a:e===au?(Zr(t[n],bl),Sc(bl,bl,a,1),t[n]=qh(bl)):e===jh?Sc(t[n],t[n],a,1):e===dM&&QS(t[n],t[n],a,1)},r}(),l_=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){t_("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Ot(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,A=0;A0&&s.addKeyframe(0,Mu(l),a),this._trackKeys.push(o)}s.addKeyframe(t,Mu(e[o]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i1){var o=A.pop();i.addKeyframe(o.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function _s(){return new Date().getTime()}var TK=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,a=e.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=_s()-this._pausedTime,a=n-this._time,i=this._head;i;){var A=i.next,o=i.step(n,a);o&&(i.ondestroy(),this.removeClip(i)),i=A}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Dv(n),!e._paused&&e.update())}Dv(n)},t.prototype.start=function(){this._running||(this._time=_s(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=_s(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=_s()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var a=new l_(e,n.loop);return this.addAnimator(a),a},t}(Cn),IK=300,wg=Pt.domSupported,Bg=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Y(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),PS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},RS=!1;function L0(r){var t=r.pointerType;return t==="pen"||t==="touch"}function FK(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function _g(r){r&&(r.zrByTouch=!0)}function EK(r,t){return nn(r.dom,new DK(r,t),!0)}function pM(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var DK=function(){function r(t,e){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Dn={mousedown:function(r){r=nn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=nn(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=nn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=nn(this.dom,r);var t=r.toElement||r.relatedTarget;pM(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){RS=!0,r=nn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){RS||(r=nn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=nn(this.dom,r),_g(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Dn.mousemove.call(this,r),Dn.mousedown.call(this,r)},touchmove:function(r){r=nn(this.dom,r),_g(r),this.handler.processGesture(r,"change"),Dn.mousemove.call(this,r)},touchend:function(r){r=nn(this.dom,r),_g(r),this.handler.processGesture(r,"end"),Dn.mouseup.call(this,r),+new Date-+this.__lastTouchMomentkS||r<-kS}var wA=[],Vo=[],Sg=Yr(),xg=Math.abs,Ua=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return mA(this.rotation)||mA(this.x)||mA(this.y)||mA(this.scaleX-1)||mA(this.scaleY-1)||mA(this.skewX)||mA(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(OS(n),this.invTransform=null);return}n=n||Yr(),e?this.getLocalTransform(n):OS(n),t&&(e?ka(n,t,n):i_(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(wA);var n=wA[0]<0?-1:1,a=wA[1]<0?-1:1,i=((wA[0]-n)*e+n)/wA[0]||0,A=((wA[1]-a)*e+a)/wA[1]||0;t[0]*=i,t[1]*=i,t[2]*=A,t[3]*=A}this.invTransform=this.invTransform||Yr(),rl(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Yr(),ka(Vo,t.invTransform,e),e=Vo);var n=this.originX,a=this.originY;(n||a)&&(Sg[4]=n,Sg[5]=a,ka(Vo,e,Sg),Vo[4]-=n,Vo[5]-=a,e=Vo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&$e(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&$e(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&xg(t[0]-1)>1e-10&&xg(t[3]-1)>1e-10?Math.sqrt(xg(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){yM(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,A=t.scaleY,o=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,f=t.y,c=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||o||s){var v=n+o,d=a+s;e[4]=-v*i-c*d*A,e[5]=-d*A-h*v*i}else e[4]=e[5]=0;return e[0]=i,e[3]=A,e[1]=h*i,e[2]=c*A,l&&Lo(e,e,l),e[4]+=n+u,e[5]+=a+f,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),ga=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yM(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Hv(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,A=e.width,o=i/2,s=e.x,l=e.y,u="left",f="top";if(n instanceof Array)s+=Nn(n[0],e.width),l+=Nn(n[1],e.height),u=null,f=null;else switch(n){case"left":s-=a,l+=o,u="right",f="middle";break;case"right":s+=a+A,l+=o,f="middle";break;case"top":s+=A/2,l-=a,u="center",f="bottom";break;case"bottom":s+=A/2,l+=i+a,u="center";break;case"inside":s+=A/2,l+=o,u="center",f="middle";break;case"insideLeft":s+=a,l+=o,f="middle";break;case"insideRight":s+=A-a,l+=o,u="right",f="middle";break;case"insideTop":s+=A/2,l+=a,u="center";break;case"insideBottom":s+=A/2,l+=i-a,u="center",f="bottom";break;case"insideTopLeft":s+=a,l+=a;break;case"insideTopRight":s+=A-a,l+=a,u="right";break;case"insideBottomLeft":s+=a,l+=i-a,f="bottom";break;case"insideBottomRight":s+=A-a,l+=i-a,u="right",f="bottom";break}return r=r||{},r.x=s,r.y=l,r.align=u,r.verticalAlign=f,r}var bg="__zr_normal__",Tg=ga.concat(["ignore"]),PK=da(ga,function(r,t){return r[t]=!0,r},{ignore:!1}),Go={},RK=new Dt(0,0,0,0),ep=function(){function r(t){this.id=WQ(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=e.innerTransformable,A=void 0,o=void 0,s=!1;i.parent=a?this:null;var l=!1;if(i.copyTransform(e),n.position!=null){var u=RK;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),a||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Go,n,u):Hv(Go,n,u),i.x=Go.x,i.y=Go.y,A=Go.align,o=Go.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var c=void 0,h=void 0;f==="center"?(c=u.width*.5,h=u.height*.5):(c=Nn(f[0],u.width),h=Nn(f[1],u.height)),l=!0,i.originX=-i.x+c+(a?0:u.x),i.originY=-i.y+h+(a?0:u.y)}}n.rotation!=null&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],l||(i.originX=-v[0],i.originY=-v[1]));var d=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),m=!0)):(g=n.outsideFill,y=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),m=!0)),g=g||"#000",(g!==p.fill||y!==p.stroke||m!==p.autoStroke||A!==p.align||o!==p.verticalAlign)&&(s=!0,p.fill=g,p.stroke=y,p.autoStroke=m,p.align=A,p.verticalAlign=o,e.setDefaultTextStyle(p)),e.__dirty|=zr,s&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?P0:U0},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Zr(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),A=0;A<3;A++)n[A]=n[A]*a+(i?0:255)*(1-a);return n[3]=1,Na(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},V(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(yt(t))for(var n=t,a=Ot(n),i=0;i0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(bg,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===bg,A=this.hasState();if(!(!A&&i)){var o=this.currentStates,s=this.stateTransition;if(!(Lt(o,t)>=0&&(e||o.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!i){t_("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||a);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var f=this._textContent,c=this._textGuide;return f&&f.useState(t,e,n,u),c&&c.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~zr),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,A=t.length,o=A===i.length;if(o){for(var s=0;s0,v);var d=this._textContent,p=this._textGuide;d&&d.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~zr)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var a=this.currentStates.slice(),i=Lt(a,t),A=Lt(a,e)>=0;i>=0?A?a.splice(i,1):a[i]=e:n&&!A&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a=0&&i.splice(A,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,a=n.length,i=[],A=0;A0&&e.during&&i[0].during(function(v,d){e.during(d)});for(var c=0;c0||a.force&&!A.length){var x=void 0,S=void 0,b=void 0;if(o){S={},c&&(x={});for(var w=0;w=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=Lt(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var A=this.__zr;A&&i.removeSelfFromZr(A),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,a=this._children,i=Lt(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=a)return A;if(r>=i)return o}else{if(r>=a)return A;if(r<=i)return o}else{if(r===a)return A;if(r===i)return o}return(r-a)/s*l+A}function et(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return nt(r)?hK(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function me(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),ZL),r=(+r).toFixed(t),e?r:+r}function fn(r){return r.sort(function(t,e){return t-e}),r}function aa(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return vK(r)}function vK(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),A=i<0?0:a-1-i;return Math.max(0,A-n)}function $L(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),A=Math.min(Math.max(-a+i,0),20);return isFinite(A)?A:20}function dK(r,t){var e=ha(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=Y(r,function(h){return(isNaN(h)?0:h)/e*n*100}),i=n*100,A=Y(a,function(h){return Math.floor(h)}),o=ha(A,function(h,v){return h+v},0),s=Y(a,function(h,v){return h-A[v]});ol&&(l=s[f],u=f);++A[u],s[u]=0,++o}return Y(A,function(h){return h/n})}function pK(r,t){var e=Math.max(aa(r),aa(t)),n=r+t;return e>ZL?n:me(n,e)}var xS=9007199254740991;function JL(r){var t=Math.PI*2;return(r%t+t)%t}function tf(r){return r>-SS&&r=10&&t++,t}function qL(r,t){var e=$B(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function vg(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),a=+r[n-1],i=e-n;return i?a+i*(r[n]-a):a}function bS(r){r.sort(function(s,l){return o(s,l,0)?-1:1});for(var t=-1/0,e=1,n=0;n=0||i&&Qt(i,s)<0)){var l=n.getShallow(s,t);l!=null&&(A[r[o][0]]=l)}}return A}}var VK=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],GK=vo(VK),KK=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return GK(this,t,e)},r}(),C0=new Ef(50);function zK(r){if(typeof r=="string"){var t=C0.get(r);return t&&t.image}else return r}function t_(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=C0.get(r),A={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!Gd(t)&&i.pending.push(A)):(t=zi.loadImage(r,ES,ES),t.__zrImageSrc=r,C0.put(r,t.__cachedImgObj={image:t,pending:[A]})),t}else return r;else return t}function ES(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=A;s++)o-=A;var l=Yr(e,t);return l>o&&(e="",l=0),o=r-l,a.ellipsis=e,a.ellipsisWidth=l,a.contentWidth=o,a.containerWidth=r,a}function fM(r,t){var e=t.containerWidth,n=t.font,a=t.contentWidth;if(!e)return"";var i=Yr(r,n);if(i<=e)return r;for(var A=0;;A++){if(i<=a||A>=t.maxIterations){r+=t.ellipsis;break}var o=A===0?XK(r,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,o),i=Yr(r,n)}return r===""&&(r=t.placeholder),r}function XK(r,t,e,n){for(var a=0,i=0,A=r.length;ih&&l){var v=Math.floor(h/o);f=f.slice(0,v)}if(r&&i&&u!=null)for(var d=uM(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;po&&pg(e,r.substring(o,l),t,A),pg(e,s[2],t,A,s[1]),o=dg.lastIndex}oa){_>0?(y.tokens=y.tokens.slice(0,_),p(y,w,m),e.lines=e.lines.slice(0,g+1)):e.lines=e.lines.slice(0,g);break t}var F=C.width,E=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")B.percentWidth=F,u.push(B),B.contentWidth=Yr(B.text,b);else{if(E){var D=C.backgroundColor,Q=D&&D.image;Q&&(Q=zK(Q),Gd(Q)&&(B.width=Math.max(B.width,Q.width*I/Q.height)))}var M=v&&n!=null?n-w:null;M!=null&&M0&&v+n.accumWidth>n.width&&(u=t.split(` -`),l=!0),n.accumWidth=v}else{var d=cM(t,s,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+h,f=d.linesWidths,u=d.lines}}else u=t.split(` -`);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var jK=ha(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function t5(r){return qK(r)?!!jK[r]:!0}function cM(r,t,e,n,a){for(var i=[],A=[],o="",s="",l=0,u=0,f=0;fe:a+u+h>e){u?(o||s)&&(v?(o||(o=s,s="",l=0,u=l),i.push(o),A.push(u-l),s+=c,l+=h,o="",u=l):(s&&(o+=s,s="",l=0),i.push(o),A.push(u),o=c,u=h)):v?(i.push(s),A.push(l),s=c,l=h):(i.push(c),A.push(h));continue}u+=h,v?(s+=c,l+=h):(s&&(o+=s,s="",l=0),o+=c)}return!i.length&&!o&&(o=r,s="",l=0),s&&(o+=s),o&&(i.push(o),A.push(u)),i.length===1&&(u+=a),{accumWidth:u,lines:i,linesWidths:A}}var S0="__zr_style_"+Math.round(Math.random()*10),eo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Kd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eo[S0]=!0;var QS=["z","z2","invisible"],e5=["invisible"],gn=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ht(e),a=0;a1e-4){o[0]=r-e,o[1]=t-n,s[0]=r+e,s[1]=t+n;return}if(pc[0]=wg(a)*e+r,pc[1]=mg(a)*n+t,gc[0]=wg(i)*e+r,gc[1]=mg(i)*n+t,l(o,pc,gc),u(s,pc,gc),a=a%hA,a<0&&(a=a+hA),i=i%hA,i<0&&(i=i+hA),a>i&&!A?i+=hA:aa&&(yc[0]=wg(h)*e+r,yc[1]=mg(h)*n+t,l(o,yc,o),u(s,yc,s))}var te={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},vA=[],dA=[],Kn=[],ii=[],zn=[],Wn=[],Bg=Math.min,_g=Math.max,pA=Math.cos,gA=Math.sin,xa=Math.abs,x0=Math.PI,vi=x0*2,Cg=typeof Float32Array<"u",wl=[];function Sg(r){var t=Math.round(r/x0*1e8)/1e8;return t%2*x0}function e_(r,t){var e=Sg(r[0]);e<0&&(e+=vi);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=vi?a=e+vi:t&&e-a>=vi?a=e-vi:!t&&e>a?a=e+(vi-Sg(e-a)):t&&e0&&(this._ux=xa(n/xv/t)||0,this._uy=xa(n/xv/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(te.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=xa(t-this._xi),a=xa(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(te.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var A=n*n+a*a;A>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=A)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){return this._drawPendingPt(),this.addData(te.C,t,e,n,a,i,A),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,A),this._xi=i,this._yi=A,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(te.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,A){this._drawPendingPt(),wl[0]=a,wl[1]=i,e_(wl,A),a=wl[0],i=wl[1];var o=i-a;return this.addData(te.A,t,e,n,n,a,o,0,A?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,A),this._xi=pA(i)*n+t,this._yi=gA(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(te.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(te.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&Cg&&(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Kn[0]=Kn[1]=zn[0]=zn[1]=Number.MAX_VALUE,ii[0]=ii[1]=Wn[0]=Wn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,A;for(A=0;An||xa(m)>a||c===e-1)&&(d=Math.sqrt(y*y+m*m),i=p,A=g);break}case te.C:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++],B=t[c++],C=t[c++];d=xG(i,A,w,_,p,g,B,C,10),i=B,A=C;break}case te.Q:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++];d=TG(i,A,w,_,p,g,10),i=p,A=g;break}case te.A:var S=t[c++],x=t[c++],b=t[c++],I=t[c++],F=t[c++],E=t[c++],D=E+F;c+=1,v&&(o=pA(F)*b+S,s=gA(F)*I+x),d=_g(b,I)*Bg(vi,Math.abs(E)),i=pA(D)*b+S,A=gA(D)*I+x;break;case te.R:{o=i=t[c++],s=A=t[c++];var Q=t[c++],M=t[c++];d=Q*2+M*2;break}case te.Z:{var y=o-i,m=s-A;d=Math.sqrt(y*y+m*m),i=o,A=s;break}}d>=0&&(l[f++]=d,u+=d)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,A=this._len,o,s,l,u,f,c,h=e<1,v,d,p=0,g=0,y,m=0,w,_;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=e*d,!y)))t:for(var B=0;B0&&(t.lineTo(w,_),m=0),C){case te.M:o=l=n[B++],s=u=n[B++],t.moveTo(l,u);break;case te.L:{f=n[B++],c=n[B++];var x=xa(f-l),b=xa(c-u);if(x>a||b>i){if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;t.lineTo(l*(1-F)+f*F,u*(1-F)+c*F);break t}p+=I}t.lineTo(f,c),l=f,u=c,m=0}else{var E=x*x+b*b;E>m&&(w=f,_=c,m=E)}break}case te.C:{var D=n[B++],Q=n[B++],M=n[B++],R=n[B++],P=n[B++],O=n[B++];if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;Wi(l,D,M,P,F,vA),Wi(u,Q,R,O,F,dA),t.bezierCurveTo(vA[1],dA[1],vA[2],dA[2],vA[3],dA[3]);break t}p+=I}t.bezierCurveTo(D,Q,M,R,P,O),l=P,u=O;break}case te.Q:{var D=n[B++],Q=n[B++],M=n[B++],R=n[B++];if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;Ju(l,D,M,F,vA),Ju(u,Q,R,F,dA),t.quadraticCurveTo(vA[1],dA[1],vA[2],dA[2]);break t}p+=I}t.quadraticCurveTo(D,Q,M,R),l=M,u=R;break}case te.A:var G=n[B++],X=n[B++],J=n[B++],At=n[B++],lt=n[B++],wt=n[B++],Bt=n[B++],N=!n[B++],z=J>At?J:At,$=xa(J-At)>.001,q=lt+wt,j=!1;if(h){var I=v[g++];p+I>y&&(q=lt+wt*(y-p)/I,j=!0),p+=I}if($&&t.ellipse?t.ellipse(G,X,J,At,Bt,lt,q,N):t.arc(G,X,z,lt,q,N),j)break t;S&&(o=pA(lt)*J+G,s=gA(lt)*At+X),l=pA(q)*J+G,u=gA(q)*At+X;break;case te.R:o=l=n[B],s=u=n[B+1],f=n[B++],c=n[B++];var ct=n[B++],L=n[B++];if(h){var I=v[g++];if(p+I>y){var U=y-p;t.moveTo(f,c),t.lineTo(f+Bg(U,ct),c),U-=ct,U>0&&t.lineTo(f+ct,c+Bg(U,L)),U-=L,U>0&&t.lineTo(f+_g(ct-U,0),c+L),U-=ct,U>0&&t.lineTo(f,c+_g(L-U,0));break t}p+=I}t.rect(f,c,ct,L);break;case te.Z:if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;t.lineTo(l*(1-F)+o*F,u*(1-F)+s*F);break t}p+=I}t.closePath(),l=o,u=s}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=te,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Bi(r,t,e,n,a,i,A){if(a===0)return!1;var o=a,s=0,l=r;if(A>t+o&&A>n+o||Ar+o&&i>e+o||it+f&&u>n+f&&u>i+f&&u>o+f||ur+f&&l>e+f&&l>a+f&&l>A+f||lt+l&&s>n+l&&s>i+l||sr+l&&o>e+l&&o>a+l||oe||u+la&&(a+=Bl);var c=Math.atan2(s,o);return c<0&&(c+=Bl),c>=n&&c<=a||c+Bl>=n&&c+Bl<=a}function Qa(r,t,e,n,a,i){if(i>t&&i>n||ia?o:0}var Ai=ga.CMD,yA=Math.PI*2,s5=1e-4;function l5(r,t){return Math.abs(r-t)t&&l>n&&l>i&&l>o||l1&&u5(),h=Me(t,n,i,o,nn[0]),c>1&&(v=Me(t,n,i,o,nn[1]))),c===2?pt&&o>n&&o>i||o=0&&l<=1){for(var u=0,f=Ve(t,n,i,l),c=0;ce||o<-e)return 0;var s=Math.sqrt(e*e-o*o);dr[0]=-s,dr[1]=s;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=yA-1e-4){n=0,a=yA;var u=i?1:-1;return A>=dr[0]+r&&A<=dr[1]+r?u:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=yA,a+=yA);for(var c=0,h=0;h<2;h++){var v=dr[h];if(v+r>A){var d=Math.atan2(o,v),u=i?1:-1;d<0&&(d=yA+d),(d>=n&&d<=a||d+yA>=n&&d+yA<=a)&&(d>Math.PI/2&&d1&&(e||(o+=Qa(s,l,u,f,n,a))),p&&(s=i[v],l=i[v+1],u=s,f=l),d){case Ai.M:u=i[v++],f=i[v++],s=u,l=f;break;case Ai.L:if(e){if(Bi(s,l,i[v],i[v+1],t,n,a))return!0}else o+=Qa(s,l,i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.C:if(e){if(A5(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=f5(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.Q:if(e){if(hM(s,l,i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=c5(s,l,i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.A:var g=i[v++],y=i[v++],m=i[v++],w=i[v++],_=i[v++],B=i[v++];v+=1;var C=!!(1-i[v++]);c=Math.cos(_)*m+g,h=Math.sin(_)*w+y,p?(u=c,f=h):o+=Qa(s,l,c,h,n,a);var S=(n-g)*w/m+g;if(e){if(o5(g,y,w,_,_+B,C,t,S,a))return!0}else o+=h5(g,y,w,_,_+B,C,S,a);s=Math.cos(_+B)*m+g,l=Math.sin(_+B)*w+y;break;case Ai.R:u=s=i[v++],f=l=i[v++];var x=i[v++],b=i[v++];if(c=u+x,h=f+b,e){if(Bi(u,f,c,f,t,n,a)||Bi(c,f,c,h,t,n,a)||Bi(c,h,u,h,t,n,a)||Bi(u,h,u,f,t,n,a))return!0}else o+=Qa(c,f,c,h,n,a),o+=Qa(u,h,u,f,n,a);break;case Ai.Z:if(e){if(Bi(s,l,u,f,t,n,a))return!0}else o+=Qa(s,l,u,f,n,a);s=u,l=f;break}}return!e&&!l5(l,f)&&(o+=Qa(s,l,u,f,n,a)||0),o!==0}function v5(r,t,e){return vM(r,0,!1,t,e)}function d5(r,t,e,n){return vM(r,t,!0,e,n)}var Tv=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eo),p5={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Kd.style)},xg=da.concat(["invisible","culling","z","z2","zlevel","parent"]),Mt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(s){e.buildPath(s,e.shape)}),a.silent=!0;var i=a.style;for(var A in n)i[A]!==n[A]&&(i[A]=n[A]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var o=0;o.5?m0:n>.2?tK:w0}else if(e)return w0}return m0},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),A=Cv(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var A=this.path;(i||this.__dirty&As)&&(A.beginPath(),this.buildPath(A,this.shape,!1),this.pathUpdated()),e=A.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){o.copy(e);var s=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,u??4)}s>1e-10&&(o.width+=l/s,o.height+=l/s,o.x-=l/s/2,o.y-=l/s/2)}return o}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),A=this.style;if(e=a[0],n=a[1],i.contain(e,n)){var o=this.path;if(this.hasStroke()){var s=A.lineWidth,l=A.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),d5(o,s/l,e,n)))return!0}if(this.hasFill())return v5(o,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=As,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:V(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&As)},t.prototype.createStyle=function(e){return Rd(Tv,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=V({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,A,o){r.prototype._applyStateObj.call(this,e,n,a,i,A,o);var s=!(n&&i),l;if(n&&n.shape?A?i?l=n.shape:(l=V({},a.shape),V(l,n.shape)):(l=V({},i?this.shape:a.shape),V(l,n.shape)):s&&(l=a.shape),l)if(A){this.shape=V({},this.shape);for(var u={},f=Ht(l),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Rd(g5,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var a=Df(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(gn);Us.prototype.type="tspan";var y5=gt({x:0,y:0},eo),m5={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Kd.style)};function w5(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ke=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Rd(y5,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=w5(n.image)?n.image:this.__image;if(!i)return 0;var A=e==="width"?"height":"width",o=n[A];return o==null?i[e]:i[e]/i[A]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return m5},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Dt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(gn);Ke.prototype.type="image";function B5(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,A=t.r,o,s,l,u;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof A=="number"?o=s=l=u=A:A instanceof Array?A.length===1?o=s=l=u=A[0]:A.length===2?(o=l=A[0],s=u=A[1]):A.length===3?(o=A[0],s=u=A[1],l=A[2]):(o=A[0],s=A[1],l=A[2],u=A[3]):o=s=l=u=0;var f;o+s>a&&(f=o+s,o*=a/f,s*=a/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+l>i&&(f=s+l,s*=i/f,l*=i/f),o+u>i&&(f=o+u,o*=i/f,u*=i/f),r.moveTo(e+o,n),r.lineTo(e+a-s,n),s!==0&&r.arc(e+a-s,n+s,s,-Math.PI/2,0),r.lineTo(e+a,n+i-l),l!==0&&r.arc(e+a-l,n+i-l,l,0,Math.PI/2),r.lineTo(e+u,n+i),u!==0&&r.arc(e+u,n+i-u,u,Math.PI/2,Math.PI),r.lineTo(e,n+o),o!==0&&r.arc(e+o,n+o,o,Math.PI,Math.PI*1.5)}var ds=Math.round;function dM(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,A=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=A;var o=e&&e.lineWidth;return o&&(ds(n*2)===ds(a*2)&&(r.x1=r.x2=KA(n,o,!0)),ds(i*2)===ds(A*2)&&(r.y1=r.y2=KA(i,o,!0))),r}}function pM(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,A=t.height;r.x=n,r.y=a,r.width=i,r.height=A;var o=e&&e.lineWidth;return o&&(r.x=KA(n,o,!0),r.y=KA(a,o,!0),r.width=Math.max(KA(n+i,o,!1)-r.x,i===0?0:1),r.height=Math.max(KA(a+A,o,!1)-r.y,A===0?0:1)),r}}function KA(r,t,e){if(!t)return r;var n=ds(r*2);return(n+ds(t))%2===0?n/2:(n+(e?1:-1))/2}var _5=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),C5={},Nt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new _5},t.prototype.buildPath=function(e,n){var a,i,A,o;if(this.subPixelOptimize){var s=pM(C5,n,this.style);a=s.x,i=s.y,A=s.width,o=s.height,s.r=n.r,n=s}else a=n.x,i=n.y,A=n.width,o=n.height;n.r?B5(e,n):e.rect(a,i,A,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Mt);Nt.prototype.type="rect";var RS={fill:"#000"},HS=2,S5={style:gt({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},Kd.style)},Gt=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=RS,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,F=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),E=A.calculatedLineHeight,D=0;D=0&&(D=B[E],D.align==="right");)this._placeToken(D,e,S,g,F,"right",m),x-=D.width,F-=D.width,E--;for(I+=(i-(I-p)-(y-F)-x)/2;b<=E;)D=B[b],this._placeToken(D,e,S,g,I+D.width/2,"center",m),I+=D.width,b++;g+=S}},t.prototype._placeToken=function(e,n,a,i,A,o,s){var l=n.rich[e.styleName]||{};l.text=e.text;var u=e.verticalAlign,f=i+a/2;u==="top"?f=i+e.height/2:u==="bottom"&&(f=i+a-e.height/2);var c=!e.isLineHolder&&bg(l);c&&this._renderBackground(l,n,o==="right"?A-e.width:o==="center"?A-e.width/2:A,f-e.height/2,e.width,e.height);var h=!!l.backgroundColor,v=e.textPadding;v&&(A=KS(A,o,v),f-=e.height/2-v[0]-e.innerHeight/2);var d=this._getOrCreateChild(Us),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,w=GS("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),_=VS("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!s&&(!g.autoStroke||y)?(m=HS,g.stroke):null),B=l.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=A,p.y=f,B&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||Ki,p.opacity=ua(l.opacity,n.opacity,1),kS(p,l),_&&(p.lineWidth=ua(l.lineWidth,n.lineWidth,m),p.lineDash=xt(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=_),w&&(p.fill=w);var C=e.contentWidth,S=e.contentHeight;d.setBoundingRect(new Dt(ql(p.x,C,p.textAlign),os(p.y,S,p.textBaseline),C,S))},t.prototype._renderBackground=function(e,n,a,i,A,o){var s=e.backgroundColor,l=e.borderWidth,u=e.borderColor,f=s&&s.image,c=s&&!f,h=e.borderRadius,v=this,d,p;if(c||e.lineHeight||l&&u){d=this._getOrCreateChild(Nt),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=i,g.width=A,g.height=o,g.r=h,d.dirtyShape()}if(c){var y=d.style;y.fill=s||null,y.fillOpacity=xt(e.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Ke),p.onload=function(){v.dirtyStyle()};var m=p.style;m.image=s.image,m.x=a,m.y=i,m.width=A,m.height=o}if(l&&u){var y=d.style;y.lineWidth=l,y.stroke=u,y.strokeOpacity=xt(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(d||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=ua(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return yM(e)&&(n=[e.fontStyle,e.fontWeight,gM(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Dn(n)||e.textFont||e.font},t}(gn),x5={left:!0,right:1,center:1},b5={top:1,bottom:1,middle:1},OS=["fontStyle","fontWeight","fontSize","fontFamily"];function gM(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?RB+"px":r+"px"}function kS(r,t){for(var e=0;e=0,i=!1;if(r instanceof Mt){var A=mM(r),o=a&&A.selectFill||A.normalFill,s=a&&A.selectStroke||A.normalStroke;if(Uo(o)||Uo(s)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=V({},n),l=V({},l),l.fill=o):!Uo(l.fill)&&Uo(o)?(i=!0,n=V({},n),l=V({},l),l.fill=f0(o)):!Uo(l.stroke)&&Uo(s)&&(i||(n=V({},n),l=V({},l)),l.stroke=f0(s)),n.style=l}}if(n&&n.z2==null){i||(n=V({},n));var u=r.z2EmphasisLift;n.z2=r.z2+(u??Js)}return n}function L5(r,t,e){if(e&&e.z2==null){e=V({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??I5)}return e}function M5(r,t,e){var n=Qt(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:D5(r,["opacity"],t,{opacity:1});e=e||{};var A=e.style||{};return A.opacity==null&&(e=V({},e),A=V({opacity:n?a:i.opacity*.1},A),e.style=A),e}function Tg(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Q5(this,r,t,e);if(r==="blur")return M5(this,r,e);if(r==="select")return L5(this,r,e)}return e}function po(r){r.stateProxy=Tg;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Tg),e&&(e.stateProxy=Tg)}function ZS(r,t){!bM(r,t)&&!r.__highByOuter&&ti(r,wM)}function $S(r,t){!bM(r,t)&&!r.__highByOuter&&ti(r,BM)}function Wa(r,t){r.__highByOuter|=1<<(t||0),ti(r,wM)}function Xa(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ti(r,BM)}function CM(r){ti(r,a_)}function i_(r){ti(r,_M)}function SM(r){ti(r,F5)}function xM(r){ti(r,E5)}function bM(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function TM(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var A=r_(i),o=a==="series",s=o?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!o&&n.push(s),A.isBlured&&(s.group.traverse(function(l){_M(l)}),o&&e.push(i)),A.isBlured=!1}),T(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function T0(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(l,u){for(var f=0;f0){var o={dataIndex:A,seriesIndex:e.seriesIndex};i!=null&&(o.dataType=i),t.push(o)}})}),t}function no(r,t,e){zA(r,!0),ti(r,po),F0(r,t,e)}function k5(r){zA(r,!1)}function ye(r,t,e,n){n?k5(r):no(r,t,e)}function F0(r,t,e){var n=Ct(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var qS=["emphasis","blur","select"],N5={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function $e(r,t,e,n){e=e||"itemStyle";for(var a=0;a1&&(A*=Ig(v),o*=Ig(v));var d=(a===i?-1:1)*Ig((A*A*(o*o)-A*A*(h*h)-o*o*(c*c))/(A*A*(h*h)+o*o*(c*c)))||0,p=d*A*h/o,g=d*-o*c/A,y=(r+e)/2+wc(f)*p-mc(f)*g,m=(t+n)/2+mc(f)*p+wc(f)*g,w=rx([1,0],[(c-p)/A,(h-g)/o]),_=[(c-p)/A,(h-g)/o],B=[(-1*c-p)/A,(-1*h-g)/o],C=rx(_,B);if(D0(_,B)<=-1&&(C=_l),D0(_,B)>=1&&(C=0),C<0){var S=Math.round(C/_l*1e6)/1e6;C=_l*2+S%2*_l}u.addData(l,y,m,A,o,w,C,f,i)}var X5=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Y5=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Z5(r){var t=new ga;if(!r)return t;var e=0,n=0,a=e,i=n,A,o=ga.CMD,s=r.match(X5);if(!s)return t;for(var l=0;lD*D+Q*Q&&(S=b,x=I),{cx:S,cy:x,x0:-u,y0:-f,x1:S*(a/_-1),y1:x*(a/_-1)}}function r3(r){var t;if(K(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function n3(r,t){var e,n=jl(t.r,0),a=jl(t.r0||0,0),i=n>0,A=a>0;if(!(!i&&!A)){if(i||(n=a,a=0),a>n){var o=n;n=a,a=o}var s=t.startAngle,l=t.endAngle;if(!(isNaN(s)||isNaN(l))){var u=t.cx,f=t.cy,c=!!t.clockwise,h=ax(l-s),v=h>Fg&&h%Fg;if(v>Sn&&(h=v),!(n>Sn))r.moveTo(u,f);else if(h>Fg-Sn)r.moveTo(u+n*Ro(s),f+n*mA(s)),r.arc(u,f,n,s,l,!c),a>Sn&&(r.moveTo(u+a*Ro(l),f+a*mA(l)),r.arc(u,f,a,l,s,c));else{var d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0,C=void 0,S=void 0,x=void 0,b=void 0,I=void 0,F=void 0,E=void 0,D=void 0,Q=n*Ro(s),M=n*mA(s),R=a*Ro(l),P=a*mA(l),O=h>Sn;if(O){var G=t.cornerRadius;G&&(e=r3(G),d=e[0],p=e[1],g=e[2],y=e[3]);var X=ax(n-a)/2;if(m=Xn(X,g),w=Xn(X,y),_=Xn(X,d),B=Xn(X,p),x=C=jl(m,w),b=S=jl(_,B),(C>Sn||S>Sn)&&(I=n*Ro(l),F=n*mA(l),E=a*Ro(s),D=a*mA(s),hSn){var $=Xn(g,x),q=Xn(y,x),j=Bc(E,D,Q,M,n,$,c),ct=Bc(I,F,R,P,n,q,c);r.moveTo(u+j.cx+j.x0,f+j.cy+j.y0),x0&&r.arc(u+j.cx,f+j.cy,$,je(j.y0,j.x0),je(j.y1,j.x1),!c),r.arc(u,f,n,je(j.cy+j.y1,j.cx+j.x1),je(ct.cy+ct.y1,ct.cx+ct.x1),!c),q>0&&r.arc(u+ct.cx,f+ct.cy,q,je(ct.y1,ct.x1),je(ct.y0,ct.x0),!c))}else r.moveTo(u+Q,f+M),r.arc(u,f,n,s,l,!c);if(!(a>Sn)||!O)r.lineTo(u+R,f+P);else if(b>Sn){var $=Xn(d,b),q=Xn(p,b),j=Bc(R,P,I,F,a,-q,c),ct=Bc(Q,M,E,D,a,-$,c);r.lineTo(u+j.cx+j.x0,f+j.cy+j.y0),b0&&r.arc(u+j.cx,f+j.cy,q,je(j.y0,j.x0),je(j.y1,j.x1),!c),r.arc(u,f,a,je(j.cy+j.y1,j.cx+j.x1),je(ct.cy+ct.y1,ct.cx+ct.x1),c),$>0&&r.arc(u+ct.cx,f+ct.cy,$,je(ct.y1,ct.x1),je(ct.y0,ct.x0),!c))}else r.lineTo(u+R,f+P),r.arc(u,f,a,l,s,c)}r.closePath()}}}var a3=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Cr=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new a3},t.prototype.buildPath=function(e,n){n3(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Mt);Cr.prototype.type="sector";var i3=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Mf=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new i3},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,A,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,A,!0)},t}(Mt);Mf.prototype.type="ring";function A3(r,t,e,n){var a=[],i=[],A=[],o=[],s,l,u,f;if(n){u=[1/0,1/0],f=[-1/0,-1/0];for(var c=0,h=r.length;c=2){if(n){var i=A3(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var A=a.length,o=0;o<(e?A:A-1);o++){var s=i[o*2],l=i[o*2+1],u=a[(o+1)%A];r.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var o=1,f=a.length;oBA[1]){if(o=!1,i)return o;var u=Math.abs(BA[0]-wA[1]),f=Math.abs(wA[0]-BA[1]);Math.min(u,f)>a.len()&&(u0){var f=u.duration,c=u.delay,h=u.easing,v={duration:f,delay:c||0,easing:h,done:i,force:!!i||!!A,setToFinal:!l,scope:r,during:A};o?t.animateFrom(e,v):t.animateTo(e,v)}else t.stopAnimation(),!o&&t.attr(e),A&&A(1),i&&i()}function zt(r,t,e,n,a,i){l_("update",r,t,e,n,a,i)}function ue(r,t,e,n,a,i){l_("enter",r,t,e,n,a,i)}function xs(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function ox(r){return!r.isGroup}function w3(r){return r.shape!=null}function Rf(r,t,e){if(!r||!t)return;function n(A){var o={};return A.traverse(function(s){ox(s)&&s.anid&&(o[s.anid]=s)}),o}function a(A){var o={x:A.x,y:A.y,rotation:A.rotation};return w3(A)&&(o.shape=V({},A.shape)),o}var i=n(r);t.traverse(function(A){if(ox(A)&&A.anid){var o=i[A.anid];if(o){var s=a(A);A.attr(a(o)),zt(A,s,e,Ct(A).dataIndex)}}})}function NM(r,t){return Y(r,function(e){var n=e[0];n=Ev(n,t.x),n=Dv(n,t.x+t.width);var a=e[1];return a=Ev(a,t.y),a=Dv(a,t.y+t.height),[n,a]})}function B3(r,t){var e=Ev(r.x,t.x),n=Dv(r.x+r.width,t.x+t.width),a=Ev(r.y,t.y),i=Dv(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Hf(r,t,e){var n=V({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),gt(a,e),new Ke(n)):$d(r.replace("path://",""),n,e,"center")}function tu(r,t,e,n,a){for(var i=0,A=a[a.length-1];i1)return!1;var p=Eg(h,v,u,f)/c;return!(p<0||p>1)}function Eg(r,t,e,n){return r*n-e*t}function _3(r){return r<=1e-6&&r>=-1e-6}function js(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=nt(t)?{formatter:t}:t,i=e.mainType,A=e.componentIndex,o={componentType:i,name:n,$vars:["name"]};o[i+"Index"]=A;var s=r.formatterParamsExtra;s&&T(Ht(s),function(u){st(o,u)||(o[u]=s[u],o.$vars.push(u))});var l=Ct(r.el);l.componentMainType=i,l.componentIndex=A,l.tooltipConfig={name:n,option:gt({content:n,encodeHTMLContent:!0,formatterParams:o},a)}}function sx(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function rA(r,t){if(r)if(K(r))for(var e=0;e=0&&o.push(s)}),o}}function nA(r,t){return Et(Et({},r,!0),t,!0)}const M3={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:". "}}}},U3={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 Lv="ZH",c_="EN",bs=c_,Yh={},h_={},YM=Ut.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bs).toUpperCase();return r.indexOf(Lv)>-1?Lv:bs}():bs;function ZM(r,t){r=r.toUpperCase(),h_[r]=new Yt(t),Yh[r]=t}function P3(r){if(nt(r)){var t=Yh[r.toUpperCase()]||{};return r===Lv||r===c_?mt(t):Et(mt(t),mt(Yh[bs]),!1)}else return Et(mt(r),mt(Yh[bs]),!1)}function M0(r){return h_[r]}function R3(){return h_[bs]}ZM(c_,M3);ZM(Lv,U3);var v_=1e3,d_=v_*60,Du=d_*60,un=Du*24,hx=un*365,eu={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}"},Sc="{yyyy}-{MM}-{dd}",vx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Sc,hour:Sc+" "+eu.hour,minute:Sc+" "+eu.minute,second:Sc+" "+eu.second,millisecond:eu.none},Lg=["year","month","day","hour","minute","second","millisecond"],$M=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function oi(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ts(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function H3(r){return r===Ts(r)}function O3(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jd(r,t,e,n){var a=pa(r),i=a[p_(e)](),A=a[Is(e)]()+1,o=Math.floor((A-1)/3)+1,s=a[tp(e)](),l=a["get"+(e?"UTC":"")+"Day"](),u=a[Af(e)](),f=(u-1)%12+1,c=a[ep(e)](),h=a[rp(e)](),v=a[np(e)](),d=u>=12?"pm":"am",p=d.toUpperCase(),g=n instanceof Yt?n:M0(n||YM)||R3(),y=g.getModel("time"),m=y.get("month"),w=y.get("monthAbbr"),_=y.get("dayOfWeek"),B=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,oi(i%100+"",2)).replace(/{Q}/g,o+"").replace(/{MMMM}/g,m[A-1]).replace(/{MMM}/g,w[A-1]).replace(/{MM}/g,oi(A,2)).replace(/{M}/g,A+"").replace(/{dd}/g,oi(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,B[l]).replace(/{e}/g,l+"").replace(/{HH}/g,oi(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,oi(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,oi(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,oi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,oi(v,3)).replace(/{S}/g,v+"")}function k3(r,t,e,n,a){var i=null;if(nt(e))i=e;else if(vt(e))i=e(r.value,t,{level:r.level});else{var A=V({},eu);if(r.level>0)for(var o=0;o=0;--o)if(s[l]){i=s[l];break}i=i||A.none}if(K(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return jd(new Date(r.value),i,a,n)}function JM(r,t){var e=pa(r),n=e[Is(t)]()+1,a=e[tp(t)](),i=e[Af(t)](),A=e[ep(t)](),o=e[rp(t)](),s=e[np(t)](),l=s===0,u=l&&o===0,f=u&&A===0,c=f&&i===0,h=c&&a===1,v=h&&n===1;return v?"year":h?"month":c?"day":f?"hour":u?"minute":l?"second":"millisecond"}function dx(r,t,e){var n=Kt(r)?pa(r):r;switch(t=t||JM(r,e),t){case"year":return n[p_(e)]();case"half-year":return n[Is(e)]()>=6?1:0;case"quarter":return Math.floor((n[Is(e)]()+1)/4);case"month":return n[Is(e)]();case"day":return n[tp(e)]();case"half-day":return n[Af(e)]()/24;case"hour":return n[Af(e)]();case"minute":return n[ep(e)]();case"second":return n[rp(e)]();case"millisecond":return n[np(e)]()}}function p_(r){return r?"getUTCFullYear":"getFullYear"}function Is(r){return r?"getUTCMonth":"getMonth"}function tp(r){return r?"getUTCDate":"getDate"}function Af(r){return r?"getUTCHours":"getHours"}function ep(r){return r?"getUTCMinutes":"getMinutes"}function rp(r){return r?"getUTCSeconds":"getSeconds"}function np(r){return r?"getUTCMilliseconds":"getMilliseconds"}function N3(r){return r?"setUTCFullYear":"setFullYear"}function qM(r){return r?"setUTCMonth":"setMonth"}function jM(r){return r?"setUTCDate":"setDate"}function tU(r){return r?"setUTCHours":"setHours"}function eU(r){return r?"setUTCMinutes":"setMinutes"}function rU(r){return r?"setUTCSeconds":"setSeconds"}function nU(r){return r?"setUTCMilliseconds":"setMilliseconds"}function aU(r){if(!jL(r))return nt(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function iU(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var rl=GB;function U0(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(u){return u&&Dn(u)?u:"-"}function i(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var A=t==="time",o=r instanceof Date;if(A||o){var s=A?pa(r):r;if(isNaN(+s)){if(o)return"-"}else return jd(s,n,e)}if(t==="ordinal")return jm(r)?a(r):Kt(r)&&i(r)?r+"":"-";var l=za(r);return i(l)?aU(l):jm(r)?a(r):typeof r=="boolean"?r+"":"-"}var px=["a","b","c","d","e","f","g"],Mg=function(r,t){return"{"+r+(t??"")+"}"};function AU(r,t,e){K(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var A=e.markerId||"markerX";return{renderMode:i,content:"{"+A+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function go(r,t){return t=t||"transparent",nt(r)?r:yt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Mv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Zh=T,oU=["left","right","top","bottom","width","height"],WA=[["width","left","right"],["height","top","bottom"]];function g_(r,t,e,n,a){var i=0,A=0;n==null&&(n=1/0),a==null&&(a=1/0);var o=0;t.eachChild(function(s,l){var u=s.getBoundingRect(),f=t.childAt(l+1),c=f&&f.getBoundingRect(),h,v;if(r==="horizontal"){var d=u.width+(c?-c.x+u.x:0);h=i+d,h>n||s.newline?(i=0,h=d,A+=o+e,o=u.height):o=Math.max(o,u.height)}else{var p=u.height+(c?-c.y+u.y:0);v=A+p,v>a||s.newline?(i+=o+e,A=0,v=p,o=u.width):o=Math.max(o,u.width)}s.newline||(s.x=i,s.y=A,s.markRedraw(),r==="horizontal"?i=h+e:A=v+e)})}var io=g_;bt(g_,"vertical");bt(g_,"horizontal");function K3(r,t,e){var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(o)||isNaN(parseFloat(r.right)))&&(o=n),(isNaN(A)||isNaN(parseFloat(r.top)))&&(A=0),(isNaN(s)||isNaN(parseFloat(r.bottom)))&&(s=a),e=rl(e||0),{width:Math.max(o-i-e[1]-e[3],0),height:Math.max(s-A-e[0]-e[2],0)}}function Le(r,t,e){e=rl(e||0);var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a),l=et(r.width,n),u=et(r.height,a),f=e[2]+e[0],c=e[1]+e[3],h=r.aspect;switch(isNaN(l)&&(l=n-o-c-i),isNaN(u)&&(u=a-s-f-A),h!=null&&(isNaN(l)&&isNaN(u)&&(h>n/a?l=n*.8:u=a*.8),isNaN(l)&&(l=h*u),isNaN(u)&&(u=l/h)),isNaN(i)&&(i=n-o-l-c),isNaN(A)&&(A=a-s-u-f),r.left||r.right){case"center":i=n/2-l/2-e[3];break;case"right":i=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":A=a/2-u/2-e[0];break;case"bottom":A=a-u-f;break}i=i||0,A=A||0,isNaN(l)&&(l=n-c-i-(o||0)),isNaN(u)&&(u=a-f-A-(s||0));var v=new Dt(i+e[3],A+e[0],l,u);return v.margin=e,v}function ap(r,t,e,n,a,i){var A=!a||!a.hv||a.hv[0],o=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!A&&!o)return!1;var l;if(s==="raw")l=r.type==="group"?new Dt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var u=r.getLocalTransform();l=l.clone(),l.applyTransform(u)}var f=Le(gt({width:l.width,height:l.height},t),e,n),c=A?f.x-l.x:0,h=o?f.y-l.y:0;return s==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function z3(r,t){return r[WA[t][0]]!=null||r[WA[t][1]]!=null&&r[WA[t][2]]!=null}function of(r){var t=r.layoutMode||r.constructor.layoutMode;return yt(t)?t:t?{type:t}:null}function Yi(r,t,e){var n=e&&e.ignoreSize;!K(n)&&(n=[n,n]);var a=A(WA[0],0),i=A(WA[1],1);l(WA[0],r,a),l(WA[1],r,i);function A(u,f){var c={},h=0,v={},d=0,p=2;if(Zh(u,function(m){v[m]=r[m]}),Zh(u,function(m){o(t,m)&&(c[m]=v[m]=t[m]),s(c,m)&&h++,s(v,m)&&d++}),n[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g=0;s--)o=Et(o,a[s],!0);n.defaultOption=o}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Qf(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Yt);lM(Rt,Yt);Vd(Rt);Q3(Rt);L3(Rt,X3);function X3(r){var t=[];return T(Rt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return ia(e).main}),r!=="dataset"&&Qt(t,"dataset")<=0&&t.unshift("dataset"),t}var lU="";typeof navigator<"u"&&(lU=navigator.platform||"");var Ho="rgba(0, 0, 0, 0.2)";const Y3={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ho,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ho,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ho,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ho,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ho,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ho,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:lU.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 uU=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),mn="original",lr="arrayRows",wn="objectRows",ya="keyedColumns",Hi="typedArray",fU="unknown",fa="column",al="row",ze={Must:1,Might:2,Not:3},cU=Vt();function Z3(r){cU(r).datasetMap=ft()}function hU(r,t,e){var n={},a=m_(t);if(!a||!r)return n;var i=[],A=[],o=t.ecModel,s=cU(o).datasetMap,l=a.uid+"_"+e.seriesLayoutBy,u,f;r=r.slice(),T(r,function(d,p){var g=yt(d)?d:r[p]={name:d};g.type==="ordinal"&&u==null&&(u=p,f=v(g)),n[g.name]=[]});var c=s.get(l)||s.set(l,{categoryWayDim:f,valueWayDim:0});T(r,function(d,p){var g=d.name,y=v(d);if(u==null){var m=c.valueWayDim;h(n[g],m,y),h(A,m,y),c.valueWayDim+=y}else if(u===p)h(n[g],0,y),h(i,0,y);else{var m=c.categoryWayDim;h(n[g],m,y),h(A,m,y),c.categoryWayDim+=y}});function h(d,p,g){for(var y=0;yt)return r[n];return r[e-1]}function pU(r,t,e,n,a,i,A){i=i||r;var o=t(i),s=o.paletteIdx||0,l=o.paletteNameMap=o.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var u=A==null||!n?e:tz(n,A);if(u=u||e,!(!u||!u.length)){var f=u[s];return a&&(l[a]=f),o.paletteIdx=(s+1)%u.length,f}}function ez(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var xc,Cl,yx,mx="\0_ec_inner",rz=1,B_=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,A,o){i=i||{},this.option=null,this._theme=new Yt(i),this._locale=new Yt(A),this._optionManager=o},t.prototype.setOption=function(e,n,a){var i=Cx(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Cx(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var A=i.mountOption(e==="recreate");!this.option||e==="recreate"?yx(this,A):(this.restoreData(),this._mergeOption(A,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var o=i.getTimelineOption(this);o&&(a=!0,this._mergeOption(o,n))}if(!e||e==="recreate"||e==="media"){var s=i.getMediaOption(this);s.length&&T(s,function(l){a=!0,this._mergeOption(l,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,A=this._componentsCount,o=[],s=ft(),l=n&&n.replaceMergeMainTypeMap;Z3(this),T(e,function(f,c){f!=null&&(Rt.hasClass(c)?c&&(o.push(c),s.set(c,!0)):a[c]=a[c]==null?mt(f):Et(a[c],f,!0))}),l&&l.each(function(f,c){Rt.hasClass(c)&&!s.get(c)&&(o.push(c),s.set(c,!0))}),Rt.topologicalTravel(o,Rt.getAllClassMainTypes(),u,this);function u(f){var c=q3(this,f,qt(e[f])),h=i.get(f),v=h?l&&l.get(f)?"replaceMerge":"normalMerge":"replaceAll",d=aM(h,c,v);TK(d,f,Rt),a[f]=null,i.set(f,null),A.set(f,0);var p=[],g=[],y=0,m;T(d,function(w,_){var B=w.existing,C=w.newOption;if(!C)B&&(B.mergeOption({},this),B.optionUpdated({},!1));else{var S=f==="series",x=Rt.getClass(f,w.keyInfo.subType,!S);if(!x)return;if(f==="tooltip"){if(m)return;m=!0}if(B&&B.constructor===x)B.name=w.keyInfo.name,B.mergeOption(C,this),B.optionUpdated(C,!1);else{var b=V({componentIndex:_},w.keyInfo);B=new x(C,this,this,b),V(B,b),w.brandNew&&(B.__requireNewView=!0),B.init(C,this,this),B.optionUpdated(null,!0)}}B?(p.push(B.option),g.push(B),y++):(p.push(void 0),g.push(void 0))},this),a[f]=p,i.set(f,g),A.set(f,y),f==="series"&&xc(this)}this._seriesIndices||xc(this)},t.prototype.getOption=function(){var e=mt(this.option);return T(e,function(n,a){if(Rt.hasClass(a)){for(var i=qt(n),A=i.length,o=!1,s=A-1;s>=0;s--)i[s]&&!ef(i[s])?o=!0:(i[s]=null,!o&&A--);i.length=A,e[a]=i}}),delete e[mx],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var A=0;A=t:e==="max"?r<=t:r===t}function fz(r,t){return r.join(",")===t.join(",")}var _n=T,sf=yt,Sx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Pg(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Sx.length;e=0;p--){var g=r[p];if(o||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(s==="all"||s==="positive"&&y>0||s==="negative"&&y<0||s==="samesign"&&c>=0&&y>0||s==="samesign"&&c<=0&&y<0){c=pK(c,y),d=y;break}}}return n[0]=c,n[1]=d,n})})}var ip=function(){function r(t){this.data=t.data||(t.sourceFormat===ya?{}:[]),this.sourceFormat=t.sourceFormat||fU,this.seriesLayoutBy=t.seriesLayoutBy||fa,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nd&&(d=m)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};Dx=(t={},t[lr+"_"+fa]={pure:!0,appendData:i},t[lr+"_"+al]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[wn]={pure:!0,appendData:i},t[ya]={pure:!0,appendData:function(A){var o=this._data;T(A,function(s,l){for(var u=o[l]||(o[l]=[]),f=0;f<(s||[]).length;f++)u.push(s[f])})}},t[mn]={appendData:i},t[Hi]={persistent:!1,pure:!0,appendData:function(A){this._data=A},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(A){for(var o=0;o=0&&(d=A.interpolatedValue[p])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return Rs(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Ux(r){var t,e;return yt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Qu(r){return new Iz(r)}var Iz=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var A=u(this._modBy),o=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;(A!==s||o!==l)&&(i="reset");function u(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=s,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?o:A}};return i;function A(){return t=r?null:st},gte:function(r,t){return r>=t}},Ez=function(){function r(t,e){if(!Kt(e)){var n="";Xt(n)}this._opFn=TU[t],this._rvalFloat=za(e)}return r.prototype.evaluate=function(t){return Kt(t)?this._opFn(t,this._rvalFloat):this._opFn(za(t),this._rvalFloat)},r}(),IU=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=Kt(t)?t:za(t),a=Kt(e)?e:za(e),i=isNaN(n),A=isNaN(a);if(i&&(n=this._incomparable),A&&(a=this._incomparable),i&&A){var o=nt(t),s=nt(e);o&&(n=s?t:0),s&&(a=o?e:0)}return na?-this._resultLT:0},r}(),Dz=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=za(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=za(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function Qz(r,t){return r==="eq"||r==="ne"?new Dz(r==="eq",t):st(TU,r)?new Ez(r,t):null}var Lz=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Oi(t,e)},r}();function Mz(r,t){var e=new Lz,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,A="";r.seriesLayoutBy!==fa&&Xt(A);var o=[],s={},l=r.dimensionsDefine;if(l)T(l,function(d,p){var g=d.name,y={index:p,name:g,displayName:d.displayName};if(o.push(y),g!=null){var m="";st(s,g)&&Xt(m),s[g]=y}});else for(var u=0;u65535?Vz:Gz}function Oo(){return[1/0,-1/0]}function Kz(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Hx(r,t,e,n,a){var i=DU[e||"float"];if(a){var A=r[t],o=A&&A.length;if(o!==n){for(var s=new i(n),l=0;lp[1]&&(p[1]=d)}return this._rawCount=this._count=s,{start:o,end:s}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,A=this._dimensions,o=A.length,s=this._rawExtent,l=Y(A,function(y){return y.property}),u=0;ug[1]&&(g[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=A-1;else return A}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],A=[];if(!i)return A;n==null&&(n=1/0);for(var o=1/0,s=-1,l=0,u=0,f=this.count();u=0&&s<0)&&(o=v,s=h,l=0),h===s&&(A[l++]=u))}return A.length=l,A},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=c||isNaN(y))&&(s[l++]=d),d++}v=!0}else if(i===2){for(var p=h[a[0]],m=h[a[1]],w=t[a[1]][0],_=t[a[1]][1],g=0;g=f&&y<=c||isNaN(y))&&(B>=w&&B<=_||isNaN(B))&&(s[l++]=d),d++}v=!0}}if(!v)if(i===1)for(var g=0;g=f&&y<=c||isNaN(y))&&(s[l++]=C)}else for(var g=0;gt[b][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(g))}return lg[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],A=this.count(),o=0,s=Math.floor(1/e),l=this.getRawIndex(0),u,f,c,h=new(xl(this._rawCount))(Math.min((Math.ceil(A/s)+2)*2,A));h[o++]=l;for(var v=1;vu&&(u=f,c=w)}I>0&&Iu-v&&(s=u-v,o.length=s);for(var d=0;df[1]&&(f[1]=g),c[h++]=y}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,A=this.count();is&&(s=f)}return A=[o,s],this._extent[t]=A,A},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return Oi(e[i],this._dimensions[i])}Og={arrayRows:t,objectRows:function(e,n,a,i){return Oi(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var A=e&&(e.value==null?e:e.value);return Oi(A instanceof Array?A[i]:A,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),QU=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(bc(t)){var A=t,o=void 0,s=void 0,l=void 0;if(n){var u=e[0];u.prepareSource(),l=u.getSource(),o=l.data,s=l.sourceFormat,i=[u._getVersionSign()]}else o=A.get("data",!0),s=Ur(o)?Hi:mn,i=[];var f=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},h=xt(f.seriesLayoutBy,c.seriesLayoutBy)||null,v=xt(f.sourceHeader,c.sourceHeader),d=xt(f.dimensions,c.dimensions),p=h!==c.seriesLayoutBy||!!v!=!!c.sourceHeader||d;a=p?[H0(o,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},s)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var m=g.get("source",!0);a=[H0(m,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&kx(i)}var A,o=[],s=[];return T(t,function(l){l.prepareSource();var u=l.getSource(a||0),f="";a!=null&&!u&&kx(f),o.push(u),s.push(l._getVersionSign())}),n?A=kz(n,o,{datasetIndex:e.componentIndex}):a!=null&&(A=[Bz(o[0])]),{sourceList:A,upstreamSignList:s}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=a)return A;if(r>=i)return o}else{if(r>=a)return A;if(r<=i)return o}else{if(r===a)return A;if(r===i)return o}return(r-a)/s*l+A}function et(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return nt(r)?YK(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function me(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),BM),r=(+r).toFixed(t),e?r:+r}function pn(r){return r.sort(function(t,e){return t-e}),r}function oa(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return ZK(r)}function ZK(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),A=i<0?0:a-1-i;return Math.max(0,A-n)}function _M(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),A=Math.min(Math.max(-a+i,0),20);return isFinite(A)?A:20}function $K(r,t){var e=da(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=Y(r,function(h){return(isNaN(h)?0:h)/e*n*100}),i=n*100,A=Y(a,function(h){return Math.floor(h)}),o=da(A,function(h,v){return h+v},0),s=Y(a,function(h,v){return h-A[v]});ol&&(l=s[f],u=f);++A[u],s[u]=0,++o}return Y(A,function(h){return h/n})}function JK(r,t){var e=Math.max(oa(r),oa(t)),n=r+t;return e>BM?n:me(n,e)}var zS=9007199254740991;function CM(r){var t=Math.PI*2;return(r%t+t)%t}function ff(r){return r>-KS&&r=10&&t++,t}function SM(r,t){var e=u_(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Eg(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),a=+r[n-1],i=e-n;return i?a+i*(r[n]-a):a}function WS(r){r.sort(function(s,l){return o(s,l,0)?-1:1});for(var t=-1/0,e=1,n=0;n=0||i&&Lt(i,s)<0)){var l=n.getShallow(s,t);l!=null&&(A[r[o][0]]=l)}}return A}}var C3=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],S3=So(C3),x3=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return S3(this,t,e)},r}(),O0=new kf(50);function b3(r){if(typeof r=="string"){var t=O0.get(r);return t&&t.image}else return r}function v_(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=O0.get(r),A={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!np(t)&&i.pending.push(A)):(t=qi.loadImage(r,$S,$S),t.__zrImageSrc=r,O0.put(r,t.__cachedImgObj={image:t,pending:[A]})),t}else return r;else return t}function $S(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=A;s++)o-=A;var l=$r(e,t);return l>o&&(e="",l=0),o=r-l,a.ellipsis=e,a.ellipsisWidth=l,a.contentWidth=o,a.containerWidth=r,a}function RM(r,t){var e=t.containerWidth,n=t.font,a=t.contentWidth;if(!e)return"";var i=$r(r,n);if(i<=e)return r;for(var A=0;;A++){if(i<=a||A>=t.maxIterations){r+=t.ellipsis;break}var o=A===0?I3(r,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,o),i=$r(r,n)}return r===""&&(r=t.placeholder),r}function I3(r,t,e,n){for(var a=0,i=0,A=r.length;ih&&l){var v=Math.floor(h/o);f=f.slice(0,v)}if(r&&i&&u!=null)for(var d=PM(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;po&&Lg(e,r.substring(o,l),t,A),Lg(e,s[2],t,A,s[1]),o=Dg.lastIndex}oa){_>0?(y.tokens=y.tokens.slice(0,_),p(y,w,m),e.lines=e.lines.slice(0,g+1)):e.lines=e.lines.slice(0,g);break t}var F=C.width,E=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")B.percentWidth=F,u.push(B),B.contentWidth=$r(B.text,b);else{if(E){var D=C.backgroundColor,L=D&&D.image;L&&(L=b3(L),np(L)&&(B.width=Math.max(B.width,L.width*T/L.height)))}var M=v&&n!=null?n-w:null;M!=null&&M0&&v+n.accumWidth>n.width&&(u=t.split(` +`),l=!0),n.accumWidth=v}else{var d=HM(t,s,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+h,f=d.linesWidths,u=d.lines}}else u=t.split(` +`);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var M3=da(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function U3(r){return Q3(r)?!!M3[r]:!0}function HM(r,t,e,n,a){for(var i=[],A=[],o="",s="",l=0,u=0,f=0;fe:a+u+h>e){u?(o||s)&&(v?(o||(o=s,s="",l=0,u=l),i.push(o),A.push(u-l),s+=c,l+=h,o="",u=l):(s&&(o+=s,s="",l=0),i.push(o),A.push(u),o=c,u=h)):v?(i.push(s),A.push(l),s=c,l=h):(i.push(c),A.push(h));continue}u+=h,v?(s+=c,l+=h):(s&&(o+=s,s="",l=0),o+=c)}return!i.length&&!o&&(o=r,s="",l=0),s&&(o+=s),o&&(i.push(o),A.push(u)),i.length===1&&(u+=a),{accumWidth:u,lines:i,linesWidths:A}}var k0="__zr_style_"+Math.round(Math.random()*10),fo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ap={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fo[k0]=!0;var qS=["z","z2","invisible"],P3=["invisible"],_n=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ot(e),a=0;a1e-4){o[0]=r-e,o[1]=t-n,s[0]=r+e,s[1]=t+n;return}if(Tc[0]=Pg(a)*e+r,Tc[1]=Ug(a)*n+t,Ic[0]=Pg(i)*e+r,Ic[1]=Ug(i)*n+t,l(o,Tc,Ic),u(s,Tc,Ic),a=a%_A,a<0&&(a=a+_A),i=i%_A,i<0&&(i=i+_A),a>i&&!A?i+=_A:aa&&(Fc[0]=Pg(h)*e+r,Fc[1]=Ug(h)*n+t,l(o,Fc,o),u(s,Fc,s))}var ee={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},CA=[],SA=[],Yn=[],li=[],Zn=[],$n=[],Rg=Math.min,Hg=Math.max,xA=Math.cos,bA=Math.sin,Ta=Math.abs,N0=Math.PI,yi=N0*2,Og=typeof Float32Array<"u",Tl=[];function kg(r){var t=Math.round(r/N0*1e8)/1e8;return t%2*N0}function d_(r,t){var e=kg(r[0]);e<0&&(e+=yi);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=yi?a=e+yi:t&&e-a>=yi?a=e-yi:!t&&e>a?a=e+(yi-kg(e-a)):t&&e0&&(this._ux=Ta(n/Rv/t)||0,this._uy=Ta(n/Rv/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ee.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=Ta(t-this._xi),a=Ta(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(ee.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var A=n*n+a*a;A>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=A)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){return this._drawPendingPt(),this.addData(ee.C,t,e,n,a,i,A),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,A),this._xi=i,this._yi=A,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(ee.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,A){this._drawPendingPt(),Tl[0]=a,Tl[1]=i,d_(Tl,A),a=Tl[0],i=Tl[1];var o=i-a;return this.addData(ee.A,t,e,n,n,a,o,0,A?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,A),this._xi=xA(i)*n+t,this._yi=bA(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(ee.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ee.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&Og&&(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Yn[0]=Yn[1]=Zn[0]=Zn[1]=Number.MAX_VALUE,li[0]=li[1]=$n[0]=$n[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,A;for(A=0;An||Ta(m)>a||c===e-1)&&(d=Math.sqrt(y*y+m*m),i=p,A=g);break}case ee.C:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++],B=t[c++],C=t[c++];d=AK(i,A,w,_,p,g,B,C,10),i=B,A=C;break}case ee.Q:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++];d=sK(i,A,w,_,p,g,10),i=p,A=g;break}case ee.A:var x=t[c++],S=t[c++],b=t[c++],T=t[c++],F=t[c++],E=t[c++],D=E+F;c+=1,v&&(o=xA(F)*b+x,s=bA(F)*T+S),d=Hg(b,T)*Rg(yi,Math.abs(E)),i=xA(D)*b+x,A=bA(D)*T+S;break;case ee.R:{o=i=t[c++],s=A=t[c++];var L=t[c++],M=t[c++];d=L*2+M*2;break}case ee.Z:{var y=o-i,m=s-A;d=Math.sqrt(y*y+m*m),i=o,A=s;break}}d>=0&&(l[f++]=d,u+=d)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,A=this._len,o,s,l,u,f,c,h=e<1,v,d,p=0,g=0,y,m=0,w,_;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=e*d,!y)))t:for(var B=0;B0&&(t.lineTo(w,_),m=0),C){case ee.M:o=l=n[B++],s=u=n[B++],t.moveTo(l,u);break;case ee.L:{f=n[B++],c=n[B++];var S=Ta(f-l),b=Ta(c-u);if(S>a||b>i){if(h){var T=v[g++];if(p+T>y){var F=(y-p)/T;t.lineTo(l*(1-F)+f*F,u*(1-F)+c*F);break t}p+=T}t.lineTo(f,c),l=f,u=c,m=0}else{var E=S*S+b*b;E>m&&(w=f,_=c,m=E)}break}case ee.C:{var D=n[B++],L=n[B++],M=n[B++],R=n[B++],P=n[B++],O=n[B++];if(h){var T=v[g++];if(p+T>y){var F=(y-p)/T;ji(l,D,M,P,F,CA),ji(u,L,R,O,F,SA),t.bezierCurveTo(CA[1],SA[1],CA[2],SA[2],CA[3],SA[3]);break t}p+=T}t.bezierCurveTo(D,L,M,R,P,O),l=P,u=O;break}case ee.Q:{var D=n[B++],L=n[B++],M=n[B++],R=n[B++];if(h){var T=v[g++];if(p+T>y){var F=(y-p)/T;sf(l,D,M,F,CA),sf(u,L,R,F,SA),t.quadraticCurveTo(CA[1],SA[1],CA[2],SA[2]);break t}p+=T}t.quadraticCurveTo(D,L,M,R),l=M,u=R;break}case ee.A:var G=n[B++],X=n[B++],J=n[B++],At=n[B++],lt=n[B++],Bt=n[B++],_t=n[B++],N=!n[B++],z=J>At?J:At,$=Ta(J-At)>.001,q=lt+Bt,j=!1;if(h){var T=v[g++];p+T>y&&(q=lt+Bt*(y-p)/T,j=!0),p+=T}if($&&t.ellipse?t.ellipse(G,X,J,At,_t,lt,q,N):t.arc(G,X,z,lt,q,N),j)break t;x&&(o=xA(lt)*J+G,s=bA(lt)*At+X),l=xA(q)*J+G,u=bA(q)*At+X;break;case ee.R:o=l=n[B],s=u=n[B+1],f=n[B++],c=n[B++];var ct=n[B++],Q=n[B++];if(h){var T=v[g++];if(p+T>y){var U=y-p;t.moveTo(f,c),t.lineTo(f+Rg(U,ct),c),U-=ct,U>0&&t.lineTo(f+ct,c+Rg(U,Q)),U-=Q,U>0&&t.lineTo(f+Hg(ct-U,0),c+Q),U-=ct,U>0&&t.lineTo(f,c+Hg(Q-U,0));break t}p+=T}t.rect(f,c,ct,Q);break;case ee.Z:if(h){var T=v[g++];if(p+T>y){var F=(y-p)/T;t.lineTo(l*(1-F)+o*F,u*(1-F)+s*F);break t}p+=T}t.closePath(),l=o,u=s}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=ee,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function bi(r,t,e,n,a,i,A){if(a===0)return!1;var o=a,s=0,l=r;if(A>t+o&&A>n+o||Ar+o&&i>e+o||it+f&&u>n+f&&u>i+f&&u>o+f||ur+f&&l>e+f&&l>a+f&&l>A+f||lt+l&&s>n+l&&s>i+l||sr+l&&o>e+l&&o>a+l||oe||u+la&&(a+=Il);var c=Math.atan2(s,o);return c<0&&(c+=Il),c>=n&&c<=a||c+Il>=n&&c+Il<=a}function Ma(r,t,e,n,a,i){if(i>t&&i>n||ia?o:0}var ui=ma.CMD,TA=Math.PI*2,G3=1e-4;function K3(r,t){return Math.abs(r-t)t&&l>n&&l>i&&l>o||l1&&z3(),h=Me(t,n,i,o,on[0]),c>1&&(v=Me(t,n,i,o,on[1]))),c===2?pt&&o>n&&o>i||o=0&&l<=1){for(var u=0,f=Ge(t,n,i,l),c=0;ce||o<-e)return 0;var s=Math.sqrt(e*e-o*o);pr[0]=-s,pr[1]=s;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=TA-1e-4){n=0,a=TA;var u=i?1:-1;return A>=pr[0]+r&&A<=pr[1]+r?u:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=TA,a+=TA);for(var c=0,h=0;h<2;h++){var v=pr[h];if(v+r>A){var d=Math.atan2(o,v),u=i?1:-1;d<0&&(d=TA+d),(d>=n&&d<=a||d+TA>=n&&d+TA<=a)&&(d>Math.PI/2&&d1&&(e||(o+=Ma(s,l,u,f,n,a))),p&&(s=i[v],l=i[v+1],u=s,f=l),d){case ui.M:u=i[v++],f=i[v++],s=u,l=f;break;case ui.L:if(e){if(bi(s,l,i[v],i[v+1],t,n,a))return!0}else o+=Ma(s,l,i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case ui.C:if(e){if(N3(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=W3(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case ui.Q:if(e){if(OM(s,l,i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=X3(s,l,i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case ui.A:var g=i[v++],y=i[v++],m=i[v++],w=i[v++],_=i[v++],B=i[v++];v+=1;var C=!!(1-i[v++]);c=Math.cos(_)*m+g,h=Math.sin(_)*w+y,p?(u=c,f=h):o+=Ma(s,l,c,h,n,a);var x=(n-g)*w/m+g;if(e){if(V3(g,y,w,_,_+B,C,t,x,a))return!0}else o+=Y3(g,y,w,_,_+B,C,x,a);s=Math.cos(_+B)*m+g,l=Math.sin(_+B)*w+y;break;case ui.R:u=s=i[v++],f=l=i[v++];var S=i[v++],b=i[v++];if(c=u+S,h=f+b,e){if(bi(u,f,c,f,t,n,a)||bi(c,f,c,h,t,n,a)||bi(c,h,u,h,t,n,a)||bi(u,h,u,f,t,n,a))return!0}else o+=Ma(c,f,c,h,n,a),o+=Ma(u,h,u,f,n,a);break;case ui.Z:if(e){if(bi(s,l,u,f,t,n,a))return!0}else o+=Ma(s,l,u,f,n,a);s=u,l=f;break}}return!e&&!K3(l,f)&&(o+=Ma(s,l,u,f,n,a)||0),o!==0}function Z3(r,t,e){return kM(r,0,!1,t,e)}function $3(r,t,e,n){return kM(r,t,!0,e,n)}var Ov=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fo),J3={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ap.style)},Ng=ga.concat(["invisible","culling","z","z2","zlevel","parent"]),Mt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(s){e.buildPath(s,e.shape)}),a.silent=!0;var i=a.style;for(var A in n)i[A]!==n[A]&&(i[A]=n[A]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var o=0;o.5?U0:n>.2?UK:P0}else if(e)return P0}return U0},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),A=Uv(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var A=this.path;(i||this.__dirty&ds)&&(A.beginPath(),this.buildPath(A,this.shape,!1),this.pathUpdated()),e=A.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){o.copy(e);var s=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,u??4)}s>1e-10&&(o.width+=l/s,o.height+=l/s,o.x-=l/s/2,o.y-=l/s/2)}return o}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),A=this.style;if(e=a[0],n=a[1],i.contain(e,n)){var o=this.path;if(this.hasStroke()){var s=A.lineWidth,l=A.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),$3(o,s/l,e,n)))return!0}if(this.hasFill())return Z3(o,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ds,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:V(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ds)},t.prototype.createStyle=function(e){return Jd(Ov,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=V({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,A,o){r.prototype._applyStateObj.call(this,e,n,a,i,A,o);var s=!(n&&i),l;if(n&&n.shape?A?i?l=n.shape:(l=V({},a.shape),V(l,n.shape)):(l=V({},i?this.shape:a.shape),V(l,n.shape)):s&&(l=a.shape),l)if(A){this.shape=V({},this.shape);for(var u={},f=Ot(l),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Jd(q3,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var a=Nf(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(_n);Vs.prototype.type="tspan";var j3=gt({x:0,y:0},fo),t5={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ap.style)};function e5(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var ze=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Jd(j3,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=e5(n.image)?n.image:this.__image;if(!i)return 0;var A=e==="width"?"height":"width",o=n[A];return o==null?i[e]:i[e]/i[A]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return t5},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Dt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(_n);ze.prototype.type="image";function r5(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,A=t.r,o,s,l,u;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof A=="number"?o=s=l=u=A:A instanceof Array?A.length===1?o=s=l=u=A[0]:A.length===2?(o=l=A[0],s=u=A[1]):A.length===3?(o=A[0],s=u=A[1],l=A[2]):(o=A[0],s=A[1],l=A[2],u=A[3]):o=s=l=u=0;var f;o+s>a&&(f=o+s,o*=a/f,s*=a/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+l>i&&(f=s+l,s*=i/f,l*=i/f),o+u>i&&(f=o+u,o*=i/f,u*=i/f),r.moveTo(e+o,n),r.lineTo(e+a-s,n),s!==0&&r.arc(e+a-s,n+s,s,-Math.PI/2,0),r.lineTo(e+a,n+i-l),l!==0&&r.arc(e+a-l,n+i-l,l,0,Math.PI/2),r.lineTo(e+u,n+i),u!==0&&r.arc(e+u,n+i-u,u,Math.PI/2,Math.PI),r.lineTo(e,n+o),o!==0&&r.arc(e+o,n+o,o,Math.PI,Math.PI*1.5)}var Cs=Math.round;function NM(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,A=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=A;var o=e&&e.lineWidth;return o&&(Cs(n*2)===Cs(a*2)&&(r.x1=r.x2=to(n,o,!0)),Cs(i*2)===Cs(A*2)&&(r.y1=r.y2=to(i,o,!0))),r}}function VM(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,A=t.height;r.x=n,r.y=a,r.width=i,r.height=A;var o=e&&e.lineWidth;return o&&(r.x=to(n,o,!0),r.y=to(a,o,!0),r.width=Math.max(to(n+i,o,!1)-r.x,i===0?0:1),r.height=Math.max(to(a+A,o,!1)-r.y,A===0?0:1)),r}}function to(r,t,e){if(!t)return r;var n=Cs(r*2);return(n+Cs(t))%2===0?n/2:(n+(e?1:-1))/2}var n5=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),a5={},Nt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new n5},t.prototype.buildPath=function(e,n){var a,i,A,o;if(this.subPixelOptimize){var s=VM(a5,n,this.style);a=s.x,i=s.y,A=s.width,o=s.height,s.r=n.r,n=s}else a=n.x,i=n.y,A=n.width,o=n.height;n.r?r5(e,n):e.rect(a,i,A,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Mt);Nt.prototype.type="rect";var nx={fill:"#000"},ax=2,i5={style:gt({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},ap.style)},Gt=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=nx,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,F=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),E=A.calculatedLineHeight,D=0;D=0&&(D=B[E],D.align==="right");)this._placeToken(D,e,x,g,F,"right",m),S-=D.width,F-=D.width,E--;for(T+=(i-(T-p)-(y-F)-S)/2;b<=E;)D=B[b],this._placeToken(D,e,x,g,T+D.width/2,"center",m),T+=D.width,b++;g+=x}},t.prototype._placeToken=function(e,n,a,i,A,o,s){var l=n.rich[e.styleName]||{};l.text=e.text;var u=e.verticalAlign,f=i+a/2;u==="top"?f=i+e.height/2:u==="bottom"&&(f=i+a-e.height/2);var c=!e.isLineHolder&&Vg(l);c&&this._renderBackground(l,n,o==="right"?A-e.width:o==="center"?A-e.width/2:A,f-e.height/2,e.width,e.height);var h=!!l.backgroundColor,v=e.textPadding;v&&(A=ux(A,o,v),f-=e.height/2-v[0]-e.innerHeight/2);var d=this._getOrCreateChild(Vs),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,w=lx("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),_=sx("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!s&&(!g.autoStroke||y)?(m=ax,g.stroke):null),B=l.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=A,p.y=f,B&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||Ji,p.opacity=ha(l.opacity,n.opacity,1),Ax(p,l),_&&(p.lineWidth=ha(l.lineWidth,n.lineWidth,m),p.lineDash=xt(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=_),w&&(p.fill=w);var C=e.contentWidth,x=e.contentHeight;d.setBoundingRect(new Dt(iu(p.x,C,p.textAlign),ps(p.y,x,p.textBaseline),C,x))},t.prototype._renderBackground=function(e,n,a,i,A,o){var s=e.backgroundColor,l=e.borderWidth,u=e.borderColor,f=s&&s.image,c=s&&!f,h=e.borderRadius,v=this,d,p;if(c||e.lineHeight||l&&u){d=this._getOrCreateChild(Nt),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=i,g.width=A,g.height=o,g.r=h,d.dirtyShape()}if(c){var y=d.style;y.fill=s||null,y.fillOpacity=xt(e.fillOpacity,1)}else if(f){p=this._getOrCreateChild(ze),p.onload=function(){v.dirtyStyle()};var m=p.style;m.image=s.image,m.x=a,m.y=i,m.width=A,m.height=o}if(l&&u){var y=d.style;y.lineWidth=l,y.stroke=u,y.strokeOpacity=xt(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(d||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=ha(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return KM(e)&&(n=[e.fontStyle,e.fontWeight,GM(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Mn(n)||e.textFont||e.font},t}(_n),A5={left:!0,right:1,center:1},o5={top:1,bottom:1,middle:1},ix=["fontStyle","fontWeight","fontSize","fontFamily"];function GM(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?JB+"px":r+"px"}function Ax(r,t){for(var e=0;e=0,i=!1;if(r instanceof Mt){var A=zM(r),o=a&&A.selectFill||A.normalFill,s=a&&A.selectStroke||A.normalStroke;if(Ko(o)||Ko(s)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=V({},n),l=V({},l),l.fill=o):!Ko(l.fill)&&Ko(o)?(i=!0,n=V({},n),l=V({},l),l.fill=T0(o)):!Ko(l.stroke)&&Ko(s)&&(i||(n=V({},n),l=V({},l)),l.stroke=T0(s)),n.style=l}}if(n&&n.z2==null){i||(n=V({},n));var u=r.z2EmphasisLift;n.z2=r.z2+(u??al)}return n}function v5(r,t,e){if(e&&e.z2==null){e=V({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??l5)}return e}function d5(r,t,e){var n=Lt(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:c5(r,["opacity"],t,{opacity:1});e=e||{};var A=e.style||{};return A.opacity==null&&(e=V({},e),A=V({opacity:n?a:i.opacity*.1},A),e.style=A),e}function Gg(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return h5(this,r,t,e);if(r==="blur")return d5(this,r,e);if(r==="select")return v5(this,r,e)}return e}function xo(r){r.stateProxy=Gg;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Gg),e&&(e.stateProxy=Gg)}function dx(r,t){!qM(r,t)&&!r.__highByOuter&&ri(r,WM)}function px(r,t){!qM(r,t)&&!r.__highByOuter&&ri(r,XM)}function Ya(r,t){r.__highByOuter|=1<<(t||0),ri(r,WM)}function Za(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ri(r,XM)}function ZM(r){ri(r,y_)}function m_(r){ri(r,YM)}function $M(r){ri(r,u5)}function JM(r){ri(r,f5)}function qM(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function jM(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var A=p_(i),o=a==="series",s=o?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!o&&n.push(s),A.isBlured&&(s.group.traverse(function(l){YM(l)}),o&&e.push(i)),A.isBlured=!1}),I(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function G0(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(l,u){for(var f=0;f0){var o={dataIndex:A,seriesIndex:e.seriesIndex};i!=null&&(o.dataType=i),t.push(o)}})}),t}function ho(r,t,e){eo(r,!0),ri(r,xo),z0(r,t,e)}function B5(r){eo(r,!1)}function ye(r,t,e,n){n?B5(r):ho(r,t,e)}function z0(r,t,e){var n=St(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var yx=["emphasis","blur","select"],_5={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Je(r,t,e,n){e=e||"itemStyle";for(var a=0;a1&&(A*=Kg(v),o*=Kg(v));var d=(a===i?-1:1)*Kg((A*A*(o*o)-A*A*(h*h)-o*o*(c*c))/(A*A*(h*h)+o*o*(c*c)))||0,p=d*A*h/o,g=d*-o*c/A,y=(r+e)/2+Dc(f)*p-Ec(f)*g,m=(t+n)/2+Ec(f)*p+Dc(f)*g,w=Cx([1,0],[(c-p)/A,(h-g)/o]),_=[(c-p)/A,(h-g)/o],B=[(-1*c-p)/A,(-1*h-g)/o],C=Cx(_,B);if(X0(_,B)<=-1&&(C=Fl),X0(_,B)>=1&&(C=0),C<0){var x=Math.round(C/Fl*1e6)/1e6;C=Fl*2+x%2*Fl}u.addData(l,y,m,A,o,w,C,f,i)}var I5=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,F5=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function E5(r){var t=new ma;if(!r)return t;var e=0,n=0,a=e,i=n,A,o=ma.CMD,s=r.match(I5);if(!s)return t;for(var l=0;lD*D+L*L&&(x=b,S=T),{cx:x,cy:S,x0:-u,y0:-f,x1:x*(a/_-1),y1:S*(a/_-1)}}function R5(r){var t;if(K(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function H5(r,t){var e,n=Au(t.r,0),a=Au(t.r0||0,0),i=n>0,A=a>0;if(!(!i&&!A)){if(i||(n=a,a=0),a>n){var o=n;n=a,a=o}var s=t.startAngle,l=t.endAngle;if(!(isNaN(s)||isNaN(l))){var u=t.cx,f=t.cy,c=!!t.clockwise,h=xx(l-s),v=h>zg&&h%zg;if(v>Fn&&(h=v),!(n>Fn))r.moveTo(u,f);else if(h>zg-Fn)r.moveTo(u+n*Wo(s),f+n*IA(s)),r.arc(u,f,n,s,l,!c),a>Fn&&(r.moveTo(u+a*Wo(l),f+a*IA(l)),r.arc(u,f,a,l,s,c));else{var d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0,C=void 0,x=void 0,S=void 0,b=void 0,T=void 0,F=void 0,E=void 0,D=void 0,L=n*Wo(s),M=n*IA(s),R=a*Wo(l),P=a*IA(l),O=h>Fn;if(O){var G=t.cornerRadius;G&&(e=R5(G),d=e[0],p=e[1],g=e[2],y=e[3]);var X=xx(n-a)/2;if(m=Jn(X,g),w=Jn(X,y),_=Jn(X,d),B=Jn(X,p),S=C=Au(m,w),b=x=Au(_,B),(C>Fn||x>Fn)&&(T=n*Wo(l),F=n*IA(l),E=a*Wo(s),D=a*IA(s),hFn){var $=Jn(g,S),q=Jn(y,S),j=Lc(E,D,L,M,n,$,c),ct=Lc(T,F,R,P,n,q,c);r.moveTo(u+j.cx+j.x0,f+j.cy+j.y0),S0&&r.arc(u+j.cx,f+j.cy,$,tr(j.y0,j.x0),tr(j.y1,j.x1),!c),r.arc(u,f,n,tr(j.cy+j.y1,j.cx+j.x1),tr(ct.cy+ct.y1,ct.cx+ct.x1),!c),q>0&&r.arc(u+ct.cx,f+ct.cy,q,tr(ct.y1,ct.x1),tr(ct.y0,ct.x0),!c))}else r.moveTo(u+L,f+M),r.arc(u,f,n,s,l,!c);if(!(a>Fn)||!O)r.lineTo(u+R,f+P);else if(b>Fn){var $=Jn(d,b),q=Jn(p,b),j=Lc(R,P,T,F,a,-q,c),ct=Lc(L,M,E,D,a,-$,c);r.lineTo(u+j.cx+j.x0,f+j.cy+j.y0),b0&&r.arc(u+j.cx,f+j.cy,q,tr(j.y0,j.x0),tr(j.y1,j.x1),!c),r.arc(u,f,a,tr(j.cy+j.y1,j.cx+j.x1),tr(ct.cy+ct.y1,ct.cx+ct.x1),c),$>0&&r.arc(u+ct.cx,f+ct.cy,$,tr(ct.y1,ct.x1),tr(ct.y0,ct.x0),!c))}else r.lineTo(u+R,f+P),r.arc(u,f,a,l,s,c)}r.closePath()}}}var O5=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),xr=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new O5},t.prototype.buildPath=function(e,n){H5(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Mt);xr.prototype.type="sector";var k5=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Kf=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new k5},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,A,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,A,!0)},t}(Mt);Kf.prototype.type="ring";function N5(r,t,e,n){var a=[],i=[],A=[],o=[],s,l,u,f;if(n){u=[1/0,1/0],f=[-1/0,-1/0];for(var c=0,h=r.length;c=2){if(n){var i=N5(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var A=a.length,o=0;o<(e?A:A-1);o++){var s=i[o*2],l=i[o*2+1],u=a[(o+1)%A];r.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var o=1,f=a.length;oEA[1]){if(o=!1,i)return o;var u=Math.abs(EA[0]-FA[1]),f=Math.abs(FA[0]-EA[1]);Math.min(u,f)>a.len()&&(u0){var f=u.duration,c=u.delay,h=u.easing,v={duration:f,delay:c||0,easing:h,done:i,force:!!i||!!A,setToFinal:!l,scope:r,during:A};o?t.animateFrom(e,v):t.animateTo(e,v)}else t.stopAnimation(),!o&&t.attr(e),A&&A(1),i&&i()}function zt(r,t,e,n,a,i){C_("update",r,t,e,n,a,i)}function ue(r,t,e,n,a,i){C_("enter",r,t,e,n,a,i)}function Qs(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Ix(r){return!r.isGroup}function ez(r){return r.shape!=null}function Xf(r,t,e){if(!r||!t)return;function n(A){var o={};return A.traverse(function(s){Ix(s)&&s.anid&&(o[s.anid]=s)}),o}function a(A){var o={x:A.x,y:A.y,rotation:A.rotation};return ez(A)&&(o.shape=V({},A.shape)),o}var i=n(r);t.traverse(function(A){if(Ix(A)&&A.anid){var o=i[A.anid];if(o){var s=a(A);A.attr(a(o)),zt(A,s,e,St(A).dataIndex)}}})}function hU(r,t){return Y(r,function(e){var n=e[0];n=Vv(n,t.x),n=Gv(n,t.x+t.width);var a=e[1];return a=Vv(a,t.y),a=Gv(a,t.y+t.height),[n,a]})}function rz(r,t){var e=Vv(r.x,t.x),n=Gv(r.x+r.width,t.x+t.width),a=Vv(r.y,t.y),i=Gv(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Yf(r,t,e){var n=V({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),gt(a,e),new ze(n)):up(r.replace("path://",""),n,e,"center")}function ou(r,t,e,n,a){for(var i=0,A=a[a.length-1];i1)return!1;var p=Wg(h,v,u,f)/c;return!(p<0||p>1)}function Wg(r,t,e,n){return r*n-e*t}function nz(r){return r<=1e-6&&r>=-1e-6}function Al(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=nt(t)?{formatter:t}:t,i=e.mainType,A=e.componentIndex,o={componentType:i,name:n,$vars:["name"]};o[i+"Index"]=A;var s=r.formatterParamsExtra;s&&I(Ot(s),function(u){st(o,u)||(o[u]=s[u],o.$vars.push(u))});var l=St(r.el);l.componentMainType=i,l.componentIndex=A,l.tooltipConfig={name:n,option:gt({content:n,encodeHTMLContent:!0,formatterParams:o},a)}}function Fx(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function lA(r,t){if(r)if(K(r))for(var e=0;e=0&&o.push(s)}),o}}function uA(r,t){return Et(Et({},r,!0),t,!0)}const dz={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:". "}}}},pz={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 zv="ZH",b_="EN",Ms=b_,iv={},T_={},wU=Pt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ms).toUpperCase();return r.indexOf(zv)>-1?zv:Ms}():Ms;function BU(r,t){r=r.toUpperCase(),T_[r]=new Yt(t),iv[r]=t}function gz(r){if(nt(r)){var t=iv[r.toUpperCase()]||{};return r===zv||r===b_?wt(t):Et(wt(t),wt(iv[Ms]),!1)}else return Et(wt(r),wt(iv[Ms]),!1)}function $0(r){return T_[r]}function yz(){return T_[Ms]}BU(b_,dz);BU(zv,pz);var I_=1e3,F_=I_*60,ku=F_*60,vn=ku*24,Mx=vn*365,su={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Uc="{yyyy}-{MM}-{dd}",Ux={year:"{yyyy}",month:"{yyyy}-{MM}",day:Uc,hour:Uc+" "+su.hour,minute:Uc+" "+su.minute,second:Uc+" "+su.second,millisecond:su.none},Zg=["year","month","day","hour","minute","second","millisecond"],_U=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function fi(r,t){return r+="","0000".substr(0,t-r.length)+r}function Us(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function mz(r){return r===Us(r)}function wz(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function hp(r,t,e,n){var a=ya(r),i=a[E_(e)](),A=a[Ps(e)]()+1,o=Math.floor((A-1)/3)+1,s=a[vp(e)](),l=a["get"+(e?"UTC":"")+"Day"](),u=a[pf(e)](),f=(u-1)%12+1,c=a[dp(e)](),h=a[pp(e)](),v=a[gp(e)](),d=u>=12?"pm":"am",p=d.toUpperCase(),g=n instanceof Yt?n:$0(n||wU)||yz(),y=g.getModel("time"),m=y.get("month"),w=y.get("monthAbbr"),_=y.get("dayOfWeek"),B=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,fi(i%100+"",2)).replace(/{Q}/g,o+"").replace(/{MMMM}/g,m[A-1]).replace(/{MMM}/g,w[A-1]).replace(/{MM}/g,fi(A,2)).replace(/{M}/g,A+"").replace(/{dd}/g,fi(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,B[l]).replace(/{e}/g,l+"").replace(/{HH}/g,fi(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,fi(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,fi(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,fi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,fi(v,3)).replace(/{S}/g,v+"")}function Bz(r,t,e,n,a){var i=null;if(nt(e))i=e;else if(vt(e))i=e(r.value,t,{level:r.level});else{var A=V({},su);if(r.level>0)for(var o=0;o=0;--o)if(s[l]){i=s[l];break}i=i||A.none}if(K(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return hp(new Date(r.value),i,a,n)}function CU(r,t){var e=ya(r),n=e[Ps(t)]()+1,a=e[vp(t)](),i=e[pf(t)](),A=e[dp(t)](),o=e[pp(t)](),s=e[gp(t)](),l=s===0,u=l&&o===0,f=u&&A===0,c=f&&i===0,h=c&&a===1,v=h&&n===1;return v?"year":h?"month":c?"day":f?"hour":u?"minute":l?"second":"millisecond"}function Px(r,t,e){var n=Kt(r)?ya(r):r;switch(t=t||CU(r,e),t){case"year":return n[E_(e)]();case"half-year":return n[Ps(e)]()>=6?1:0;case"quarter":return Math.floor((n[Ps(e)]()+1)/4);case"month":return n[Ps(e)]();case"day":return n[vp(e)]();case"half-day":return n[pf(e)]()/24;case"hour":return n[pf(e)]();case"minute":return n[dp(e)]();case"second":return n[pp(e)]();case"millisecond":return n[gp(e)]()}}function E_(r){return r?"getUTCFullYear":"getFullYear"}function Ps(r){return r?"getUTCMonth":"getMonth"}function vp(r){return r?"getUTCDate":"getDate"}function pf(r){return r?"getUTCHours":"getHours"}function dp(r){return r?"getUTCMinutes":"getMinutes"}function pp(r){return r?"getUTCSeconds":"getSeconds"}function gp(r){return r?"getUTCMilliseconds":"getMilliseconds"}function _z(r){return r?"setUTCFullYear":"setFullYear"}function SU(r){return r?"setUTCMonth":"setMonth"}function xU(r){return r?"setUTCDate":"setDate"}function bU(r){return r?"setUTCHours":"setHours"}function TU(r){return r?"setUTCMinutes":"setMinutes"}function IU(r){return r?"setUTCSeconds":"setSeconds"}function FU(r){return r?"setUTCMilliseconds":"setMilliseconds"}function EU(r){if(!xM(r))return nt(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function DU(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ll=n_;function J0(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(u){return u&&Mn(u)?u:"-"}function i(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var A=t==="time",o=r instanceof Date;if(A||o){var s=A?ya(r):r;if(isNaN(+s)){if(o)return"-"}else return hp(s,n,e)}if(t==="ordinal")return d0(r)?a(r):Kt(r)&&i(r)?r+"":"-";var l=Xa(r);return i(l)?EU(l):d0(r)?a(r):typeof r=="boolean"?r+"":"-"}var Rx=["a","b","c","d","e","f","g"],$g=function(r,t){return"{"+r+(t??"")+"}"};function LU(r,t,e){K(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var A=e.markerId||"markerX";return{renderMode:i,content:"{"+A+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function bo(r,t){return t=t||"transparent",nt(r)?r:yt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Wv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Av=I,QU=["left","right","top","bottom","width","height"],ro=[["width","left","right"],["height","top","bottom"]];function D_(r,t,e,n,a){var i=0,A=0;n==null&&(n=1/0),a==null&&(a=1/0);var o=0;t.eachChild(function(s,l){var u=s.getBoundingRect(),f=t.childAt(l+1),c=f&&f.getBoundingRect(),h,v;if(r==="horizontal"){var d=u.width+(c?-c.x+u.x:0);h=i+d,h>n||s.newline?(i=0,h=d,A+=o+e,o=u.height):o=Math.max(o,u.height)}else{var p=u.height+(c?-c.y+u.y:0);v=A+p,v>a||s.newline?(i+=o+e,A=0,v=p,o=u.width):o=Math.max(o,u.width)}s.newline||(s.x=i,s.y=A,s.markRedraw(),r==="horizontal"?i=h+e:A=v+e)})}var po=D_;bt(D_,"vertical");bt(D_,"horizontal");function xz(r,t,e){var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(o)||isNaN(parseFloat(r.right)))&&(o=n),(isNaN(A)||isNaN(parseFloat(r.top)))&&(A=0),(isNaN(s)||isNaN(parseFloat(r.bottom)))&&(s=a),e=ll(e||0),{width:Math.max(o-i-e[1]-e[3],0),height:Math.max(s-A-e[0]-e[2],0)}}function Qe(r,t,e){e=ll(e||0);var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a),l=et(r.width,n),u=et(r.height,a),f=e[2]+e[0],c=e[1]+e[3],h=r.aspect;switch(isNaN(l)&&(l=n-o-c-i),isNaN(u)&&(u=a-s-f-A),h!=null&&(isNaN(l)&&isNaN(u)&&(h>n/a?l=n*.8:u=a*.8),isNaN(l)&&(l=h*u),isNaN(u)&&(u=l/h)),isNaN(i)&&(i=n-o-l-c),isNaN(A)&&(A=a-s-u-f),r.left||r.right){case"center":i=n/2-l/2-e[3];break;case"right":i=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":A=a/2-u/2-e[0];break;case"bottom":A=a-u-f;break}i=i||0,A=A||0,isNaN(l)&&(l=n-c-i-(o||0)),isNaN(u)&&(u=a-f-A-(s||0));var v=new Dt(i+e[3],A+e[0],l,u);return v.margin=e,v}function yp(r,t,e,n,a,i){var A=!a||!a.hv||a.hv[0],o=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!A&&!o)return!1;var l;if(s==="raw")l=r.type==="group"?new Dt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var u=r.getLocalTransform();l=l.clone(),l.applyTransform(u)}var f=Qe(gt({width:l.width,height:l.height},t),e,n),c=A?f.x-l.x:0,h=o?f.y-l.y:0;return s==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function bz(r,t){return r[ro[t][0]]!=null||r[ro[t][1]]!=null&&r[ro[t][2]]!=null}function gf(r){var t=r.layoutMode||r.constructor.layoutMode;return yt(t)?t:t?{type:t}:null}function eA(r,t,e){var n=e&&e.ignoreSize;!K(n)&&(n=[n,n]);var a=A(ro[0],0),i=A(ro[1],1);l(ro[0],r,a),l(ro[1],r,i);function A(u,f){var c={},h=0,v={},d=0,p=2;if(Av(u,function(m){v[m]=r[m]}),Av(u,function(m){o(t,m)&&(c[m]=v[m]=t[m]),s(c,m)&&h++,s(v,m)&&d++}),n[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g=0;s--)o=Et(o,a[s],!0);n.defaultOption=o}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Vf(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Yt);UM(Ht,Yt);rp(Ht);hz(Ht);vz(Ht,Iz);function Iz(r){var t=[];return I(Ht.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return sa(e).main}),r!=="dataset"&&Lt(t,"dataset")<=0&&t.unshift("dataset"),t}var UU="";typeof navigator<"u"&&(UU=navigator.platform||"");var Xo="rgba(0, 0, 0, 0.2)";const Fz={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Xo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Xo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Xo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Xo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Xo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Xo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:UU.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 PU=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Sn="original",ur="arrayRows",xn="objectRows",wa="keyedColumns",Ki="typedArray",RU="unknown",va="column",fl="row",We={Must:1,Might:2,Not:3},HU=Vt();function Ez(r){HU(r).datasetMap=ft()}function OU(r,t,e){var n={},a=Q_(t);if(!a||!r)return n;var i=[],A=[],o=t.ecModel,s=HU(o).datasetMap,l=a.uid+"_"+e.seriesLayoutBy,u,f;r=r.slice(),I(r,function(d,p){var g=yt(d)?d:r[p]={name:d};g.type==="ordinal"&&u==null&&(u=p,f=v(g)),n[g.name]=[]});var c=s.get(l)||s.set(l,{categoryWayDim:f,valueWayDim:0});I(r,function(d,p){var g=d.name,y=v(d);if(u==null){var m=c.valueWayDim;h(n[g],m,y),h(A,m,y),c.valueWayDim+=y}else if(u===p)h(n[g],0,y),h(i,0,y);else{var m=c.categoryWayDim;h(n[g],m,y),h(A,m,y),c.categoryWayDim+=y}});function h(d,p,g){for(var y=0;yt)return r[n];return r[e-1]}function VU(r,t,e,n,a,i,A){i=i||r;var o=t(i),s=o.paletteIdx||0,l=o.paletteNameMap=o.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var u=A==null||!n?e:Uz(n,A);if(u=u||e,!(!u||!u.length)){var f=u[s];return a&&(l[a]=f),o.paletteIdx=(s+1)%u.length,f}}function Pz(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Pc,El,Ox,kx="\0_ec_inner",Rz=1,U_=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,A,o){i=i||{},this.option=null,this._theme=new Yt(i),this._locale=new Yt(A),this._optionManager=o},t.prototype.setOption=function(e,n,a){var i=Gx(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Gx(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var A=i.mountOption(e==="recreate");!this.option||e==="recreate"?Ox(this,A):(this.restoreData(),this._mergeOption(A,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var o=i.getTimelineOption(this);o&&(a=!0,this._mergeOption(o,n))}if(!e||e==="recreate"||e==="media"){var s=i.getMediaOption(this);s.length&&I(s,function(l){a=!0,this._mergeOption(l,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,A=this._componentsCount,o=[],s=ft(),l=n&&n.replaceMergeMainTypeMap;Ez(this),I(e,function(f,c){f!=null&&(Ht.hasClass(c)?c&&(o.push(c),s.set(c,!0)):a[c]=a[c]==null?wt(f):Et(a[c],f,!0))}),l&&l.each(function(f,c){Ht.hasClass(c)&&!s.get(c)&&(o.push(c),s.set(c,!0))}),Ht.topologicalTravel(o,Ht.getAllClassMainTypes(),u,this);function u(f){var c=Qz(this,f,qt(e[f])),h=i.get(f),v=h?l&&l.get(f)?"replaceMerge":"normalMerge":"replaceAll",d=EM(h,c,v);s3(d,f,Ht),a[f]=null,i.set(f,null),A.set(f,0);var p=[],g=[],y=0,m;I(d,function(w,_){var B=w.existing,C=w.newOption;if(!C)B&&(B.mergeOption({},this),B.optionUpdated({},!1));else{var x=f==="series",S=Ht.getClass(f,w.keyInfo.subType,!x);if(!S)return;if(f==="tooltip"){if(m)return;m=!0}if(B&&B.constructor===S)B.name=w.keyInfo.name,B.mergeOption(C,this),B.optionUpdated(C,!1);else{var b=V({componentIndex:_},w.keyInfo);B=new S(C,this,this,b),V(B,b),w.brandNew&&(B.__requireNewView=!0),B.init(C,this,this),B.optionUpdated(null,!0)}}B?(p.push(B.option),g.push(B),y++):(p.push(void 0),g.push(void 0))},this),a[f]=p,i.set(f,g),A.set(f,y),f==="series"&&Pc(this)}this._seriesIndices||Pc(this)},t.prototype.getOption=function(){var e=wt(this.option);return I(e,function(n,a){if(Ht.hasClass(a)){for(var i=qt(n),A=i.length,o=!1,s=A-1;s>=0;s--)i[s]&&!cf(i[s])?o=!0:(i[s]=null,!o&&A--);i.length=A,e[a]=i}}),delete e[kx],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var A=0;A=t:e==="max"?r<=t:r===t}function Wz(r,t){return r.join(",")===t.join(",")}var Tn=I,yf=yt,Kx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function qg(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Kx.length;e=0;p--){var g=r[p];if(o||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(s==="all"||s==="positive"&&y>0||s==="negative"&&y<0||s==="samesign"&&c>=0&&y>0||s==="samesign"&&c<=0&&y<0){c=JK(c,y),d=y;break}}}return n[0]=c,n[1]=d,n})})}var mp=function(){function r(t){this.data=t.data||(t.sourceFormat===wa?{}:[]),this.sourceFormat=t.sourceFormat||RU,this.seriesLayoutBy=t.seriesLayoutBy||va,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nd&&(d=m)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};Jx=(t={},t[ur+"_"+va]={pure:!0,appendData:i},t[ur+"_"+fl]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[xn]={pure:!0,appendData:i},t[wa]={pure:!0,appendData:function(A){var o=this._data;I(A,function(s,l){for(var u=o[l]||(o[l]=[]),f=0;f<(s||[]).length;f++)u.push(s[f])})}},t[Sn]={appendData:i},t[Ki]={persistent:!1,pure:!0,appendData:function(A){this._data=A},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(A){for(var o=0;o=0&&(d=A.interpolatedValue[p])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return Ks(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function eb(r){var t,e;return yt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Nu(r){return new lW(r)}var lW=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var A=u(this._modBy),o=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;(A!==s||o!==l)&&(i="reset");function u(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=s,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?o:A}};return i;function A(){return t=r?null:st},gte:function(r,t){return r>=t}},fW=function(){function r(t,e){if(!Kt(e)){var n="";Xt(n)}this._opFn=jU[t],this._rvalFloat=Xa(e)}return r.prototype.evaluate=function(t){return Kt(t)?this._opFn(t,this._rvalFloat):this._opFn(Xa(t),this._rvalFloat)},r}(),t2=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=Kt(t)?t:Xa(t),a=Kt(e)?e:Xa(e),i=isNaN(n),A=isNaN(a);if(i&&(n=this._incomparable),A&&(a=this._incomparable),i&&A){var o=nt(t),s=nt(e);o&&(n=s?t:0),s&&(a=o?e:0)}return na?-this._resultLT:0},r}(),cW=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Xa(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Xa(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function hW(r,t){return r==="eq"||r==="ne"?new cW(r==="eq",t):st(jU,r)?new fW(r,t):null}var vW=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return zi(t,e)},r}();function dW(r,t){var e=new vW,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,A="";r.seriesLayoutBy!==va&&Xt(A);var o=[],s={},l=r.dimensionsDefine;if(l)I(l,function(d,p){var g=d.name,y={index:p,name:g,displayName:d.displayName};if(o.push(y),g!=null){var m="";st(s,g)&&Xt(m),s[g]=y}});else for(var u=0;u65535?CW:SW}function Yo(){return[1/0,-1/0]}function xW(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function ab(r,t,e,n,a){var i=n2[e||"float"];if(a){var A=r[t],o=A&&A.length;if(o!==n){for(var s=new i(n),l=0;lp[1]&&(p[1]=d)}return this._rawCount=this._count=s,{start:o,end:s}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,A=this._dimensions,o=A.length,s=this._rawExtent,l=Y(A,function(y){return y.property}),u=0;ug[1]&&(g[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=A-1;else return A}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],A=[];if(!i)return A;n==null&&(n=1/0);for(var o=1/0,s=-1,l=0,u=0,f=this.count();u=0&&s<0)&&(o=v,s=h,l=0),h===s&&(A[l++]=u))}return A.length=l,A},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=c||isNaN(y))&&(s[l++]=d),d++}v=!0}else if(i===2){for(var p=h[a[0]],m=h[a[1]],w=t[a[1]][0],_=t[a[1]][1],g=0;g=f&&y<=c||isNaN(y))&&(B>=w&&B<=_||isNaN(B))&&(s[l++]=d),d++}v=!0}}if(!v)if(i===1)for(var g=0;g=f&&y<=c||isNaN(y))&&(s[l++]=C)}else for(var g=0;gt[b][1])&&(x=!1)}x&&(s[l++]=e.getRawIndex(g))}return lg[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],A=this.count(),o=0,s=Math.floor(1/e),l=this.getRawIndex(0),u,f,c,h=new(Ll(this._rawCount))(Math.min((Math.ceil(A/s)+2)*2,A));h[o++]=l;for(var v=1;vu&&(u=f,c=w)}T>0&&Tu-v&&(s=u-v,o.length=s);for(var d=0;df[1]&&(f[1]=g),c[h++]=y}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,A=this.count();is&&(s=f)}return A=[o,s],this._extent[t]=A,A},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return zi(e[i],this._dimensions[i])}ey={arrayRows:t,objectRows:function(e,n,a,i){return zi(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var A=e&&(e.value==null?e:e.value);return zi(A instanceof Array?A[i]:A,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),a2=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(Rc(t)){var A=t,o=void 0,s=void 0,l=void 0;if(n){var u=e[0];u.prepareSource(),l=u.getSource(),o=l.data,s=l.sourceFormat,i=[u._getVersionSign()]}else o=A.get("data",!0),s=Rr(o)?Ki:Sn,i=[];var f=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},h=xt(f.seriesLayoutBy,c.seriesLayoutBy)||null,v=xt(f.sourceHeader,c.sourceHeader),d=xt(f.dimensions,c.dimensions),p=h!==c.seriesLayoutBy||!!v!=!!c.sourceHeader||d;a=p?[tw(o,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},s)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var m=g.get("source",!0);a=[tw(m,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&Ab(i)}var A,o=[],s=[];return I(t,function(l){l.prepareSource();var u=l.getSource(a||0),f="";a!=null&&!u&&Ab(f),o.push(u),s.push(l._getVersionSign())}),n?A=BW(n,o,{datasetIndex:e.componentIndex}):a!=null&&(A=[rW(o[0])]),{sourceList:A,upstreamSignList:s}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return T(r.blocks,function(a){var i=PU(a);i>=t&&(t=i+ +(n&&(!i||k0(a)&&!a.noHeader)))}),t}return 0}function Xz(r,t,e,n){var a=t.noHeader,i=Zz(PU(t)),A=[],o=t.blocks||[];Br(!o||K(o)),o=o||[];var s=r.orderMode;if(t.sortBlocks&&s){o=o.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(st(l,s)){var u=new IU(l[s],null);o.sort(function(v,d){return u.evaluate(v.sortParam,d.sortParam)})}else s==="seriesDesc"&&o.reverse()}T(o,function(v,d){var p=t.valueFormatter,g=UU(v)(p?V(V({},r),{valueFormatter:p}):r,v,d>0?i.html:0,n);g!=null&&A.push(g)});var f=r.renderMode==="richText"?A.join(i.richText):N0(A.join(""),a?e:i.html);if(a)return f;var c=U0(t.header,"ordinal",r.useUTC),h=MU(n,r.renderMode).nameStyle;return r.renderMode==="richText"?RU(r,c,h)+i.richText+f:N0('
'+Dr(c)+"
"+f,e)}function Yz(r,t,e,n){var a=r.renderMode,i=t.noName,A=t.noValue,o=!t.markerType,s=t.name,l=r.useUTC,u=t.valueFormatter||r.valueFormatter||function(w){return w=K(w)?w:[w],Y(w,function(_,B){return U0(_,K(h)?h[B]:h,l)})};if(!(i&&A)){var f=o?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),c=i?"":U0(s,"ordinal",l),h=t.valueType,v=A?[]:u(t.value,t.dataIndex),d=!o||!i,p=!o&&i,g=MU(n,a),y=g.nameStyle,m=g.valueStyle;return a==="richText"?(o?"":f)+(i?"":RU(r,c,y))+(A?"":qz(r,v,d,p,m)):N0((o?"":f)+(i?"":$z(c,!o,y))+(A?"":Jz(v,d,p,m)),e)}}function Nx(r,t,e,n,a,i){if(r){var A=UU(r),o={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return A(o,r,0,i)}}function Zz(r){return{html:zz[r],richText:Wz[r]}}function N0(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function $z(r,t,e){var n=t?"margin-left:2px":"";return''+Dr(r)+""}function Jz(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=K(r)?r:[r],''+Y(r,function(A){return Dr(A)}).join("  ")+""}function RU(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function qz(r,t,e,n,a){var i=[a],A=n?10:20;return e&&i.push({padding:[0,0,0,A],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(K(t)?t.join(" "):t,i)}function HU(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return go(n)}function OU(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var kg=function(){function r(){this.richTextStyles={},this._nextStyleNameId=tM()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=G3({color:e,type:t,renderMode:n,markerId:a});return nt(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};K(e)?T(e,function(i){return V(n,i)}):V(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function kU(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),A=i.length,o=t.getRawValue(e),s=K(o),l=HU(t,e),u,f,c,h;if(A>1||s&&!A){var v=jz(o,t,e,i,l);u=v.inlineValues,f=v.inlineValueTypes,c=v.blocks,h=v.inlineValues[0]}else if(A){var d=a.getDimensionInfo(i[0]);h=u=Rs(a,e,i[0]),f=d.type}else h=u=s?o[0]:o;var p=JB(t),g=p&&t.name||"",y=a.getName(e),m=n?g:y;return ke("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[ke("nameValue",{markerType:"item",markerColor:l,name:m,noName:!Dn(m),value:u,valueType:f,dataIndex:e})].concat(c||[])})}function jz(r,t,e,n,a){var i=t.getData(),A=ha(r,function(f,c,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),o=[],s=[],l=[];n.length?T(n,function(f){u(Rs(i,e,f),f)}):T(r,u);function u(f,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(A?l.push(ke("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(o.push(f),s.push(h.type)))}return{inlineValues:o,inlineValueTypes:s,blocks:l}}var si=Vt();function Tc(r,t){return r.getName(t)||r.getId(t)}var $h="__universalTransitionEnabled",se=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Qu({count:eW,reset:rW}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=si(this).sourceManager=new QU(this);i.prepareSource();var A=this.getInitialData(e,a);Gx(A,this),this.dataTask.context.data=A,si(this).dataBeforeProcessed=A,Vx(this),this._initSelectedMapFromData(A)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=of(this),i=a?nl(e):{},A=this.subType;Rt.hasClass(A)&&(A+="Series"),Et(e,n.getTheme().get(this.subType)),Et(e,this.getDefaultOption()),co(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Yi(e,i,a)},t.prototype.mergeOption=function(e,n){e=Et(this.option,e,!0),this.fillDataTextStyle(e.data);var a=of(this);a&&Yi(this.option,e,a);var i=si(this).sourceManager;i.dirty(),i.prepareSource();var A=this.getInitialData(e,n);Gx(A,this),this.dataTask.dirty(),this.dataTask.context.data=A,si(this).dataBeforeProcessed=A,Vx(this),this._initSelectedMapFromData(A)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ur(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,A=w_.prototype.getColorFromPalette.call(this,e,n,a);return A||(A=i.getColorFromPalette(e,n,a)),A},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,A=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o=0&&a.push(A)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Tc(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[$h])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,A=this.option,o=A.selectedMode,s=n.length;if(!(!o||!s)){if(o==="series")A.selectedMap="all";else if(o==="multiple"){yt(A.selectedMap)||(A.selectedMap={});for(var l=A.selectedMap,u=0;u0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Rt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Rt);Fe(se,Ap);Fe(se,w_);lM(se,Rt);function Vx(r){var t=r.name;JB(r)||(r.name=tW(r)||t)}function tW(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return T(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function eW(r){return r.model.getRawData().count()}function rW(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),nW}function nW(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Gx(r,t){T(yv(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(aW,t))})}function aW(r,t){var e=V0(r);return e&&e.setOutputEnd((t||this).count()),t}function V0(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var de=function(){function r(){this.group=new _t,this.uid=el("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();jB(de);Vd(de);function il(){var r=Vt();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,A=e.large=!!(n&&n.large),o=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==A||i!==o)&&"reset"}}var NU=Vt(),iW=il(),jt=function(){function r(){this.group=new _t,this.uid=el("viewChart"),this.renderTask=Qu({plan:AW,reset:oW}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&zx(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&zx(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){rA(this.group,t)},r.markUpdateMethod=function(t,e){NU(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Kx(r,t,e){r&&nf(r)&&(t==="emphasis"?Wa:Xa)(r,e)}function zx(r,t,e){var n=ho(r,t),a=t&&t.highlightKey!=null?G5(t.highlightKey):null;n!=null?T(qt(n),function(i){Kx(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Kx(i,e,a)})}jB(jt);Vd(jt);function AW(r){return iW(r.model)}function oW(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,A=r.view,o=a&&NU(a).updateMethod,s=i?"incrementalPrepareRender":o&&A[o]?o:"render";return s!=="render"&&A[s](t,e,n,a),sW[s]}var sW={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Uv="\0__throttleOriginMethod",Wx="\0__throttleRate",Xx="\0__throttleType";function b_(r,t,e){var n,a=0,i=0,A=null,o,s,l,u;t=t||0;function f(){i=new Date().getTime(),A=null,r.apply(s,l||[])}var c=function(){for(var h=[],v=0;v=0?f():A=setTimeout(f,-o),a=n};return c.clear=function(){A&&(clearTimeout(A),A=null)},c.debounceNextCall=function(h){u=h},c}function Al(r,t,e,n){var a=r[t];if(a){var i=a[Uv]||a,A=a[Xx],o=a[Wx];if(o!==e||A!==n){if(e==null||!n)return r[t]=i;a=r[t]=b_(i,e,n==="debounce"),a[Uv]=i,a[Xx]=n,a[Wx]=e}return a}}function lf(r,t){var e=r[t];e&&e[Uv]&&(e.clear&&e.clear(),r[t]=e[Uv])}var Yx=Vt(),Zx={itemStyle:vo(XM,!0),lineStyle:vo(WM,!0)},lW={lineStyle:"stroke",itemStyle:"fill"};function VU(r,t){var e=r.visualStyleMapper||Zx[t];return e||(console.warn("Unknown style type '"+t+"'."),Zx.itemStyle)}function GU(r,t){var e=r.visualDrawType||lW[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var uW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=VU(r,n),A=i(a),o=a.getShallow("decal");o&&(e.setVisual("decal",o),o.dirty=!0);var s=GU(r,n),l=A[s],u=vt(l)?l:null,f=A.fill==="auto"||A.stroke==="auto";if(!A[s]||u||f){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());A[s]||(A[s]=c,e.setVisual("colorFromPalette",!0)),A.fill=A.fill==="auto"||vt(A.fill)?c:A.fill,A.stroke=A.stroke==="auto"||vt(A.stroke)?c:A.stroke}if(e.setVisual("style",A),e.setVisual("drawType",s),!t.isSeriesFiltered(r)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),p=V({},A);p[s]=u(d),h.setItemVisual(v,"style",p)}}}},bl=new Yt,fW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=VU(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(A,o){var s=A.getRawDataItem(o);if(s&&s[n]){bl.option=s[n];var l=a(bl),u=A.ensureUniqueItemVisual(o,"style");V(u,l),bl.option.decal&&(A.setItemVisual(o,"decal",bl.option.decal),bl.option.decal.dirty=!0),i in l&&A.setItemVisual(o,"colorFromPalette",!1)}}:null}}}},cW={performRawSeries:!0,overallReset:function(r){var t=ft();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Yx(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),A=Yx(e).scope,o=e.visualStyleAccessPath||"itemStyle",s=GU(e,o);i.each(function(l){var u=i.getRawIndex(l);a[u]=l}),n.each(function(l){var u=a[l],f=i.getItemVisual(u,"colorFromPalette");if(f){var c=i.ensureUniqueItemVisual(u,"style"),h=n.getName(l)||l+"",v=n.count();c[s]=e.getColorFromPalette(h,A,v)}})}})}},Ic=Math.PI;function hW(r,t){t=t||{},gt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new _t,n=new Nt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Gt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Nt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var A;return t.showSpinner&&(A=new Zd({shape:{startAngle:-Ic/2,endAngle:-Ic/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),A.animateShape(!0).when(1e3,{endAngle:Ic*3/2}).start("circularInOut"),A.animateShape(!0).when(1e3,{startAngle:Ic*3/2}).delay(300).start("circularInOut"),e.add(A)),e.resize=function(){var o=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-s*2-(t.showSpinner&&o?10:0)-o)/2-(t.showSpinner&&o?0:5+o/2)+(t.showSpinner?0:o/2)+(o?0:s),u=r.getHeight()/2;t.showSpinner&&A.setShape({cx:l,cy:u}),i.setShape({x:l-s,y:u-s,width:s*2,height:s*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var KU=function(){function r(t,e,n,a){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,A=i?n.step:null,o=a&&a.modDataCount,s=o!=null?Math.ceil(o/A):null;return{step:A,modBy:s,modDataCount:o}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),A=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),s=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:A,modDataCount:s,large:o}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries(function(a){var i=a.getProgressive(),A=a.uid;n.set(A,{id:A,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;T(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),A="";Br(!(a.reset&&a.overallReset),A),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,A=i.context;A.model=e,A.ecModel=n,A.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,A=this;T(t,function(s,l){if(!(a.visualType&&a.visualType!==s.visualType)){var u=A._stageTaskMap.get(s.uid),f=u.seriesTaskMap,c=u.overallTask;if(c){var h,v=c.agentStubMap;v.each(function(p){o(a,p)&&(p.dirty(),h=!0)}),h&&c.dirty(),A.updatePayload(c,n);var d=A.getPerformArgs(c,a.block);v.each(function(p){p.perform(d)}),c.perform(d)&&(i=!0)}else f&&f.each(function(p,g){o(a,p)&&p.dirty();var y=A.getPerformArgs(p,a.block);y.skip=!s.performRawSeries&&e.isSeriesFiltered(p.context.model),A.updatePayload(p,n),p.perform(y)&&(i=!0)})}});function o(s,l){return s.setDirty&&(!s.dirtyMap||s.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,A=e.seriesTaskMap,o=e.seriesTaskMap=ft(),s=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,a).each(u);function u(f){var c=f.uid,h=o.set(c,A&&A.get(c)||Qu({plan:yW,reset:mW,count:BW}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,A=e.overallTask=e.overallTask||Qu({reset:vW});A.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var o=A.agentStubMap,s=A.agentStubMap=ft(),l=t.seriesType,u=t.getTargetSeries,f=!0,c=!1,h="";Br(!t.createOnAllSeries,h),l?n.eachRawSeriesByType(l,v):u?u(n,a).each(v):(f=!1,T(n.getSeries(),v));function v(d){var p=d.uid,g=s.set(p,o&&o.get(p)||(c=!0,Qu({reset:dW,onDirty:gW})));g.context={model:d,overallProgress:f},g.agent=A,g.__block=f,i._pipe(d,g)}c&&A.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:_W(t)}),t.uid=el("stageHandler"),e&&(t.visualType=e),t},r}();function vW(r){r.overallReset(r.ecModel,r.api,r.payload)}function dW(r){return r.overallProgress&&pW}function pW(){this.agent.dirty(),this.getDownstream().dirty()}function gW(){this.agent&&this.agent.dirty()}function yW(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function mW(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=qt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,n){return zU(n)}):wW}var wW=zU(0);function zU(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&h===l.length-c.length){var v=l.slice(0,h);v!=="data"&&(e.mainType=v,e[c.toLowerCase()]=s,u=!0)}}o.hasOwnProperty(l)&&(n[l]=s,u=!0),u||(a[l]=s)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,A=n.model,o=n.view;if(!A||!o)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,A,"mainType")&&u(s,A,"subType")&&u(s,A,"index","componentIndex")&&u(s,A,"name")&&u(s,A,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,a,i));function u(f,c,h,v){return f[h]==null||c[v||h]===f[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),G0=["symbol","symbolSize","symbolRotate","symbolOffset"],jx=G0.concat(["symbolKeepAspect"]),xW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,A=0;A=0&&YA(s)?s:.5;var l=r.createRadialGradient(A,o,0,A,o,s);return l}function K0(r,t,e){for(var n=t.type==="radial"?kW(r,t,e):OW(r,t,e),a=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Kt(r)?[r]:K(r)?r:null}function I_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&VW(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=Y(e,function(i){return i/a}),n/=a)}return[e,n]}var GW=new ga(!0);function Hv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function tb(r){return typeof r=="string"&&r!=="none"}function Ov(r){var t=r.fill;return t!=null&&t!=="none"}function eb(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function rb(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function z0(r,t,e){var n=t_(t.image,t.__image,e);if(Gd(n)){var a=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Rh),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function KW(r,t,e,n){var a,i=Hv(e),A=Ov(e),o=e.strokePercent,s=o<1,l=!t.path;(!t.silent||s)&&l&&t.createPathProxy();var u=t.path||GW,f=t.__dirty;if(!n){var c=e.fill,h=e.stroke,v=A&&!!c.colorStops,d=i&&!!h.colorStops,p=A&&!!c.image,g=i&&!!h.image,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0;(v||d)&&(B=t.getBoundingRect()),v&&(y=f?K0(r,c,B):t.__canvasFillGradient,t.__canvasFillGradient=y),d&&(m=f?K0(r,h,B):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=f||!t.__canvasFillPattern?z0(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(_=f||!t.__canvasStrokePattern?z0(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?r.fillStyle=y:p&&(w?r.fillStyle=w:A=!1),d?r.strokeStyle=m:g&&(_?r.strokeStyle=_:i=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var S,x;r.setLineDash&&e.lineDash&&(a=I_(t),S=a[0],x=a[1]);var b=!0;(l||f&As)&&(u.setDPR(r.dpr),s?u.setContext(null):(u.setContext(r),b=!1),u.reset(),t.buildPath(u,t.shape,n),u.toStatic(),t.pathUpdated()),b&&u.rebuildPath(r,s?o:1),S&&(r.setLineDash(S),r.lineDashOffset=x),n||(e.strokeFirst?(i&&rb(r,e),A&&eb(r,e)):(A&&eb(r,e),i&&rb(r,e))),S&&r.setLineDash([])}function zW(r,t,e){var n=t.__image=t_(e.image,t.__image,t,t.onload);if(!(!n||!Gd(n))){var a=e.x||0,i=e.y||0,A=t.getWidth(),o=t.getHeight(),s=n.width/n.height;if(A==null&&o!=null?A=o*s:o==null&&A!=null?o=A/s:A==null&&o==null&&(A=n.width,o=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,u=e.sy||0;r.drawImage(n,l,u,e.sWidth,e.sHeight,a,i,A,o)}else if(e.sx&&e.sy){var l=e.sx,u=e.sy,f=A-l,c=o-u;r.drawImage(n,l,u,f,c,a,i,A,o)}else r.drawImage(n,a,i,A,o)}}function WW(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||Ki,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,A=void 0;r.setLineDash&&e.lineDash&&(n=I_(t),i=n[0],A=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=A),e.strokeFirst?(Hv(e)&&r.strokeText(a,e.x,e.y),Ov(e)&&r.fillText(a,e.x,e.y)):(Ov(e)&&r.fillText(a,e.x,e.y),Hv(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var nb=["shadowBlur","shadowOffsetX","shadowOffsetY"],ab=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function JU(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){Mr(r,a),i=!0;var A=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(A)?eo.opacity:A}(n||t.blend!==e.blend)&&(i||(Mr(r,a),i=!0),r.globalCompositeOperation=t.blend||eo.blend);for(var o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[tr]){if(this._disposed){this.id;return}var i,A,o;if(yt(n)&&(a=n.lazyUpdate,i=n.silent,A=n.replaceMerge,o=n.transition,n=n.notMerge),this[tr]=!0,!this._model||n){var s=new oz(this._api),l=this._theme,u=this._model=new B_;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:A},X0);var f={seriesTransition:o,optionChanged:!0};if(a)this[Tr]={silent:i,updateParams:f},this[tr]=!1,this.getZr().wakeUp();else{try{No(this),li.update.call(this,null,f)}catch(c){throw this[Tr]=null,this[tr]=!1,c}this._ssr||this._zr.flush(),this[Tr]=null,this[tr]=!1,Tl.call(this,i),Il.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ut.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ut.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return T(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],A=this;T(n,function(s){a.eachComponent({mainType:s},function(l){var u=A._componentsMap[l.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var o=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(i,function(s){s.group.ignore=!1}),o},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,A=Math.max,o=1/0;if(mb[a]){var s=o,l=o,u=-o,f=-o,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();T(Mu,function(m,w){if(m.group===a){var _=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(mt(e)),B=m.getDom().getBoundingClientRect();s=i(B.left,s),l=i(B.top,l),u=A(B.right,u),f=A(B.bottom,f),c.push({dom:_,left:B.left,top:B.top})}}),s*=h,l*=h,u*=h,f*=h;var v=u-s,d=f-l,p=zi.createCanvas(),g=CS(p,{renderer:n?"svg":"canvas"});if(g.resize({width:v,height:d}),n){var y="";return T(c,function(m){var w=m.left-s,_=m.top-l;y+=''+m.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Nt({shape:{x:0,y:0,width:v,height:d},style:{fill:e.connectedBackgroundColor}})),T(c,function(m){var w=new Ke({style:{x:m.left*h-s,y:m.top*h-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return zg(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return zg(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,A=Tu(a,e);return T(A,function(o,s){s.indexOf("Models")>=0&&T(o,function(l){var u=l.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(n);else if(s==="seriesModels"){var f=this._chartsMap[l.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,l))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=Tu(a,e,{defaultMainType:"series"}),A=i.seriesModel,o=A.getData(),s=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return s!=null?T_(o,s,n):kf(o,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;T(g8,function(n){var a=function(i){var A=e.getModel(),o=i.target,s,l=n==="globalout";if(l?s={}:o&&XA(o,function(v){var d=Ct(v);if(d&&d.dataIndex!=null){var p=d.dataModel||A.getSeriesByIndex(d.seriesIndex);return s=p&&p.getDataParams(d.dataIndex,d.dataType,o)||{},!0}else if(d.eventData)return s=V({},d.eventData),!0},!0),s){var u=s.componentType,f=s.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",f=s.seriesIndex);var c=u&&f!=null&&A.getComponent(u,f),h=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];s.event=i,s.type=n,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:s,model:c,view:h},e.trigger(n,s)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),T(Lu,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),T(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),TW(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&AM(this.getDom(),D_,"");var n=this,a=n._api,i=n._model;T(n._componentsViews,function(A){A.dispose(i,a)}),T(n._chartsViews,function(A){A.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Mu[n.id]},t.prototype.resize=function(e){if(!this[tr]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Tr]&&(i==null&&(i=this[Tr].silent),a=!0,this[Tr]=null),this[tr]=!0;try{a&&No(this),li.update.call(this,{type:"resize",animation:V({duration:0},e&&e.animation)})}catch(A){throw this[tr]=!1,A}this[tr]=!1,Tl.call(this,i),Il.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(yt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Y0[e]){var a=Y0[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=V({},e);return n.type=Lu[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(yt(n)||(n={silent:!!n}),!!kv[e.type]&&this._model){if(this[tr]){this._pendingActions.push(e);return}var a=n.silent;Xg.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Ut.browser.weChat&&this._throttledZrFlush(),Tl.call(this,a),Il.call(this,a)}},t.prototype.updateLabelLayout=function(){Tn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){No=function(f){var c=f._scheduler;c.restorePipelines(f._model),c.prepareStageTasks(),Kg(f,!0),Kg(f,!1),c.plan()},Kg=function(f,c){for(var h=f._model,v=f._scheduler,d=c?f._componentsViews:f._chartsViews,p=c?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,m=0;mc.get("hoverLayerThreshold")&&!Ut.node&&!Ut.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=f._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function A(f,c){var h=f.get("blendMode")||null;c.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function o(f,c){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;c.eachRendered(function(d){return s(d,h,v,-1/0),!0})}}function s(f,c,h,v){var d=f.getTextContent(),p=f.getTextGuideLine(),g=f.isGroup;if(g)for(var y=f.childrenRef(),m=0;m0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xs(g))return;if(g instanceof Mt&&K5(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&a(g)}})}gb=function(f){return new(function(c){H(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return f._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Wa(v,d),Zr(f)},h.prototype.leaveEmphasis=function(v,d){Xa(v,d),Zr(f)},h.prototype.enterBlur=function(v){CM(v),Zr(f)},h.prototype.leaveBlur=function(v){i_(v),Zr(f)},h.prototype.enterSelect=function(v){SM(v),Zr(f)},h.prototype.leaveSelect=function(v){xM(v),Zr(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(gU))(f)},c2=function(f){function c(h,v){for(var d=0;d=0)){wb.push(e);var i=KU.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function y2(r,t){Y0[r]=t}function S8(r,t,e){var n=r8("registerMap");n&&n(r,t,e)}var x8=Oz;bo(F_,uW);bo(sp,fW);bo(sp,cW);bo(F_,xW);bo(sp,bW);bo(A2,t8);p2(mU);g2(i8,mz);y2("default",hW);ma({type:ro,event:ro,update:ro},Be);ma({type:zh,event:zh,update:zh},Be);ma({type:Iu,event:Iu,update:Iu},Be);ma({type:Wh,event:Wh,update:Wh},Be);ma({type:Fu,event:Fu,update:Fu},Be);d2("light",CW);d2("dark",YU);var Bb=[],b8={registerPreprocessor:p2,registerProcessor:g2,registerPostInit:w8,registerPostUpdate:B8,registerUpdateLifecycle:Q_,registerAction:ma,registerCoordinateSystem:_8,registerLayout:C8,registerVisual:bo,registerTransform:x8,registerLoading:y2,registerMap:S8,registerImpl:e8,PRIORITY:v8,ComponentModel:Rt,ComponentView:de,SeriesModel:se,ChartView:jt,registerComponentModel:function(r){Rt.registerClass(r)},registerComponentView:function(r){de.registerClass(r)},registerSeriesModel:function(r){se.registerClass(r)},registerChartView:function(r){jt.registerClass(r)},registerSubTypeDefaulter:function(r,t){Rt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){uK(r,t)}};function Lt(r){if(K(r)){T(r,function(t){Lt(t)});return}Qt(Bb,r)>=0||(Bb.push(r),vt(r)&&(r={install:r}),r.install(b8))}function Fl(r){return r==null?0:r.length||1}function _b(r){return r}var Ya=function(){function r(t,e,n,a,i,A){this._old=t,this._new=e,this._oldKeyGetter=n||_b,this._newKeyGetter=a||_b,this.context=i,this._diffModeMultiple=A==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var A=0;A1){var u=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(u,A)}else l===1?(n[o]=null,this._update&&this._update(s,A)):this._remove&&this._remove(A)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],A=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,A,"_newKeyGetter");for(var o=0;o1&&c===1)this._updateManyToOne&&this._updateManyToOne(u,l),a[s]=null;else if(f===1&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),a[s]=null;else if(f===1&&c===1)this._update&&this._update(u,l),a[s]=null;else if(f>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),a[s]=null;else if(f>1)for(var h=0;h1)for(var o=0;o30}var El=yt,ui=Y,Q8=typeof Int32Array>"u"?Array:Int32Array,L8="e\0\0",Cb=-1,M8=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],U8=["_approximateExtent"],Sb,Mc,Dl,Ql,$g,Uc,Jg,mr=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;w2(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},A=[],o={},s=!1,l={},u=0;u=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,A=this._idList,o=a.getSource().sourceFormat,s=o===mn;if(s&&!a.pure)for(var l=[],u=t;u0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),K(i)?i=i.slice():El(i)&&(i=V({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,El(e)?V(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){El(t)?V(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?V(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;b0(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ui(this.dimensions,this._getDimInfo,this),this.hostModel)),$g(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];vt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(VB(arguments)))})},r.internalField=function(){Sb=function(t){var e=t._invertedIndicesMap;T(e,function(n,a){var i=t._dimInfos[a],A=i.ordinalMeta,o=t._store;if(A){n=e[a]=new Q8(A.categories.length);for(var s=0;s1&&(s+="__ec__"+u),a[e]=s}}}(),r}();function Nf(r,t){__(r)||(r=C_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ft(),i=[],A=R8(r,e,n,t.dimensionsCount),o=t.canOmitUnusedDimensions&&C2(A),s=n===r.dimensionsDefine,l=s?_2(r):B2(n),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(r,A));for(var f=ft(u),c=new EU(A),h=0;h0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function R8(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return T(t,function(i){var A;yt(i)&&(A=i.dimsDef)&&(a=Math.max(a,A.length))}),a}function H8(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var O8=function(){function r(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return r}();function k8(r){var t=r.get("coordinateSystem"),e=new O8(t),n=N8[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var N8={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Te).models[0],i=r.getReferringComponents("yAxis",Te).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),Vo(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Vo(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Te).models[0];t.coordSysDims=["single"],e.set("single",a),Vo(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Te).models[0],i=a.findAxisModel("radiusAxis"),A=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",A),Vo(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Vo(A)&&(n.set("angle",A),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),A=t.coordSysDims=i.dimensions.slice();T(i.parallelAxisIndex,function(o,s){var l=a.getComponent("parallelAxis",o),u=A[s];e.set(u,l),Vo(l)&&(n.set(u,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=s))})}};function Vo(r){return r.get("type")==="category"}function V8(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,A,o;G8(t)?i=t:(A=t.schema,i=A.dimensions,o=t.store);var s=!!(r&&r.get("stack")),l,u,f,c;if(T(i,function(y,m){nt(y)&&(i[m]=y={name:y}),s&&!y.isExtraCoord&&(!n&&!l&&y.ordinalMeta&&(l=y),!u&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(u=y))}),u&&!n&&!l&&(n=!0),u){f="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,v=u.type,d=0;T(i,function(y){y.coordDim===h&&d++});var p={name:f,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:c,coordDim:c,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};A?(o&&(p.storeDimIndex=o.ensureCalculationDimension(c,v),g.storeDimIndex=o.ensureCalculationDimension(f,v)),A.appendCalculationDimension(p),A.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:f}}function G8(r){return!w2(r.schema)}function Zi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function S2(r,t){return Zi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function K8(r,t){var e=r.get("coordinateSystem"),n=Of.get(e),a;return t&&t.coordSysDims&&(a=Y(t.coordSysDims,function(i){var A={name:i},o=t.axisMap.get(i);if(o){var s=o.get("type");A.type=Vv(s)}return A})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function z8(r,t,e){var n,a;return e&&T(r,function(i,A){var o=i.coordDim,s=e.categoryAxisMap.get(o);s&&(n==null&&(n=A),i.ordinalMeta=s.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ri(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=C_(r)):(a=n.getSource(),i=a.sourceFormat===mn);var A=k8(t),o=K8(t,A),s=e.useEncodeDefaulter,l=vt(s)?s:s?bt(hU,o,t):null,u={coordDimensions:o,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},f=Nf(a,u),c=z8(f.dimensions,e.createInvertedIndices,A),h=i?null:n.getSharedDataStore(f),v=V8(t,{schema:f,store:h}),d=new mr(f,t);d.setCalculationInfo(v);var p=c!=null&&W8(a)?function(g,y,m,w){return w===c?m:this.defaultDimValueGetter(g,y,m,w)}:null;return d.hasItemOption=!1,d.initData(i?a:h,null,p),d}function W8(r){if(r.sourceFormat===mn){var t=X8(r.data||[]);return!K($s(t))}}function X8(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Vd(wa);var Y8=0,Z0=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Y8}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&Y(n,Z8);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!nt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},r}();function Z8(r){return yt(r)&&r.value!=null?r.value:r+""}function $0(r){return r.type==="interval"||r.type==="log"}function $8(r,t,e,n){var a={},i=r[1]-r[0],A=a.interval=qL(i/t);e!=null&&An&&(A=a.interval=n);var o=a.intervalPrecision=x2(A),s=a.niceTickExtent=[me(Math.ceil(r[0]/A)*A,o),me(Math.floor(r[1]/A)*A,o)];return J8(s,r),a}function qg(r){var t=Math.pow(10,$B(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,me(e*t)}function x2(r){return aa(r)+2}function xb(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function J8(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),xb(r,0,t),xb(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function lp(r,t){return r>=t[0]&&r<=t[1]}function up(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function fp(r,t){return r*(t[1]-t[0])+t[0]}var cp=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Z0({})),K(a)&&(a=new Z0({categories:Y(a,function(i){return yt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:nt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),lp(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),up(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(fp(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],A=0,o=this._ordinalMeta.categories.length,s=Math.min(o,n.length);A=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(wa);wa.registerClass(cp);var xA=me,Za=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return lp(e,this._extent)},t.prototype.normalize=function(e){return up(e,this._extent)},t.prototype.scale=function(e){return fp(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=x2(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,A=this._intervalPrecision,o=[];if(!n)return o;var s=1e4;a[0]s)return[];var u=o.length?o[o.length-1].value:i[1];return a[1]>u&&(e?o.push({value:xA(u+n,A)}):o.push({value:a[1]})),o},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),A=1;Ai[0]&&h0&&(i=i===null?o:Math.min(i,o))}e[n]=i}}return e}function I2(r){var t=tX(r),e=[];return T(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),A=i.getExtent(),o;if(i.type==="category")o=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var s=i.dim+"_"+i.index,l=t[s],u=Math.abs(A[1]-A[0]),f=i.scale.getExtent(),c=Math.abs(f[1]-f[0]);o=l?u/c*l:u}else{var h=n.getData();o=Math.abs(A[1]-A[0])/h.count()}var v=et(n.get("barWidth"),o),d=et(n.get("barMaxWidth"),o),p=et(n.get("barMinWidth")||(L2(n)?.5:1),o),g=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:o,barWidth:v,barMaxWidth:d,barMinWidth:p,barGap:g,barCategoryGap:y,axisKey:U_(i),stackId:M_(n)})}),F2(e)}function F2(r){var t={};T(r,function(n,a){var i=n.axisKey,A=n.bandWidth,o=t[i]||{bandWidth:A,remainedWidth:A,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},s=o.stacks;t[i]=o;var l=n.stackId;s[l]||o.autoWidthCount++,s[l]=s[l]||{width:0,maxWidth:0};var u=n.barWidth;u&&!s[l].width&&(s[l].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var f=n.barMaxWidth;f&&(s[l].maxWidth=f);var c=n.barMinWidth;c&&(s[l].minWidth=c);var h=n.barGap;h!=null&&(o.gap=h);var v=n.barCategoryGap;v!=null&&(o.categoryGap=v)});var e={};return T(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=n.categoryGap;if(o==null){var s=Ht(i).length;o=Math.max(35-s*4,15)+"%"}var l=et(o,A),u=et(n.gap,1),f=n.remainedWidth,c=n.autoWidthCount,h=(f-l)/(c+(c-1)*u);h=Math.max(h,0),T(i,function(g){var y=g.maxWidth,m=g.minWidth;if(g.width){var w=g.width;y&&(w=Math.min(w,y)),m&&(w=Math.max(w,m)),g.width=w,f-=w+u*w,c--}else{var w=h;y&&yw&&(w=m),w!==h&&(g.width=w,f-=w+u*w,c--)}}),h=(f-l)/(c+(c-1)*u),h=Math.max(h,0);var v=0,d;T(i,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+u)}),d&&(v-=d.width*u);var p=-v/2;T(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:A,offset:p,width:g.width},p+=g.width*(1+u)})}),e}function eX(r,t,e){if(r&&t){var n=r[U_(t)];return n!=null&&e!=null?n[M_(e)]:n}}function E2(r,t){var e=T2(r,t),n=I2(e);T(e,function(a){var i=a.getData(),A=a.coordinateSystem,o=A.getBaseAxis(),s=M_(a),l=n[U_(o)][s],u=l.offset,f=l.width;i.setLayout({bandWidth:l.bandWidth,offset:u,size:f})})}function D2(r){return{seriesType:r,plan:il(),reset:function(t){if(Q2(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),A=e.getDimensionIndex(e.mapDimension(i.dim)),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),f=Zi(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=rX(a,i),v=L2(t),d=t.get("barMinHeight")||0,p=u&&e.getDimensionIndex(u),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(m,w){for(var _=m.count,B=v&&Aa(_*3),C=v&&s&&Aa(_*3),S=v&&Aa(_),x=n.master.getRect(),b=c?x.width:x.height,I,F=w.getStore(),E=0;(I=m.next())!=null;){var D=F.get(f?p:A,I),Q=F.get(o,I),M=h,R=void 0;f&&(R=+D-F.get(A,I));var P=void 0,O=void 0,G=void 0,X=void 0;if(c){var J=n.dataToPoint([D,Q]);if(f){var At=n.dataToPoint([R,Q]);M=At[0]}P=M,O=J[1]+y,G=J[0]-M,X=g,Math.abs(G)0?e:1:e))}var nX=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var o=Pc.length,s=Math.min(nX(Pc,this._approxInterval,0,o),o-1);this._interval=Pc[s][1],this._minLevelUnit=Pc[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Kt(e)?e:+pa(e)},t.prototype.contain=function(e){return lp(this.parse(e),this._extent)},t.prototype.normalize=function(e){return up(this.parse(e),this._extent)},t.prototype.scale=function(e){return fp(e,this._extent)},t.type="time",t}(Za),Pc=[["second",v_],["minute",d_],["hour",Du],["quarter-day",Du*6],["half-day",Du*12],["day",un*1.2],["half-week",un*3.5],["week",un*7],["month",un*31],["quarter",un*95],["half-year",hx/2],["year",hx]];function aX(r,t,e,n){var a=pa(t),i=pa(e),A=function(v){return dx(a,v,n)===dx(i,v,n)},o=function(){return A("year")},s=function(){return o()&&A("month")},l=function(){return s()&&A("day")},u=function(){return l()&&A("hour")},f=function(){return u()&&A("minute")},c=function(){return f()&&A("second")},h=function(){return c()&&A("millisecond")};switch(r){case"year":return o();case"month":return s();case"day":return l();case"hour":return u();case"minute":return f();case"second":return c();case"millisecond":return h()}}function iX(r,t){return r/=un,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function AX(r){var t=30*un;return r/=t,r>6?6:r>3?3:r>2?2:1}function oX(r){return r/=Du,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function bb(r,t){return r/=t?d_:v_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function sX(r){return qL(r)}function lX(r,t,e){var n=new Date(r);switch(Ts(t)){case"year":case"month":n[qM(e)](0);case"day":n[jM(e)](1);case"hour":n[tU(e)](0);case"minute":n[eU(e)](0);case"second":n[rU(e)](0),n[nU(e)](0)}return n.getTime()}function uX(r,t,e,n){var a=1e4,i=$M,A=0;function o(b,I,F,E,D,Q,M){for(var R=new Date(I),P=I,O=R[E]();P1&&Q===0&&F.unshift({value:F[0].value-P})}}for(var Q=0;Q=n[0]&&y<=n[1]&&f++)}var m=(n[1]-n[0])/t;if(f>m*1.5&&c>m/1.5||(l.push(p),f>m||r===i[h]))break}u=[]}}}for(var w=Jt(Y(l,function(b){return Jt(b,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(b){return b.length>0}),_=[],B=w.length-1,h=0;h0;)i*=10;var o=[me(hX(n[0]/i)*i),me(cX(n[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){Uu.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Cn(e)/Cn(this.base),lp(e,this._extent)},t.prototype.normalize=function(e){return e=Cn(e)/Cn(this.base),up(e,this._extent)},t.prototype.scale=function(e){return e=fp(e,this._extent),Rc(this.base,e)},t.type="log",t}(wa),M2=R_.prototype;M2.getMinorTicks=Uu.getMinorTicks;M2.getLabel=Uu.getLabel;function Hc(r,t){return fX(r,aa(t))}wa.registerClass(R_);var vX=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(o=0),o<0&&s<0&&!u&&(s=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(o=c,l=!0),h!=null&&(s=h,u=!0),{min:o,max:s,minFixed:l,maxFixed:u,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[pX[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=dX[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),dX={min:"_determinedMin",max:"_determinedMax"},pX={min:"_dataMin",max:"_dataMax"};function U2(r,t,e){var n=r.rawExtentInfo;return n||(n=new vX(r,t,e),r.rawExtentInfo=n,n)}function Oc(r,t){return t==null?null:$u(t)?NaN:r.parse(t)}function P2(r,t){var e=r.type,n=U2(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,A=t.ecModel;if(A&&e==="time"){var o=T2("bar",A),s=!1;if(T(o,function(f){s=s||f.getBaseAxis()===t.axis}),s){var l=I2(o),u=gX(a,i,t,l);a=u.min,i=u.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function gX(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],A=eX(n,e.axis);if(A===void 0)return{min:r,max:t};var o=1/0;T(A,function(h){o=Math.min(h.offset,o)});var s=-1/0;T(A,function(h){s=Math.max(h.offset+h.width,s)}),o=Math.abs(o),s=Math.abs(s);var l=o+s,u=t-r,f=1-(o+s)/i,c=u/f-u;return t+=c*(s/l),r-=c*(o/l),{min:r,max:t}}function Os(r,t){var e=t,n=P2(r,e),a=n.extent,i=e.get("splitNumber");r instanceof R_&&(r.base=e.get("logBase"));var A=r.type,o=e.get("interval"),s=A==="interval"||A==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),o!=null&&r.setInterval&&r.setInterval(o)}function hp(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new cp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new P_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(wa.getClass(t)||Za)}}function yX(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function sl(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):nt(t)?function(n){return function(a){var i=r.scale.getLabel(a),A=n.replace("{value}",i??"");return A}}(t):vt(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(H_(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function H_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function mX(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof cp?a=e.count():(n=e.getTicks(),a=n.length);var A=r.getLabelModel(),o=sl(r),s,l=1;a>40&&(l=Math.ceil(a/40));for(var u=0;ur[1]&&(r[1]=a[1])})}var Vf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),_X=1e-8;function Ib(r,t){return Math.abs(r-t)<_X}function HA(r,t,e){var n=0,a=r[0];if(!a)return!1;for(var i=1;ia&&(n=A,a=s)}if(n)return SX(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var a=[1/0,1/0],i=[-1/0,-1/0],A=this.geometries;return T(A,function(o){o.type==="polygon"?Fb(o.exterior,a,i,e):T(o.points,function(s){Fb(s,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Dt(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var i=0,A=a.length;i>1^-(o&1),s=s>>1^-(s&1),o+=a,s+=i,a=o,i=s,n.push([o/e,s/e])}return n}function TX(r,t){return r=bX(r),Y(Jt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var A=a.coordinates;i.push(new Eb(A[0],A.slice(1)));break;case"MultiPolygon":T(a.coordinates,function(s){s[0]&&i.push(new Eb(s[0],s.slice(1)))});break;case"LineString":i.push(new Db([a.coordinates]));break;case"MultiLineString":i.push(new Db(a.coordinates))}var o=new O2(n[t||"name"],i,n.cp);return o.properties=n,o})}var cf=Vt();function N2(r,t){var e=Y(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function IX(r){var t=r.getLabelModel().get("customValues");if(t){var e=sl(r);return{labels:N2(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?EX(r):QX(r)}function FX(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:N2(r,e)}:r.type==="category"?DX(r,t):{ticks:Y(r.scale.getTicks(),function(n){return n.value})}}function EX(r){var t=r.getLabelModel(),e=V2(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function V2(r,t){var e=G2(r,"labels"),n=O_(t),a=K2(e,n);if(a)return a;var i,A;return vt(n)?i=X2(r,n):(A=n==="auto"?LX(r):n,i=W2(r,A)),z2(e,n,{labels:i,labelCategoryInterval:A})}function DX(r,t){var e=G2(r,"ticks"),n=O_(t),a=K2(e,n);if(a)return a;var i,A;if((!t.get("show")||r.scale.isBlank())&&(i=[]),vt(n))i=X2(r,n,!0);else if(n==="auto"){var o=V2(r,r.getLabelModel());A=o.labelCategoryInterval,i=Y(o.labels,function(s){return s.tickValue})}else A=n,i=W2(r,A,!0);return z2(e,n,{ticks:i,tickCategoryInterval:A})}function QX(r){var t=r.scale.getTicks(),e=sl(r);return{labels:Y(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function G2(r,t){return cf(r)[t]||(cf(r)[t]=[])}function K2(r,t){for(var e=0;e40&&(o=Math.max(1,Math.floor(A/40)));for(var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l*Math.cos(n)),f=Math.abs(l*Math.sin(n)),c=0,h=0;s<=i[1];s+=o){var v=0,d=0,p=Df(e({value:s}),t.font,"center","top");v=p.width*1.3,d=p.height*1.3,c=Math.max(c,v,7),h=Math.max(h,d,7)}var g=c/u,y=h/f;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var m=Math.max(0,Math.floor(Math.min(g,y))),w=cf(r.model),_=r.getExtent(),B=w.lastAutoInterval,C=w.lastTickCount;return B!=null&&C!=null&&Math.abs(B-m)<=1&&Math.abs(C-A)<=1&&B>m&&w.axisExtent0===_[0]&&w.axisExtent1===_[1]?m=B:(w.lastTickCount=A,w.lastAutoInterval=m,w.axisExtent0=_[0],w.axisExtent1=_[1]),m}function UX(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function W2(r,t,e){var n=sl(r),a=r.scale,i=a.getExtent(),A=r.getLabelModel(),o=[],s=Math.max((t||0)+1,1),l=i[0],u=a.count();l!==0&&s>1&&u/s>2&&(l=Math.round(Math.ceil(l/s)*s));var f=R2(r),c=A.get("showMinLabel")||f,h=A.get("showMaxLabel")||f;c&&l!==i[0]&&d(i[0]);for(var v=l;v<=i[1];v+=s)d(v);h&&v-s!==i[1]&&d(i[1]);function d(p){var g={value:p};o.push(e?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p})}return o}function X2(r,t,e){var n=r.scale,a=sl(r),i=[];return T(n.getTicks(),function(A){var o=n.getLabel(A),s=A.value;t(A.value,o)&&i.push(e?s:{formattedLabel:a(A),rawLabel:o,tickValue:s})}),i}var Qb=[0,1],kn=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return $L(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Lb(n,a.count())),$t(t,Qb,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Lb(n,a.count()));var i=$t(t,n,Qb,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=FX(this,e),a=n.ticks,i=Y(a,function(o){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(o):o),tickValue:o}},this),A=e.get("alignWithLabel");return PX(this,i,A,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=Y(n,function(i){return Y(i,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this)},this);return a},r.prototype.getViewLabels=function(){return IX(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return MX(this)},r}();function Lb(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function PX(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),A,o;if(a===1)t[0].coord=i[0],A=t[1]={coord:i[1]};else{var s=t[a-1].tickValue-t[0].tickValue,l=(t[a-1].coord-t[0].coord)/s;T(t,function(h){h.coord-=l/2});var u=r.scale.getExtent();o=1+u[1]-t[a-1].tickValue,A={coord:t[a-1].coord+l*o},t.push(A)}var f=i[0]>i[1];c(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&c(i[0],t[0].coord)&&t.unshift({coord:i[0]}),c(i[1],A.coord)&&(n?A.coord=i[1]:t.pop()),n&&c(A.coord,i[1])&&t.push({coord:i[1]});function c(h,v){return h=me(h),v=me(v),f?h>v:ha&&(a+=Ll);var h=Math.atan2(o,A);if(h<0&&(h+=Ll),h>=n&&h<=a||h+Ll>=n&&h+Ll<=a)return s[0]=u,s[1]=f,l-e;var v=e*Math.cos(n)+r,d=e*Math.sin(n)+t,p=e*Math.cos(a)+r,g=e*Math.sin(a)+t,y=(v-A)*(v-A)+(d-o)*(d-o),m=(p-A)*(p-A)+(g-o)*(g-o);return y0){t=t/180*Math.PI,Qn.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),It.sub(oa,Qn,Ae),It.sub(na,we,Ae);var e=oa.len(),n=na.len();if(!(e<.001||n<.001)){oa.scale(1/e),na.scale(1/n);var a=oa.dot(na),i=Math.cos(t);if(i1&&It.copy(pr,we),pr.toArray(r[1])}}}}function VX(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Qn.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),It.sub(oa,Ae,Qn),It.sub(na,we,Ae);var n=oa.len(),a=na.len();if(!(n<.001||a<.001)){oa.scale(1/n),na.scale(1/a);var i=oa.dot(t),A=Math.cos(e);if(i=s)It.copy(pr,we);else{pr.scaleAndAdd(na,o/Math.tan(Math.PI/2-u));var f=we.x!==Ae.x?(pr.x-Ae.x)/(we.x-Ae.x):(pr.y-Ae.y)/(we.y-Ae.y);if(isNaN(f))return;f<0?It.copy(pr,Ae):f>1&&It.copy(pr,we)}pr.toArray(r[1])}}}}function ey(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var A=n.get("smooth");A&&A===!0&&(A=.3),i.shape=i.shape||{},A>0&&(i.shape.smooth=A);var o=n.getModel("lineStyle").getLineStyle();a?r.useStyle(o):i.style=o}function GX(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=xi(n[0],n[1]),i=xi(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var A=Math.min(a,i)*e,o=Oh([],n[1],n[0],A/a),s=Oh([],n[1],n[2],A/i),l=Oh([],o,s,.5);r.bezierCurveTo(o[0],o[1],o[0],o[1],l[0],l[1]),r.bezierCurveTo(s[0],s[1],s[0],s[1],n[2][0],n[2][1])}else for(var u=1;u0&&i&&_(-u/A,0,A);var d=r[0],p=r[A-1],g,y;m(),g<0&&B(-g,.8),y<0&&B(y,.8),m(),w(g,y,1),w(y,g,-1),m(),g<0&&C(-g),y<0&&C(y);function m(){g=d.rect[t]-n,y=a-p.rect[t]-p.rect[e]}function w(S,x,b){if(S<0){var I=Math.min(x,-S);if(I>0){_(I*b,0,A);var F=I+S;F<0&&B(-F*b,1)}else B(-S*b,1)}}function _(S,x,b){S!==0&&(l=!0);for(var I=x;I0)for(var F=0;F0;F--){var M=b[F-1]*Q;_(-M,F,A)}}}function C(S){var x=S<0?-1:1;S=Math.abs(S);for(var b=Math.ceil(S/(A-1)),I=0;I0?_(b,0,I+1):_(-b,A-I-1,A),S-=b,S<=0)return}return l}function KX(r,t,e,n){return J2(r,"x","width",t,e,n)}function q2(r,t,e,n){return J2(r,"y","height",t,e,n)}function j2(r){var t=[];r.sort(function(d,p){return p.priority-d.priority});var e=new Dt(0,0,0,0);function n(d){if(!d.ignore){var p=d.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}d.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),Qt(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),zt(n,l,e,s)}else if(n.attr(l),!tl(n).valueAnimation){var f=xt(n.style.opacity,1);n.style.opacity=0,ue(n,{style:{opacity:f}},e,s)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};kc(h,l,Nc),kc(h,n.states.select,Nc)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};kc(v,l,Nc),kc(v,n.states.emphasis,Nc)}zM(n,s,u,e,e)}if(a&&!a.ignore&&!a.invisible){var i=XX(a),A=i.oldLayout,d={points:a.shape.points};A?(a.attr({shape:A}),zt(a,{shape:d},e)):(a.setShape(d),a.style.strokePercent=0,ue(a,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),ny=Vt();function ZX(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=ny(e).labelManager;a||(a=ny(e).labelManager=new YX),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=ny(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var ay=Math.sin,iy=Math.cos,tP=Math.PI,TA=Math.PI*2,$X=180/tP,eP=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){this._add("C",t,e,n,a,i,A)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,A){this.ellipse(t,e,n,n,0,a,i,A)},r.prototype.ellipse=function(t,e,n,a,i,A,o,s){var l=o-A,u=!s,f=Math.abs(l),c=Ei(f-TA)||(u?l>=TA:-l>=TA),h=l>0?l%TA:l%TA+TA,v=!1;c?v=!0:Ei(f)?v=!1:v=h>=tP==!!u;var d=t+n*iy(A),p=e+a*ay(A);this._start&&this._add("M",d,p);var g=Math.round(i*$X);if(c){var y=1/this._p,m=(u?1:-1)*(TA-y);this._add("A",n,a,g,1,+u,t+n*iy(A+m),e+a*ay(A+m)),y>.01&&this._add("A",n,a,g,0,+u,d,p)}else{var w=t+n*iy(o),_=e+a*ay(o);this._add("A",n,a,g,+v,+u,w,_)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,a,i,A,o,s,l){for(var u=[],f=this._p,c=1;c"}function i6(r){return""}function G_(r,t){t=t||{};var e=t.newline?` -`:"";function n(a){var i=a.children,A=a.tag,o=a.attrs,s=a.text;return a6(A,o)+(A!=="style"?Dr(s):s||"")+(i?""+e+Y(i,function(l){return n(l)}).join(e)+e:"")+i6(A)}return n(r)}function A6(r,t,e){e=e||{};var n=e.newline?` -`:"",a=" {"+n,i=n+"}",A=Y(Ht(r),function(s){return s+a+Y(Ht(r[s]),function(l){return l+":"+r[s][l]+";"}).join(n)+i}).join(n),o=Y(Ht(t),function(s){return"@keyframes "+s+a+Y(Ht(t[s]),function(l){return l+a+Y(Ht(t[s][l]),function(u){var f=t[s][l][u];return u==="d"&&(f='path("'+f+'")'),u+":"+f+";"}).join(n)+i}).join(n)+i}).join(n);return!A&&!o?"":[""].join(n)}function j0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Rb(r,t,e,n){return Re("svg","root",{width:r,height:t,xmlns:rP,"xmlns:xlink":nP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var o6=0;function iP(){return o6++}var Hb={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},QA="transform-origin";function s6(r,t,e){var n=V({},r.shape);V(n,t),r.buildPath(e,n);var a=new eP;return a.reset(NL(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function l6(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[QA]=e+"px "+n+"px")}var u6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function AP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function f6(r,t,e){var n=r.shape.paths,a={},i,A;if(T(n,function(s){var l=j0(e.zrId);l.animation=!0,vp(s,{},l,!0);var u=l.cssAnims,f=l.cssNodes,c=Ht(u),h=c.length;if(h){A=c[h-1];var v=u[A];for(var d in v){var p=v[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var g in f){var y=f[g].animation;y.indexOf(A)>=0&&(i=y)}}}),!!i){t.d=!1;var o=AP(a,e);return i.replace(A,o)}}function Ob(r){return nt(r)?Hb[r]?"cubic-bezier("+Hb[r]+")":XB(r)?r:"":""}function vp(r,t,e,n){var a=r.animators,i=a.length,A=[];if(r instanceof s_){var o=f6(r,t,e);if(o)A.push(o);else if(!i)return}else if(!i)return;for(var s={},l=0;l0}).length){var N=AP(C,e);return N+" "+y[0]+" both"}}for(var p in s){var o=d(s[p]);o&&A.push(o)}if(A.length){var g=e.zrId+"-cls-"+iP();e.cssNodes["."+g]={animation:A.join(",")},t.class=g}}function c6(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};kb(n,t,e)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var A=r.style&&r.style.fill,o=r.states.select&&r.states.select.style&&r.states.select.style.fill,s=r.currentStates.indexOf("select")>=0&&o||A;s&&(i=f0(s))}var l=a.lineWidth;if(l){var u=!a.strokeNoScale&&r.transform?r.transform[0]:1;l=l/u}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),l&&(n["stroke-width"]=l),kb(n,t,e)}}function kb(r,t,e,n){var a=JSON.stringify(r),i=e.cssStyleCache[a];i||(i=e.zrId+"-cls-"+iP(),e.cssStyleCache[a]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var hf=Math.round;function oP(r){return r&&nt(r.src)}function sP(r){return r&&vt(r.toDataURL)}function K_(r,t,e,n){e6(function(a,i){var A=a==="fill"||a==="stroke";A&&kL(i)?uP(t,r,a,n):A&&YB(i)?fP(e,r,a,n):A&&i==="none"?r[a]="transparent":r[a]=i},t,e,!1),m6(e,r,n)}function z_(r,t){var e=fK(t);e&&(e.each(function(n,a){n!=null&&(r[(Pb+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[Pb+"silent"]="true"))}function Nb(r){return Ei(r[0]-1)&&Ei(r[1])&&Ei(r[2])&&Ei(r[3]-1)}function h6(r){return Ei(r[4])&&Ei(r[5])}function W_(r,t,e){if(t&&!(h6(t)&&Nb(t))){var n=1e4;r.transform=Nb(t)?"translate("+hf(t[4]*n)/n+" "+hf(t[5]*n)/n+")":MG(t)}}function Vb(r,t,e){for(var n=r.points,a=[],i=0;i"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";Br(c,p),Br(h,p)}else if(c==null||h==null){var g=function(b,I){if(b){var F=b.elm,E=c||I.width,D=h||I.height;b.tag==="pattern"&&(l?(D=1,E/=i.width):u&&(E=1,D/=i.height)),b.attrs.width=E,b.attrs.height=D,F&&(F.setAttribute("width",E),F.setAttribute("height",D))}},y=t_(v,null,r,function(b){s||g(B,b),g(f,b)});y&&y.width&&y.height&&(c=c||y.width,h=h||y.height)}f=Re("image","img",{href:v,width:c,height:h}),A.width=c,A.height=h}else a.svgElement&&(f=mt(a.svgElement),A.width=a.svgWidth,A.height=a.svgHeight);if(f){var m,w;s?m=w=1:l?(w=1,m=A.width/i.width):u?(m=1,w=A.height/i.height):A.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(A.width=m),w!=null&&!isNaN(w)&&(A.height=w);var _=VL(a);_&&(A.patternTransform=_);var B=Re("pattern","",A,[f]),C=G_(B),S=n.patternCache,x=S[C];x||(x=n.zrId+"-p"+n.patternIdx++,S[C]=x,A.id=x,B=n.defs[x]=Re("pattern",x,A,[f])),t[e]=Od(x)}}function w6(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var A={id:i};n[r.id]=i,a[i]=Re("clipPath",i,A,[lP(r,e)])}t["clip-path"]=Od(i)}function zb(r){return document.createTextNode(r)}function OA(r,t,e){r.insertBefore(t,e)}function Wb(r,t){r.removeChild(t)}function Xb(r,t){r.appendChild(t)}function cP(r){return r.parentNode}function hP(r){return r.nextSibling}function Ay(r,t){r.textContent=t}var Yb=58,B6=120,_6=Re("","");function tw(r){return r===void 0}function ta(r){return r!==void 0}function C6(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function nu(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function vf(r){var t,e=r.children,n=r.tag;if(ta(n)){var a=r.elm=aP(n);if(X_(_6,r),K(e))for(t=0;ti?(v=e[s+1]==null?null:e[s+1].elm,vP(r,v,e,a,s)):Wv(r,t,n,i))}function ss(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(X_(r,t),tw(t.text)?ta(n)&&ta(a)?n!==a&&S6(e,n,a):ta(a)?(ta(r.text)&&Ay(e,""),vP(e,null,a,0,a.length-1)):ta(n)?Wv(e,n,0,n.length-1):ta(r.text)&&Ay(e,""):r.text!==t.text&&(ta(n)&&Wv(e,n,0,n.length-1),Ay(e,t.text)))}function x6(r,t){if(nu(r,t))ss(r,t);else{var e=r.elm,n=cP(e);vf(t),n!==null&&(OA(n,t.elm,hP(e)),Wv(n,[r],0,0))}return t}var b6=0,T6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=Zb(),this.configLayer=Zb(),this.storage=e,this._opts=n=V({},n),this.root=t,this._id="zr"+b6++,this._oldVNode=Rb(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=aP("svg");X_(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",x6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Kb(t,j0(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=j0(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var A=[],o=this._bgVNode=I6(n,a,this._backgroundColor,i);o&&A.push(o);var s=t.compress?null:this._mainVNode=Re("g","main",{},[]);this._paintList(e,i,s?s.children:A),s&&A.push(s);var l=Y(Ht(i.defs),function(c){return i.defs[c]});if(l.length&&A.push(Re("defs","defs",{},l)),t.animation){var u=A6(i.cssNodes,i.cssAnims,{newline:!0});if(u){var f=Re("style","stl",{},[],u);A.push(f)}}return Rb(n,a,A,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},G_(this.renderToVNode({animation:xt(t.cssAnimation,!0),emphasis:xt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:xt(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var a=t.length,i=[],A=0,o,s,l=0,u=0;u=0&&!(c&&s&&c[d]===s[d]);d--);for(var p=v-1;p>d;p--)A--,o=i[A-1];for(var g=d+1;g=o)}}for(var f=this.__startIndex;f15)break}}D.prevElClipPaths&&g.restore()};if(y)if(y.length===0)S=p.__endIndex;else for(var b=h.dpr,I=0;I0&&t>a[0]){for(s=0;st);s++);o=n[a[s]]}if(a.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?A.insertBefore(e.dom,l.nextSibling):A.appendChild(e.dom)}else A.firstChild?A.insertBefore(e.dom,A.firstChild):A.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,a=0;a0?Vc:0),this._needsManuallyCompositing),u.__builtin__||kB("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),i=u),a.__dirty&Gr&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=s))}e(s),this.eachBuiltinLayer(function(f,c){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,T(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Et(n[t],e,!0):n[t]=e;for(var a=0;a-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.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}(se);function ks(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Rs(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],A=0;A=0&&n.push(t[i])}return n.join(" ")}var Gf=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;return A.updateData(e,n,a,i),A}return t.prototype._createSymbol=function(e,n,a,i,A){this.removeAll();var o=Ie(e,-1,-1,2,2,null,A);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=P6,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Wa(this.childAt(0))},t.prototype.downplay=function(){Xa(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var A=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=A!==this._symbolType,u=i&&i.disableAnimation;if(l){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(A,e,n,s,f)}else{var c=this.childAt(0);c.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(h):zt(c,h,o,n),Hn(c)}if(this._updateCommon(e,n,s,a,i),l){var c=this.childAt(0);if(!u){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ue(c,h,o,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,A){var o=this.childAt(0),s=e.hostModel,l,u,f,c,h,v,d,p,g;if(i&&(l=i.emphasisItemStyle,u=i.blurItemStyle,f=i.selectItemStyle,c=i.focus,h=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,v=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),m=y.getModel("emphasis");l=m.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),u=y.getModel(["blur","itemStyle"]).getItemStyle(),c=m.get("focus"),h=m.get("blurScope"),v=m.get("disabled"),d=Oe(y),p=m.getShallow("scale"),g=y.getShallow("cursor")}var w=e.getItemVisual(n,"symbolRotate");o.attr("rotation",(w||0)*Math.PI/180||0);var _=xo(e.getItemVisual(n,"symbolOffset"),a);_&&(o.x=_[0],o.y=_[1]),g&&o.attr("cursor",g);var B=e.getItemVisual(n,"style"),C=B.fill;if(o instanceof Ke){var S=o.style;o.useStyle(V({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},B))}else o.__isEmptyBrush?o.useStyle(V({},B)):o.useStyle(B),o.style.decal=null,o.setColor(C,A&&A.symbolInnerColor),o.style.strokeNoScale=!0;var x=e.getItemVisual(n,"liftZ"),b=this._z2;x!=null?b==null&&(this._z2=o.z2,o.z2+=x):b!=null&&(o.z2=b,this._z2=null);var I=A&&A.useNameLabel;Je(o,d,{labelFetcher:s,labelDataIndex:n,defaultText:F,inheritColor:C,defaultOpacity:B.opacity});function F(Q){return I?e.getName(Q):ks(e,Q)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var E=o.ensureState("emphasis");E.style=l,o.ensureState("select").style=f,o.ensureState("blur").style=u;var D=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;E.scaleX=this._sizeX*D,E.scaleY=this._sizeY*D,this.setSymbolScale(1),ye(this,c,h,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),A=Ct(this).dataIndex,o=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var s=i.getTextContent();s&&Xi(s,{style:{opacity:0}},n,{dataIndex:A,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Xi(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:A,cb:e,removeOpt:o})},t.getSymbolSize=function(e,n){return ol(e.getItemVisual(n,"symbolSize"))},t}(_t);function P6(r,t){this.parent.drift(r,t)}function sy(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function qb(r){return r!=null&&!yt(r)&&(r={isIgnore:r}),r||{}}function jb(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Oe(t),cursorStyle:t.get("cursor")}}var Kf=function(){function r(t){this.group=new _t,this._SymbolCtor=t||Gf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=qb(e);var n=this.group,a=t.hostModel,i=this._data,A=this._SymbolCtor,o=e.disableAnimation,s=jb(t),l={disableAnimation:o},u=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var c=u(f);if(sy(t,c,f,e)){var h=new A(t,f,s,l);h.setPosition(c),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,c){var h=i.getItemGraphicEl(c),v=u(f);if(!sy(t,v,f,e)){n.remove(h);return}var d=t.getItemVisual(f,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType();if(!h||p&&p!==d)n.remove(h),h=new A(t,f,s,l),h.setPosition(v);else{h.updateData(t,f,s,l);var g={x:v[0],y:v[1]};o?h.attr(g):zt(h,g,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var c=i.getItemGraphicEl(f);c&&c.fadeOut(function(){n.remove(c)},a)}).execute(),this._getSymbolPoint=u,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=jb(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=qb(n);function a(s){s.isGroup||(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=n[0]:n[1]<0&&(e=n[1]),e}function gP(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,A=[];return A[i]=e.get(r.baseDim,n),A[1-i]=a,t.dataToPoint(A)}function H6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function O6(r,t,e,n,a,i,A,o){for(var s=H6(r,t),l=[],u=[],f=[],c=[],h=[],v=[],d=[],p=pP(a,t,A),g=r.getLayout("points")||[],y=t.getLayout("points")||[],m=0;m=a||d<0)break;if(Ao(g,y)){if(s){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](g,y),f=g,c=y;else{var m=g-l,w=y-u;if(m*m+w*w<.5){d+=i;continue}if(A>0){for(var _=d+i,B=t[_*2],C=t[_*2+1];B===g&&C===y&&p=n||Ao(B,C))h=g,v=y;else{b=B-l,I=C-u;var D=g-l,Q=B-g,M=y-u,R=C-y,P=void 0,O=void 0;if(o==="x"){P=Math.abs(D),O=Math.abs(Q);var G=b>0?1:-1;h=g-G*P*A,v=y,F=g+G*O*A,E=y}else if(o==="y"){P=Math.abs(M),O=Math.abs(R);var X=I>0?1:-1;h=g,v=y-X*P*A,F=g,E=y+X*O*A}else P=Math.sqrt(D*D+M*M),O=Math.sqrt(Q*Q+R*R),x=O/(O+P),h=g-b*A*(1-x),v=y-I*A*(1-x),F=g+b*A*x,E=y+I*A*x,F=fi(F,ci(B,g)),E=fi(E,ci(C,y)),F=ci(F,fi(B,g)),E=ci(E,fi(C,y)),b=F-g,I=E-y,h=g-b*P/O,v=y-I*P/O,h=fi(h,ci(l,g)),v=fi(v,ci(u,y)),h=ci(h,fi(l,g)),v=ci(v,fi(u,y)),b=g-h,I=y-v,F=g+b*O/P,E=y+I*O/P}r.bezierCurveTo(f,c,h,v,g,y),f=F,c=E}else r.lineTo(g,y)}l=g,u=y,d+=i}return p}var yP=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),k6=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new yP},t.prototype.buildPath=function(e,n){var a=n.points,i=0,A=a.length/2;if(n.connectNulls){for(;A>0&&Ao(a[A*2-2],a[A*2-1]);A--);for(;i=0){var w=l?(v-s)*m+s:(h-o)*m+o;return l?[e,w]:[w,e]}o=h,s=v;break;case A.C:h=i[f++],v=i[f++],d=i[f++],p=i[f++],g=i[f++],y=i[f++];var _=l?Bv(o,h,d,g,e,u):Bv(s,v,p,y,e,u);if(_>0)for(var B=0;B<_;B++){var C=u[B];if(C<=1&&C>=0){var w=l?Me(s,v,p,y,C):Me(o,h,d,g,C);return l?[e,w]:[w,e]}}o=g,s=y;break}}},t}(Mt),N6=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(yP),mP=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new N6},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,A=0,o=a.length/2,s=n.smoothMonotone;if(n.connectNulls){for(;o>0&&Ao(a[o*2-2],a[o*2-1]);o--);for(;At){i?e.push(A(i,s,t)):a&&e.push(A(a,s,0),A(a,s,t));break}else a&&(e.push(A(a,s,0)),a=null),e.push(s),i=s}return e}function K6(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,A=n.length-1;A>=0;A--){var o=r.getDimensionInfo(n[A].dimension);if(a=o&&o.coordDim,a==="x"||a==="y"){i=n[A];break}}if(i){var s=t.getAxis(a),l=Y(i.stops,function(m){return{coord:s.toGlobalCoord(s.dataToCoord(m.value)),color:m.color}}),u=l.length,f=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),f.reverse());var c=G6(l,a==="x"?e.getWidth():e.getHeight()),h=c.length;if(!h&&u)return l[0].coord<0?f[1]?f[1]:l[u-1].color:f[0]?f[0]:l[0].color;var v=10,d=c[0].coord-v,p=c[h-1].coord+v,g=p-d;if(g<.001)return"transparent";T(c,function(m){m.offset=(m.coord-d)/g}),c.push({offset:h?c[h-1].offset:.5,color:f[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:f[0]||"transparent"});var y=new Pf(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=p,y}}}function z6(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&W6(i,t))){var A=t.mapDimension(i.dim),o={};return T(i.getViewLabels(),function(s){var l=i.scale.getRawOrdinalNumber(s.tickValue);o[l]=1}),function(s){return!o.hasOwnProperty(t.get(A,s))}}}}function W6(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),A=0;An)return!1;return!0}function X6(r,t){return isNaN(r)||isNaN(t)}function Y6(r){for(var t=r.length/2;t>0&&X6(r[t*2-2],r[t*2-1]);t--);return t-1}function aT(r,t){return[r[t*2],r[t*2+1]]}function Z6(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,A,o=0,s=-1,l=0;l=t||i>=t&&A<=t){s=l;break}o=l,i=A}return{range:[o,s],t:(t-i)/(A-i)}}function _P(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<_r.length;t++)if(r.get([_r[t],"endLabel","show"]))return!0;return!1}function ly(r,t,e,n){if(To(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),A=n.getData(),o={lastFrameIndex:0},s=_P(n)?function(h,v){r._endLabelOnDuring(h,v,A,o,i,a,t)}:null,l=t.getBaseAxis().isHorizontal(),u=wP(t,e,n,function(){var h=r._endLabel;h&&e&&o.originalX!=null&&h.attr({x:o.originalX,y:o.originalY})},s);if(!n.get("clip",!0)){var f=u.shape,c=Math.max(f.width,f.height);l?(f.y-=c,f.height+=c*2):(f.x-=c,f.width+=c*2)}return s&&s(1,u),u}else return BP(t,e,n)}function $6(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",A=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||A}}}var J6=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new _t,n=new Kf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,a){var i=this,A=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=A.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!u.isEmpty(),w=u.get("origin"),_=pP(A,s,w),B=m&&V6(A,s,_),C=e.get("showSymbol"),S=e.get("connectNulls"),x=C&&!c&&z6(e,s,A),b=this._data;b&&b.eachItemGraphicEl(function(Bt,N){Bt.__temp&&(o.remove(Bt),b.setItemGraphicEl(N,null))}),C||v.remove(),o.add(g);var I=c?!1:e.get("step"),F;A&&A.getArea&&e.get("clip",!0)&&(F=A.getArea(),F.width!=null?(F.x-=.1,F.y-=.1,F.width+=.2,F.height+=.2):F.r0&&(F.r0-=.5,F.r+=.5)),this._clipShapeForSymbol=F;var E=K6(s,A,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===A.type&&I===this._step))C&&v.updateData(s,{isIgnore:x,clipShape:F,disableAnimation:!0,getSymbolPoint:function(Bt){return[f[Bt*2],f[Bt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,A,F),I&&(f=hi(f,A,I,S),B&&(B=hi(B,A,I,S))),d=this._newPolyline(f),m?p=this._newPolygon(f,B):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,A,go(E)),g.setClipPath(ly(this,A,!0,e));else{m&&!p?p=this._newPolygon(f,B):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,A,go(E));var D=g.getClipPath();if(D){var Q=ly(this,A,!1,e);ue(D,{shape:Q.shape},e)}else g.setClipPath(ly(this,A,!0,e));C&&v.updateData(s,{isIgnore:x,clipShape:F,disableAnimation:!0,getSymbolPoint:function(Bt){return[f[Bt*2],f[Bt*2+1]]}}),(!tT(this._stackedOnPoints,B)||!tT(this._points,f))&&(y?this._doUpdateAnimation(s,B,A,a,I,w,S):(I&&(f=hi(f,A,I,S),B&&(B=hi(B,A,I,S))),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:B})))}var M=e.getModel("emphasis"),R=M.get("focus"),P=M.get("blurScope"),O=M.get("disabled");if(d.useStyle(gt(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),$e(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=d.getState("emphasis").style;G.lineWidth=+d.style.lineWidth+1}Ct(d).seriesIndex=e.seriesIndex,ye(d,R,P,O);var X=nT(e.get("smooth")),J=e.get("smoothMonotone");if(d.setShape({smooth:X,smoothMonotone:J,connectNulls:S}),p){var At=s.getCalculationInfo("stackedOnSeries"),lt=0;p.useStyle(gt(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),At&&(lt=nT(At.get("smooth"))),p.setShape({smooth:X,stackedOnSmooth:lt,smoothMonotone:J,connectNulls:S}),$e(p,e,"areaStyle"),Ct(p).seriesIndex=e.seriesIndex,ye(p,R,P,O)}var wt=function(Bt){i._changePolyState(Bt)};s.eachItemGraphicEl(function(Bt){Bt&&(Bt.onHoverStateChange=wt)}),this._polyline.onHoverStateChange=wt,this._data=s,this._coordSys=A,this._stackedOnPoints=B,this._points=f,this._step=I,this._valueOrigin=w,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){Ct(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var A=e.getData(),o=ho(A,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&o!=null&&o>=0){var s=A.getLayout("points"),l=A.getItemGraphicEl(o);if(!l){var u=s[o*2],f=s[o*2+1];if(isNaN(u)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,f))return;var c=e.get("zlevel")||0,h=e.get("z")||0;l=new Gf(A,o),l.x=u,l.y=f,l.setZ(c,h);var v=l.getSymbolPath().getTextContent();v&&(v.zlevel=c,v.z=h,v.z2=this._polyline.z2+1),l.__temp=!0,A.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else jt.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var A=e.getData(),o=ho(A,i);if(this._changePolyState("normal"),o!=null&&o>=0){var s=A.getItemGraphicEl(o);s&&(s.__temp?(A.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else jt.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Iv(this._polyline,e),n&&Iv(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new k6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new mP({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,A,o=n.getBaseAxis(),s=o.inverse;n.type==="cartesian2d"?(i=o.isHorizontal(),A=!1):n.type==="polar"&&(i=o.dim==="angle",A=!0);var l=e.hostModel,u=l.get("animationDuration");vt(u)&&(u=u(null));var f=l.get("animationDelay")||0,c=vt(f)?f(null):f;e.eachItemGraphicEl(function(h,v){var d=h;if(d){var p=[h.x,h.y],g=void 0,y=void 0,m=void 0;if(a)if(A){var w=a,_=n.pointToCoord(p);i?(g=w.startAngle,y=w.endAngle,m=-_[1]/180*Math.PI):(g=w.r0,y=w.r,m=_[0])}else{var B=a;i?(g=B.x,y=B.x+B.width,m=h.x):(g=B.y+B.height,y=B.y,m=h.y)}var C=y===g?0:(m-g)/(y-g);s&&(C=1-C);var S=vt(f)?f(v):u*C+c,x=d.getSymbolPath(),b=x.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:S}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:S}),x.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(_P(e)){var A=e.getData(),o=this._polyline,s=A.getLayout("points");if(!s){o.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Gt({z2:200}),l.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var u=Y6(s);u>=0&&(Je(o,Oe(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:u,defaultText:function(f,c,h){return h!=null?dP(A,h):ks(A,f)},enableTextSetter:!0},$6(i,n)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,A,o,s){var l=this._endLabel,u=this._polyline;if(l){e<1&&i.originalX==null&&(i.originalX=l.x,i.originalY=l.y);var f=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),v=o.get("precision"),d=o.get("distance")||0,p=s.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,m=n.shape,w=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?d:0)*(y?-1:1),B=(g?0:-d)*(y?-1:1),C=g?"x":"y",S=Z6(f,w,C),x=S.range,b=x[1]-x[0],I=void 0;if(b>=1){if(b>1&&!h){var F=aT(f,x[0]);l.attr({x:F[0]+_,y:F[1]+B}),A&&(I=c.getRawValue(x[0]))}else{var F=u.getPointOn(w,C);F&&l.attr({x:F[0]+_,y:F[1]+B});var E=c.getRawValue(x[0]),D=c.getRawValue(x[1]);A&&(I=oM(a,v,E,D,S.t))}i.lastFrameIndex=x[0]}else{var Q=e===1||i.lastFrameIndex>0?x[0]:0,F=aT(f,Q);A&&(I=c.getRawValue(Q)),l.attr({x:F[0]+_,y:F[1]+B})}if(A){var M=tl(l);typeof M.setLabelText=="function"&&M.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,A,o,s){var l=this._polyline,u=this._polygon,f=e.hostModel,c=O6(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=c.current,v=c.stackedOnCurrent,d=c.next,p=c.stackedOnNext;if(A&&(h=hi(c.current,a,A,s),v=hi(c.stackedOnCurrent,a,A,s),d=hi(c.next,a,A,s),p=hi(c.stackedOnNext,a,A,s)),rT(h,d)>3e3||u&&rT(v,p)>3e3){l.stopAnimation(),l.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),l.stopAnimation(),zt(l,g,f),u&&(u.setShape({points:h,stackedOnPoints:v}),u.stopAnimation(),zt(u,{shape:{stackedOnPoints:p}},f),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],m=c.status,w=0;wt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},j6=function(r){return Math.round(r.length/2)};function CP(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),A=t.coordinateSystem,o=a.count();if(o>10&&A.type==="cartesian2d"&&i){var s=A.getBaseAxis(),l=A.getOtherAxis(s),u=s.getExtent(),f=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(f||1),h=Math.round(o/c);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(l.dim),1/h));var v=void 0;nt(i)?v=q6[i]:vt(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(l.dim),1/h,v,j6))}}}}}function tY(r){r.registerChartView(J6),r.registerSeriesModel(U6),r.registerLayout(Wf("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,CP("line"))}var df=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var A=i.clampData(e),o=i.dataToPoint(A);if(a)T(i.getAxes(),function(c,h){if(c.type==="category"&&n!=null){var v=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),p=A[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!d&&(p+=1),v.length<2)return;if(v.length===2){o[h]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,w=1,_=0;_p){m=(B+y)/2;break}_===1&&(w=C-v[0].tickValue)}m==null&&(y?y&&(m=v[v.length-1].coord):m=v[0].coord),o[h]=c.toGlobalCoord(m)}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(se);se.registerClass(df);var eY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ri(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=nA(df.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(df),rY=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Xv=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new rY},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.max(n.r0||0,0),o=Math.max(n.r,0),s=(o-A)*.5,l=A+s,u=n.startAngle,f=n.endAngle,c=n.clockwise,h=Math.PI*2,v=c?f-uMath.PI/2&&uo)return!0;o=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),A=Math.max(0,i[0]),o=Math.min(i[1],a.getOrdinalMeta().categories.length-1);A<=o;++A)if(e.ordinalNumbers[A]!==a.getRawOrdinalNumber(A))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var A=this._dataSort(e,a,n);this._isOrderDifferentInView(A,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:A}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,A=this._dataSort(e,i,function(o){return e.get(e.mapDimension(n.otherAxis.dim),o)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:A})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){af(i,e,Ct(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(jt),iT={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,A=uy(t.x,r.x),o=fy(t.x+t.width,a),s=uy(t.y,r.y),l=fy(t.y+t.height,i),u=oa?o:A,t.y=f&&s>i?l:s,t.width=u?0:o-A,t.height=f?0:l-s,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),u||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=fy(t.r,r.r),i=uy(t.r0,r.r0);t.r=a,t.r0=i;var A=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return A}},AT={cartesian2d:function(r,t,e,n,a,i,A,o,s){var l=new Nt({shape:V({},n),z2:1});if(l.__dataIndex=e,l.name="item",i){var u=l.shape,f=a?"height":"width";u[f]=0}return l},polar:function(r,t,e,n,a,i,A,o,s){var l=!a&&s?Xv:Cr,u=new l({shape:n,z2:1});u.name="item";var f=SP(a);if(u.calculateTextPosition=nY(f,{isRoundCap:l===Xv}),i){var c=u.shape,h=a?"r":"endAngle",v={};c[h]=a?n.r0:n.startAngle,v[h]=n[h],(o?zt:ue)(u,{shape:v},i)}return u}};function oY(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function oT(r,t,e,n,a,i,A,o){var s,l;i?(l={x:n.x,width:n.width},s={y:n.y,height:n.height}):(l={y:n.y,height:n.height},s={x:n.x,width:n.width}),o||(A?zt:ue)(e,{shape:s},t,a,null);var u=t?r.baseAxis.model:null;(A?zt:ue)(e,{shape:l},u,a)}function sT(r,t){for(var e=0;e0?1:-1,A=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+A*a/2,width:n.width-i*a,height:n.height-A*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function uY(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function SP(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function uT(r,t,e,n,a,i,A,o){var s=t.getItemVisual(e,"style");if(o){if(!i.get("roundCap")){var u=r.shape,f=$A(n.getModel("itemStyle"),u,!0);V(u,f),r.setShape(u)}}else{var l=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(s);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var h=o?A?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":A?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Oe(n);Je(r,v,{labelFetcher:i,labelDataIndex:e,defaultText:ks(i.getData(),e),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(o&&d){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,aY(r,p==="outside"?h:p,SP(A),n.get(["label","rotate"]))}KM(d,v,i.getRawValue(e),function(y){return dP(t,y)});var g=n.getModel(["emphasis"]);ye(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),$e(r,n),uY(a)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function fY(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var cY=function(){function r(){}return r}(),fT=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new cY},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,A=1-this.baseDimIdx,o=[],s=[],l=this.barWidth,u=0;u=0?e:null},30,!1);function hY(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,A=r.largeDataIndices,o=[],s=[],l=r.barWidth,u=0,f=i.length/3;u=o[0]&&t<=o[0]+s[0]&&e>=o[1]&&e<=o[1]+s[1])return A[u]}return-1}function xP(r,t,e){if(To(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function vY(r,t,e){var n=r.type==="polar"?Cr:Nt;return new n({shape:xP(t,e,r),silent:!0,z2:0})}function dY(r){r.registerChartView(AY),r.registerSeriesModel(eY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(E2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,CP("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var vT=Math.PI*2,Wc=Math.PI/180;function bP(r,t){return Le(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function TP(r,t){var e=bP(r,t),n=r.get("center"),a=r.get("radius");K(a)||(a=[0,a]);var i=et(e.width,t.getWidth()),A=et(e.height,t.getHeight()),o=Math.min(i,A),s=et(a[0],o/2),l=et(a[1],o/2),u,f,c=r.coordinateSystem;if(c){var h=c.dataToPoint(n);u=h[0]||0,f=h[1]||0}else K(n)||(n=[n,n]),u=et(n[0],i)+e.x,f=et(n[1],A)+e.y;return{cx:u,cy:f,r0:s,r:l}}function pY(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),A=bP(n,e),o=TP(n,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=-n.get("startAngle")*Wc,h=n.get("endAngle"),v=n.get("padAngle")*Wc;h=h==="auto"?c-vT:-h*Wc;var d=n.get("minAngle")*Wc,p=d+v,g=0;a.each(i,function(R){!isNaN(R)&&g++});var y=a.getSum(i),m=Math.PI/(y||g)*2,w=n.get("clockwise"),_=n.get("roseType"),B=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var S=w?1:-1,x=[c,h],b=S*v/2;e_(x,!w),c=x[0],h=x[1];var I=IP(n);I.startAngle=c,I.endAngle=h,I.clockwise=w;var F=Math.abs(h-c),E=F,D=0,Q=c;if(a.setLayout({viewRect:A,r:u}),a.each(i,function(R,P){var O;if(isNaN(R)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:s,cy:l,r0:f,r:_?NaN:u});return}_!=="area"?O=y===0&&B?m:R*m:O=F/g,OO?(X=Q+S*O/2,J=X):(X=Q+b,J=G-b),a.setItemLayout(P,{angle:O,startAngle:X,endAngle:J,clockwise:w,cx:s,cy:l,r0:f,r:_?$t(R,C,[f,u]):u}),Q=G}),Ee?g:p,_=Math.abs(m.label.y-e);if(_>=w.maxY){var B=m.label.x-t-m.len2*a,C=n+m.len,S=Math.abs(B)r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var d=n.getBoundingRect();i.width=d.width;var p=(n.style.margin||0)+2.1;i.height=d.height+p,i.y-=(i.height-f)/2}}}function cy(r){return r.position==="center"}function mY(r){var t=r.getData(),e=[],n,a,i=!1,A=(r.get("minShowLabelAngle")||0)*gY,o=t.getLayout("viewRect"),s=t.getLayout("r"),l=o.width,u=o.x,f=o.y,c=o.height;function h(B){B.ignore=!0}function v(B){if(!B.ignore)return!0;for(var C in B.states)if(B.states[C].ignore===!1)return!0;return!1}t.each(function(B){var C=t.getItemGraphicEl(B),S=C.shape,x=C.getTextContent(),b=C.getTextGuideLine(),I=t.getItemModel(B),F=I.getModel("label"),E=F.get("position")||I.get(["emphasis","label","position"]),D=F.get("distanceToLabelLine"),Q=F.get("alignTo"),M=et(F.get("edgeDistance"),l),R=F.get("bleedMargin"),P=I.getModel("labelLine"),O=P.get("length");O=et(O,l);var G=P.get("length2");if(G=et(G,l),Math.abs(S.endAngle-S.startAngle)0?"right":"left":J>0?"left":"right"}var k=Math.PI,Z=0,W=F.get("rotate");if(Kt(W))Z=W*(k/180);else if(E==="center")Z=0;else if(W==="radial"||W===!0){var tt=J<0?-X+k:-X;Z=tt}else if(W==="tangential"&&E!=="outside"&&E!=="outer"){var ot=Math.atan2(J,At);ot<0&&(ot=k*2+ot);var ut=At>0;ut&&(ot=k+ot),Z=ot-k}if(i=!!Z,x.x=lt,x.y=wt,x.rotation=Z,x.setStyle({verticalAlign:"middle"}),z){x.setStyle({align:N});var Ft=x.states.select;Ft&&(Ft.x+=x.x,Ft.y+=x.y)}else{var at=x.getBoundingRect().clone();at.applyTransform(x.getComputedTransform());var rt=(x.style.margin||0)+2.1;at.y-=rt/2,at.height+=rt,e.push({label:x,labelLine:b,position:E,len:O,len2:G,minTurnAngle:P.get("minTurnAngle"),maxSurfaceAngle:P.get("maxSurfaceAngle"),surfaceNormal:new It(J,At),linePoints:Bt,textAlign:N,labelDistance:D,labelAlignTo:Q,edgeDistance:M,bleedMargin:R,rect:at,unconstrainedWidth:at.width,labelStyleWidth:x.style.width})}C.setTextConfig({inside:z})}}),!i&&r.get("avoidLabelOverlap")&&yY(e,n,a,s,l,c,u,f);for(var d=0;d0){for(var u=A.getItemLayout(0),f=1;isNaN(u&&u.startAngle)&&f=i.r0}},t.type="pie",t}(jt);function ll(r,t,e){t=K(t)&&{coordDimensions:t}||V({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=Nf(n,t).dimensions,i=new mr(a,r);return i.initData(n,e),i}var Yf=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),_Y=Vt(),CY=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ll(this,{coordDimensions:["value"],encodeDefaulter:bt(y_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=_Y(n),i=a.seats;if(!i){var A=[];n.each(n.mapDimension("value"),function(s){A.push(s)}),i=a.seats=dK(A,n.hostModel.get("percentPrecision"))}var o=r.prototype.getDataParams.call(this,e);return o.percent=i[e]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(se);function SY(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),A=n.get(i,a);return!(Kt(A)&&!isNaN(A)&&A<0)})}}}function xY(r){r.registerChartView(BY),r.registerSeriesModel(CY),$U("pie",r.registerAction),r.registerLayout(bt(pY,"pie")),r.registerProcessor(Xf("pie")),r.registerProcessor(SY("pie"))}var bY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(se),EP=4,TY=function(){function r(){}return r}(),IY=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new TY},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,A=this.symbolProxy,o=A.shape,s=e.getContext?e.getContext():e,l=s&&i[0]=0;l--){var u=l*2,f=i[u]-o/2,c=i[u+1]-s/2;if(e>=f&&n>=c&&e<=f+o&&n<=c+s)return l}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,A=i[0],o=i[1],s=1/0,l=1/0,u=-1/0,f=-1/0,c=0;c=0&&(l.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),EY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var A=Wf("").reset(e,n,a);A.progress&&A.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,A=i.large;return(!a||A!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=A?new FY:new Kf,this._isLargeDraw=A,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(jt),DY=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Rt),rw=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Te).models[0]},t.type="cartesian2dAxis",t}(Rt);Fe(rw,Vf);var DP={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)"]}}},QY=Et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},DP),Y_=Et({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}}},DP),LY=Et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Y_),MY=gt({logBase:10},Y_);const QP={category:QY,value:Y_,time:LY,log:MY};var UY={value:1,category:1,time:1,log:1};function Ns(r,t,e,n){T(UY,function(a,i){var A=Et(Et({},QP[i],!0),n,!0),o=function(s){H(l,s);function l(){var u=s!==null&&s.apply(this,arguments)||this;return u.type=t+"Axis."+i,u}return l.prototype.mergeDefaultAndTheme=function(u,f){var c=of(this),h=c?nl(u):{},v=f.getTheme();Et(u,v.get(i+"Axis")),Et(u,this.getDefaultOption()),u.type=pT(u),c&&Yi(u,h,c)},l.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=Z0.createByAxisModel(this))},l.prototype.getCategories=function(u){var f=this.option;if(f.type==="category")return u?f.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+i,l.defaultOption=A,l}(e);r.registerComponentModel(o)}),r.registerSubTypeDefaulter(t+"Axis",pT)}function pT(r){return r.type||(r.data?"category":"value")}var PY=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Jt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),nw=["x","y"];function gT(r){return r.type==="interval"||r.type==="time"}var RY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=nw,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!gT(e)||!gT(n))){var a=e.getExtent(),i=n.getExtent(),A=this.dataToPoint([a[0],i[0]]),o=this.dataToPoint([a[1],i[1]]),s=a[1]-a[0],l=i[1]-i[0];if(!(!s||!l)){var u=(o[0]-A[0])/s,f=(o[1]-A[1])/l,c=A[0]-a[0]*u,h=A[1]-i[0]*f,v=this._transform=[u,0,0,f,c,h];this._invTransform=Zs([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),A=this.getArea(),o=new Dt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return A.intersect(o)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],A=e[1];if(this._transform&&i!=null&&isFinite(i)&&A!=null&&isFinite(A))return Ye(a,e,this._transform);var o=this.getAxis("x"),s=this.getAxis("y");return a[0]=o.toGlobalCoord(o.dataToCoord(i,n)),a[1]=s.toGlobalCoord(s.dataToCoord(A,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,A=a.getExtent(),o=i.getExtent(),s=a.parse(e[0]),l=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(A[0],A[1]),s),Math.max(A[0],A[1])),n[1]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return Ye(a,e,this._invTransform);var i=this.getAxis("x"),A=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=A.coordToData(A.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,A=Math.min(a[0],a[1])-e,o=Math.max(n[0],n[1])-i+e,s=Math.max(a[0],a[1])-A+e;return new Dt(i,A,o,s)},t}(PY),HY=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.index=0,o.type=i||"value",o.position=A||"bottom",o}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(kn);function aw(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},A=a.getAxesOnZeroOf()[0],o=a.position,s=A?"onZero":o,l=a.dim,u=n.getRect(),f=[u.x,u.x+u.width,u.y,u.y+u.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=l==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(A){var d=A.toGlobalCoord(A.dataToCoord(0));v[c.onZero]=Math.max(Math.min(d,v[1]),v[0])}i.position=[l==="y"?v[c[s]]:f[0],l==="x"?v[c[s]]:f[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[o],i.labelOffset=A?v[c[o]]-v[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ge(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function yT(r){return r.get("coordinateSystem")==="cartesian2d"}function mT(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Te).models[0];t[n]=i}),t}var hy=Math.log;function LP(r,t,e){var n=Za.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),A=a.length-1,o=n.getInterval.call(e),s=P2(r,t),l=s.extent,u=s.fixMin,f=s.fixMax;if(r.type==="log"){var c=hy(r.base);l=[hy(l[0])/c,hy(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:A,fixMin:u,fixMax:f});var h=n.getExtent.call(r);u&&(l[0]=h[0]),f&&(l[1]=h[1]);var v=n.getInterval.call(r),d=l[0],p=l[1];if(u&&f)v=(p-d)/A;else if(u)for(p=l[0]+v*A;pl[0]&&isFinite(d)&&isFinite(l[0]);)v=qg(v),d=l[1]-v*A;else{var g=r.getTicks().length-1;g>A&&(v=qg(v));var y=v*A;p=Math.ceil(l[1]/v)*v,d=me(p-y),d<0&&l[0]>=0?(d=0,p=me(y)):p>0&&l[1]<=0&&(p=0,d=-me(y))}var m=(a[0].value-i[0].value)/o,w=(a[A].value-i[A].value)/o;n.setExtent.call(r,d+v*m,p+v*w),n.setInterval.call(r,v),(m||w)&&n.setNiceExtent.call(r,d+v,p-v)}var OY=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nw,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(A){var o,s=Ht(A),l=s.length;if(l){for(var u=[],f=l-1;f>=0;f--){var c=+s[f],h=A[c],v=h.model,d=h.scale;$0(d)&&v.get("alignTicks")&&v.get("interval")==null?u.push(h):(Os(d,v),$0(d)&&(o=h))}u.length&&(o||(o=u.pop(),Os(o.scale,o.model)),T(u,function(p){LP(p.scale,p.model,o.scale)}))}}a(n.x),a(n.y);var i={};T(n.x,function(A){wT(n,"y",A,i)}),T(n.y,function(A){wT(n,"x",A,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),A=Le(a,{width:e.getWidth(),height:e.getHeight()});this._rect=A;var o=this._axesList;s(),i&&(T(o,function(l){if(!l.model.get(["axisLabel","inside"])){var u=mX(l);if(u){var f=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);A[f]-=u[f]+c,l.position==="top"?A.y+=u.height+c:l.position==="left"&&(A.x+=u.width+c)}}}),s()),T(this._coordsList,function(l){l.calcAffineTransform()});function s(){T(o,function(l){var u=l.isHorizontal(),f=u?[0,A.width]:[0,A.height],c=l.inverse?1:0;l.setExtent(f[c],f[1-c]),kY(l,u?A.x:A.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}yt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):tf(a-Di)?(A=n>0?"bottom":"top",i="center"):(A="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:A}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),_T={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),A=n.transform,o=[i[0],0],s=[i[1],0],l=o[0]>s[0];A&&(Ye(o,o,A),Ye(s,s,A));var u=V({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Pe({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ps(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var c=t.get(["axisLine","symbol"]);if(c!=null){var h=t.get(["axisLine","symbolSize"]);nt(c)&&(c=[c,c]),(nt(h)||Kt(h))&&(h=[h,h]);var v=xo(t.get(["axisLine","symbolOffset"])||0,h),d=h[0],p=h[1];T([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((o[0]-s[0])*(o[0]-s[0])+(o[1]-s[1])*(o[1]-s[1]))}],function(g,y){if(c[y]!=="none"&&c[y]!=null){var m=Ie(c[y],-d/2,-p/2,d,p,u.stroke,!0),w=g.r+g.offset,_=l?s:o;m.attr({rotation:g.rotate,x:_[0]+w*Math.cos(r.rotation),y:_[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,n){var a=GY(e,n,t,r),i=zY(e,n,t,r);if(VY(t,i,a),KY(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var A=$2(Y(i,function(o){return{label:o,priority:o.z2,defaultAttr:{ignore:o.ignore}}}));j2(A)}},axisName:function(r,t,e,n){var a=Ge(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),A=r.nameDirection,o=t.getModel("nameTextStyle"),s=t.get("nameGap")||0,l=t.axis.getExtent(),u=l[0]>l[1]?-1:1,f=[i==="start"?l[0]-u*s:i==="end"?l[1]+u*s:(l[0]+l[1])/2,ST(i)?r.labelOffset+A*s:0],c,h=t.get("nameRotate");h!=null&&(h=h*Di/180);var v;ST(i)?c=wr.innerTextLayout(r.rotation,h??r.rotation,A):(c=NY(r.rotation,i,h||0,l),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(c.rotation)),!isFinite(v)&&(v=null)));var d=o.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,y=Ge(r.nameTruncateMaxWidth,p.maxWidth,v),m=new Gt({x:f[0],y:f[1],rotation:c.rotation,silent:wr.isLabelSilent(t),style:oe(o,{text:a,font:d,overflow:"truncate",width:y,ellipsis:g,fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:o.get("align")||c.textAlign,verticalAlign:o.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(js({el:m,componentModel:t,itemName:a}),m.__fullText=a,m.anid="name",t.get("triggerEvent")){var w=wr.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,Ct(m).eventData=w}n.add(m),m.updateTransform(),e.add(m),m.decomposeTransform()}}};function NY(r,t,e,n){var a=JL(e-r),i,A,o=n[0]>n[1],s=t==="start"&&!o||t!=="start"&&o;return tf(a-Di/2)?(A=s?"bottom":"top",i="center"):tf(a-Di*1.5)?(A=s?"top":"bottom",i="center"):(A="middle",aDi/2?i=s?"left":"right":i=s?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:A}}function VY(r,t,e){if(!R2(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],A=t[1],o=t[t.length-1],s=t[t.length-2],l=e[0],u=e[1],f=e[e.length-1],c=e[e.length-2];n===!1?($r(i),$r(l)):CT(i,A)&&(n?($r(A),$r(u)):($r(i),$r(l))),a===!1?($r(o),$r(f)):CT(s,o)&&(a?($r(s),$r(c)):($r(o),$r(f)))}}function $r(r){r&&(r.ignore=!0)}function CT(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Hd([]);return Co(a,a,-r.rotation),e.applyTransform(Ha([],a,r.getLocalTransform())),n.applyTransform(Ha([],a,t.getLocalTransform())),e.intersect(n)}}function ST(r){return r==="middle"||r==="center"}function MP(r,t,e,n,a){for(var i=[],A=[],o=[],s=0;s=0||r===t}function JY(r){var t=Z_(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),A=e.get("value");A!=null&&(A=n.parse(A));var o=iw(e);i==null&&(a.status=o?"show":"hide");var s=n.getExtent().slice();s[0]>s[1]&&s.reverse(),(A==null||A>s[1])&&(A=s[1]),A0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=s;v.color!=null&&(d=gt({color:v.color},s));var p=Et(mt(v),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:A,axisLabel:o,name:v.text,showName:l,nameLocation:"end",nameGap:f,nameTextStyle:d,triggerEvent:c},!1);if(nt(u)){var g=p.name;p.name=u.replace("{value}",g??"")}else vt(u)&&(p.name=u(p.name,p));var y=new Yt(p,null,this.ecModel);return Fe(y,Vf.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Et({lineStyle:{color:"#bbb"}},Ml.axisLine),axisLabel:Xc(Ml.axisLabel,!1),axisTick:Xc(Ml.axisTick,!1),splitLine:Xc(Ml.splitLine,!0),splitArea:Xc(Ml.splitArea,!0),indicator:[]},t}(Rt),uZ=["axisLine","axisTickLabel","axisName"],fZ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=Y(a,function(A){var o=A.model.get("showName")?A.name:"",s=new wr(A.model,{axisName:o,position:[n.cx,n.cy],rotation:A.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});T(i,function(A){T(uZ,A.add,A),this.group.add(A.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),A=e.getModel("splitLine"),o=e.getModel("splitArea"),s=A.getModel("lineStyle"),l=o.getModel("areaStyle"),u=A.get("show"),f=o.get("show"),c=s.get("color"),h=l.get("color"),v=K(c)?c:[c],d=K(h)?h:[h],p=[],g=[];function y(Q,M,R){var P=R%M.length;return Q[P]=Q[P]||[],P}if(i==="circle")for(var m=a[0].getTicksCoords(),w=n.cx,_=n.cy,B=0;B3?1.4:A>1?1.2:1.1,u=i>0?l:1/l;py(this,"zoom","zoomOnMouseWheel",e,{scale:u,originX:o,originY:s,isAvailableBehavior:null})}if(a){var f=Math.abs(i),c=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);py(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:s,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!ET(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;py(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(yn);function py(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(Ka(n.event),kP(r,t,e,n,a))}function kP(r,t,e,n,a){a.isAvailableBehavior=it(qh,null,e,n),r.trigger(t,a)}function qh(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}function J_(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function q_(r,t,e,n){var a=r.target,i=r.zoomLimit,A=r.zoom=r.zoom||1;if(A*=t,i){var o=i.min||0,s=i.max||1/0;A=Math.max(Math.min(s,A),o)}var l=A/r.zoom;r.zoom=A,a.x-=(e-a.x)*(l-1),a.y-=(n-a.y)*(l-1),a.scaleX*=l,a.scaleY*=l,a.dirty()}var yZ={axisPointer:1,tooltip:1,brush:1};function dp(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!yZ.hasOwnProperty(n.mainType)&&a&&a.model!==e}function NP(r){if(nt(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var gy,Yv={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},DT=Ht(Yv),Zv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},QT=Ht(Zv),mZ=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=NP(t);this._defsUsePending=[];var a=new _t;this._root=a;var i=[],A=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Or(n,a,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,a,i,null,!1,!1),l=l.nextSibling;_Z(this._defs,this._defsUsePending),this._defsUsePending=[];var u,f;if(A){var c=pp(A);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&o!=null&&s!=null&&(f=GP(u,{x:0,y:0,width:o,height:s}),!e.ignoreViewBox)){var h=a;a=new _t,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!e.ignoreRootClip&&o!=null&&s!=null&&a.setClipPath(new Nt({shape:{x:0,y:0,width:o,height:s}})),{root:a,width:o,height:s,viewBoxRect:u,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(t,e,n,a,i,A){var o=t.nodeName.toLowerCase(),s,l=a;if(o==="defs"&&(i=!0),o==="text"&&(A=!0),o==="defs"||o==="switch")s=e;else{if(!i){var u=gy[o];if(u&&st(gy,o)){s=u.call(this,t,e);var f=t.getAttribute("name");if(f){var c={name:f,namedFrom:null,svgNodeTagLower:o,el:s};n.push(c),o==="g"&&(l=c)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:o,el:s});e.add(s)}}var h=LT[o];if(h&&st(LT,o)){var v=h.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=v)}}if(s&&s.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,s,n,l,i,A):p.nodeType===3&&A&&this._parseText(p,s),p=p.nextSibling},r.prototype._parseText=function(t,e){var n=new Us({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Jr(e,n),Or(t,n,this._defsUsePending,!1,!1),wZ(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var A=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=A;var o=n.getBoundingRect();return this._textX+=o.width,e.add(n),n},r.internalField=function(){gy={g:function(t,e){var n=new _t;return Jr(e,n),Or(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Nt;return Jr(e,n),Or(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new ei;return Jr(e,n),Or(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Pe;return Jr(e,n),Or(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Yd;return Jr(e,n),Or(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),a;n&&(a=PT(n));var i=new Sr({shape:{points:a||[]},silent:!0});return Jr(e,i),Or(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=PT(n));var i=new xr({shape:{points:a||[]},silent:!0});return Jr(e,i),Or(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Ke;return Jr(e,n),Or(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",A=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(A);var o=new _t;return Jr(e,o),Or(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",A=t.getAttribute("dy")||"0",o=new _t;return Jr(e,o),Or(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(A),o},path:function(t,e){var n=t.getAttribute("d")||"",a=QM(n);return Jr(e,a),Or(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),LT={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new Pf(t,e,n,a);return MT(r,i),UT(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new PM(t,e,n);return MT(r,a),UT(r,a),a}};function MT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function UT(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};VP(e,i,i);var A=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:A})}e=e.nextSibling}}function Jr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),gt(t.__inheritedStyle,r.__inheritedStyle))}function PT(r){for(var t=pp(r),e=[],n=0;n0;i-=2){var A=n[i],o=n[i-1],s=pp(A);switch(a=a||Wr(),o){case"translate":va(a,a,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":WB(a,a,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":Co(a,a,-parseFloat(s[0])*yy,[parseFloat(s[1]||"0"),parseFloat(s[2]||"0")]);break;case"skewX":var l=Math.tan(parseFloat(s[0])*yy);Ha(a,[1,0,l,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(s[0])*yy);Ha(a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(s[0]),a[1]=parseFloat(s[1]),a[2]=parseFloat(s[2]),a[3]=parseFloat(s[3]),a[4]=parseFloat(s[4]),a[5]=parseFloat(s[5]);break}}t.setLocalTransform(a)}}var HT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function VP(r,t,e){var n=r.getAttribute("style");if(n){HT.lastIndex=0;for(var a;(a=HT.exec(n))!=null;){var i=a[1],A=st(Yv,i)?Yv[i]:null;A&&(t[A]=a[2]);var o=st(Zv,i)?Zv[i]:null;o&&(e[o]=a[2])}}}function bZ(r,t,e){for(var n=0;n0,p={api:n,geo:s,mapOrGeoModel:t,data:o,isVisualEncodedByVisualMap:d,isGeo:A,transformInfoRaw:c};s.resourceType==="geoJSON"?this._buildGeoJSON(p):s.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),a=this._regionsGroup,i=t.transformInfoRaw,A=t.mapOrGeoModel,o=t.data,s=t.geo.projection,l=s&&s.stream;function u(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],d=!l&&s&&s.project,p=0;p=0)&&(c=a);var h=A?{normal:{align:"center",verticalAlign:"middle"}}:null;Je(t,Oe(n),{labelFetcher:c,labelDataIndex:f,defaultText:e},h);var v=t.getTextContent();if(v&&(KP(v).ignore=v.ignore,t.textConfig&&A)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(A[0]-d.x)/d.width*100+"%",(A[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function GT(r,t,e,n,a,i){r.data?r.data.setItemGraphicEl(i,t):Ct(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:n&&n.option||{}}}function KT(r,t,e,n,a){r.data||js({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function zT(r,t,e,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),A=i.get("focus");return ye(t,A,i.get("blurScope"),i.get("disabled")),r.isGeo&&V5(t,a,e),A}function WT(r,t,e){var n=[],a;function i(){a=[]}function A(){a.length&&(n.push(a),a=[])}var o=t({polygonStart:i,polygonEnd:A,lineStart:i,lineEnd:A,point:function(s,l){isFinite(s)&&isFinite(l)&&a.push([s,l])},sphere:function(){}});return!e&&o.polygonStart(),T(r,function(s){o.lineStart();for(var l=0;l-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(se);function WZ(r,t){var e={};return T(r,function(n){n.each(n.mapDimension("value"),function(a,i){var A="ec-"+n.getName(i);e[A]=e[A]||[],isNaN(a)||e[A].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),A=0,o=1/0,s=-1/0,l=e[i].length,u=0;u1?(w.width=m,w.height=m/p):(w.height=m,w.width=m*p),w.y=y[1]-w.height/2,w.x=y[0]-w.width/2;else{var _=r.getBoxLayoutParams();_.aspect=p,w=Le(_,{width:v,height:d})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function $Z(r,t){T(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var JZ=function(){function r(){this.dimensions=WP}return r.prototype.create=function(t,e){var n=[];function a(A){return{nameProperty:A.get("nameProperty"),aspectScale:A.get("aspectScale"),projection:A.get("projection")}}t.eachComponent("geo",function(A,o){var s=A.get("map"),l=new sw(s+o,s,V({nameMap:A.get("nameMap")},a(A)));l.zoomLimit=A.get("scaleLimit"),n.push(l),A.coordinateSystem=l,l.model=A,l.resize=$T,l.resize(A,e)}),t.eachSeries(function(A){var o=A.get("coordinateSystem");if(o==="geo"){var s=A.get("geoIndex")||0;A.coordinateSystem=n[s]}});var i={};return t.eachSeriesByType("map",function(A){if(!A.getHostGeoModel()){var o=A.getMapType();i[o]=i[o]||[],i[o].push(A)}}),T(i,function(A,o){var s=Y(A,function(u){return u.get("nameMap")}),l=new sw(o,o,V({nameMap:NB(s)},a(A[0])));l.zoomLimit=Ge.apply(null,Y(A,function(u){return u.get("scaleLimit")})),n.push(l),l.resize=$T,l.resize(A[0],e),T(A,function(u){u.coordinateSystem=l,$Z(l,u)})}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),A=ft(),o=0;o=0;A--){var o=a[A];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:A,thread:null},e.push(o)}}function n9(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){A9(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=o9(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function a9(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function qT(r){return arguments.length?r:u9}function au(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function i9(r,t){return Le(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function A9(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function o9(r,t,e,n){if(t){for(var a=r,i=r,A=i.parentNode.children[0],o=t,s=a.hierNode.modifier,l=i.hierNode.modifier,u=A.hierNode.modifier,f=o.hierNode.modifier;o=my(o),i=wy(i),o&&i;){a=my(a),A=wy(A),a.hierNode.ancestor=r;var c=o.hierNode.prelim+f-i.hierNode.prelim-l+n(o,i);c>0&&(l9(s9(o,r,e),r,c),l+=c,s+=c),f+=o.hierNode.modifier,l+=i.hierNode.modifier,s+=a.hierNode.modifier,u+=A.hierNode.modifier}o&&!my(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=f-s),i&&!wy(A)&&(A.hierNode.thread=i,A.hierNode.modifier+=l-u,e=r)}return e}function my(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function wy(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function s9(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function l9(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function u9(r,t){return r.parentNode===t.parentNode?1:2}var f9=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),c9=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new f9},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,A=n.parentPoint,o=a[0],s=a[i-1];if(i===1){e.moveTo(A[0],A[1]),e.lineTo(o[0],o[1]);return}var l=n.orient,u=l==="TB"||l==="BT"?0:1,f=1-u,c=et(n.forkPosition,1),h=[];h[u]=A[u],h[f]=A[f]+(s[f]-A[f])*c,e.moveTo(A[0],A[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[u]=o[u],e.lineTo(h[0],h[1]),h[u]=s[u],e.lineTo(h[0],h[1]),e.lineTo(s[0],s[1]);for(var v=1;vy.x,_||(w=w-Math.PI));var C=_?"left":"right",S=o.getModel("label"),x=S.get("rotate"),b=x*(Math.PI/180),I=p.getTextContent();I&&(p.setTextConfig({position:S.get("position")||C,rotation:x==null?-w:b,origin:"center"}),I.setStyle("verticalAlign","middle"))}var F=o.get(["emphasis","focus"]),E=F==="relative"?yv(A.getAncestorsIndices(),A.getDescendantIndices()):F==="ancestor"?A.getAncestorsIndices():F==="descendant"?A.getDescendantIndices():null;E&&(Ct(e).focus=E),v9(a,A,u,e,v,h,d,n),e.__edge&&(e.onHoverStateChange=function(D){if(D!=="blur"){var Q=A.parentNode&&r.getItemGraphicEl(A.parentNode.dataIndex);Q&&Q.hoverState===Lf||Iv(e.__edge,D)}})}function v9(r,t,e,n,a,i,A,o){var s=t.getModel(),l=r.get("edgeShape"),u=r.get("layout"),f=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=s.getModel("lineStyle").getLineStyle(),d=n.__edge;if(l==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=n.__edge=new Uf({shape:lw(u,f,c,a,a)})),zt(d,{shape:lw(u,f,c,i,A)},r));else if(l==="polyline"&&u==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,g=[],y=0;ye&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var n=e.getData().tree.root,a=r.targetNode;if(nt(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function qP(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function nC(r,t){var e=qP(r);return Qt(e,t)>=0}function gp(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var C9=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},a=e.leaves||{},i=new Yt(a,this,this.ecModel),A=rC.createTree(n,this,o);function o(f){f.wrapMethod("getItemModel",function(c,h){var v=A.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(c.parentModel=i),c})}var s=0;A.eachNode("preorder",function(f){f.depth>s&&(s=f.depth)});var l=e.expandAndCollapse,u=l&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return A.root.eachNode("preorder",function(f){var c=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=c&&c.collapsed!=null?!c.collapsed:f.depth<=u}),A.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,n,a){for(var i=this.getData().tree,A=i.root.children[0],o=i.getNodeByDataIndex(e),s=o.getValue(),l=o.name;o&&o!==A;)l=o.parentNode.name+"."+l,o=o.parentNode;return ke("nameValue",{name:l,value:s,noValue:isNaN(s)||s==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=gp(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(se);function S9(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var A=i.children;if(A.length)for(var o=0;o=0;i--)e.push(a[i])}}function x9(r,t){r.eachSeriesByType("tree",function(e){b9(e,t)})}function b9(r,t){var e=i9(r,t);r.layoutInfo=e;var n=r.get("layout"),a=0,i=0,A=null;n==="radial"?(a=2*Math.PI,i=Math.min(e.height,e.width)/2,A=qT(function(m,w){return(m.parentNode===w.parentNode?1:2)/m.depth})):(a=e.width,i=e.height,A=qT());var o=r.getData().tree.root,s=o.children[0];if(s){r9(o),S9(s,n9,A),o.hierNode.modifier=-s.hierNode.prelim,Pl(s,a9);var l=s,u=s,f=s;Pl(s,function(m){var w=m.getLayout().x;wu.getLayout().x&&(u=m),m.depth>f.depth&&(f=m)});var c=l===u?1:A(l,u)/2,h=c-l.getLayout().x,v=0,d=0,p=0,g=0;if(n==="radial")v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Pl(s,function(m){p=(m.getLayout().x+h)*v,g=(m.depth-1)*d;var w=au(p,g);m.setLayout({x:w.x,y:w.y,rawX:p,rawY:g},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(d=i/(u.getLayout().x+c+h),v=a/(f.depth-1||1),Pl(s,function(m){g=(m.getLayout().x+h)*d,p=y==="LR"?(m.depth-1)*v:a-(m.depth-1)*v,m.setLayout({x:p,y:g},!0)})):(y==="TB"||y==="BT")&&(v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Pl(s,function(m){p=(m.getLayout().x+h)*v,g=y==="TB"?(m.depth-1)*d:i-(m.depth-1)*d,m.setLayout({x:p,y:g},!0)}))}}}function T9(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),A=i.getModel("itemStyle").getItemStyle(),o=e.ensureUniqueItemVisual(a.dataIndex,"style");V(o,A)})})}function I9(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,A=i.getNodeByDataIndex(a);A.isExpand=!A.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,A=tC(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}function F9(r){r.registerChartView(h9),r.registerSeriesModel(C9),r.registerLayout(x9),r.registerVisual(T9),I9(r)}var nI=["treemapZoomToNode","treemapRender","treemapMove"];function E9(r){for(var t=0;t1;)i=i.parentNode;var A=R0(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",A)})}var D9=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};tR(a);var i=e.levels||[],A=this.designatedVisualItemStyle={},o=new Yt({itemStyle:A},this,n);i=e.levels=Q9(i,n);var s=Y(i||[],function(f){return new Yt(f,o,n)},this),l=rC.createTree(a,this,u);function u(f){f.wrapMethod("getItemModel",function(c,h){var v=l.getNodeByDataIndex(h),d=v?s[v.depth]:null;return c.parentModel=d||o,c})}return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),A=this.getRawValue(e),o=i.getName(e);return ke("nameValue",{name:o,value:A})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=gp(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ft(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){jP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(se);function tR(r){var t=0;T(r.children,function(n){tR(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}function Q9(r,t){var e=qt(t.get("color")),n=qt(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;T(r,function(o){var s=new Yt(o),l=s.get("color"),u=s.get("decal");(s.get(["itemStyle","color"])||l&&l!=="none")&&(a=!0),(s.get(["itemStyle","decal"])||u&&u!=="none")&&(i=!0)});var A=r[0]||(r[0]={});return a||(A.color=e.slice()),!i&&n&&(A.decal=n.slice()),r}}var L9=8,aI=8,By=5,M9=function(){function r(t){this.group=new _t,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),A=this.group;if(A.removeAll(),!(!i.get("show")||!n)){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,l),this._renderContent(t,f,o,s,l,u,a),ap(A,f.pos,f.box)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=De(a.getModel().get("name"),""),A=n.getTextRect(i),o=Math.max(A.width+L9*2,e.emptyItemWidth);e.totalWidth+=o+aI,e.renderList.push({node:a,text:i,width:o})}},r.prototype._renderContent=function(t,e,n,a,i,A,o){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),f=K3(e.pos,e.box),c=e.totalWidth,h=e.renderList,v=a.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var p=h[d],g=p.node,y=p.width,m=p.text;c>f.width&&(c-=y-l,y=l,m=null);var w=new Sr({shape:{points:U9(s,0,y,u,d===h.length-1,d===0)},style:gt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gt({style:oe(i,{text:m})}),textConfig:{position:"inside"},z2:Js*1e4,onclick:bt(o,g)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=oe(A,{text:m}),w.ensureState("emphasis").style=v,ye(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),P9(w,t,g),s+=y+aI}},r.prototype.remove=function(){this.group.removeAll()},r}();function U9(r,t,e,n,a,i){var A=[[a?r:r-By,t],[r+e,t],[r+e,t+n],[a?r:r-By,t+n]];return!i&&A.splice(2,0,[r+e+By,t+n/2]),!a&&A.push([r,t+n/2]),A}function P9(r,t,e){Ct(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&gp(e,t)}}var R9=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;aAI||Math.abs(e.dy)>AI)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY,i=e.scale;if(this._state!=="animating"){var A=this.seriesModel.getData().tree.root;if(!A)return;var o=A.getLayout();if(!o)return;var s=new Dt(o.x,o.y,o.width,o.height),l=null,u=this._controllerHost;l=u.zoomLimit;var f=u.zoom=u.zoom||1;if(f*=i,l){var c=l.min||0,h=l.max||1/0;f=Math.max(Math.min(h,f),c)}var v=f/u.zoom;u.zoom=f;var d=this.seriesModel.layoutInfo;n-=d.x,a-=d.y;var p=Wr();va(p,p,[-n,-a]),WB(p,p,[v,v]),va(p,p,[n,a]),s.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var A=n.findTarget(a.offsetX,a.offsetY);if(A){var o=A.node;if(o.getLayout().isLeafRoot)n._rootToNode(A);else if(i==="zoomToNode")n._zoomToNode(A);else if(i==="link"){var s=o.hostTree.data.getItemModel(o.dataIndex),l=s.get("link",!0),u=s.get("target",!0)||"blank";l&&Mv(l,u)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new M9(this.group))).render(e,n,a.node,function(A){i._state!=="animating"&&(nC(e.getViewRoot(),A)?i._rootToNode({node:A}):i._zoomToNode({node:A}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Rl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(A){var o=this._storage.background[A.getRawIndex()];if(o){var s=o.transformCoordToLocal(e,n),l=o.shape;if(l.x<=s[0]&&s[0]<=l.x+l.width&&l.y<=s[1]&&s[1]<=l.y+l.height)a={node:A,offsetX:s[0],offsetY:s[1]};else return!1}},this),a},t.type="treemap",t}(jt);function Rl(){return{nodeGroup:[],background:[],content:[]}}function G9(r,t,e,n,a,i,A,o,s,l){if(!A)return;var u=A.getLayout(),f=r.getData(),c=A.getModel();if(f.setItemGraphicEl(A.dataIndex,null),!u||!u.isInView)return;var h=u.width,v=u.height,d=u.borderWidth,p=u.invisible,g=A.getRawIndex(),y=o&&o.getRawIndex(),m=A.viewChildren,w=u.upperHeight,_=m&&m.length,B=c.getModel("itemStyle"),C=c.getModel(["emphasis","itemStyle"]),S=c.getModel(["blur","itemStyle"]),x=c.getModel(["select","itemStyle"]),b=B.get("borderRadius")||0,I=lt("nodeGroup",uw);if(!I)return;if(s.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),$v(I).nodeWidth=h,$v(I).nodeHeight=v,u.isAboveViewRoot)return I;var F=lt("background",iI,l,k9);F&&O(I,F,_&&u.upperLabelHeight);var E=c.getModel("emphasis"),D=E.get("focus"),Q=E.get("blurScope"),M=E.get("disabled"),R=D==="ancestor"?A.getAncestorsIndices():D==="descendant"?A.getDescendantIndices():D;if(_)nf(I)&&zA(I,!1),F&&(zA(F,!M),f.setItemGraphicEl(A.dataIndex,F),F0(F,R,Q));else{var P=lt("content",iI,l,N9);P&&G(I,P),F.disableMorphing=!0,F&&nf(F)&&zA(F,!1),zA(I,!M),f.setItemGraphicEl(A.dataIndex,I),F0(I,R,Q)}return I;function O(N,z,$){var q=Ct(z);if(q.dataIndex=A.dataIndex,q.seriesIndex=r.seriesIndex,z.setShape({x:0,y:0,width:h,height:v,r:b}),p)X(z);else{z.invisible=!1;var j=A.getVisual("style"),ct=j.stroke,L=lI(B);L.fill=ct;var U=MA(C);U.fill=C.get("borderColor");var k=MA(S);k.fill=S.get("borderColor");var Z=MA(x);if(Z.fill=x.get("borderColor"),$){var W=h-2*d;J(z,ct,j.opacity,{x:d,y:0,width:W,height:w})}else z.removeTextContent();z.setStyle(L),z.ensureState("emphasis").style=U,z.ensureState("blur").style=k,z.ensureState("select").style=Z,po(z)}N.add(z)}function G(N,z){var $=Ct(z);$.dataIndex=A.dataIndex,$.seriesIndex=r.seriesIndex;var q=Math.max(h-2*d,0),j=Math.max(v-2*d,0);if(z.culling=!0,z.setShape({x:d,y:d,width:q,height:j,r:b}),p)X(z);else{z.invisible=!1;var ct=A.getVisual("style"),L=ct.fill,U=lI(B);U.fill=L,U.decal=ct.decal;var k=MA(C),Z=MA(S),W=MA(x);J(z,L,ct.opacity,null),z.setStyle(U),z.ensureState("emphasis").style=k,z.ensureState("blur").style=Z,z.ensureState("select").style=W,po(z)}N.add(z)}function X(N){!N.invisible&&i.push(N)}function J(N,z,$,q){var j=c.getModel(q?sI:oI),ct=De(c.get("name"),null),L=j.getShallow("show");Je(N,Oe(c,q?sI:oI),{defaultText:L?ct:null,inheritColor:z,defaultOpacity:$,labelFetcher:r,labelDataIndex:A.dataIndex});var U=N.getTextContent();if(U){var k=U.style,Z=GB(k.padding||0);q&&(N.setTextConfig({layoutRect:q}),U.disableLabelLayout=!0),U.beforeUpdate=function(){var tt=Math.max((q?q.width:N.shape.width)-Z[1]-Z[3],0),ot=Math.max((q?q.height:N.shape.height)-Z[0]-Z[2],0);(k.width!==tt||k.height!==ot)&&U.setStyle({width:tt,height:ot})},k.truncateMinChar=2,k.lineOverflow="truncate",At(k,q,u);var W=U.getState("emphasis");At(W?W.style:null,q,u)}}function At(N,z,$){var q=N?N.text:null;if(!z&&$.isLeafRoot&&q!=null){var j=r.get("drillDownIcon",!0);N.text=j?j+" "+q:q}}function lt(N,z,$,q){var j=y!=null&&e[N][y],ct=a[N];return j?(e[N][y]=null,wt(ct,j)):p||(j=new z,j instanceof gn&&(j.z2=K9($,q)),Bt(ct,j)),t[N][g]=j}function wt(N,z){var $=N[g]={};z instanceof uw?($.oldX=z.x,$.oldY=z.y):$.oldShape=V({},z.shape)}function Bt(N,z){var $=N[g]={},q=A.parentNode,j=z instanceof _t;if(q&&(!n||n.direction==="drillDown")){var ct=0,L=0,U=a.background[q.getRawIndex()];!n&&U&&U.oldShape&&(ct=U.oldShape.width,L=U.oldShape.height),j?($.oldX=0,$.oldY=L):$.oldShape={x:ct,y:L,width:0,height:0}}$.fadein=!j}}function K9(r,t){return r*O9+t}var yf=T,z9=yt,Jv=-1,He=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=mt(t);this.type=n,this.mappingMethod=e,this._normalizeData=Y9[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(_y(a),W9(a)):e==="category"?a.categories?X9(a):_y(a,!0):(Br(e!=="linear"||a.dataExtent),_y(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return it(this._normalizeData,this)},r.listVisualTypes=function(){return Ht(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){yt(t)?T(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=K(t)?[]:yt(t)?{}:(a=!0,null);return r.eachVisual(t,function(A,o){var s=e.call(n,A,o);a?i=s:i[o]=s}),i},r.retrieveVisuals=function(t){var e={},n;return t&&yf(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(K(t))t=t.slice();else if(z9(t)){var e=[];yf(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var a,i=1/0,A=0,o=e.length;A=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function _y(r,t){var e=r.visual,n=[];yt(e)?yf(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),eR(r,n)}function Zc(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:fw([0,1])}}function uI(r){var t=this.option.visual;return t[Math.round($t(r,[0,1],[0,t.length-1],!0))]||{}}function Hl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function iu(r){var t=this.option.visual;return t[this.option.loop&&r!==Jv?r%t.length:r]}function UA(){return this.option.visual[0]}function fw(r){return{linear:function(t){return $t(t,r,this.option.visual,!0)},category:iu,piecewise:function(t,e){var n=cw.call(this,e);return n==null&&(n=$t(t,r,this.option.visual,!0)),n},fixed:UA}}function cw(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=He.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function eR(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var n=Xr(e);return n||[0,0,0,1]})),t}var Y9={linear:function(r){return $t(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=He.findPieceIndex(r,t,!0);if(e!=null)return $t(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Jv},fixed:Be};function $c(r,t,e){return r?t<=e:t=e.length||d===e[d.depth]){var g=t7(a,s,d,p,v,n);nR(d,g,e,n)}})}}}function J9(r,t,e){var n=V({},t),a=e.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var A=r.get(i);a[i]=null,A!=null&&(n[i]=A)}),n}function fI(r){var t=Cy(r,"color");if(t){var e=Cy(r,"colorAlpha"),n=Cy(r,"colorSaturation");return n&&(t=Su(t,null,null,n)),e&&(t=_v(t,e)),t}}function q9(r,t){return t!=null?Su(t,null,null,r):null}function Cy(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function j9(r,t,e,n,a,i){if(!(!i||!i.length)){var A=Sy(t,"color")||a.color!=null&&a.color!=="none"&&(Sy(t,"colorAlpha")||Sy(t,"colorSaturation"));if(A){var o=t.get("visualMin"),s=t.get("visualMax"),l=e.dataExtent.slice();o!=null&&ol[1]&&(l[1]=s);var u=t.get("colorMappingBy"),f={type:A.name,dataExtent:l,visual:A.range};f.type==="color"&&(u==="index"||u==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var c=new He(f);return rR(c).drColorMappingBy=u,c}}}function Sy(r,t){var e=r.get(t);return K(e)&&e.length?{name:t,range:e}:null}function t7(r,t,e,n,a,i){var A=V({},t);if(a){var o=a.type,s=o==="color"&&rR(a).drColorMappingBy,l=s==="index"?n:s==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));A[o]=a.mapValueToVisual(l)}return A}var mf=Math.max,qv=Math.min,cI=Ge,aC=T,aR=["itemStyle","borderWidth"],e7=["itemStyle","gapWidth"],r7=["upperLabel","show"],n7=["upperLabel","height"];const a7={seriesType:"treemap",reset:function(r,t,e,n){var a=e.getWidth(),i=e.getHeight(),A=r.option,o=Le(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),s=A.size||[],l=et(cI(o.width,s[0]),a),u=et(cI(o.height,s[1]),i),f=n&&n.type,c=["treemapZoomToNode","treemapRootToNode"],h=gf(n,c,r),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),p=qP(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?u7(r,h,d,l,u):v?[v.width,v.height]:[l,u],y=A.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:A.squareRatio,sort:y,leafDepth:A.leafDepth};d.hostTree.clearLayouts();var w={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(w),iR(d,m,!1,0),w=d.getLayout(),aC(p,function(B,C){var S=(p[C+1]||d).getValue();B.setLayout(V({dataExtent:[S,S],borderWidth:0,upperHeight:0},w))})}var _=r.getData().tree.root;_.setLayout(f7(o,v,h),!0),r.setLayoutInfo(o),AR(_,new Dt(-o.x,-o.y,a,i),p,d,0)}};function iR(r,t,e,n){var a,i;if(!r.isRemoved()){var A=r.getLayout();a=A.width,i=A.height;var o=r.getModel(),s=o.get(aR),l=o.get(e7)/2,u=oR(o),f=Math.max(s,u),c=s-l,h=f-l;r.setLayout({borderWidth:s,upperHeight:f,upperLabelHeight:u},!0),a=mf(a-2*c,0),i=mf(i-c-h,0);var v=a*i,d=i7(r,o,v,t,e,n);if(d.length){var p={x:c,y:h,width:a,height:i},g=qv(a,i),y=1/0,m=[];m.area=0;for(var w=0,_=d.length;w<_;){var B=d[w];m.push(B),m.area+=B.getLayout().area;var C=l7(m,g,t.squareRatio);C<=y?(w++,y=C):(m.area-=m.pop().getLayout().area,hI(m,g,p,l,!1),g=qv(p.width,p.height),m.length=m.area=0,y=1/0)}if(m.length&&hI(m,g,p,l,!0),!e){var S=o.get("childrenVisibleMin");S!=null&&v=0;s--){var l=a[n==="asc"?A-s-1:s].getValue();l/e*to[1]&&(o[1]=l)})),{sum:n,dataExtent:o}}function l7(r,t,e){for(var n=0,a=1/0,i=0,A=void 0,o=r.length;in&&(n=A));var s=r.area*r.area,l=t*t*e;return s?mf(l*n/s,s/(l*a)):1/0}function hI(r,t,e,n,a){var i=t===e.width?0:1,A=1-i,o=["x","y"],s=["width","height"],l=e[o[i]],u=t?r.area/t:0;(a||u>e[s[A]])&&(u=e[s[A]]);for(var f=0,c=r.length;fxS&&(l=xS),i=o}ln&&(n=t);var i=n%2?n+2:n+3;a=[];for(var A=0;A0&&(_[0]=-_[0],_[1]=-_[1]);var C=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var S=-Math.atan2(w[1],w[0]);f[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*g+u[0],i.y=-c[1]*y+u[1],v=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*C+u[0],i.y=u[1]+x,v=w[0]<0?"right":"left",i.originX=-g*C,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=B[0],i.y=B[1]+x,v="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*C+f[0],i.y=f[1]+x,v=w[0]>=0?"right":"left",i.originX=g*C,i.originY=-x;break}i.scaleX=i.scaleY=A,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||v})}},t}(_t),lC=function(){function r(t){this.group=new _t,this._LineCtor=t||sC}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var A=mI(t);t.diff(i).add(function(o){e._doAdd(t,o,A)}).update(function(o,s){e._doUpdate(i,t,s,o,A)}).remove(function(o){a.remove(i.getItemGraphicEl(o))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=mI(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(o){!o.isGroup&&!F7(o)&&(o.incremental=!0,o.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function mI(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Oe(t)}}function wI(r){return isNaN(r[0])||isNaN(r[1])}function Fy(r){return r&&!wI(r[0])&&!wI(r[1])}var Ey=[],Dy=[],Qy=[],zo=Ve,Ly=jA,BI=Math.abs;function _I(r,t,e){for(var n=r[0],a=r[1],i=r[2],A=1/0,o,s=e*e,l=.1,u=.1;u<=.9;u+=.1){Ey[0]=zo(n[0],a[0],i[0],u),Ey[1]=zo(n[1],a[1],i[1],u);var f=BI(Ly(Ey,t)-s);f=0?o=o+l:o=o-l:v>=0?o=o-l:o=o+l}return o}function My(r,t){var e=[],n=Ju,a=[[],[],[]],i=[[],[]],A=[];t/=2,r.eachEdge(function(o,s){var l=o.getLayout(),u=o.getVisual("fromSymbol"),f=o.getVisual("toSymbol");l.__original||(l.__original=[Ra(l[0]),Ra(l[1])],l[2]&&l.__original.push(Ra(l[2])));var c=l.__original;if(l[2]!=null){if(vr(a[0],c[0]),vr(a[1],c[2]),vr(a[2],c[1]),u&&u!=="none"){var h=ou(o.node1),v=_I(a,c[0],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],v,e),a[0][1]=e[3],a[1][1]=e[4]}if(f&&f!=="none"){var h=ou(o.node2),v=_I(a,c[1],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],v,e),a[1][1]=e[1],a[2][1]=e[2]}vr(l[0],a[0]),vr(l[1],a[2]),vr(l[2],a[1])}else{if(vr(i[0],c[0]),vr(i[1],c[1]),GA(A,i[1],i[0]),Ys(A,A),u&&u!=="none"){var h=ou(o.node1);t0(i[0],i[0],A,h*t)}if(f&&f!=="none"){var h=ou(o.node2);t0(i[1],i[1],A,-h*t)}vr(l[0],i[0]),vr(l[1],i[1])}})}function CI(r){return r.type==="view"}var E7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){var a=new Kf,i=new lC,A=this.group;this._controller=new Zf(n.getZr()),this._controllerHost={target:A},A.add(a.group),A.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,A=e.coordinateSystem;this._model=e;var o=this._symbolDraw,s=this._lineDraw,l=this.group;if(CI(A)){var u={x:A.x,y:A.y,scaleX:A.scaleX,scaleY:A.scaleY};this._firstRender?l.attr(u):zt(l,u,e)}My(e.getGraph(),Au(e));var f=e.getData();o.updateData(f);var c=e.getEdgeData();s.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,n,a),clearTimeout(this._layoutTimeout);var h=e.forceLayout,v=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var d=e.get("layout");f.graph.eachNode(function(m){var w=m.dataIndex,_=m.getGraphicEl(),B=m.getModel();if(_){_.off("drag").off("dragend");var C=B.get("draggable");C&&_.on("drag",function(x){switch(d){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[_.x,_.y]);break;case"circular":f.setItemLayout(w,[_.x,_.y]),m.setLayout({fixed:!0},!0),oC(e,"symbolSize",m,[x.offsetX,x.offsetY]),i.updateLayout(e);break;case"none":default:f.setItemLayout(w,[_.x,_.y]),AC(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),_.setDraggable(C,!!B.get("cursor"));var S=B.get(["emphasis","focus"]);S==="adjacency"&&(Ct(_).focus=m.getAdjacentDataIndices())}}),f.graph.eachEdge(function(m){var w=m.getGraphicEl(),_=m.getModel().get(["emphasis","focus"]);w&&_==="adjacency"&&(Ct(w).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var p=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),g=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(m){fR(m,p,g,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var a=this;(function i(){e.step(function(A){a.updateLayout(a._model),(a._layouting=!A)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,n,a){var i=this,A=this._controller,o=this._controllerHost,s=this.group;if(A.setPointerChecker(function(l,u,f){var c=s.getBoundingRect();return c.applyTransform(s.transform),c.contain(u,f)&&!dp(l,a,e)}),!CI(e.coordinateSystem)){A.disable();return}A.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),A.off("pan").off("zoom").on("pan",function(l){J_(o,l.dx,l.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){q_(o,l.scale,l.originX,l.originY),a.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY}),i._updateNodeAndLinkScale(),My(e.getGraph(),Au(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=Au(e);n.eachItemGraphicEl(function(i,A){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){My(e.getGraph(),Au(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(jt);function Wo(r){return"_EC_"+r}var D7=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[Wo(t)]){var a=new PA(t,e);return a.hostGraph=this,this.nodes.push(a),n[Wo(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Wo(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Kt(t)&&(t=this.nodes[t]),Kt(e)&&(e=this.nodes[e]),t instanceof PA||(t=a[Wo(t)]),e instanceof PA||(e=a[Wo(e)]),!(!t||!e)){var A=t.id+"-"+e.id,o=new hR(t,e,n);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),i[A]=o,o}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof PA&&(t=t.id),e instanceof PA&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,a=n.length,i=0;i=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof PA||(e=this._nodesMap[Wo(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",A=0;A=0&&s.node2.dataIndex>=0});for(var i=0,A=a.length;i=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}Fe(PA,vR("hostGraph","data"));Fe(hR,vR("hostGraph","edgeData"));function dR(r,t,e,n,a){for(var i=new D7(n),A=0;A "+c)),l++)}var h=e.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=ri(r,e);else{var d=Of.get(h),p=d?d.dimensions||[]:[];Qt(p,"value")<0&&p.concat(["value"]);var g=Nf(r,{coordDimensions:p,encodeDefine:e.getEncode()}).dimensions;v=new mr(g,e),v.initData(r)}var y=new mr(["value"],e);return y.initData(s,o),a&&a(v,y),$P({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Q7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Yf(a,a),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),co(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],A=this;if(i&&a){y7(this);var o=dR(i,a,this,!0,s);return T(o.edges,function(l){m7(l.node1,l.node2,this,l.dataIndex)},this),o.data}function s(l,u){l.wrapMethod("getItemModel",function(v){var d=A._categoriesModels,p=v.getShallow("category"),g=d[p];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var f=Yt.prototype.getModel;function c(v,d){var p=f.call(this,v,d);return p.resolveParentPath=h,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,n,a){if(a==="edge"){var i=this.getData(),A=this.getDataParams(e,a),o=i.graph.getEdgeByIndex(e),s=i.getName(o.node1.dataIndex),l=i.getName(o.node2.dataIndex),u=[];return s!=null&&u.push(s),l!=null&&u.push(l),ke("nameValue",{name:u.join(" > "),value:A.value,noValue:A.value==null})}var f=kU({series:this,dataIndex:e,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(a){return a.value!=null?a:V({value:0},a)}),n=new mr(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(se),L7={type:"graphRoam",event:"graphRoam",update:"none"};function M7(r){r.registerChartView(E7),r.registerSeriesModel(Q7),r.registerProcessor(h7),r.registerVisual(v7),r.registerVisual(d7),r.registerLayout(w7),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,_7),r.registerLayout(S7),r.registerCoordinateSystem("graphView",{dimensions:$f.dimensions,create:b7}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Be),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Be),r.registerAction(L7,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,A=tC(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}var U7=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),P7=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new U7},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,A=n.r,o=n.width,s=n.angle,l=n.x-a(s)*o*(o>=A/3?1:2),u=n.y-i(s)*o*(o>=A/3?1:2);s=n.angle-Math.PI/2,e.moveTo(l,u),e.lineTo(n.x+a(s)*o,n.y+i(s)*o),e.lineTo(n.x+a(n.angle)*A,n.y+i(n.angle)*A),e.lineTo(n.x-a(s)*o,n.y-i(s)*o),e.lineTo(l,u)},t}(Mt);function R7(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),A=et(e[0],t.getWidth()),o=et(e[1],t.getHeight()),s=et(r.get("radius"),i/2);return{cx:A,cy:o,r:s}}function qc(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var H7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),A=R7(e,a);this._renderMain(e,n,a,i,A),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,A){var o=this.group,s=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,f=e.getModel("axisLine"),c=f.get("roundCap"),h=c?Xv:Cr,v=f.get("show"),d=f.getModel("lineStyle"),p=d.get("width"),g=[l,u];e_(g,!s),l=g[0],u=g[1];for(var y=u-l,m=l,w=[],_=0;v&&_=x&&(b===0?0:i[b-1][0])Math.PI/2&&(lt+=Math.PI)):At==="tangential"?lt=-S-Math.PI/2:Kt(At)&&(lt=At*Math.PI/180),lt===0?f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:Q<-.8?"top":Q>.8?"bottom":"middle",align:D<-.4?"left":D>.4?"right":"center"},{inheritColor:G}),silent:!0})):f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:X,originY:J,rotation:lt}))}if(y.get("show")&&M!==w){var R=y.get("distance");R=R?R+u:u;for(var wt=0;wt<=_;wt++){D=Math.cos(S),Q=Math.sin(S);var Bt=new Pe({shape:{x1:D*(v-R)+c,y1:Q*(v-R)+h,x2:D*(v-C-R)+c,y2:Q*(v-C-R)+h},silent:!0,style:F});F.stroke==="auto"&&Bt.setStyle({stroke:i((M+wt/_)/w)}),f.add(Bt),S+=b}S-=b}else S+=x}},t.prototype._renderPointer=function(e,n,a,i,A,o,s,l,u){var f=this.group,c=this._data,h=this._progressEls,v=[],d=e.get(["pointer","show"]),p=e.getModel("progress"),g=p.get("show"),y=e.getData(),m=y.mapDimension("value"),w=+e.get("min"),_=+e.get("max"),B=[w,_],C=[o,s];function S(b,I){var F=y.getItemModel(b),E=F.getModel("pointer"),D=et(E.get("width"),A.r),Q=et(E.get("length"),A.r),M=e.get(["pointer","icon"]),R=E.get("offsetCenter"),P=et(R[0],A.r),O=et(R[1],A.r),G=E.get("keepAspect"),X;return M?X=Ie(M,P-D/2,O-Q,D,Q,null,G):X=new P7({shape:{angle:-Math.PI/2,width:D,r:Q,x:P,y:O}}),X.rotation=-(I+Math.PI/2),X.x=A.cx,X.y=A.cy,X}function x(b,I){var F=p.get("roundCap"),E=F?Xv:Cr,D=p.get("overlap"),Q=D?p.get("width"):u/y.count(),M=D?A.r-Q:A.r-(b+1)*Q,R=D?A.r:A.r-b*Q,P=new E({shape:{startAngle:o,endAngle:I,cx:A.cx,cy:A.cy,clockwise:l,r0:M,r:R}});return D&&(P.z2=_-y.get(m,b)%_),P}(g||d)&&(y.diff(c).add(function(b){var I=y.get(m,b);if(d){var F=S(b,o);ue(F,{rotation:-((isNaN(+I)?C[0]:$t(I,B,C,!0))+Math.PI/2)},e),f.add(F),y.setItemGraphicEl(b,F)}if(g){var E=x(b,o),D=p.get("clip");ue(E,{shape:{endAngle:$t(I,B,C,D)}},e),f.add(E),b0(e.seriesIndex,y.dataType,b,E),v[b]=E}}).update(function(b,I){var F=y.get(m,b);if(d){var E=c.getItemGraphicEl(I),D=E?E.rotation:o,Q=S(b,D);Q.rotation=D,zt(Q,{rotation:-((isNaN(+F)?C[0]:$t(F,B,C,!0))+Math.PI/2)},e),f.add(Q),y.setItemGraphicEl(b,Q)}if(g){var M=h[I],R=M?M.shape.endAngle:o,P=x(b,R),O=p.get("clip");zt(P,{shape:{endAngle:$t(F,B,C,O)}},e),f.add(P),b0(e.seriesIndex,y.dataType,b,P),v[b]=P}}).execute(),y.each(function(b){var I=y.getItemModel(b),F=I.getModel("emphasis"),E=F.get("focus"),D=F.get("blurScope"),Q=F.get("disabled");if(d){var M=y.getItemGraphicEl(b),R=y.getItemVisual(b,"style"),P=R.fill;if(M instanceof Ke){var O=M.style;M.useStyle(V({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},R))}else M.useStyle(R),M.type!=="pointer"&&M.setColor(P);M.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),M.style.fill==="auto"&&M.setStyle("fill",i($t(y.get(m,b),B,[0,1],!0))),M.z2EmphasisLift=0,$e(M,I),ye(M,E,D,Q)}if(g){var G=v[b];G.useStyle(y.getItemVisual(b,"style")),G.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,$e(G,I),ye(G,E,D,Q)}}),this._progressEls=v)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var A=a.get("size"),o=a.get("icon"),s=a.get("offsetCenter"),l=a.get("keepAspect"),u=Ie(o,n.cx-A/2+et(s[0],n.r),n.cy-A/2+et(s[1],n.r),A,A,null,l);u.z2=a.get("showAbove")?1:0,u.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,A){var o=this,s=e.getData(),l=s.mapDimension("value"),u=+e.get("min"),f=+e.get("max"),c=new _t,h=[],v=[],d=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);s.diff(this._data).add(function(g){h[g]=new Gt({silent:!0}),v[g]=new Gt({silent:!0})}).update(function(g,y){h[g]=o._titleEls[y],v[g]=o._detailEls[y]}).execute(),s.each(function(g){var y=s.getItemModel(g),m=s.get(l,g),w=new _t,_=i($t(m,[u,f],[0,1],!0)),B=y.getModel("title");if(B.get("show")){var C=B.get("offsetCenter"),S=A.cx+et(C[0],A.r),x=A.cy+et(C[1],A.r),b=h[g];b.attr({z2:p?0:2,style:oe(B,{x:S,y:x,text:s.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:_})}),w.add(b)}var I=y.getModel("detail");if(I.get("show")){var F=I.get("offsetCenter"),E=A.cx+et(F[0],A.r),D=A.cy+et(F[1],A.r),Q=et(I.get("width"),A.r),M=et(I.get("height"),A.r),R=e.get(["progress","show"])?s.getItemVisual(g,"style").fill:_,b=v[g],P=I.get("formatter");b.attr({z2:p?0:2,style:oe(I,{x:E,y:D,text:qc(m,P),width:isNaN(Q)?null:Q,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:R})}),KM(b,{normal:I},m,function(G){return qc(G,P)}),d&&zM(b,g,s,e,{getFormattedLabel:function(G,X,J,At,lt,wt){return qc(wt?wt.interpolatedValue:m,P)}}),w.add(b)}c.add(w)}),this.group.add(c),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(jt),O7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return ll(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(se);function k7(r){r.registerChartView(H7),r.registerSeriesModel(O7)}var N7=["itemStyle","opacity"],V7=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=a,A=new xr,o=new Gt;return i.setTextContent(o),a.setTextGuideLine(A),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,A=e.hostModel,o=e.getItemModel(n),s=e.getItemLayout(n),l=o.getModel("emphasis"),u=o.get(N7);u=u??1,a||Hn(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:s.points}),i.style.opacity=0,ue(i,{style:{opacity:u}},A,n)):zt(i,{style:{opacity:u},shape:{points:s.points}},A,n),$e(i,o),this._updateLabel(e,n),ye(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),A=a.getTextContent(),o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=l.label,f=e.getItemVisual(n,"style"),c=f.fill;Je(A,Oe(s),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:e.getName(n)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),a.setTextConfig({local:!0,inside:!!u.inside,insideStroke:c,outsideFill:c});var h=u.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new It(h[0][0],h[0][1]):null},zt(A,{style:{x:u.x,y:u.y}},o,n),A.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),k_(a,N_(s),{stroke:c})},t}(Sr),G7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this._data,o=this.group;i.diff(A).add(function(s){var l=new V7(i,s);i.setItemGraphicEl(s,l),o.add(l)}).update(function(s,l){var u=A.getItemGraphicEl(l);u.updateData(i,s),o.add(u),i.setItemGraphicEl(s,u)}).remove(function(s){var l=A.getItemGraphicEl(s);af(l,e,s)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(jt),K7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return ll(this,{coordDimensions:["value"],encodeDefaulter:bt(y_,this)})},t.prototype._defaultLabelLine=function(e){co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),A=n.getSum(i);return a.percent=A?+(n.get(i,e)/A*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(se);function z7(r,t){return Le(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function W7(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(s){return s}),a=[],i=t==="ascending",A=0,o=r.count();As$)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Py(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Py(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var f$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Et(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],a=Jt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);T(a,function(i){e.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Rt),c$=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o.axisIndex=A,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(kn);function Fo(r,t,e,n,a,i){r=r||0;var A=e[1]-e[0];if(a!=null&&(a=Xo(a,[0,A])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var o=Math.abs(t[1]-t[0]);o=Xo(o,[0,A]),a=i=Xo(o,[a,i]),n=0}t[0]=Xo(t[0],e),t[1]=Xo(t[1],e);var s=Ry(t,n);t[n]+=r;var l=a||0,u=e.slice();s.sign<0?u[0]+=l:u[1]-=l,t[n]=Xo(t[n],u);var f;return f=Ry(t,n),a!=null&&(f.sign!==s.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function Ry(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Xo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Hy=T,gR=Math.min,yR=Math.max,bI=Math.floor,h$=Math.ceil,TI=me,v$=Math.PI,d$=function(){function r(t,e,n){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=t.dimensions,i=t.parallelAxisIndex;Hy(a,function(A,o){var s=i[o],l=e.getComponent("parallelAxis",s),u=this._axesMap.set(A,new c$(A,hp(l),[0,0],l.get("type"),s)),f=u.type==="category";u.onBand=f&&l.get("boundaryGap"),u.inverse=l.get("inverse"),l.axis=u,u.model=l,u.coordinateSystem=l.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,a=e.layoutBase,i=e.pixelDimIndex,A=t[1-i],o=t[i];return A>=n&&A<=n+e.axisLength&&o>=a&&o<=a+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var a=n.getData();Hy(this.dimensions,function(i){var A=this._axesMap.get(i);A.scale.unionExtentFromData(a,a.mapDimension(i)),Os(A.scale,A.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=Le(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),A=i==="horizontal"?0:1,o=e[a[A]],s=[0,o],l=this.dimensions.length,u=jc(t.get("axisExpandWidth"),s),f=jc(t.get("axisExpandCount")||0,[0,l]),c=t.get("axisExpandable")&&l>3&&l>f&&f>1&&u>0&&o>0,h=t.get("axisExpandWindow"),v;if(h)v=jc(h[1]-h[0],s),h[1]=h[0]+v;else{v=jc(u*(f-1),s);var d=t.get("axisExpandCenter")||bI(l/2);h=[u*d-v/2],h[1]=h[0]+v}var p=(o-v)/(l-f);p<3&&(p=0);var g=[bI(TI(h[0]/u,1))+1,h$(TI(h[1]/u,1))-1],y=p/u*h[0];return{layout:i,pixelDimIndex:A,layoutBase:e[n[A]],layoutLength:o,axisBase:e[n[1-A]],axisLength:e[a[1-A]],axisExpandable:c,axisExpandWidth:u,axisCollapseWidth:p,axisExpandWindow:h,axisCount:l,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;e.each(function(A){var o=[0,a.axisLength],s=A.inverse?1:0;A.setExtent(o[s],o[1-s])}),Hy(n,function(A,o){var s=(a.axisExpandable?g$:p$)(o,a),l={horizontal:{x:s.position,y:a.axisLength},vertical:{x:0,y:s.position}},u={horizontal:v$/2,vertical:0},f=[l[i].x+t.x,l[i].y+t.y],c=u[i],h=Wr();Co(h,h,c),va(h,h,f),this._axesLayout[A]={position:f,rotation:c,transform:h,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,A=this.dimensions,o=[],s=[];T(A,function(p){o.push(t.mapDimension(p)),s.push(i.get(p).model)});for(var l=this.hasAxisBrushed(),u=n;ui*(1-f[0])?(l="jump",s=o-i*(1-f[2])):(s=o-i*f[1])>=0&&(s=o-i*(1-f[1]))<=0&&(s=0),s*=e.axisExpandWidth/u,s?Fo(s,a,A,"all"):l="none";else{var h=a[1]-a[0],v=A[1]*o/h;a=[yR(0,v-h/2)],a[1]=gR(A[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:l}},r}();function jc(r,t){return gR(yR(r,t[0]),t[1])}function p$(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function g$(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,A=t.winInnerIndices,o,s=i,l=!1,u;return r=0;a--)fn(n[a])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,A=n.length;i_$}function SR(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function xR(r,t,e,n){var a=new _t;return a.add(new Nt({name:"main",style:vC(e),silent:!0,draggable:!0,cursor:"move",drift:bt(EI,r,t,a,["n","s","w","e"]),ondragend:bt(mo,t,{isEnd:!0})})),T(n,function(i){a.add(new Nt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:bt(EI,r,t,a,i),ondragend:bt(mo,t,{isEnd:!0})}))}),a}function bR(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Vs(a,C$),A=e[0][0],o=e[1][0],s=A-a/2,l=o-a/2,u=e[0][1],f=e[1][1],c=u-i+a/2,h=f-i+a/2,v=u-A,d=f-o,p=v+a,g=d+a;Ta(r,t,"main",A,o,v,d),n.transformable&&(Ta(r,t,"w",s,l,i,g),Ta(r,t,"e",c,l,i,g),Ta(r,t,"n",s,l,p,i),Ta(r,t,"s",s,h,p,i),Ta(r,t,"nw",s,l,i,i),Ta(r,t,"ne",c,l,i,i),Ta(r,t,"sw",s,h,i,i),Ta(r,t,"se",c,h,i,i))}function yw(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(vC(e)),a.attr({silent:!n,cursor:n?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var A=t.childOfName(i.join("")),o=i.length===1?mw(r,i[0]):F$(r,i);A&&A.attr({silent:!n,invisible:!n,cursor:n?x$[o]+"-resize":null})})}function Ta(r,t,e,n,a,i,A){var o=t.childOfName(e);o&&o.setShape(D$(dC(r,t,[[n,a],[n+i,a+A]])))}function vC(r){return gt({strokeNoScale:!0},r.brushStyle)}function TR(r,t,e,n){var a=[Bf(r,e),Bf(t,n)],i=[Vs(r,e),Vs(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function I$(r){return ao(r.group)}function mw(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Jd(e[t],I$(r));return n[a]}function F$(r,t){var e=[mw(r,t[0]),mw(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function EI(r,t,e,n,a,i){var A=e.__brushOption,o=r.toRectRange(A.range),s=IR(t,a,i);T(n,function(l){var u=S$[l];o[u[0]][u[1]]+=s[u[0]]}),A.range=r.fromRectRange(TR(o[0][0],o[1][0],o[0][1],o[1][1])),fC(t,e),mo(t,{isEnd:!1})}function E$(r,t,e,n){var a=t.__brushOption.range,i=IR(r,e,n);T(a,function(A){A[0]+=i[0],A[1]+=i[1]}),fC(r,t),mo(r,{isEnd:!1})}function IR(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function dC(r,t,e){var n=CR(r,t);return n&&n!==yo?n.clipPath(e,r._transform):mt(e)}function D$(r){var t=Bf(r[0][0],r[1][0]),e=Bf(r[0][1],r[1][1]),n=Vs(r[0][0],r[1][0]),a=Vs(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function Q$(r,t,e){if(!(!r._brushType||M$(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=hC(r,t,e);if(!r._dragging)for(var A=0;An.getWidth()||e<0||e>n.getHeight()}var mp={lineX:LI(0),lineY:LI(1),rect:{createCover:function(r,t){function e(n){return n}return xR({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=SR(r);return TR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){bR(r,t,e,n)},updateCommon:yw,contain:Bw},polygon:{createCover:function(r,t){var e=new _t;return e.add(new xr({name:"main",style:vC(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Sr({name:"main",draggable:!0,drift:bt(E$,r,t),ondragend:bt(mo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:dC(r,t,e)})},updateCommon:yw,contain:Bw}};function LI(r){return{createCover:function(t,e){return xR({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=SR(t),n=Bf(e[0][r],e[1][r]),a=Vs(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,A=CR(t,e);if(A!==yo&&A.getLinearBrushOtherExtent)i=A.getLinearBrushOtherExtent(r);else{var o=t._zr;i=[0,[o.getWidth(),o.getHeight()][1-r]]}var s=[n,i];r&&s.reverse(),bR(t,e,s,a)},updateCommon:yw,contain:Bw}}function ER(r){return r=pC(r),function(t){return NM(t,r)}}function DR(r,t){return r=pC(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function QR(r,t,e){var n=pC(r);return function(a,i){return n.contain(i[0],i[1])&&!dp(a,t,e)}}function pC(r){return Dt.create(r)}var U$=["axisLine","axisTickLabel","axisName"],P$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new uC(n.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!R$(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var A=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var o=O$(e,n),s=o.coordinateSystem,l=e.getAreaSelectStyle(),u=l.width,f=e.axis.dim,c=s.getAxisLayout(f),h=V({strokeContainThreshold:u},c),v=new wr(e,h);T(U$,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,l,e,o,u,a),Rf(A,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,A,o){var s=a.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,Math.abs(l)*.1),f=Dt.create({x:s[0],y:-A/2,width:l,height:A});f.x-=u,f.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:ER(f),isTargetByCursor:QR(f,o,i),getLinearBrushOtherExtent:DR(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(H$(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,A=Y(n,function(o){return[i.coordToData(o.range[0],!0),i.coordToData(o.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:A})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(de);function R$(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function H$(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function O$(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var k$={type:"axisAreaSelect",event:"axisAreaSelected"};function N$(r){r.registerAction(k$,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var V$={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function LR(r){r.registerComponentView(l$),r.registerComponentModel(f$),r.registerCoordinateSystem("parallel",m$),r.registerPreprocessor(i$),r.registerComponentModel(pw),r.registerComponentView(P$),Ns(r,"parallel",pw,V$),N$(r)}function G$(r){Lt(LR),r.registerChartView(J7),r.registerSeriesModel(t$),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,a$)}var K$=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),z$=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new K$},t.prototype.buildPath=function(e,n){var a=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){Wa(this)},t.prototype.downplay=function(){Xa(this)},t}(Mt),W$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,a){var i=this,A=e.getGraph(),o=this.group,s=e.layoutInfo,l=s.width,u=s.height,f=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=s.x,o.y=s.y,A.eachEdge(function(v){var d=new z$,p=Ct(d);p.dataIndex=v.dataIndex,p.seriesIndex=e.seriesIndex,p.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),w=v.node1.getLayout(),_=v.node1.getModel(),B=_.get("localX"),C=_.get("localY"),S=v.node2.getLayout(),x=v.node2.getModel(),b=x.get("localX"),I=x.get("localY"),F=v.getLayout(),E,D,Q,M,R,P,O,G;d.shape.extent=Math.max(1,F.dy),d.shape.orient=h,h==="vertical"?(E=(B!=null?B*l:w.x)+F.sy,D=(C!=null?C*u:w.y)+w.dy,Q=(b!=null?b*l:S.x)+F.ty,M=I!=null?I*u:S.y,R=E,P=D*(1-m)+M*m,O=Q,G=D*m+M*(1-m)):(E=(B!=null?B*l:w.x)+w.dx,D=(C!=null?C*u:w.y)+F.sy,Q=b!=null?b*l:S.x,M=(I!=null?I*u:S.y)+F.ty,R=E*(1-m)+Q*m,P=D,O=E*m+Q*(1-m),G=M),d.setShape({x1:E,y1:D,x2:Q,y2:M,cpx1:R,cpy1:P,cpx2:O,cpy2:G}),d.useStyle(y.getItemStyle()),MI(d.style,h,v);var X=""+g.get("value"),J=Oe(g,"edgeLabel");Je(d,J,{labelFetcher:{getFormattedLabel:function(wt,Bt,N,z,$,q){return e.getFormattedLabel(wt,Bt,"edge",z,ua($,J.normal&&J.normal.get("formatter"),X),q)}},labelDataIndex:v.dataIndex,defaultText:X}),d.setTextConfig({position:"inside"});var At=g.getModel("emphasis");$e(d,g,"lineStyle",function(wt){var Bt=wt.getItemStyle();return MI(Bt,h,v),Bt}),o.add(d),c.setItemGraphicEl(v.dataIndex,d);var lt=At.get("focus");ye(d,lt==="adjacency"?v.getAdjacentDataIndices():lt==="trajectory"?v.getTrajectoryDataIndices():lt,At.get("blurScope"),At.get("disabled"))}),A.eachNode(function(v){var d=v.getLayout(),p=v.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),w=p.get(["itemStyle","borderRadius"])||0,_=new Nt({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:w},style:p.getModel("itemStyle").getItemStyle(),z2:10});Je(_,Oe(p),{labelFetcher:{getFormattedLabel:function(C,S){return e.getFormattedLabel(C,S,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),$e(_,p),o.add(_),f.setItemGraphicEl(v.dataIndex,_),Ct(_).dataType="node";var B=m.get("focus");ye(_,B==="adjacency"?v.getAdjacentDataIndices():B==="trajectory"?v.getTrajectoryDataIndices():B,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(v,d){var p=f.getItemModel(d);p.get("draggable")&&(v.drift=function(g,y){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&e.isAnimationEnabled()&&o.setClipPath(X$(o.getBoundingRect(),e,function(){o.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(jt);function MI(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),a=e.node2.getVisual("color");nt(n)&&nt(a)&&(r.fill=new Pf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function X$(r,t,e){var n=new Nt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ue(n,{shape:{width:r.width+20}},t,e),n}var Y$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var a=e.edges||e.links,i=e.data||e.nodes,A=e.levels;this.levelModels=[];for(var o=this.levelModels,s=0;s=0&&(o[A[s].depth]=new Yt(A[s],this,n));if(i&&a){var l=dR(i,a,this,!0,u);return l.data}function u(f,c){f.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getData().getItemLayout(v);if(p){var g=p.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getGraph().getEdgeByIndex(v),g=p.node1.getLayout();if(g){var y=g.depth,m=d.levelModels[y];m&&(h.parentModel=m)}return h})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var A=this.getDataParams(e,a),o=A.data,s=A.value,l=o.source+" -- "+o.target;return ke("nameValue",{name:l,value:s,noValue:i(s)})}else{var u=this.getGraph().getNodeByIndex(e),f=u.getLayout().value,c=this.getDataParams(e,a).data.name;return ke("nameValue",{name:c!=null?c+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),A=i.getLayout().value;a.value=A}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(se);function Z$(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=$$(e,t);e.layoutInfo=i;var A=i.width,o=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;q$(l);var f=Jt(l,function(d){return d.getLayout().value===0}),c=f.length!==0?0:e.get("layoutIterations"),h=e.get("orient"),v=e.get("nodeAlign");J$(l,u,n,a,A,o,c,h,v)})}function $$(r,t){return Le(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function J$(r,t,e,n,a,i,A,o,s){j$(r,t,e,a,i,o,s),nJ(r,t,i,a,n,A,o),cJ(r,o)}function q$(r){T(r,function(t){var e=ki(t.outEdges,jv),n=ki(t.inEdges,jv),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function j$(r,t,e,n,a,i,A){for(var o=[],s=[],l=[],u=[],f=0,c=0;c=0;g&&p.depth>h&&(h=p.depth),d.setLayout({depth:g?p.depth:f},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var y=0;yf-1?h:f-1;A&&A!=="left"&&tJ(r,A,i,C);var S=i==="vertical"?(a-e)/C:(n-e)/C;rJ(r,S,i)}function MR(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function tJ(r,t,e,n){if(t==="right"){for(var a=[],i=r,A=0;i.length;){for(var o=0;o0;i--)s*=.99,AJ(o,s,A),Oy(o,a,e,n,A),fJ(o,s,A),Oy(o,a,e,n,A)}function aJ(r,t){var e=[],n=t==="vertical"?"y":"x",a=_0(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,A){return i-A}),T(a.keys,function(i){e.push(a.buckets.get(i))}),e}function iJ(r,t,e,n,a,i){var A=1/0;T(r,function(o){var s=o.length,l=0;T(o,function(f){l+=f.getLayout().value});var u=i==="vertical"?(n-(s-1)*a)/l:(e-(s-1)*a)/l;u0&&(o=s.getLayout()[i]+l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]+s.getLayout()[c]+t;var v=a==="vertical"?n:e;if(l=u-t-v,l>0){o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(var h=f-2;h>=0;--h)s=A[h],l=s.getLayout()[i]+s.getLayout()[c]+t-u,l>0&&(o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]}})}function AJ(r,t,e){T(r.slice().reverse(),function(n){T(n,function(a){if(a.outEdges.length){var i=ki(a.outEdges,oJ,e)/ki(a.outEdges,jv);if(isNaN(i)){var A=a.outEdges.length;i=A?ki(a.outEdges,sJ,e)/A:0}if(e==="vertical"){var o=a.getLayout().x+(i-$i(a,e))*t;a.setLayout({x:o},!0)}else{var s=a.getLayout().y+(i-$i(a,e))*t;a.setLayout({y:s},!0)}}})})}function oJ(r,t){return $i(r.node2,t)*r.getValue()}function sJ(r,t){return $i(r.node2,t)}function lJ(r,t){return $i(r.node1,t)*r.getValue()}function uJ(r,t){return $i(r.node1,t)}function $i(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function jv(r){return r.getValue()}function ki(r,t,e){for(var n=0,a=r.length,i=-1;++iA&&(A=s)}),T(n,function(o){var s=new He({type:"color",mappingMethod:"linear",dataExtent:[i,A],visual:t.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}a.length&&T(a,function(o){var s=o.getModel().get("lineStyle");o.setVisual("style",s)})})}function vJ(r){r.registerChartView(W$),r.registerSeriesModel(Y$),r.registerLayout(Z$),r.registerVisual(hJ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var UR=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),A=a.get("type"),o=i.get("type"),s;A==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),s=!0):o==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u=t.layout==="horizontal"?0:1,f=this._baseAxisDim=l[u],c=l[1-u],h=[a,i],v=h[u].get("type"),d=h[1-u].get("type"),p=t.data;if(p&&s){var g=[];T(p,function(w,_){var B;K(w)?(B=w.slice(),w.unshift(_)):K(w.value)?(B=V({},w),B.value=B.value.slice(),w.value.unshift(_)):B=w,g.push(B)}),t.data=g}var y=this.defaultValueDimensions,m=[{name:f,type:Vv(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Vv(d),dimsDef:y.slice()}];return ll(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:bt(hU,m,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),PR=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(se);Fe(PR,UR,!0);var dJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this.group,o=this._data;this._data||A.removeAll();var s=e.get("layout")==="horizontal"?1:0;i.diff(o).add(function(l){if(i.hasValue(l)){var u=i.getItemLayout(l),f=UI(u,i,l,s,!0);i.setItemGraphicEl(l,f),A.add(f)}}).update(function(l,u){var f=o.getItemGraphicEl(u);if(!i.hasValue(l)){A.remove(f);return}var c=i.getItemLayout(l);f?(Hn(f),RR(c,f,i,l)):f=UI(c,i,l,s),A.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&A.remove(u)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(jt),pJ=function(){function r(){}return r}(),gJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new pJ},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();id){var w=[g,m];n.push(w)}}}return{boxData:e,outliers:n}}var SJ={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==lr){var n="";Xt(n)}var a=CJ(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function xJ(r){r.registerSeriesModel(PR),r.registerChartView(dJ),r.registerLayout(mJ),r.registerTransform(SJ)}var bJ=["color","borderColor"],TJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){rA(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,A=n.getLayout("isSimpleBox"),o=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),n.diff(a).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u);if(o&&PI(l,f))return;var c=ky(f,u,!0);ue(c,{shape:{points:f.ends}},e,u),Ny(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}}).update(function(u,f){var c=a.getItemGraphicEl(f);if(!n.hasValue(u)){i.remove(c);return}var h=n.getItemLayout(u);if(o&&PI(l,h)){i.remove(c);return}c?(zt(c,{shape:{points:h.ends}},e,u),Hn(c)):c=ky(h),Ny(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}).remove(function(u){var f=a.getItemGraphicEl(u);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),RI(e,this.group);var n=e.get("clip",!0)?zf(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),A;(A=e.next())!=null;){var o=a.getItemLayout(A),s=ky(o);Ny(s,a,A,i),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},t.prototype._incrementalRenderLarge=function(e,n){RI(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(jt),IJ=function(){function r(){}return r}(),FJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new IJ},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Mt);function ky(r,t,e){var n=r.ends;return new FJ({shape:{points:e?EJ(n,r):n},z2:100})}function PI(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(bJ);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var HR=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(se);Fe(HR,UR,!0);function QJ(r){!r||!K(r.series)||T(r.series,function(t){yt(t)&&t.type==="k"&&(t.type="candlestick")})}var LJ=["itemStyle","borderColor"],MJ=["itemStyle","borderColor0"],UJ=["itemStyle","borderColorDoji"],PJ=["itemStyle","color"],RJ=["itemStyle","color0"],HJ={seriesType:"candlestick",plan:il(),performRawSeries:!0,reset:function(r,t){function e(i,A){return A.get(i>0?PJ:RJ)}function n(i,A){return A.get(i===0?UJ:i>0?LJ:MJ)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,A){for(var o;(o=i.next())!=null;){var s=A.getItemModel(o),l=A.getItemLayout(o).sign,u=s.getItemStyle();u.fill=e(l,s),u.stroke=n(l,s)||u.fill;var f=A.ensureUniqueItemVisual(o,"style");V(f,u)}}}}}},OJ={seriesType:"candlestick",plan:il(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=kJ(r,e),a=0,i=1,A=["x","y"],o=e.getDimensionIndex(e.mapDimension(A[a])),s=Y(e.mapDimensionsAll(A[i]),e.getDimensionIndex,e),l=s[0],u=s[1],f=s[2],c=s[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),o<0||s.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,p){for(var g,y=p.getStore();(g=d.next())!=null;){var m=y.get(o,g),w=y.get(l,g),_=y.get(u,g),B=y.get(f,g),C=y.get(c,g),S=Math.min(w,_),x=Math.max(w,_),b=R(S,m),I=R(x,m),F=R(B,m),E=R(C,m),D=[];P(D,I,0),P(D,b,1),D.push(G(E),G(I),G(F),G(b));var Q=p.getItemModel(g),M=!!Q.get(["itemStyle","borderColorDoji"]);p.setItemLayout(g,{sign:HI(y,g,w,_,u,M),initBaseline:w>_?I[i]:b[i],ends:D,brushRect:O(B,C,m)})}function R(X,J){var At=[];return At[a]=J,At[i]=X,isNaN(J)||isNaN(X)?[NaN,NaN]:t.dataToPoint(At)}function P(X,J,At){var lt=J.slice(),wt=J.slice();lt[a]=Xh(lt[a]+n/2,1,!1),wt[a]=Xh(wt[a]-n/2,1,!0),At?X.push(lt,wt):X.push(wt,lt)}function O(X,J,At){var lt=R(X,At),wt=R(J,At);return lt[a]-=n/2,wt[a]-=n/2,{x:lt[0],y:lt[1],width:n,height:wt[1]-lt[1]}}function G(X){return X[a]=Xh(X[a],1),X}}function v(d,p){for(var g=Aa(d.count*4),y=0,m,w=[],_=[],B,C=p.getStore(),S=!!r.get(["itemStyle","borderColorDoji"]);(B=d.next())!=null;){var x=C.get(o,B),b=C.get(l,B),I=C.get(u,B),F=C.get(f,B),E=C.get(c,B);if(isNaN(x)||isNaN(F)||isNaN(E)){g[y++]=NaN,y+=3;continue}g[y++]=HI(C,B,b,I,u,S),w[a]=x,w[i]=F,m=t.dataToPoint(w,null,_),g[y++]=m?m[0]:NaN,g[y++]=m?m[1]:NaN,w[i]=E,m=t.dataToPoint(w,null,_),g[y++]=m?m[1]:NaN}p.setLayout("largePoints",g)}}};function HI(r,t,e,n,a,i){var A;return e>n?A=-1:e0?r.get(a,t-1)<=n?1:-1:1,A}function kJ(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=et(xt(r.get("barMaxWidth"),a),a),A=et(xt(r.get("barMinWidth"),1),a),o=r.get("barWidth");return o!=null?et(o,a):Math.max(Math.min(a/2,i),A)}function NJ(r){r.registerChartView(TJ),r.registerSeriesModel(HR),r.registerPreprocessor(QJ),r.registerVisual(HJ),r.registerLayout(OJ)}function OI(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var VJ=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=new Gf(e,n),A=new _t;return a.add(i),a.add(A),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,A=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/u*1e3),o!==this._period||s!==this._loop||l!==this._roundTrip){i.stopAnimation();var c=void 0;vt(f)?c=f(a):c=f,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,s,l)}this._period=o,this._loop=s,this._roundTrip=l}},t.prototype._animateSymbol=function(e,n,a,i,A){if(n>0){e.__t=0;var o=this,s=e.animate("",i).when(A?n*2:n,{__t:A?2:1}).delay(a).during(function(){o._updateSymbolPosition(e)});i||s.done(function(){o.remove(e)}),s.start()}},t.prototype._getLineLength=function(e){return xi(e.__p1,e.__cp1)+xi(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,A=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],s=o.slice(),l=Ve,u=o0;o[0]=l(n[0],i[0],a[0],A),o[1]=l(n[1],i[1],a[1],A);var f=e.__t<1?u(n[0],i[0],a[0],A):u(a[0],i[0],n[0],1-A),c=e.__t<1?u(n[1],i[1],a[1],A):u(a[1],i[1],n[1],1-A);e.rotation=-Math.atan2(c,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[s]<=n);s--);s=Math.min(s,A-2)}else{for(s=o;sn);s++);s=Math.min(s-1,A-2)}var u=(n-i[s])/(i[s+1]-i[s]),f=a[s],c=a[s+1];e.x=f[0]*(1-u)+u*c[0],e.y=f[1]*(1-u)+u*c[1];var h=e.__t<1?c[0]-f[0]:f[0]-c[0],v=e.__t<1?c[1]-f[1]:f[1]-c[1];e.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=n,e.ignore=!1}},t}(OR),XJ=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),YJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new XJ},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,A;if(n.polyline)for(A=this._off;A0){e.moveTo(a[A++],a[A++]);for(var s=1;s0){var h=(l+f)/2-(u-c)*i,v=(u+c)/2-(f-l)*i;e.quadraticCurveTo(h,v,f,c)}else e.lineTo(f,c)}this.incremental&&(this._off=A,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,A=a.curveness,o=this.style.lineWidth;if(a.polyline)for(var s=0,l=0;l0)for(var f=i[l++],c=i[l++],h=1;h0){var p=(f+v)/2-(c-d)*A,g=(c+d)/2-(v-f)*A;if(hM(f,c,p,g,v,d,o,e,n))return s}else if(Bi(f,c,v,d,o,e,n))return s;s++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.segs,i=1/0,A=1/0,o=-1/0,s=-1/0,l=0;l0&&(A.dataIndex=s+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),NR={seriesType:"lines",plan:il(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var A=[];if(n){var o=void 0,s=a.end-a.start;if(e){for(var l=0,u=a.start;u0&&(u||l.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),A.updateData(i);var f=e.get("clip",!0)&&zf(e.coordinateSystem,!1,e);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateLineDraw(i,e);A.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,a){var i=e.getData(),A=e.pipelineContext;if(!this._finished||A.large||A.progressiveRender)return{update:!0};var o=NR.reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),A=!!n.get("polyline"),o=n.pipelineContext,s=o.large;return(!a||i!==this._hasEffet||A!==this._isPolyline||s!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=s?new ZJ:new lC(A?i?WJ:kR:i?OR:sC),this._hasEffet=i,this._isPolyline=A,this._isLargeDraw=s),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(jt),JJ=typeof Uint32Array>"u"?Array:Uint32Array,qJ=typeof Float64Array>"u"?Array:Float64Array;function kI(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),NB([a,e[0],e[1]])}))}var jJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],kI(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(kI(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=yv(this._flatCoords,n.flatCoords),this._flatCoordsOffset=yv(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],A=0;A ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(se);function th(r){return r instanceof Array||(r=[r,r]),r}var tq={seriesType:"lines",reset:function(r){var t=th(r.get("symbol")),e=th(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function a(i,A){var o=i.getItemModel(A),s=th(o.getShallow("symbol",!0)),l=th(o.getShallow("symbolSize",!0));s[0]&&i.setItemVisual(A,"fromSymbol",s[0]),s[1]&&i.setItemVisual(A,"toSymbol",s[1]),l[0]&&i.setItemVisual(A,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(A,"toSymbolSize",l[1])}return{dataEach:n.hasItemOption?a:null}}};function eq(r){r.registerChartView($J),r.registerSeriesModel(jJ),r.registerLayout(NR),r.registerVisual(tq)}var rq=256,nq=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=zi.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,A){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,f=this.canvas,c=f.getContext("2d"),h=t.length;f.width=e,f.height=n;for(var v=0;v0){var F=A(m)?s:l;m>0&&(m=m*b+S),_[B++]=F[I],_[B++]=F[I+1],_[B++]=F[I+2],_[B++]=F[I+3]*m*256}else B+=4}return c.putImageData(w,0,0),f},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=zi.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],A=0,o=0;o<256;o++)t[e](o/255,!0,i),a[A++]=i[0],a[A++]=i[1],a[A++]=i[2],a[A++]=i[3];return a},r}();function aq(r,t,e){var n=r[1]-r[0];t=Y(t,function(A){return{interval:[(A.interval[0]-r[0])/n,(A.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(A){var o;for(o=i;o=0;o--){var s=t[o].interval;if(s[0]<=A&&A<=s[1]){i=o;break}}return o>=0&&o=t[0]&&n<=t[1]}}function NI(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Aq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i;n.eachComponent("visualMap",function(o){o.eachTargetSeries(function(s){s===e&&(i=o)})}),this._progressiveEls=null,this.group.removeAll();var A=e.coordinateSystem;A.type==="cartesian2d"||A.type==="calendar"?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):NI(A)&&this._renderOnGeo(A,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var A=n.coordinateSystem;A&&(NI(A)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){rA(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,a,i,A){var o=e.coordinateSystem,s=To(o,"cartesian2d"),l,u,f,c;if(s){var h=o.getAxis("x"),v=o.getAxis("y");l=h.getBandWidth()+.5,u=v.getBandWidth()+.5,f=h.scale.getExtent(),c=v.scale.getExtent()}for(var d=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),w=e.get(["itemStyle","borderRadius"]),_=Oe(e),B=e.getModel("emphasis"),C=B.get("focus"),S=B.get("blurScope"),x=B.get("disabled"),b=s?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],I=a;If[1]||Qc[1])continue;var M=o.dataToPoint([D,Q]);F=new Nt({shape:{x:M[0]-l/2,y:M[1]-u/2,width:l,height:u},style:E})}else{if(isNaN(p.get(b[1],I)))continue;F=new Nt({z2:1,shape:o.dataToRect([p.get(b[0],I)]).contentShape,style:E})}if(p.hasItemOption){var R=p.getItemModel(I),P=R.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=R.getModel(["blur","itemStyle"]).getItemStyle(),m=R.getModel(["select","itemStyle"]).getItemStyle(),w=R.get(["itemStyle","borderRadius"]),C=P.get("focus"),S=P.get("blurScope"),x=P.get("disabled"),_=Oe(R)}F.shape.r=w;var O=e.getRawValue(I),G="-";O&&O[2]!=null&&(G=O[2]+""),Je(F,_,{labelFetcher:e,labelDataIndex:I,defaultOpacity:E.opacity,defaultText:G}),F.ensureState("emphasis").style=g,F.ensureState("blur").style=y,F.ensureState("select").style=m,ye(F,C,S,x),F.incremental=A,A&&(F.states.emphasis.hoverLayer=!0),d.add(F),p.setItemGraphicEl(I,F),this._progressiveEls&&this._progressiveEls.push(F)}},t.prototype._renderOnGeo=function(e,n,a,i){var A=a.targetVisuals.inRange,o=a.targetVisuals.outOfRange,s=n.getData(),l=this._hmLayer||this._hmLayer||new nq;l.blurSize=n.get("blurSize"),l.pointSize=n.get("pointSize"),l.minOpacity=n.get("minOpacity"),l.maxOpacity=n.get("maxOpacity");var u=e.getViewRect().clone(),f=e.getRoamTransform();u.applyTransform(f);var c=Math.max(u.x,0),h=Math.max(u.y,0),v=Math.min(u.width+u.x,i.getWidth()),d=Math.min(u.height+u.y,i.getHeight()),p=v-c,g=d-h,y=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],m=s.mapArray(y,function(C,S,x){var b=e.dataToPoint([C,S]);return b[0]-=c,b[1]-=h,b.push(x),b}),w=a.getExtent(),_=a.type==="visualMap.continuous"?iq(w,a.option.range):aq(w,a.getPieceList(),a.option.selected);l.update(m,p,g,A.color.getNormalizer(),{inRange:A.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var B=new Ke({style:{width:p,height:g,x:c,y:h,image:l.canvas},silent:!0});this.group.add(B)},t.type="heatmap",t}(jt),oq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ri(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Of.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(se);function sq(r){r.registerChartView(Aq),r.registerSeriesModel(oq)}var lq=["itemStyle","borderWidth"],VI=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ky=new ei,uq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,A=e.getData(),o=this._data,s=e.coordinateSystem,l=s.getBaseAxis(),u=l.isHorizontal(),f=s.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:u,valueDim:VI[+u],categoryDim:VI[1-+u]};A.diff(o).add(function(v){if(A.hasValue(v)){var d=KI(A,v),p=GI(A,v,d,c),g=zI(A,c,p);A.setItemGraphicEl(v,g),i.add(g),XI(g,c,p)}}).update(function(v,d){var p=o.getItemGraphicEl(d);if(!A.hasValue(v)){i.remove(p);return}var g=KI(A,v),y=GI(A,v,g,c),m=XR(A,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),A.setItemGraphicEl(v,null),p=null),p?gq(p,c,y):p=zI(A,c,y,!0),A.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),XI(p,c,y)}).remove(function(v){var d=o.getItemGraphicEl(v);d&&WI(o,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=e.get("clip",!0)?zf(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=A,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(A){WI(i,Ct(A).dataIndex,e,A)}):a.removeAll()},t.type="pictorialBar",t}(jt);function GI(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),A=e.get("symbolClip"),o=e.get("symbolPosition")||"start",s=e.get("symbolRotate"),l=(s||0)*Math.PI/180||0,u=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),c={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:A,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};fq(e,i,a,n,c),cq(r,t,a,i,A,c.boundingLength,c.pxSign,u,n,c),hq(e,c.symbolScale,l,n,c);var h=c.symbolSize,v=xo(e.get("symbolOffset"),h);return vq(e,h,a,i,A,v,o,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function fq(r,t,e,n,a){var i=n.valueDim,A=r.get("symbolBoundingData"),o=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),s=o.toGlobalCoord(o.dataToCoord(0)),l=1-+(e[i.wh]<=0),u;if(K(A)){var f=[zy(o,A[0])-s,zy(o,A[1])-s];f[1]0?1:-1}function zy(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function cq(r,t,e,n,a,i,A,o,s,l){var u=s.valueDim,f=s.categoryDim,c=Math.abs(e[f.wh]),h=r.getItemVisual(t,"symbolSize"),v;K(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=et(v[f.index],c),v[u.index]=et(v[u.index],n?c:Math.abs(i)),l.symbolSize=v;var d=l.symbolScale=[v[0]/o,v[1]/o];d[u.index]*=(s.isHorizontal?-1:1)*A}function hq(r,t,e,n,a){var i=r.get(lq)||0;i&&(Ky.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Ky.updateTransform(),i/=Ky.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function vq(r,t,e,n,a,i,A,o,s,l,u,f){var c=u.categoryDim,h=u.valueDim,v=f.pxSign,d=Math.max(t[h.index]+o,0),p=d;if(n){var g=Math.abs(s),y=Ge(r.get("symbolMargin"),"15%")+"",m=!1;y.lastIndexOf("!")===y.length-1&&(m=!0,y=y.slice(0,y.length-1));var w=et(y,t[h.index]),_=Math.max(d+w*2,0),B=m?0:w*2,C=jL(n),S=C?n:YI((g+B)/_),x=g-S*d;w=x/2/(m?S:Math.max(S-1,1)),_=d+w*2,B=m?0:w*2,!C&&n!=="fixed"&&(S=l?YI((Math.abs(l)+B)/_):0),p=S*_-B,f.repeatTimes=S,f.symbolMargin=w}var b=v*(p/2),I=f.pathPosition=[];I[c.index]=e[c.wh]/2,I[h.index]=A==="start"?b:A==="end"?s-b:s/2,i&&(I[0]+=i[0],I[1]+=i[1]);var F=f.bundlePosition=[];F[c.index]=e[c.xy],F[h.index]=e[h.xy];var E=f.barRectShape=V({},e);E[h.wh]=v*Math.max(Math.abs(e[h.wh]),Math.abs(I[h.index]+b)),E[c.wh]=e[c.wh];var D=f.clipShape={};D[c.xy]=-e[c.xy],D[c.wh]=u.ecSize[c.wh],D[h.xy]=0,D[h.wh]=e[h.wh]}function VR(r){var t=r.symbolPatternSize,e=Ie(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function GR(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,A=e.valueLineWidth,o=e.pathPosition,s=t.valueDim,l=e.repeatTimes||0,u=0,f=i[t.valueDim.index]+A+e.symbolMargin*2;for(gC(r,function(d){d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=l,u0:g<0)&&(y=l-1-d),p[s.index]=f*(y-l/2+.5)+o[s.index],{x:p[0],y:p[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function KR(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Fs(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=VR(e),a.add(i),Fs(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function zR(r,t,e){var n=V({},t.barRectShape),a=r.__pictorialBarRect;a?Fs(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new Nt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function WR(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=V({},e.clipShape),A=t.valueDim,o=e.animationModel,s=e.dataIndex;if(a)zt(a,{shape:i},o,s);else{i[A.wh]=0,a=new Nt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var l={};l[A.wh]=e.clipShape[A.wh],So[n?"updateProps":"initProps"](a,{shape:l},o,s)}}}function KI(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=dq,e.isAnimationEnabled=pq,e}function dq(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function pq(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function zI(r,t,e,n){var a=new _t,i=new _t;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?GR(a,t,e):KR(a,t,e),zR(a,e,n),WR(a,t,e,n),a.__pictorialShapeStr=XR(r,e),a.__pictorialSymbolMeta=e,a}function gq(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;zt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?GR(r,t,e,!0):KR(r,t,e,!0),zR(r,e,!0),WR(r,t,e,!0)}function WI(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];gC(n,function(A){i.push(A)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),T(i,function(A){Xi(A,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function XR(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function gC(r,t,e){T(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Fs(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&So[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function XI(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),A=i.getModel("itemStyle").getItemStyle(),o=a.getModel(["blur","itemStyle"]).getItemStyle(),s=a.getModel(["select","itemStyle"]).getItemStyle(),l=a.getShallow("cursor"),u=i.get("focus"),f=i.get("blurScope"),c=i.get("scale");gC(r,function(d){if(d instanceof Ke){var p=d.style;d.useStyle(V({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},e.style))}else d.useStyle(e.style);var g=d.ensureState("emphasis");g.style=A,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=o,d.ensureState("select").style=s,l&&(d.cursor=l),d.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,Je(v,Oe(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:ks(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),ye(r,u,f,i.get("disabled"))}function YI(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var yq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=nA(df.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(df);function mq(r){r.registerChartView(uq),r.registerSeriesModel(yq),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(E2,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D2("pictorialBar"))}var wq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this,o=this.group,s=e.getLayerSeries(),l=i.getLayout("layoutInfo"),u=l.rect,f=l.boundaryGap;o.x=0,o.y=u.y+f[0];function c(p){return p.name}var h=new Ya(this._layersSeries||[],s,c,c),v=[];h.add(it(d,this,"add")).update(it(d,this,"update")).remove(it(d,this,"remove")).execute();function d(p,g,y){var m=A._layers;if(p==="remove"){o.remove(m[g]);return}for(var w=[],_=[],B,C=s[g].indices,S=0;Si&&(i=o),n.push(o)}for(var l=0;li&&(i=f)}return{y0:a,max:i}}function xq(r){r.registerChartView(wq),r.registerSeriesModel(_q),r.registerLayout(Cq),r.registerProcessor(Xf("themeRiver"))}var bq=2,Tq=4,$I=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;A.z2=bq,A.textConfig={inside:!0},Ct(A).seriesIndex=n.seriesIndex;var o=new Gt({z2:Tq,silent:e.getModel().get(["label","silent"])});return A.setTextContent(o),A.updateData(!0,e,n,a,i),A}return t.prototype.updateData=function(e,n,a,i,A){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var o=this;Ct(o).dataIndex=n.dataIndex;var s=n.getModel(),l=s.getModel("emphasis"),u=n.getLayout(),f=V({},u);f.label=null;var c=n.getVisual("style");c.lineJoin="bevel";var h=n.getVisual("decal");h&&(c.decal=Hs(h,A));var v=$A(s.getModel("itemStyle"),f,!0);V(f,v),T(_r,function(y){var m=o.ensureState(y),w=s.getModel([y,"itemStyle"]);m.style=w.getItemStyle();var _=$A(w,f);_&&(m.shape=_)}),e?(o.setShape(f),o.shape.r=u.r0,ue(o,{shape:{r:u.r}},a,n.dataIndex)):(zt(o,{shape:f},a),Hn(o)),o.useStyle(c),this._updateLabel(a);var d=s.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=l.get("focus"),g=p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;ye(this,g,l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.getModel("label"),A=this.node.getLayout(),o=A.endAngle-A.startAngle,s=(A.startAngle+A.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=this,c=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(v!=null&&Math.abs(o)D&&!tf(M-D)&&M0?(A.virtualPiece?A.virtualPiece.updateData(!1,y,e,n,a):(A.virtualPiece=new $I(y,e,n,a),u.add(A.virtualPiece)),m.piece.off("click"),A.virtualPiece.on("click",function(w){A._rootToNode(m.parentNode)})):A.virtualPiece&&(u.remove(A.virtualPiece),A.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(A){if(!a&&A.piece&&A.piece===n.target){var o=A.getModel().get("nodeClick");if(o==="rootToNode")e._rootToNode(A);else if(o==="link"){var s=A.getModel(),l=s.get("link");if(l){var u=s.get("target",!0)||"_blank";Mv(l,u)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:_w,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var A=e[0]-i.cx,o=e[1]-i.cy,s=Math.sqrt(A*A+o*o);return s<=i.r&&s>=i.r0}},t.type="sunburst",t}(jt),Dq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};YR(a);var i=this._levelModels=Y(e.levels||[],function(s){return new Yt(s,this,n)},this),A=rC.createTree(a,this,o);function o(s){s.wrapMethod("getItemModel",function(l,u){var f=A.getNodeByDataIndex(u),c=i[f.depth];return c&&(l.parentModel=c),l})}return A.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=gp(a,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){jP(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(se);function YR(r){var t=0;T(r.children,function(n){YR(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}var qI=Math.PI/180;function Qq(r,t,e){t.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");K(i)||(i=[0,i]),K(a)||(a=[a,a]);var A=e.getWidth(),o=e.getHeight(),s=Math.min(A,o),l=et(a[0],A),u=et(a[1],o),f=et(i[0],s/2),c=et(i[1],s/2),h=-n.get("startAngle")*qI,v=n.get("minAngle")*qI,d=n.getData().tree.root,p=n.getViewRoot(),g=p.depth,y=n.get("sort");y!=null&&ZR(p,y);var m=0;T(p.children,function(M){!isNaN(M.getValue())&&m++});var w=p.getValue(),_=Math.PI/(w||m)*2,B=p.depth>0,C=p.height-(B?-1:1),S=(c-f)/(C||1),x=n.get("clockwise"),b=n.get("stillShowZeroSum"),I=x?1:-1,F=function(M,R){if(M){var P=R;if(M!==d){var O=M.getValue(),G=w===0&&b?_:O*_;G1;)A=A.parentNode;var o=a.getColorFromPalette(A.name||A.dataIndex+"",t);return n.depth>1&&nt(o)&&(o=u0(o,(n.depth-1)/(i-1)*.5)),o}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(A){var o=A.getModel(),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e(A,n,i.root.height));var l=a.ensureUniqueItemVisual(A.dataIndex,"style");V(l,s)})})}function Uq(r){r.registerChartView(Eq),r.registerSeriesModel(Dq),r.registerLayout(bt(Qq,"sunburst")),r.registerProcessor(bt(Xf,"sunburst")),r.registerVisual(Mq),Fq(r)}var jI={color:"fill",borderColor:"stroke"},Pq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ka=Vt(),Rq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return ri(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=ka(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(se);function Hq(r,t){return t=t||[0,0],Y(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],A=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-A)-a.dataToCoord(i+A))},this)}function Oq(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(Hq,r)}}}function kq(r,t){return t=t||[0,0],Y([0,1],function(e){var n=t[e],a=r[e]/2,i=[],A=[];return i[e]=n-a,A[e]=n+a,i[1-e]=A[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(A)[e])},this)}function Nq(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:it(kq,r)}}}function Vq(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function Gq(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(Vq,r)}}}function Kq(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),A=t[n],o=r[n]/2,s=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(A-o)-i.dataToCoord(A+o));return e==="Angle"&&(s=s*Math.PI/180),s},this)}function zq(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),A=e.dataToAngle(a[1]),o=r.coordToPoint([i,A]);return o.push(i,A*Math.PI/180),o},size:it(Kq,r)}}}function Wq(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}function $R(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function JR(r,t,e){var n=r,a,i,A;if(t==="text")A=n;else{A={},st(n,"text")&&(A.text=n.text),st(n,"rich")&&(A.rich=n.rich),st(n,"textFill")&&(A.fill=n.textFill),st(n,"textStroke")&&(A.stroke=n.textStroke),st(n,"fontFamily")&&(A.fontFamily=n.fontFamily),st(n,"fontSize")&&(A.fontSize=n.fontSize),st(n,"fontStyle")&&(A.fontStyle=n.fontStyle),st(n,"fontWeight")&&(A.fontWeight=n.fontWeight),i={type:"text",style:A,silent:!0},a={};var o=st(n,"textPosition");e?a.position=o?n.textPosition:"inside":o&&(a.position=n.textPosition),st(n,"textPosition")&&(a.position=n.textPosition),st(n,"textOffset")&&(a.offset=n.textOffset),st(n,"textRotation")&&(a.rotation=n.textRotation),st(n,"textDistance")&&(a.distance=n.textDistance)}return tF(A,r),T(A.rich,function(s){tF(s,s)}),{textConfig:a,textContent:i}}function tF(r,t){t&&(t.font=t.textFont||t.font,st(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),st(t,"textAlign")&&(r.align=t.textAlign),st(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),st(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),st(t,"textWidth")&&(r.width=t.textWidth),st(t,"textHeight")&&(r.height=t.textHeight),st(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),st(t,"textPadding")&&(r.padding=t.textPadding),st(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),st(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),st(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),st(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),st(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),st(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),st(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function eF(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";rF(n,t);var A=n.textFill==null;return a?A&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(A&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,T(t.rich,function(o){rF(o,o)}),n}function rF(r,t){t&&(st(t,"fill")&&(r.textFill=t.fill),st(t,"stroke")&&(r.textStroke=t.fill),st(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),st(t,"font")&&(r.font=t.font),st(t,"fontStyle")&&(r.fontStyle=t.fontStyle),st(t,"fontWeight")&&(r.fontWeight=t.fontWeight),st(t,"fontSize")&&(r.fontSize=t.fontSize),st(t,"fontFamily")&&(r.fontFamily=t.fontFamily),st(t,"align")&&(r.textAlign=t.align),st(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),st(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),st(t,"width")&&(r.textWidth=t.width),st(t,"height")&&(r.textHeight=t.height),st(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),st(t,"padding")&&(r.textPadding=t.padding),st(t,"borderColor")&&(r.textBorderColor=t.borderColor),st(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),st(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),st(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),st(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),st(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),st(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),st(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),st(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),st(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),st(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var qR={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},nF=Ht(qR);ha(da,function(r,t){return r[t]=1,r},{});da.join(", ");var td=["","style","shape","extra"],Gs=Vt();function yC(r,t,e,n,a){var i=r+"Animation",A=qs(r,n,a)||{},o=Gs(t).userDuring;return A.duration>0&&(A.during=o?it(Jq,{el:t,userDuring:o}):null,A.setToFinal=!0,A.scope=r),V(A,e[i]),A}function jh(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,A=n.clearStyle,o=e.isAnimationEnabled(),s=Gs(r),l=t.style;s.userDuring=t.during;var u={},f={};if(jq(r,t,f),iF("shape",t,f),iF("extra",t,f),!i&&o&&(qq(r,t,u),aF("shape",r,t,u),aF("extra",r,t,u),tj(r,t,l,u)),f.style=l,Xq(r,f,A),Zq(r,t),o)if(i){var c={};T(td,function(v){var d=v?t[v]:t;d&&d.enterFrom&&(v&&(c[v]=c[v]||{}),V(v?c[v]:c,d.enterFrom))});var h=yC("enter",r,t,e,a);h.duration>0&&r.animateFrom(c,h)}else Yq(r,t,a||0,e,u);jR(r,t),l?r.dirty():r.markRedraw()}function jR(r,t){for(var e=Gs(r).leaveToProps,n=0;n0&&r.animateFrom(a,i)}}function Zq(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof gn&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Mt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var $n={},$q={setTransform:function(r,t){return $n.el[r]=t,this},getTransform:function(r){return $n.el[r]},setShape:function(r,t){var e=$n.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=$n.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=$n.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=$n.el.style;if(t)return t[r]},setExtra:function(r,t){var e=$n.el.extra||($n.el.extra={});return e[r]=t,this},getExtra:function(r){var t=$n.el.extra;if(t)return t[r]}};function Jq(){var r=this,t=r.el;if(t){var e=Gs(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}$n.el=t,n($q)}}function aF(r,t,e,n){var a=e[r];if(a){var i=t[r],A;if(i){var o=e.transition,s=a.transition;if(s)if(!A&&(A=n[r]={}),oo(s))V(A,i);else for(var l=qt(s),u=0;u=0){!A&&(A=n[r]={});for(var h=Ht(i),u=0;u=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=n.style={});for(var v=Ht(e),l=0;l=0?t.getStore().get(R,Q):void 0}var P=t.get(M.name,Q),O=M&&M.ordinalMeta;return O?O.categories[P]:P}function B(D,Q){Q==null&&(Q=l);var M=t.getItemVisual(Q,"style"),R=M&&M.fill,P=M&&M.opacity,O=y(Q,Qi).getItemStyle();R!=null&&(O.fill=R),P!=null&&(O.opacity=P);var G={inheritColor:nt(R)?R:"#000"},X=m(Q,Qi),J=oe(X,null,G,!1,!0);J.text=X.getShallow("show")?xt(r.getFormattedLabel(Q,Qi),ks(t,Q)):null;var At=Qv(X,G,!1);return x(D,O),O=eF(O,J,At),D&&S(O,D),O.legacy=!0,O}function C(D,Q){Q==null&&(Q=l);var M=y(Q,Na).getItemStyle(),R=m(Q,Na),P=oe(R,null,null,!0,!0);P.text=R.getShallow("show")?ua(r.getFormattedLabel(Q,Na),r.getFormattedLabel(Q,Qi),ks(t,Q)):null;var O=Qv(R,null,!0);return x(D,M),M=eF(M,P,O),D&&S(M,D),M.legacy=!0,M}function S(D,Q){for(var M in Q)st(Q,M)&&(D[M]=Q[M])}function x(D,Q){D&&(D.textFill&&(Q.textFill=D.textFill),D.textPosition&&(Q.textPosition=D.textPosition))}function b(D,Q){if(Q==null&&(Q=l),st(jI,D)){var M=t.getItemVisual(Q,"style");return M?M[jI[D]]:null}if(st(Pq,D))return t.getItemVisual(Q,D)}function I(D){if(i.type==="cartesian2d"){var Q=i.getBaseAxis();return j8(gt({axis:Q},D))}}function F(){return e.getCurrentSeriesIndices()}function E(D){return f_(D,e)}}function uj(r){var t={};return T(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Zy(r,t,e,n,a,i,A){if(!n){i.remove(t);return}var o=CC(r,t,e,n,a,i);return o&&A.setItemGraphicEl(e,o),o&&ye(o,n.focus,n.blurScope,n.emphasisDisabled),o}function CC(r,t,e,n,a,i){var A=-1,o=t;t&&nH(t,n,a)&&(A=Qt(i.childrenRef(),t),t=null);var s=!t,l=t;l?l.clearStates():(l=BC(n),o&&Aj(o,l)),n.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),qr.normal.cfg=qr.normal.conOpt=qr.emphasis.cfg=qr.emphasis.conOpt=qr.blur.cfg=qr.blur.conOpt=qr.select.cfg=qr.select.conOpt=null,qr.isLegacy=!1,cj(l,e,n,a,s,qr),fj(l,e,n,a,s),_C(r,l,e,n,qr,a,s),st(n,"info")&&(ka(l).info=n.info);for(var u=0;u=0?i.replaceAt(l,A):i.add(l),l}function nH(r,t,e){var n=ka(r),a=t.type,i=t.shape,A=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&gj(i)&&aH(i)!==n.customPathData||a==="image"&&st(A,"image")&&A.image!==n.customImagePath}function fj(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var A=r.getClipPath();A&&nH(A,i,n)&&(A=null),A||(A=BC(i),r.setClipPath(A)),_C(null,A,t,i,null,n,a)}}function cj(r,t,e,n,a,i){if(!r.isGroup){oF(e,null,i),oF(e,Na,i);var A=i.normal.conOpt,o=i.emphasis.conOpt,s=i.blur.conOpt,l=i.select.conOpt;if(A!=null||o!=null||l!=null||s!=null){var u=r.getTextContent();if(A===!1)u&&r.removeTextContent();else{A=i.normal.conOpt=A||{type:"text"},u?u.clearStates():(u=BC(A),r.setTextContent(u)),_C(null,u,t,A,null,n,a);for(var f=A&&A.style,c=0;c=u;h--){var v=t.childAt(h);vj(t,v,a)}}}function vj(r,t,e){t&&wp(t,ka(r).option,e)}function dj(r){new Ya(r.oldChildren,r.newChildren,sF,sF,r).add(lF).update(lF).remove(pj).execute()}function sF(r,t){var e=r&&r.name;return e??aj+t}function lF(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;CC(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function pj(r){var t=this.context,e=t.oldChildren[r];e&&wp(e,ka(e).option,t.seriesModel)}function aH(r){return r&&(r.pathData||r.d)}function gj(r){return r&&(st(r,"pathData")||st(r,"d"))}function yj(r){r.registerChartView(oj),r.registerSeriesModel(Rq)}var kA=Vt(),uF=mt,$y=it,xC=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),A=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===A)){this._lastValue=i,this._lastStatus=A;var o=this._group,s=this._handle;if(!A||A==="hide"){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var f=this._moveAnimation=this.determineAnimation(t,e);if(!o)o=this._group=new _t,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);else{var c=bt(fF,e,f);this.updatePointerEl(o,l,c),this.updateLabelEl(o,l,c,e)}hF(o,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",A=e.get("snap");if(!A&&!i)return!1;if(n==="auto"||n==null){var o=this.animationThreshold;if(i&&a.getBandWidth()>o)return!0;if(A){var s=Z_(t).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var A=kA(t).pointerEl=new So[i.type](uF(e.pointer));t.add(A)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=kA(t).labelEl=new Gt(uF(e.label));t.add(i),cF(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=kA(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=kA(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),cF(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),A=e.get("status");if(!i.get("show")||!A||A==="hide"){a&&n.remove(a),this._handle=null;return}var o;this._handle||(o=!0,a=this._handle=Hf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Ka(l.event)},onmousedown:$y(this._onHandleDragMove,this,0,0),drift:$y(this._onHandleDragMove,this),ondragend:$y(this._onHandleDragEnd,this)}),n.add(a)),hF(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");K(s)||(s=[s,s]),a.scaleX=s[0]/2,a.scaleY=s[1]/2,Al(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},r.prototype._moveHandleToValue=function(t,e){fF(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Jy(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Jy(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Jy(a)),kA(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),lf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function fF(r,t,e,n){iH(kA(e).lastProp,n)||(kA(e).lastProp=n,t?zt(e,n,r):(e.stopAnimation(),e.attr(n)))}function iH(r,t){if(yt(r)&&yt(t)){var e=!0;return T(t,function(n,a){e=e&&iH(r[a],n)}),!!e}else return r===t}function cF(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Jy(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function hF(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function bC(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function AH(r,t,e,n,a){var i=e.get("value"),A=oH(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),o=e.getModel("label"),s=rl(o.get("padding")||0),l=o.getFont(),u=Df(A,l),f=a.position,c=u.width+s[1]+s[3],h=u.height+s[0]+s[2],v=a.align;v==="right"&&(f[0]-=c),v==="center"&&(f[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(f[1]-=h),d==="middle"&&(f[1]-=h/2),mj(f,c,h,n);var p=o.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:oe(o,{text:A,font:l,fill:o.getTextColor(),padding:s,backgroundColor:p}),z2:10}}function mj(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function oH(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),A=a.formatter;if(A){var o={value:H_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(n,function(s){var l=e.getSeriesByIndex(s.seriesIndex),u=s.dataIndexInside,f=l&&l.getDataParams(u);f&&o.seriesData.push(f)}),nt(A)?i=A.replace("{value}",i):vt(A)&&(i=A(o))}return i}function TC(r,t,e){var n=Wr();return Co(n,n,e.rotation),va(n,n,e.position),Un([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function sH(r,t,e,n,a,i){var A=wr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),AH(t,n,a,i,{position:TC(n.axis,r,e),align:A.textAlign,verticalAlign:A.textVerticalAlign})}function IC(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function lH(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function vF(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var wj=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.grid,l=i.get("type"),u=dF(s,o).getOtherAxis(o).getGlobalExtent(),f=o.toGlobalCoord(o.dataToCoord(n,!0));if(l&&l!=="none"){var c=bC(i),h=Bj[l](o,f,u);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=aw(s.model,a);sH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=aw(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=TC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.grid,s=A.getGlobalExtent(!0),l=dF(o,A).getOtherAxis(A).getGlobalExtent(),u=A.dim==="x"?0:1,f=[e.x,e.y];f[u]+=n[u],f[u]=Math.min(s[1],f[u]),f[u]=Math.max(s[0],f[u]);var c=(l[1]+l[0])/2,h=[c,c];h[u]=f[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:v[u]}},t}(xC);function dF(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Bj={line:function(r,t,e){var n=IC([t,e[0]],[t,e[1]],pF(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:lH([t-n/2,e[0]],[n,a],pF(r))}}};function pF(r){return r.dim==="x"?0:1}var _j=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Rt),Ma=Vt(),Cj=T;function uH(r,t,e){if(!Ut.node){var n=t.getZr();Ma(n).records||(Ma(n).records={}),Sj(n,t);var a=Ma(n).records[r]||(Ma(n).records[r]={});a.handler=e}}function Sj(r,t){if(Ma(r).initialized)return;Ma(r).initialized=!0,e("click",bt(gF,"click")),e("mousemove",bt(gF,"mousemove")),e("globalout",bj);function e(n,a){r.on(n,function(i){var A=Tj(t);Cj(Ma(r).records,function(o){o&&a(o,i,A.dispatchAction)}),xj(A.pendings,t)})}}function xj(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function bj(r,t,e){r.handler("leave",null,e)}function gF(r,t,e,n){t.handler(r,e,n)}function Tj(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function xw(r,t){if(!Ut.node){var e=t.getZr(),n=(Ma(e).records||{})[r];n&&(Ma(e).records[r]=null)}}var Ij=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),A=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";uH("axisPointer",a,function(o,s,l){A!=="none"&&(o==="leave"||A.indexOf(o)>=0)&&l({type:"updateAxisPointer",currTrigger:o,x:s&&s.offsetX,y:s&&s.offsetY})})},t.prototype.remove=function(e,n){xw("axisPointer",n)},t.prototype.dispose=function(e,n){xw("axisPointer",n)},t.type="axisPointer",t}(de);function fH(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),A=ho(i,r);if(A==null||A<0||K(A))return{point:[]};var o=i.getItemGraphicEl(A),s=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(A)||[];else if(s&&s.dataToPoint)if(r.isStacked){var l=s.getBaseAxis(),u=s.getOtherAxis(l),f=u.dim,c=l.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(c),d=[];d[h]=i.get(v,A),d[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),A),e=s.dataToPoint(d)||[]}else e=s.dataToPoint(i.getValues(Y(s.dimensions,function(g){return i.mapDimension(g)}),A))||[];else if(o){var p=o.getBoundingRect().clone();p.applyTransform(o.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:o}}var yF=Vt();function Fj(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,A=r.dispatchAction||it(e.dispatchAction,e),o=t.getComponent("axisPointer").coordSysAxesInfo;if(o){tv(a)&&(a=fH({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var s=tv(a),l=i.axesInfo,u=o.axesInfo,f=n==="leave"||tv(a),c={},h={},v={list:[],map:{}},d={showPointer:bt(Dj,h),showTooltip:bt(Qj,v)};T(o.coordSysMap,function(g,y){var m=s||g.containPoint(a);T(o.coordSysAxesInfo[y],function(w,_){var B=w.axis,C=Pj(l,w);if(!f&&m&&(!l||C)){var S=C&&C.value;S==null&&!s&&(S=B.pointToData(a)),S!=null&&mF(w,S,d,!1,c)}})});var p={};return T(u,function(g,y){var m=g.linkGroup;m&&!h[y]&&T(m.axesInfo,function(w,_){var B=h[_];if(w!==g&&B){var C=B.value;m.mapper&&(C=g.axis.scale.parse(m.mapper(C,wF(w),wF(g)))),p[g.key]=C}})}),T(p,function(g,y){mF(u[y],g,d,!0,c)}),Lj(h,u,c),Mj(v,a,r,A),Uj(u,A,e),c}}function mF(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var A=Ej(t,r),o=A.payloadBatch,s=A.snapToValue;o[0]&&a.seriesIndex==null&&V(a,o[0]),!n&&r.snap&&i.containData(s)&&s!=null&&(t=s),e.showPointer(r,t,o),e.showTooltip(r,A,s)}}function Ej(r,t){var e=t.axis,n=e.dim,a=r,i=[],A=Number.MAX_VALUE,o=-1;return T(t.seriesModels,function(s,l){var u=s.getData().mapDimensionsAll(n),f,c;if(s.getAxisTooltipData){var h=s.getAxisTooltipData(u,r,e);c=h.dataIndices,f=h.nestestValue}else{if(c=s.getData().indicesOfNearest(u[0],r,e.type==="category"?.5:null),!c.length)return;f=s.getData().get(u[0],c[0])}if(!(f==null||!isFinite(f))){var v=r-f,d=Math.abs(v);d<=A&&((d=0&&o<0)&&(A=d,o=v,a=f,i.length=0),T(c,function(p){i.push({seriesIndex:s.seriesIndex,dataIndexInside:p,dataIndex:s.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function Dj(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function Qj(r,t,e,n){var a=e.payloadBatch,i=t.axis,A=i.model,o=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var s=t.coordSys.model,l=pf(s),u=r.map[l];u||(u=r.map[l]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},r.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:A.componentIndex,axisType:A.type,axisId:A.id,value:n,valueLabelOpt:{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Lj(r,t,e){var n=e.axesInfo=[];T(t,function(a,i){var A=a.axisPointerModel.option,o=r[i];o?(!a.useHandle&&(A.status="show"),A.value=o.value,A.seriesDataIndices=(o.payloadBatch||[]).slice()):!a.useHandle&&(A.status="hide"),A.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:A.value})})}function Mj(r,t,e,n){if(tv(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Uj(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=yF(n)[a]||{},A=yF(n)[a]={};T(r,function(l,u){var f=l.axisPointerModel.option;f.status==="show"&&l.triggerEmphasis&&T(f.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;A[h]=c})});var o=[],s=[];T(i,function(l,u){!A[u]&&s.push(l)}),T(A,function(l,u){!i[u]&&o.push(l)}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),o.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:o})}function Pj(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function wF(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function tv(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Jf(r){Io.registerAxisPointerClass("CartesianAxisPointer",wj),r.registerComponentModel(_j),r.registerComponentView(Ij),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!K(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=WY(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Fj)}function Rj(r){Lt(OP),Lt(Jf)}var Hj=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis;o.dim==="angle"&&(this.animationThreshold=Math.PI/18);var s=o.polar,l=s.getOtherAxis(o),u=l.getExtent(),f=o.dataToCoord(n),c=i.get("type");if(c&&c!=="none"){var h=bC(i),v=kj[c](o,s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=i.get(["label","margin"]),p=Oj(n,a,i,s,d);AH(e,a,i,A,p)},t}(xC);function Oj(r,t,e,n,a){var i=t.axis,A=i.dataToCoord(r),o=n.getAngleAxis().getExtent()[0];o=o/180*Math.PI;var s=n.getRadiusAxis().getExtent(),l,u,f;if(i.dim==="radius"){var c=Wr();Co(c,c,o),va(c,c,[n.cx,n.cy]),l=Un([A,-a],c);var h=t.getModel("axisLabel").get("rotate")||0,v=wr.innerTextLayout(o,h*Math.PI/180,-1);u=v.textAlign,f=v.textVerticalAlign}else{var d=s[1];l=n.coordToPoint([d+a,A]);var p=n.cx,g=n.cy;u=Math.abs(l[0]-p)/d<.3?"center":l[0]>p?"left":"right",f=Math.abs(l[1]-g)/d<.3?"middle":l[1]>g?"top":"bottom"}return{position:l,align:u,verticalAlign:f}}var kj={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:IC(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:vF(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:vF(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},Nj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,a=this.ecModel;return a.eachComponent(e,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Rt),FC=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Te).models[0]},t.type="polarAxis",t}(Rt);Fe(FC,Vf);var Vj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(FC),Gj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(FC),EC=function(r){H(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(kn);EC.prototype.dataToRadius=kn.prototype.dataToCoord;EC.prototype.radiusToData=kn.prototype.coordToData;var Kj=Vt(),DC=function(r){H(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),a=e.scale,i=a.getExtent(),A=a.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),l=Math.abs(s),u=Df(o==null?"":o+"",n.getFont(),"center","top"),f=Math.max(u.height,7),c=f/l;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),v=Kj(e.model),d=v.lastAutoInterval,p=v.lastTickCount;return d!=null&&p!=null&&Math.abs(d-h)<=1&&Math.abs(p-A)<=1&&d>h?h=d:(v.lastTickCount=A,v.lastAutoInterval=h),h},t}(kn);DC.prototype.dataToAngle=kn.prototype.dataToCoord;DC.prototype.angleToData=kn.prototype.coordToData;var cH=["radius","angle"],zj=function(){function r(t){this.dimensions=cH,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new EC,this._angleAxis=new DC,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),A=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);a.inverse?A=o-360:o=A+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=lo;)l+=u*360;return[s,l]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[a,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(A,o){var s=A-this.cx,l=o-this.cy,u=s*s+l*l-1e-4,f=this.r,c=this.r0;return u<=f*f&&u>=c*c}}},r.prototype.convertToPixel=function(t,e,n){var a=BF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=BF(e);return a===this?this.pointToData(n):null},r}();function BF(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Wj(r,t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight();r.cx=et(n[0],a),r.cy=et(n[1],i);var A=r.getRadiusAxis(),o=Math.min(a,i)/2,s=t.get("radius");s==null?s=[0,"100%"]:K(s)||(s=[0,s]);var l=[et(s[0],o),et(s[1],o)];A.inverse?A.setExtent(l[1],l[0]):A.setExtent(l[0],l[1])}function Xj(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(o){if(o.coordinateSystem===e){var s=o.getData();T(Gv(s,"radius"),function(l){a.scale.unionExtentFromData(s,l)}),T(Gv(s,"angle"),function(l){n.scale.unionExtentFromData(s,l)})}}),Os(n.scale,n.model),Os(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),A=360/n.scale.count();n.inverse?i[1]+=A:i[1]-=A,n.setExtent(i[0],i[1])}}function Yj(r){return r.mainType==="angleAxis"}function _F(r,t){var e;if(r.type=t.get("type"),r.scale=hp(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),Yj(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var Zj={dimensions:cH,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new zj(a+"");i.update=Xj;var A=i.getRadiusAxis(),o=i.getAngleAxis(),s=n.findAxisModel("radiusAxis"),l=n.findAxisModel("angleAxis");_F(A,s),_F(o,l),Wj(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",Te).models[0];n.coordinateSystem=a.coordinateSystem}}),e}},$j=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function eh(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function rh(r){var t=r.getRadiusAxis();return t.inverse?0:1}function CF(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var Jj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,i=a.polar,A=i.getRadiusAxis().getExtent(),o=a.getTicksCoords(),s=a.getMinorTicksCoords(),l=Y(a.getViewLabels(),function(u){u=mt(u);var f=a.scale,c=f.type==="ordinal"?f.getRawOrdinalNumber(u.tickValue):u.tickValue;return u.coord=a.dataToCoord(c),u});CF(l),CF(o),T($j,function(u){e.get([u,"show"])&&(!a.scale.isBlank()||u==="axisLine")&&qj[u](this.group,e,i,o,s,A,l)},this)}},t.type="angleAxis",t}(Io),qj={axisLine:function(r,t,e,n,a,i){var A=t.getModel(["axisLine","lineStyle"]),o=e.getAngleAxis(),s=Math.PI/180,l=o.getExtent(),u=rh(e),f=u?0:1,c,h=Math.abs(l[1]-l[0])===360?"Circle":"Arc";i[f]===0?c=new So[h]({shape:{cx:e.cx,cy:e.cy,r:i[u],startAngle:-l[0]*s,endAngle:-l[1]*s,clockwise:o.inverse},style:A.getLineStyle(),z2:1,silent:!0}):c=new Mf({shape:{cx:e.cx,cy:e.cy,r:i[u],r0:i[f]},style:A.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,t,e,n,a,i){var A=t.getModel("axisTick"),o=(A.get("inside")?-1:1)*A.get("length"),s=i[rh(e)],l=Y(n,function(u){return new Pe({shape:eh(e,[s,s+o],u.coord)})});r.add(ln(l,{style:gt(A.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var A=t.getModel("axisTick"),o=t.getModel("minorTick"),s=(A.get("inside")?-1:1)*o.get("length"),l=i[rh(e)],u=[],f=0;fg?"left":"right",w=Math.abs(p[1]-y)/d<.3?"middle":p[1]>y?"top":"bottom";if(o&&o[v]){var _=o[v];yt(_)&&_.textStyle&&(h=new Yt(_.textStyle,s,s.ecModel))}var B=new Gt({silent:wr.isLabelSilent(t),style:oe(h,{x:p[0],y:p[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:m,verticalAlign:w})});if(r.add(B),u){var C=wr.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=f.rawLabel,Ct(B).eventData=C}},this)},splitLine:function(r,t,e,n,a,i){var A=t.getModel("splitLine"),o=A.getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],f=0;f=0?"p":"n",Q=x;_&&(n[u][E]||(n[u][E]={p:x,n:x}),Q=n[u][E][D]);var M=void 0,R=void 0,P=void 0,O=void 0;if(v.dim==="radius"){var G=v.dataToCoord(F)-x,X=s.dataToCoord(E);Math.abs(G)=O})}}})}function itt(r){var t={};T(r,function(n,a){var i=n.getData(),A=n.coordinateSystem,o=A.getBaseAxis(),s=vH(A,o),l=o.getExtent(),u=o.type==="category"?o.getBandWidth():Math.abs(l[1]-l[0])/i.count(),f=t[s]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=f.stacks;t[s]=f;var h=hH(n);c[h]||f.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var v=et(n.get("barWidth"),u),d=et(n.get("barMaxWidth"),u),p=n.get("barGap"),g=n.get("barCategoryGap");v&&!c[h].width&&(v=Math.min(f.remainedWidth,v),c[h].width=v,f.remainedWidth-=v),d&&(c[h].maxWidth=d),p!=null&&(f.gap=p),g!=null&&(f.categoryGap=g)});var e={};return T(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=et(n.categoryGap,A),s=et(n.gap,1),l=n.remainedWidth,u=n.autoWidthCount,f=(l-o)/(u+(u-1)*s);f=Math.max(f,0),T(i,function(d,p){var g=d.maxWidth;g&&g=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),a=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=e.toGlobalCoord(e.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(t,e,n){var a=SF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=SF(e);return a===this?this.pointToData(n):null},r}();function SF(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function ptt(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new dtt(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",Te).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),e}var gtt={create:ptt,dimensions:dH},xF=["x","y"],ytt=["width","height"],mtt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.coordinateSystem,l=qy(s,1-nd(o)),u=s.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var c=bC(i),h=wtt[f](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=bw(a);sH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=bw(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=TC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.coordinateSystem,s=nd(A),l=qy(o,s),u=[e.x,e.y];u[s]+=n[s],u[s]=Math.min(l[1],u[s]),u[s]=Math.max(l[0],u[s]);var f=qy(o,1-s),c=(f[1]+f[0])/2,h=[c,c];return h[s]=u[s],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(xC),wtt={line:function(r,t,e){var n=IC([t,e[0]],[t,e[1]],nd(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),a=e[1]-e[0];return{type:"Rect",shape:lH([t-n/2,e[0]],[n,a],nd(r))}}};function nd(r){return r.isHorizontal()?0:1}function qy(r,t){var e=r.getRect();return[e[xF[t]],e[xF[t]]+e[ytt[t]]]}var Btt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(de);function _tt(r){Lt(Jf),Io.registerAxisPointerClass("SingleAxisPointer",mtt),r.registerComponentView(Btt),r.registerComponentView(ctt),r.registerComponentModel(ev),Ns(r,"single",ev,ev.defaultOption),r.registerCoordinateSystem("single",gtt)}var Ctt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,a){var i=nl(e);r.prototype.init.apply(this,arguments),bF(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),bF(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Rt);function bF(r,t){var e=r.cellSize,n;K(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=Y([0,1],function(i){return z3(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Yi(r,t,{type:"box",ignoreSize:a})}var Stt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll();var A=e.coordinateSystem,o=A.getRangeInfo(),s=A.getOrient(),l=n.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,s,i),this._renderYearText(e,o,s,i),this._renderMonthText(e,l,s,i),this._renderWeekText(e,l,o,s,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,A=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),l=n.start.time;l<=n.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,f=new Nt({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:A});a.add(f)}},t.prototype._renderLines=function(e,n,a,i){var A=this,o=e.coordinateSystem,s=e.getModel(["splitLine","lineStyle"]).getLineStyle(),l=e.get(["splitLine","show"]),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,c=0;f.time<=n.end.time;c++){v(f.formatedDate),c===0&&(f=o.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=o.getDateInfo(h)}v(o.getNextNDay(n.end.time,1).formatedDate);function v(d){A._firstDayOfMonth.push(o.getDateInfo(d)),A._firstDayPoints.push(o.dataToRect([d],!1).tl);var p=A._getLinePointsOfOneWeek(e,d,a);A._tlpoints.push(p[0]),A._blpoints.push(p[p.length-1]),l&&A._drawSplitline(p,s,i)}l&&this._drawSplitline(A._getEdgesPoints(A._tlpoints,u,a),s,i),l&&this._drawSplitline(A._getEdgesPoints(A._blpoints,u,a),s,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],A=a==="horizontal"?0:1;return i[0][A]=i[0][A]-n/2,i[1][A]=i[1][A]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new xr({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,A=i.getDateInfo(n),o=[],s=0;s<7;s++){var l=i.getNextNDay(A.time,s),u=i.dataToRect([l.time],!1);o[2*l.day]=u.tl,o[2*l.day+1]=u[a==="horizontal"?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?V3(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,A){var o=n[0],s=n[1],l=["center","bottom"];i==="bottom"?(s+=A,l=["center","top"]):i==="left"?o-=A:i==="right"?(o+=A,l=["center","top"]):s-=A;var u=0;return(i==="left"||i==="right")&&(u=Math.PI/2),{rotation:u,x:o,y:s,style:{align:l[0],verticalAlign:l[1]}}},t.prototype._renderYearText=function(e,n,a,i){var A=e.getModel("yearLabel");if(A.get("show")){var o=A.get("margin"),s=A.get("position");s||(s=a!=="horizontal"?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,f=(l[0][1]+l[1][1])/2,c=a==="horizontal"?0:1,h={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],f],right:[l[c][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var d=A.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:v},g=this._formatterLabel(d,p),y=new Gt({z2:30,style:oe(A,{text:g})});y.attr(this._yearTextPositionControl(y,h[s],a,s,o)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,n,a,i,A){var o="left",s="top",l=e[0],u=e[1];return a==="horizontal"?(u=u+A,n&&(o="center"),i==="start"&&(s="bottom")):(l=l+A,n&&(s="middle"),i==="start"&&(o="right")),{x:l,y:u,align:o,verticalAlign:s}},t.prototype._renderMonthText=function(e,n,a,i){var A=e.getModel("monthLabel");if(A.get("show")){var o=A.get("nameMap"),s=A.get("margin"),l=A.get("position"),u=A.get("align"),f=[this._tlpoints,this._blpoints];(!o||nt(o))&&(o&&(n=M0(o)||n),o=n.get(["time","monthAbbr"])||[]);var c=l==="start"?0:1,h=a==="horizontal"?0:1;s=l==="start"?-s:s;for(var v=u==="center",d=0;d=a.start.time&&n.timeo.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var a=Math.floor(e[1].time/jy)-Math.floor(e[0].time/jy)+1,i=new Date(e[0].time),A=i.getDate(),o=e[1].date.getDate();i.setDate(A+a-1);var s=i.getDate();if(s!==o)for(var l=i.getTime()-e[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-e[1].time)*l>0;)a-=l,i.setDate(s-l);var u=Math.floor((a+e[0].day+6)/7),f=n?-u+1:u-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:u,nthWeek:f,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&ea.lweek)return null;var i=(t-1)*7-a.fweek+e,A=new Date(a.start.time);return A.setDate(+a.start.d+i),this.getDateInfo(A)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function TF(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function btt(r){r.registerComponentModel(Ctt),r.registerComponentView(Stt),r.registerCoordinateSystem("calendar",xtt)}function Ttt(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function IF(r,t){var e;return T(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function Itt(r,t,e){var n=V({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(Et(a,n,!0),Yi(a,n,{ignoreSize:!0}),sU(e,a),nh(e,a),nh(e,a,"shape"),nh(e,a,"style"),nh(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var pH=["transition","enterFrom","leaveTo"],Ftt=pH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function nh(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?pH:Ftt,a=0;a=0;u--){var f=a[u],c=De(f.id,null),h=c!=null?A.get(c):null;if(h){var v=h.parent,g=an(v),y=v===i?{width:o,height:s}:{width:g.width,height:g.height},m={},w=ap(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},m);if(!an(h).isNew&&w){for(var _=f.transition,B={},C=0;C=0)?B[S]=x:h[S]=x}zt(h,B,e,0)}else h.attr(m)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){rv(a,an(a).option,n,e._lastGraphicModel)}),this._elMap=ft()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(de);function Tw(r){var t=st(FF,r)?FF[r]:u_(r),e=new t({});return an(e).type=r,e}function EF(r,t,e,n){var a=Tw(e);return t.add(a),n.set(r,a),an(a).id=r,an(a).isNew=!0,a}function rv(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){rv(i,t,e,n)}),wp(r,t,n),e.removeKey(an(r).id))}function DF(r,t,e,n){r.isGroup||T([["cursor",gn.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];st(t,i)?r[i]=xt(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),T(Ht(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=vt(i)?i:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Ltt(r){return r=V({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(oU),function(t){delete r[t]}),r}function Mtt(r,t,e){var n=Ct(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Ct(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function Utt(r){r.registerComponentModel(Dtt),r.registerComponentView(Qtt),r.registerPreprocessor(function(t){var e=t.graphic;K(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var QF=["x","y","radius","angle","single"],Ptt=["cartesian2d","polar","singleAxis"];function Rtt(r){var t=r.get("coordinateSystem");return Qt(Ptt,t)>=0}function Li(r){return r+"Axis"}function Htt(r,t){var e=ft(),n=[],a=ft();r.eachComponent({mainType:"dataZoom",query:t},function(u){a.get(u.uid)||o(u)});var i;do i=!1,r.eachComponent("dataZoom",A);while(i);function A(u){!a.get(u.uid)&&s(u)&&(o(u),i=!0)}function o(u){a.set(u.uid,!0),n.push(u),l(u)}function s(u){var f=!1;return u.eachTargetAxis(function(c,h){var v=e.get(c);v&&v[h]&&(f=!0)}),f}function l(u){u.eachTargetAxis(function(f,c){(e.get(f)||e.set(f,[]))[c]=!0})}return n}function gH(r){var t=r.ecModel,e={infoList:[],infoMap:ft()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(Li(n),a);if(i){var A=i.getCoordSysModel();if(A){var o=A.uid,s=e.infoMap.get(o);s||(s={model:A,axisModels:[]},e.infoList.push(s),e.infoMap.set(o,s)),s.axisModels.push(i)}}}),e}var tm=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),_f=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=LF(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=LF(e);Et(this.option,e,!0),Et(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i,A){this._rangePropMode[A]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ft(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return T(QF,function(a){var i=this.getReferringComponents(Li(a),DK);if(i.specified){n=!0;var A=new tm;T(i.models,function(o){A.add(o.componentIndex)}),e.set(a,A)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var A=n==="vertical"?"y":"x",o=a.findComponents({mainType:A+"Axis"});s(o,A)}if(i){var o=a.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===n}});s(o,"single")}function s(l,u){var f=l[0];if(f){var c=new tm;if(c.add(f.componentIndex),e.set(u,c),i=!1,u==="x"||u==="y"){var h=f.getReferringComponents("grid",Te).models[0];h&&T(l,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Te).models[0]&&c.add(v.componentIndex)})}}}i&&T(QF,function(l){if(i){var u=a.findComponents({mainType:Li(l),filter:function(c){return c.get("type",!0)==="category"}});if(u[0]){var f=new tm;f.add(u[0].componentIndex),e.set(l,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(i,A){var o=e[i[0]]!=null,s=e[i[1]]!=null;o&&!s?n[A]="percent":!o&&s?n[A]="value":a?n[A]=a[A]:o&&(n[A]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Li(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){T(a.indexList,function(A){e.call(n,i,A)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Li(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;T(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;iA[1];if(m&&!w&&!_)return!0;m&&(p=!0),w&&(v=!0),_&&(d=!0)}return p&&v&&d})}else ls(u,function(h){if(i==="empty")s.setData(l=l.map(h,function(d){return o(d)?d:NaN}));else{var v={};v[h]=A,l.selectRange(v)}});ls(u,function(h){l.setApproximateExtent(A,h)})}});function o(s){return s>=A[0]&&s<=A[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ls(["min","max"],function(a){var i=e.get(a+"Span"),A=e.get(a+"ValueSpan");A!=null&&(A=this.getAxisModel().axis.scale.parse(A)),A!=null?i=$t(n[0]+A,n,[0,100],!0):i!=null&&(A=$t(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=A},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=$L(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Vtt(r,t,e){var n=[1/0,-1/0];ls(e,function(A){BX(n,A.getData(),t)});var a=r.getAxisModel(),i=U2(a.axis.scale,a,n).calculate();return[i.min,i.max]}var Gtt={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(A,o){var s=r.getComponent(Li(A),o);a(A,o,s,i)})})}t(function(a,i,A,o){A.__dzAxisProxy=null});var e=[];t(function(a,i,A,o){A.__dzAxisProxy||(A.__dzAxisProxy=new Ntt(a,i,o,r),e.push(A.__dzAxisProxy))});var n=ft();return T(e,function(a){T(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Ktt(r){r.registerAction("dataZoom",function(t,e){var n=Htt(e,t);T(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var UF=!1;function LC(r){UF||(UF=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Gtt),Ktt(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function ztt(r){r.registerComponentModel(Ott),r.registerComponentView(ktt),LC(r)}var on=function(){function r(){}return r}(),yH={};function us(r,t){yH[r]=t}function mH(r){return yH[r]}var Wtt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;T(this.option.feature,function(n,a){var i=mH(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Et(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Rt);function Xtt(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},A=Le(n,i,a);io(t.get("orient"),r,t.get("itemGap"),A.width,A.height),ap(r,n,i,a)}function wH(r,t){var e=rl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Nt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Ytt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var A=this.group;if(A.removeAll(),!e.get("show"))return;var o=+e.get("itemSize"),s=e.get("orient")==="vertical",l=e.get("feature")||{},u=this._features||(this._features={}),f=[];T(l,function(v,d){f.push(d)}),new Ya(this._featureNames||[],f).add(c).update(c).remove(bt(c,null)).execute(),this._featureNames=f;function c(v,d){var p=f[v],g=f[d],y=l[p],m=new Yt(y,e,e.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!g){if(Ztt(p))w={onclick:m.option.onclick,featureName:p};else{var _=mH(p);if(!_)return;w=new _}u[p]=w}else if(w=u[g],!w)return;w.uid=el("toolbox-feature"),w.model=m,w.ecModel=n,w.api=a;var B=w instanceof on;if(!p&&g){B&&w.dispose&&w.dispose(n,a);return}if(!m.get("show")||B&&w.unusable){B&&w.remove&&w.remove(n,a);return}h(m,w,p),m.setIconStatus=function(C,S){var x=this.option,b=this.iconPaths;x.iconStatus=x.iconStatus||{},x.iconStatus[C]=S,b[C]&&(S==="emphasis"?Wa:Xa)(b[C])},w instanceof on&&w.render&&w.render(m,n,a,i)}function h(v,d,p){var g=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),m=d instanceof on&&d.getIcons?d.getIcons():v.get("icon"),w=v.get("title")||{},_,B;nt(m)?(_={},_[p]=m):_=m,nt(w)?(B={},B[p]=w):B=w;var C=v.iconPaths={};T(_,function(S,x){var b=Hf(S,{},{x:-o/2,y:-o/2,width:o,height:o});b.setStyle(g.getItemStyle());var I=b.ensureState("emphasis");I.style=y.getItemStyle();var F=new Gt({style:{text:B[x],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:f_({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});b.setTextContent(F),js({el:b,componentModel:e,itemName:x,formatterParamsExtra:{title:B[x]}}),b.__title=B[x],b.on("mouseover",function(){var E=y.getItemStyle(),D=s?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";F.setStyle({fill:y.get("textFill")||E.fill||E.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),b.setTextConfig({position:y.get("textPosition")||D}),F.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",x])!=="emphasis"&&a.leaveEmphasis(this),F.hide()}),(v.get(["iconStatus",x])==="emphasis"?Wa:Xa)(b),A.add(b),b.on("click",it(d.onclick,d,n,a,x)),C[x]=b})}Xtt(A,e,a),A.add(wH(A.getBoundingRect(),e)),s||A.eachChild(function(v){var d=v.__title,p=v.ensureState("emphasis"),g=p.textConfig||(p.textConfig={}),y=v.getTextContent(),m=y&&y.ensureState("emphasis");if(m&&!vt(m)&&d){var w=m.style||(m.style={}),_=Df(d,Gt.makeFont(w)),B=v.x+A.x,C=v.y+A.y+o,S=!1;C+_.height>a.getHeight()&&(g.position="top",S=!0);var x=S?-5-_.height:o+10;B+_.width/2>a.getWidth()?(g.position=["100%",x],w.align="right"):B-_.width/2<0&&(g.position=[0,x],w.align="left")}})},t.prototype.updateView=function(e,n,a,i){T(this._features,function(A){A instanceof on&&A.updateView&&A.updateView(A.model,n,a,i)})},t.prototype.remove=function(e,n){T(this._features,function(a){a instanceof on&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){T(this._features,function(a){a instanceof on&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(de);function Ztt(r){return r.indexOf("my")===0}var $tt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",A=n.getZr().painter.getType()==="svg",o=A?"svg":a.get("type",!0)||"png",s=n.getConnectedDataURL({type:o,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),l=Ut.browser;if(typeof MouseEvent=="function"&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=i+"."+o,u.target="_blank",u.href=s;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||A){var c=s.split(","),h=c[0].indexOf("base64")>-1,v=A?decodeURIComponent(c[1]):c[1];h&&(v=window.atob(v));var d=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=v.length,g=new Uint8Array(p);p--;)g[p]=v.charCodeAt(p);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var w=m.contentWindow,_=w.document;_.open("image/svg+xml","replace"),_.write(v),_.close(),w.focus(),_.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var B=a.get("lang"),C='',S=window.open();S.document.write(C),S.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(on),PF="__ec_magicType_stack__",Jtt=[["line","bar"],["stack"]],qtt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return T(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,A=i.get(["seriesIndex",a]);if(RF[a]){var o={series:[]},s=function(f){var c=f.subType,h=f.id,v=RF[a](c,h,f,i);v&&(gt(v,f.option),o.series.push(v));var d=f.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=d.getAxesByScale("ordinal")[0];if(p){var g=p.dim,y=g+"Axis",m=f.getReferringComponents(y,Te).models[0],w=m.componentIndex;o[y]=o[y]||[];for(var _=0;_<=w;_++)o[y][w]=o[y][w]||{};o[y][w].boundaryGap=a==="bar"}}};T(Jtt,function(f){Qt(f,a)>=0&&T(f,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:A==null?null:{seriesIndex:A}},s);var l,u=a;a==="stack"&&(l=Et({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(u="tiled")),n.dispatchAction({type:"changeMagicType",currentType:u,newOption:o,newTitle:l,featureName:"magicType"})}},t}(on),RF={line:function(r,t,e,n){if(r==="bar")return Et({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Et({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===PF;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Et({id:t,stack:a?"":PF},n.get(["option","stack"])||{},!0)}};ma({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var Bp=new Array(60).join("-"),Ks=" ";function jtt(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var A=i.getBaseAxis();if(A.type==="category"){var o=A.dim+"_"+A.index;t[o]||(t[o]={categoryAxis:A,valueAxis:i.getOtherAxis(A),series:[]},n.push({axisDim:A.dim,axisIndex:A.index})),t[o].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function tet(r){var t=[];return T(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,A=i.dim,o=[" "].concat(Y(e.series,function(h){return h.name})),s=[a.model.getCategories()];T(e.series,function(h){var v=h.getRawData();s.push(h.getRawData().mapArray(v.mapDimension(A),function(d){return d}))});for(var l=[o.join(Ks)],u=0;u1||e>0&&!r.noHeader;return I(r.blocks,function(a){var i=s2(a);i>=t&&(t=i+ +(n&&(!i||rw(a)&&!a.noHeader)))}),t}return 0}function IW(r,t,e,n){var a=t.noHeader,i=EW(s2(t)),A=[],o=t.blocks||[];Cr(!o||K(o)),o=o||[];var s=r.orderMode;if(t.sortBlocks&&s){o=o.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(st(l,s)){var u=new t2(l[s],null);o.sort(function(v,d){return u.evaluate(v.sortParam,d.sortParam)})}else s==="seriesDesc"&&o.reverse()}I(o,function(v,d){var p=t.valueFormatter,g=o2(v)(p?V(V({},r),{valueFormatter:p}):r,v,d>0?i.html:0,n);g!=null&&A.push(g)});var f=r.renderMode==="richText"?A.join(i.richText):nw(A.join(""),a?e:i.html);if(a)return f;var c=J0(t.header,"ordinal",r.useUTC),h=A2(n,r.renderMode).nameStyle;return r.renderMode==="richText"?l2(r,c,h)+i.richText+f:nw('
'+Lr(c)+"
"+f,e)}function FW(r,t,e,n){var a=r.renderMode,i=t.noName,A=t.noValue,o=!t.markerType,s=t.name,l=r.useUTC,u=t.valueFormatter||r.valueFormatter||function(w){return w=K(w)?w:[w],Y(w,function(_,B){return J0(_,K(h)?h[B]:h,l)})};if(!(i&&A)){var f=o?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),c=i?"":J0(s,"ordinal",l),h=t.valueType,v=A?[]:u(t.value,t.dataIndex),d=!o||!i,p=!o&&i,g=A2(n,a),y=g.nameStyle,m=g.valueStyle;return a==="richText"?(o?"":f)+(i?"":l2(r,c,y))+(A?"":QW(r,v,d,p,m)):nw((o?"":f)+(i?"":DW(c,!o,y))+(A?"":LW(v,d,p,m)),e)}}function ob(r,t,e,n,a,i){if(r){var A=o2(r),o={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return A(o,r,0,i)}}function EW(r){return{html:bW[r],richText:TW[r]}}function nw(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function DW(r,t,e){var n=t?"margin-left:2px":"";return''+Lr(r)+""}function LW(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=K(r)?r:[r],''+Y(r,function(A){return Lr(A)}).join("  ")+""}function l2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function QW(r,t,e,n,a){var i=[a],A=n?10:20;return e&&i.push({padding:[0,0,0,A],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(K(t)?t.join(" "):t,i)}function u2(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return bo(n)}function f2(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var ry=function(){function r(){this.richTextStyles={},this._nextStyleNameId=bM()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=Sz({color:e,type:t,renderMode:n,markerId:a});return nt(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};K(e)?I(e,function(i){return V(n,i)}):V(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function c2(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),A=i.length,o=t.getRawValue(e),s=K(o),l=u2(t,e),u,f,c,h;if(A>1||s&&!A){var v=MW(o,t,e,i,l);u=v.inlineValues,f=v.inlineValueTypes,c=v.blocks,h=v.inlineValues[0]}else if(A){var d=a.getDimensionInfo(i[0]);h=u=Ks(a,e,i[0]),f=d.type}else h=u=s?o[0]:o;var p=f_(t),g=p&&t.name||"",y=a.getName(e),m=n?g:y;return Ne("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[Ne("nameValue",{markerType:"item",markerColor:l,name:m,noName:!Mn(m),value:u,valueType:f,dataIndex:e})].concat(c||[])})}function MW(r,t,e,n,a){var i=t.getData(),A=da(r,function(f,c,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),o=[],s=[],l=[];n.length?I(n,function(f){u(Ks(i,e,f),f)}):I(r,u);function u(f,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(A?l.push(Ne("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(o.push(f),s.push(h.type)))}return{inlineValues:o,inlineValueTypes:s,blocks:l}}var ci=Vt();function Hc(r,t){return r.getName(t)||r.getId(t)}var ov="__universalTransitionEnabled",se=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Nu({count:PW,reset:RW}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=ci(this).sourceManager=new a2(this);i.prepareSource();var A=this.getInitialData(e,a);lb(A,this),this.dataTask.context.data=A,ci(this).dataBeforeProcessed=A,sb(this),this._initSelectedMapFromData(A)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=gf(this),i=a?ul(e):{},A=this.subType;Ht.hasClass(A)&&(A+="Series"),Et(e,n.getTheme().get(this.subType)),Et(e,this.getDefaultOption()),_o(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&eA(e,i,a)},t.prototype.mergeOption=function(e,n){e=Et(this.option,e,!0),this.fillDataTextStyle(e.data);var a=gf(this);a&&eA(this.option,e,a);var i=ci(this).sourceManager;i.dirty(),i.prepareSource();var A=this.getInitialData(e,n);lb(A,this),this.dataTask.dirty(),this.dataTask.context.data=A,ci(this).dataBeforeProcessed=A,sb(this),this._initSelectedMapFromData(A)},t.prototype.fillDataTextStyle=function(e){if(e&&!Rr(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,A=M_.prototype.getColorFromPalette.call(this,e,n,a);return A||(A=i.getColorFromPalette(e,n,a)),A},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,A=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o=0&&a.push(A)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Hc(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ov])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,A=this.option,o=A.selectedMode,s=n.length;if(!(!o||!s)){if(o==="series")A.selectedMap="all";else if(o==="multiple"){yt(A.selectedMap)||(A.selectedMap={});for(var l=A.selectedMap,u=0;u0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Ht.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Ht);Ee(se,wp);Ee(se,M_);UM(se,Ht);function sb(r){var t=r.name;f_(r)||(r.name=UW(r)||t)}function UW(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return I(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function PW(r){return r.model.getRawData().count()}function RW(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),HW}function HW(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function lb(r,t){I(Ev(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,bt(OW,t))})}function OW(r,t){var e=aw(r);return e&&e.setOutputEnd((t||this).count()),t}function aw(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var de=function(){function r(){this.group=new Ct,this.uid=sl("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();h_(de);rp(de);function cl(){var r=Vt();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,A=e.large=!!(n&&n.large),o=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==A||i!==o)&&"reset"}}var h2=Vt(),kW=cl(),te=function(){function r(){this.group=new Ct,this.uid=sl("viewChart"),this.renderTask=Nu({plan:NW,reset:VW}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&fb(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&fb(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){lA(this.group,t)},r.markUpdateMethod=function(t,e){h2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function ub(r,t,e){r&&vf(r)&&(t==="emphasis"?Ya:Za)(r,e)}function fb(r,t,e){var n=Co(r,t),a=t&&t.highlightKey!=null?S5(t.highlightKey):null;n!=null?I(qt(n),function(i){ub(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){ub(i,e,a)})}h_(te);rp(te);function NW(r){return kW(r.model)}function VW(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,A=r.view,o=a&&h2(a).updateMethod,s=i?"incrementalPrepareRender":o&&A[o]?o:"render";return s!=="render"&&A[s](t,e,n,a),GW[s]}var GW={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Xv="\0__throttleOriginMethod",cb="\0__throttleRate",hb="\0__throttleType";function k_(r,t,e){var n,a=0,i=0,A=null,o,s,l,u;t=t||0;function f(){i=new Date().getTime(),A=null,r.apply(s,l||[])}var c=function(){for(var h=[],v=0;v=0?f():A=setTimeout(f,-o),a=n};return c.clear=function(){A&&(clearTimeout(A),A=null)},c.debounceNextCall=function(h){u=h},c}function hl(r,t,e,n){var a=r[t];if(a){var i=a[Xv]||a,A=a[hb],o=a[cb];if(o!==e||A!==n){if(e==null||!n)return r[t]=i;a=r[t]=k_(i,e,n==="debounce"),a[Xv]=i,a[hb]=n,a[cb]=e}return a}}function mf(r,t){var e=r[t];e&&e[Xv]&&(e.clear&&e.clear(),r[t]=e[Xv])}var vb=Vt(),db={itemStyle:So(mU,!0),lineStyle:So(yU,!0)},KW={lineStyle:"stroke",itemStyle:"fill"};function v2(r,t){var e=r.visualStyleMapper||db[t];return e||(console.warn("Unknown style type '"+t+"'."),db.itemStyle)}function d2(r,t){var e=r.visualDrawType||KW[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var zW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=v2(r,n),A=i(a),o=a.getShallow("decal");o&&(e.setVisual("decal",o),o.dirty=!0);var s=d2(r,n),l=A[s],u=vt(l)?l:null,f=A.fill==="auto"||A.stroke==="auto";if(!A[s]||u||f){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());A[s]||(A[s]=c,e.setVisual("colorFromPalette",!0)),A.fill=A.fill==="auto"||vt(A.fill)?c:A.fill,A.stroke=A.stroke==="auto"||vt(A.stroke)?c:A.stroke}if(e.setVisual("style",A),e.setVisual("drawType",s),!t.isSeriesFiltered(r)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),p=V({},A);p[s]=u(d),h.setItemVisual(v,"style",p)}}}},Ql=new Yt,WW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=v2(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(A,o){var s=A.getRawDataItem(o);if(s&&s[n]){Ql.option=s[n];var l=a(Ql),u=A.ensureUniqueItemVisual(o,"style");V(u,l),Ql.option.decal&&(A.setItemVisual(o,"decal",Ql.option.decal),Ql.option.decal.dirty=!0),i in l&&A.setItemVisual(o,"colorFromPalette",!1)}}:null}}}},XW={performRawSeries:!0,overallReset:function(r){var t=ft();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),vb(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),A=vb(e).scope,o=e.visualStyleAccessPath||"itemStyle",s=d2(e,o);i.each(function(l){var u=i.getRawIndex(l);a[u]=l}),n.each(function(l){var u=a[l],f=i.getItemVisual(u,"colorFromPalette");if(f){var c=i.ensureUniqueItemVisual(u,"style"),h=n.getName(l)||l+"",v=n.count();c[s]=e.getColorFromPalette(h,A,v)}})}})}},Oc=Math.PI;function YW(r,t){t=t||{},gt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Ct,n=new Nt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Gt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Nt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var A;return t.showSpinner&&(A=new lp({shape:{startAngle:-Oc/2,endAngle:-Oc/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),A.animateShape(!0).when(1e3,{endAngle:Oc*3/2}).start("circularInOut"),A.animateShape(!0).when(1e3,{startAngle:Oc*3/2}).delay(300).start("circularInOut"),e.add(A)),e.resize=function(){var o=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-s*2-(t.showSpinner&&o?10:0)-o)/2-(t.showSpinner&&o?0:5+o/2)+(t.showSpinner?0:o/2)+(o?0:s),u=r.getHeight()/2;t.showSpinner&&A.setShape({cx:l,cy:u}),i.setShape({x:l-s,y:u-s,width:s*2,height:s*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var p2=function(){function r(t,e,n,a){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,A=i?n.step:null,o=a&&a.modDataCount,s=o!=null?Math.ceil(o/A):null;return{step:A,modBy:s,modDataCount:o}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),A=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),s=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:A,modDataCount:s,large:o}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries(function(a){var i=a.getProgressive(),A=a.uid;n.set(A,{id:A,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;I(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),A="";Cr(!(a.reset&&a.overallReset),A),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,A=i.context;A.model=e,A.ecModel=n,A.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,A=this;I(t,function(s,l){if(!(a.visualType&&a.visualType!==s.visualType)){var u=A._stageTaskMap.get(s.uid),f=u.seriesTaskMap,c=u.overallTask;if(c){var h,v=c.agentStubMap;v.each(function(p){o(a,p)&&(p.dirty(),h=!0)}),h&&c.dirty(),A.updatePayload(c,n);var d=A.getPerformArgs(c,a.block);v.each(function(p){p.perform(d)}),c.perform(d)&&(i=!0)}else f&&f.each(function(p,g){o(a,p)&&p.dirty();var y=A.getPerformArgs(p,a.block);y.skip=!s.performRawSeries&&e.isSeriesFiltered(p.context.model),A.updatePayload(p,n),p.perform(y)&&(i=!0)})}});function o(s,l){return s.setDirty&&(!s.dirtyMap||s.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,A=e.seriesTaskMap,o=e.seriesTaskMap=ft(),s=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,a).each(u);function u(f){var c=f.uid,h=o.set(c,A&&A.get(c)||Nu({plan:jW,reset:t8,count:r8}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,A=e.overallTask=e.overallTask||Nu({reset:ZW});A.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var o=A.agentStubMap,s=A.agentStubMap=ft(),l=t.seriesType,u=t.getTargetSeries,f=!0,c=!1,h="";Cr(!t.createOnAllSeries,h),l?n.eachRawSeriesByType(l,v):u?u(n,a).each(v):(f=!1,I(n.getSeries(),v));function v(d){var p=d.uid,g=s.set(p,o&&o.get(p)||(c=!0,Nu({reset:$W,onDirty:qW})));g.context={model:d,overallProgress:f},g.agent=A,g.__block=f,i._pipe(d,g)}c&&A.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:n8(t)}),t.uid=sl("stageHandler"),e&&(t.visualType=e),t},r}();function ZW(r){r.overallReset(r.ecModel,r.api,r.payload)}function $W(r){return r.overallProgress&&JW}function JW(){this.agent.dirty(),this.getDownstream().dirty()}function qW(){this.agent&&this.agent.dirty()}function jW(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function t8(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=qt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,n){return g2(n)}):e8}var e8=g2(0);function g2(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&h===l.length-c.length){var v=l.slice(0,h);v!=="data"&&(e.mainType=v,e[c.toLowerCase()]=s,u=!0)}}o.hasOwnProperty(l)&&(n[l]=s,u=!0),u||(a[l]=s)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,A=n.model,o=n.view;if(!A||!o)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,A,"mainType")&&u(s,A,"subType")&&u(s,A,"index","componentIndex")&&u(s,A,"name")&&u(s,A,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,a,i));function u(f,c,h,v){return f[h]==null||c[v||h]===f[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),iw=["symbol","symbolSize","symbolRotate","symbolOffset"],mb=iw.concat(["symbolKeepAspect"]),A8={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,A=0;A=0&&ao(s)?s:.5;var l=r.createRadialGradient(A,o,0,A,o,s);return l}function Aw(r,t,e){for(var n=t.type==="radial"?B8(r,t,e):w8(r,t,e),a=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Kt(r)?[r]:K(r)?r:null}function V_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&C8(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=Y(e,function(i){return i/a}),n/=a)}return[e,n]}var S8=new ma(!0);function $v(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function wb(r){return typeof r=="string"&&r!=="none"}function Jv(r){var t=r.fill;return t!=null&&t!=="none"}function Bb(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function _b(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function ow(r,t,e){var n=v_(t.image,t.__image,e);if(np(n)){var a=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Yh),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function x8(r,t,e,n){var a,i=$v(e),A=Jv(e),o=e.strokePercent,s=o<1,l=!t.path;(!t.silent||s)&&l&&t.createPathProxy();var u=t.path||S8,f=t.__dirty;if(!n){var c=e.fill,h=e.stroke,v=A&&!!c.colorStops,d=i&&!!h.colorStops,p=A&&!!c.image,g=i&&!!h.image,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0;(v||d)&&(B=t.getBoundingRect()),v&&(y=f?Aw(r,c,B):t.__canvasFillGradient,t.__canvasFillGradient=y),d&&(m=f?Aw(r,h,B):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=f||!t.__canvasFillPattern?ow(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(_=f||!t.__canvasStrokePattern?ow(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?r.fillStyle=y:p&&(w?r.fillStyle=w:A=!1),d?r.strokeStyle=m:g&&(_?r.strokeStyle=_:i=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var x,S;r.setLineDash&&e.lineDash&&(a=V_(t),x=a[0],S=a[1]);var b=!0;(l||f&ds)&&(u.setDPR(r.dpr),s?u.setContext(null):(u.setContext(r),b=!1),u.reset(),t.buildPath(u,t.shape,n),u.toStatic(),t.pathUpdated()),b&&u.rebuildPath(r,s?o:1),x&&(r.setLineDash(x),r.lineDashOffset=S),n||(e.strokeFirst?(i&&_b(r,e),A&&Bb(r,e)):(A&&Bb(r,e),i&&_b(r,e))),x&&r.setLineDash([])}function b8(r,t,e){var n=t.__image=v_(e.image,t.__image,t,t.onload);if(!(!n||!np(n))){var a=e.x||0,i=e.y||0,A=t.getWidth(),o=t.getHeight(),s=n.width/n.height;if(A==null&&o!=null?A=o*s:o==null&&A!=null?o=A/s:A==null&&o==null&&(A=n.width,o=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,u=e.sy||0;r.drawImage(n,l,u,e.sWidth,e.sHeight,a,i,A,o)}else if(e.sx&&e.sy){var l=e.sx,u=e.sy,f=A-l,c=o-u;r.drawImage(n,l,u,f,c,a,i,A,o)}else r.drawImage(n,a,i,A,o)}}function T8(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||Ji,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,A=void 0;r.setLineDash&&e.lineDash&&(n=V_(t),i=n[0],A=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=A),e.strokeFirst?($v(e)&&r.strokeText(a,e.x,e.y),Jv(e)&&r.fillText(a,e.x,e.y)):(Jv(e)&&r.fillText(a,e.x,e.y),$v(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var Cb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function C2(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){Pr(r,a),i=!0;var A=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(A)?fo.opacity:A}(n||t.blend!==e.blend)&&(i||(Pr(r,a),i=!0),r.globalCompositeOperation=t.blend||fo.blend);for(var o=0;o0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[er]){if(this._disposed){this.id;return}var i,A,o;if(yt(n)&&(a=n.lazyUpdate,i=n.silent,A=n.replaceMerge,o=n.transition,n=n.notMerge),this[er]=!0,!this._model||n){var s=new Vz(this._api),l=this._theme,u=this._model=new U_;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:A},lw);var f={seriesTransition:o,optionChanged:!0};if(a)this[Fr]={silent:i,updateParams:f},this[er]=!1,this.getZr().wakeUp();else{try{$o(this),hi.update.call(this,null,f)}catch(c){throw this[Fr]=null,this[er]=!1,c}this._ssr||this._zr.flush(),this[Fr]=null,this[er]=!1,Ml.call(this,i),Ul.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Pt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Pt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return I(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],A=this;I(n,function(s){a.eachComponent({mainType:s},function(l){var u=A._componentsMap[l.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var o=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return I(i,function(s){s.group.ignore=!1}),o},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,A=Math.max,o=1/0;if(Ob[a]){var s=o,l=o,u=-o,f=-o,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();I(Gu,function(m,w){if(m.group===a){var _=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(wt(e)),B=m.getDom().getBoundingClientRect();s=i(B.left,s),l=i(B.top,l),u=A(B.right,u),f=A(B.bottom,f),c.push({dom:_,left:B.left,top:B.top})}}),s*=h,l*=h,u*=h,f*=h;var v=u-s,d=f-l,p=qi.createCanvas(),g=GS(p,{renderer:n?"svg":"canvas"});if(g.resize({width:v,height:d}),n){var y="";return I(c,function(m){var w=m.left-s,_=m.top-l;y+=''+m.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Nt({shape:{x:0,y:0,width:v,height:d},style:{fill:e.connectedBackgroundColor}})),I(c,function(m){var w=new ze({style:{x:m.left*h-s,y:m.top*h-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return oy(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return oy(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,A=Pu(a,e);return I(A,function(o,s){s.indexOf("Models")>=0&&I(o,function(l){var u=l.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(n);else if(s==="seriesModels"){var f=this._chartsMap[l.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,l))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=Pu(a,e,{defaultMainType:"series"}),A=i.seriesModel,o=A.getData(),s=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return s!=null?N_(o,s,n):$f(o,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;I(q8,function(n){var a=function(i){var A=e.getModel(),o=i.target,s,l=n==="globalout";if(l?s={}:o&&no(o,function(v){var d=St(v);if(d&&d.dataIndex!=null){var p=d.dataModel||A.getSeriesByIndex(d.seriesIndex);return s=p&&p.getDataParams(d.dataIndex,d.dataType,o)||{},!0}else if(d.eventData)return s=V({},d.eventData),!0},!0),s){var u=s.componentType,f=s.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",f=s.seriesIndex);var c=u&&f!=null&&A.getComponent(u,f),h=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];s.event=i,s.type=n,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:s,model:c,view:h},e.trigger(n,s)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),I(Vu,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),I(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),s8(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&LM(this.getDom(),z_,"");var n=this,a=n._api,i=n._model;I(n._componentsViews,function(A){A.dispose(i,a)}),I(n._chartsViews,function(A){A.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Gu[n.id]},t.prototype.resize=function(e){if(!this[er]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Fr]&&(i==null&&(i=this[Fr].silent),a=!0,this[Fr]=null),this[er]=!0;try{a&&$o(this),hi.update.call(this,{type:"resize",animation:V({duration:0},e&&e.animation)})}catch(A){throw this[er]=!1,A}this[er]=!1,Ml.call(this,i),Ul.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(yt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!uw[e]){var a=uw[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=V({},e);return n.type=Vu[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(yt(n)||(n={silent:!!n}),!!qv[e.type]&&this._model){if(this[er]){this._pendingActions.push(e);return}var a=n.silent;ly.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Pt.browser.weChat&&this._throttledZrFlush(),Ml.call(this,a),Ul.call(this,a)}},t.prototype.updateLabelLayout=function(){Ln.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){$o=function(f){var c=f._scheduler;c.restorePipelines(f._model),c.prepareStageTasks(),Ay(f,!0),Ay(f,!1),c.plan()},Ay=function(f,c){for(var h=f._model,v=f._scheduler,d=c?f._componentsViews:f._chartsViews,p=c?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,m=0;mc.get("hoverLayerThreshold")&&!Pt.node&&!Pt.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=f._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function A(f,c){var h=f.get("blendMode")||null;c.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function o(f,c){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;c.eachRendered(function(d){return s(d,h,v,-1/0),!0})}}function s(f,c,h,v){var d=f.getTextContent(),p=f.getTextGuideLine(),g=f.isGroup;if(g)for(var y=f.childrenRef(),m=0;m0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Qs(g))return;if(g instanceof Mt&&x5(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&a(g)}})}Rb=function(f){return new(function(c){H(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return f._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Ya(v,d),qr(f)},h.prototype.leaveEmphasis=function(v,d){Za(v,d),qr(f)},h.prototype.enterBlur=function(v){ZM(v),qr(f)},h.prototype.leaveBlur=function(v){m_(v),qr(f)},h.prototype.enterSelect=function(v){$M(v),qr(f)},h.prototype.leaveSelect=function(v){JM(v),qr(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(GU))(f)},H2=function(f){function c(h,v){for(var d=0;d=0)){kb.push(e);var i=p2.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function K2(r,t){uw[r]=t}function iX(r,t,e){var n=R8("registerMap");n&&n(r,t,e)}var AX=wW;Uo(G_,zW);Uo(_p,WW);Uo(_p,XW);Uo(G_,A8);Uo(_p,o8);Uo(L2,U8);V2(zU);G2(k8,tW);K2("default",YW);Ba({type:co,event:co,update:co},Be);Ba({type:rv,event:rv,update:rv},Be);Ba({type:Ru,event:Ru,update:Ru},Be);Ba({type:nv,event:nv,update:nv},Be);Ba({type:Hu,event:Hu,update:Hu},Be);N2("light",a8);N2("dark",w2);var Nb=[],oX={registerPreprocessor:V2,registerProcessor:G2,registerPostInit:eX,registerPostUpdate:rX,registerUpdateLifecycle:W_,registerAction:Ba,registerCoordinateSystem:nX,registerLayout:aX,registerVisual:Uo,registerTransform:AX,registerLoading:K2,registerMap:iX,registerImpl:P8,PRIORITY:Z8,ComponentModel:Ht,ComponentView:de,SeriesModel:se,ChartView:te,registerComponentModel:function(r){Ht.registerClass(r)},registerComponentView:function(r){de.registerClass(r)},registerSeriesModel:function(r){se.registerClass(r)},registerChartView:function(r){te.registerClass(r)},registerSubTypeDefaulter:function(r,t){Ht.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){zK(r,t)}};function Qt(r){if(K(r)){I(r,function(t){Qt(t)});return}Lt(Nb,r)>=0||(Nb.push(r),vt(r)&&(r={install:r}),r.install(oX))}function Pl(r){return r==null?0:r.length||1}function Vb(r){return r}var $a=function(){function r(t,e,n,a,i,A){this._old=t,this._new=e,this._oldKeyGetter=n||Vb,this._newKeyGetter=a||Vb,this.context=i,this._diffModeMultiple=A==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var A=0;A1){var u=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(u,A)}else l===1?(n[o]=null,this._update&&this._update(s,A)):this._remove&&this._remove(A)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],A=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,A,"_newKeyGetter");for(var o=0;o1&&c===1)this._updateManyToOne&&this._updateManyToOne(u,l),a[s]=null;else if(f===1&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),a[s]=null;else if(f===1&&c===1)this._update&&this._update(u,l),a[s]=null;else if(f>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),a[s]=null;else if(f>1)for(var h=0;h1)for(var o=0;o30}var Rl=yt,vi=Y,hX=typeof Int32Array>"u"?Array:Int32Array,vX="e\0\0",Gb=-1,dX=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],pX=["_approximateExtent"],Kb,zc,Hl,Ol,cy,Wc,hy,Br=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;W2(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},A=[],o={},s=!1,l={},u=0;u=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,A=this._idList,o=a.getSource().sourceFormat,s=o===Sn;if(s&&!a.pure)for(var l=[],u=t;u0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),K(i)?i=i.slice():Rl(i)&&(i=V({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Rl(e)?V(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Rl(t)?V(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?V(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;V0(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){I(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:vi(this.dimensions,this._getDimInfo,this),this.hostModel)),cy(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];vt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(r_(arguments)))})},r.internalField=function(){Kb=function(t){var e=t._invertedIndicesMap;I(e,function(n,a){var i=t._dimInfos[a],A=i.ordinalMeta,o=t._store;if(A){n=e[a]=new hX(A.categories.length);for(var s=0;s1&&(s+="__ec__"+u),a[e]=s}}}(),r}();function Jf(r,t){P_(r)||(r=R_(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ft(),i=[],A=yX(r,e,n,t.dimensionsCount),o=t.canOmitUnusedDimensions&&Z2(A),s=n===r.dimensionsDefine,l=s?Y2(r):X2(n),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(r,A));for(var f=ft(u),c=new r2(A),h=0;h0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function yX(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return I(t,function(i){var A;yt(i)&&(A=i.dimsDef)&&(a=Math.max(a,A.length))}),a}function mX(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var wX=function(){function r(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return r}();function BX(r){var t=r.get("coordinateSystem"),e=new wX(t),n=_X[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var _X={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Te).models[0],i=r.getReferringComponents("yAxis",Te).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),Jo(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Jo(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Te).models[0];t.coordSysDims=["single"],e.set("single",a),Jo(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Te).models[0],i=a.findAxisModel("radiusAxis"),A=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",A),Jo(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Jo(A)&&(n.set("angle",A),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),A=t.coordSysDims=i.dimensions.slice();I(i.parallelAxisIndex,function(o,s){var l=a.getComponent("parallelAxis",o),u=A[s];e.set(u,l),Jo(l)&&(n.set(u,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=s))})}};function Jo(r){return r.get("type")==="category"}function CX(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,A,o;SX(t)?i=t:(A=t.schema,i=A.dimensions,o=t.store);var s=!!(r&&r.get("stack")),l,u,f,c;if(I(i,function(y,m){nt(y)&&(i[m]=y={name:y}),s&&!y.isExtraCoord&&(!n&&!l&&y.ordinalMeta&&(l=y),!u&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(u=y))}),u&&!n&&!l&&(n=!0),u){f="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,v=u.type,d=0;I(i,function(y){y.coordDim===h&&d++});var p={name:f,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:c,coordDim:c,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};A?(o&&(p.storeDimIndex=o.ensureCalculationDimension(c,v),g.storeDimIndex=o.ensureCalculationDimension(f,v)),A.appendCalculationDimension(p),A.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:f}}function SX(r){return!W2(r.schema)}function rA(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function $2(r,t){return rA(r,t)?r.getCalculationInfo("stackResultDimension"):t}function xX(r,t){var e=r.get("coordinateSystem"),n=Zf.get(e),a;return t&&t.coordSysDims&&(a=Y(t.coordSysDims,function(i){var A={name:i},o=t.axisMap.get(i);if(o){var s=o.get("type");A.type=td(s)}return A})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function bX(r,t,e){var n,a;return e&&I(r,function(i,A){var o=i.coordDim,s=e.categoryAxisMap.get(o);s&&(n==null&&(n=A),i.ordinalMeta=s.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ai(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=R_(r)):(a=n.getSource(),i=a.sourceFormat===Sn);var A=BX(t),o=xX(t,A),s=e.useEncodeDefaulter,l=vt(s)?s:s?bt(OU,o,t):null,u={coordDimensions:o,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},f=Jf(a,u),c=bX(f.dimensions,e.createInvertedIndices,A),h=i?null:n.getSharedDataStore(f),v=CX(t,{schema:f,store:h}),d=new Br(f,t);d.setCalculationInfo(v);var p=c!=null&&TX(a)?function(g,y,m,w){return w===c?m:this.defaultDimValueGetter(g,y,m,w)}:null;return d.hasItemOption=!1,d.initData(i?a:h,null,p),d}function TX(r){if(r.sourceFormat===Sn){var t=IX(r.data||[]);return!K(nl(t))}}function IX(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();rp(_a);var FX=0,fw=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++FX}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&Y(n,EX);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!nt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},r}();function EX(r){return yt(r)&&r.value!=null?r.value:r+""}function cw(r){return r.type==="interval"||r.type==="log"}function DX(r,t,e,n){var a={},i=r[1]-r[0],A=a.interval=SM(i/t);e!=null&&An&&(A=a.interval=n);var o=a.intervalPrecision=J2(A),s=a.niceTickExtent=[me(Math.ceil(r[0]/A)*A,o),me(Math.floor(r[1]/A)*A,o)];return LX(s,r),a}function vy(r){var t=Math.pow(10,u_(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,me(e*t)}function J2(r){return oa(r)+2}function zb(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function LX(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),zb(r,0,t),zb(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Cp(r,t){return r>=t[0]&&r<=t[1]}function Sp(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function xp(r,t){return r*(t[1]-t[0])+t[0]}var bp=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new fw({})),K(a)&&(a=new fw({categories:Y(a,function(i){return yt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:nt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Cp(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Sp(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(xp(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],A=0,o=this._ordinalMeta.categories.length,s=Math.min(o,n.length);A=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(_a);_a.registerClass(bp);var MA=me,Ja=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Cp(e,this._extent)},t.prototype.normalize=function(e){return Sp(e,this._extent)},t.prototype.scale=function(e){return xp(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=J2(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,A=this._intervalPrecision,o=[];if(!n)return o;var s=1e4;a[0]s)return[];var u=o.length?o[o.length-1].value:i[1];return a[1]>u&&(e?o.push({value:MA(u+n,A)}):o.push({value:a[1]})),o},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),A=1;Ai[0]&&h0&&(i=i===null?o:Math.min(i,o))}e[n]=i}}return e}function tP(r){var t=UX(r),e=[];return I(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),A=i.getExtent(),o;if(i.type==="category")o=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var s=i.dim+"_"+i.index,l=t[s],u=Math.abs(A[1]-A[0]),f=i.scale.getExtent(),c=Math.abs(f[1]-f[0]);o=l?u/c*l:u}else{var h=n.getData();o=Math.abs(A[1]-A[0])/h.count()}var v=et(n.get("barWidth"),o),d=et(n.get("barMaxWidth"),o),p=et(n.get("barMinWidth")||(iP(n)?.5:1),o),g=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:o,barWidth:v,barMaxWidth:d,barMinWidth:p,barGap:g,barCategoryGap:y,axisKey:Z_(i),stackId:Y_(n)})}),eP(e)}function eP(r){var t={};I(r,function(n,a){var i=n.axisKey,A=n.bandWidth,o=t[i]||{bandWidth:A,remainedWidth:A,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},s=o.stacks;t[i]=o;var l=n.stackId;s[l]||o.autoWidthCount++,s[l]=s[l]||{width:0,maxWidth:0};var u=n.barWidth;u&&!s[l].width&&(s[l].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var f=n.barMaxWidth;f&&(s[l].maxWidth=f);var c=n.barMinWidth;c&&(s[l].minWidth=c);var h=n.barGap;h!=null&&(o.gap=h);var v=n.barCategoryGap;v!=null&&(o.categoryGap=v)});var e={};return I(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=n.categoryGap;if(o==null){var s=Ot(i).length;o=Math.max(35-s*4,15)+"%"}var l=et(o,A),u=et(n.gap,1),f=n.remainedWidth,c=n.autoWidthCount,h=(f-l)/(c+(c-1)*u);h=Math.max(h,0),I(i,function(g){var y=g.maxWidth,m=g.minWidth;if(g.width){var w=g.width;y&&(w=Math.min(w,y)),m&&(w=Math.max(w,m)),g.width=w,f-=w+u*w,c--}else{var w=h;y&&yw&&(w=m),w!==h&&(g.width=w,f-=w+u*w,c--)}}),h=(f-l)/(c+(c-1)*u),h=Math.max(h,0);var v=0,d;I(i,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+u)}),d&&(v-=d.width*u);var p=-v/2;I(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:A,offset:p,width:g.width},p+=g.width*(1+u)})}),e}function PX(r,t,e){if(r&&t){var n=r[Z_(t)];return n!=null&&e!=null?n[Y_(e)]:n}}function rP(r,t){var e=j2(r,t),n=tP(e);I(e,function(a){var i=a.getData(),A=a.coordinateSystem,o=A.getBaseAxis(),s=Y_(a),l=n[Z_(o)][s],u=l.offset,f=l.width;i.setLayout({bandWidth:l.bandWidth,offset:u,size:f})})}function nP(r){return{seriesType:r,plan:cl(),reset:function(t){if(aP(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),A=e.getDimensionIndex(e.mapDimension(i.dim)),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),f=rA(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=RX(a,i),v=iP(t),d=t.get("barMinHeight")||0,p=u&&e.getDimensionIndex(u),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(m,w){for(var _=m.count,B=v&&la(_*3),C=v&&s&&la(_*3),x=v&&la(_),S=n.master.getRect(),b=c?S.width:S.height,T,F=w.getStore(),E=0;(T=m.next())!=null;){var D=F.get(f?p:A,T),L=F.get(o,T),M=h,R=void 0;f&&(R=+D-F.get(A,T));var P=void 0,O=void 0,G=void 0,X=void 0;if(c){var J=n.dataToPoint([D,L]);if(f){var At=n.dataToPoint([R,L]);M=At[0]}P=M,O=J[1]+y,G=J[0]-M,X=g,Math.abs(G)0?e:1:e))}var HX=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var o=Xc.length,s=Math.min(HX(Xc,this._approxInterval,0,o),o-1);this._interval=Xc[s][1],this._minLevelUnit=Xc[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Kt(e)?e:+ya(e)},t.prototype.contain=function(e){return Cp(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Sp(this.parse(e),this._extent)},t.prototype.scale=function(e){return xp(e,this._extent)},t.type="time",t}(Ja),Xc=[["second",I_],["minute",F_],["hour",ku],["quarter-day",ku*6],["half-day",ku*12],["day",vn*1.2],["half-week",vn*3.5],["week",vn*7],["month",vn*31],["quarter",vn*95],["half-year",Mx/2],["year",Mx]];function OX(r,t,e,n){var a=ya(t),i=ya(e),A=function(v){return Px(a,v,n)===Px(i,v,n)},o=function(){return A("year")},s=function(){return o()&&A("month")},l=function(){return s()&&A("day")},u=function(){return l()&&A("hour")},f=function(){return u()&&A("minute")},c=function(){return f()&&A("second")},h=function(){return c()&&A("millisecond")};switch(r){case"year":return o();case"month":return s();case"day":return l();case"hour":return u();case"minute":return f();case"second":return c();case"millisecond":return h()}}function kX(r,t){return r/=vn,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function NX(r){var t=30*vn;return r/=t,r>6?6:r>3?3:r>2?2:1}function VX(r){return r/=ku,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Wb(r,t){return r/=t?F_:I_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function GX(r){return SM(r)}function KX(r,t,e){var n=new Date(r);switch(Us(t)){case"year":case"month":n[SU(e)](0);case"day":n[xU(e)](1);case"hour":n[bU(e)](0);case"minute":n[TU(e)](0);case"second":n[IU(e)](0),n[FU(e)](0)}return n.getTime()}function zX(r,t,e,n){var a=1e4,i=_U,A=0;function o(b,T,F,E,D,L,M){for(var R=new Date(T),P=T,O=R[E]();P1&&L===0&&F.unshift({value:F[0].value-P})}}for(var L=0;L=n[0]&&y<=n[1]&&f++)}var m=(n[1]-n[0])/t;if(f>m*1.5&&c>m/1.5||(l.push(p),f>m||r===i[h]))break}u=[]}}}for(var w=Jt(Y(l,function(b){return Jt(b,function(T){return T.value>=n[0]&&T.value<=n[1]&&!T.notAdd})}),function(b){return b.length>0}),_=[],B=w.length-1,h=0;h0;)i*=10;var o=[me(YX(n[0]/i)*i),me(XX(n[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){Ku.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=In(e)/In(this.base),Cp(e,this._extent)},t.prototype.normalize=function(e){return e=In(e)/In(this.base),Sp(e,this._extent)},t.prototype.scale=function(e){return e=xp(e,this._extent),Yc(this.base,e)},t.type="log",t}(_a),AP=J_.prototype;AP.getMinorTicks=Ku.getMinorTicks;AP.getLabel=Ku.getLabel;function Zc(r,t){return WX(r,oa(t))}_a.registerClass(J_);var ZX=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(o=0),o<0&&s<0&&!u&&(s=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(o=c,l=!0),h!=null&&(s=h,u=!0),{min:o,max:s,minFixed:l,maxFixed:u,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[JX[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=$X[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),$X={min:"_determinedMin",max:"_determinedMax"},JX={min:"_dataMin",max:"_dataMax"};function oP(r,t,e){var n=r.rawExtentInfo;return n||(n=new ZX(r,t,e),r.rawExtentInfo=n,n)}function $c(r,t){return t==null?null:of(t)?NaN:r.parse(t)}function sP(r,t){var e=r.type,n=oP(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,A=t.ecModel;if(A&&e==="time"){var o=j2("bar",A),s=!1;if(I(o,function(f){s=s||f.getBaseAxis()===t.axis}),s){var l=tP(o),u=qX(a,i,t,l);a=u.min,i=u.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function qX(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],A=PX(n,e.axis);if(A===void 0)return{min:r,max:t};var o=1/0;I(A,function(h){o=Math.min(h.offset,o)});var s=-1/0;I(A,function(h){s=Math.max(h.offset+h.width,s)}),o=Math.abs(o),s=Math.abs(s);var l=o+s,u=t-r,f=1-(o+s)/i,c=u/f-u;return t+=c*(s/l),r-=c*(o/l),{min:r,max:t}}function Ws(r,t){var e=t,n=sP(r,e),a=n.extent,i=e.get("splitNumber");r instanceof J_&&(r.base=e.get("logBase"));var A=r.type,o=e.get("interval"),s=A==="interval"||A==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),o!=null&&r.setInterval&&r.setInterval(o)}function Tp(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new bp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new $_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(_a.getClass(t)||Ja)}}function jX(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function dl(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):nt(t)?function(n){return function(a){var i=r.scale.getLabel(a),A=n.replace("{value}",i??"");return A}}(t):vt(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(q_(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function q_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function t6(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof bp?a=e.count():(n=e.getTicks(),a=n.length);var A=r.getLabelModel(),o=dl(r),s,l=1;a>40&&(l=Math.ceil(a/40));for(var u=0;ur[1]&&(r[1]=a[1])})}var qf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),n6=1e-8;function Yb(r,t){return Math.abs(r-t)a&&(n=A,a=s)}if(n)return i6(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var a=[1/0,1/0],i=[-1/0,-1/0],A=this.geometries;return I(A,function(o){o.type==="polygon"?Zb(o.exterior,a,i,e):I(o.points,function(s){Zb(s,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Dt(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var i=0,A=a.length;i>1^-(o&1),s=s>>1^-(s&1),o+=a,s+=i,a=o,i=s,n.push([o/e,s/e])}return n}function s6(r,t){return r=o6(r),Y(Jt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var A=a.coordinates;i.push(new $b(A[0],A.slice(1)));break;case"MultiPolygon":I(a.coordinates,function(s){s[0]&&i.push(new $b(s[0],s.slice(1)))});break;case"LineString":i.push(new Jb([a.coordinates]));break;case"MultiLineString":i.push(new Jb(a.coordinates))}var o=new fP(n[t||"name"],i,n.cp);return o.properties=n,o})}var _f=Vt();function hP(r,t){var e=Y(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function l6(r){var t=r.getLabelModel().get("customValues");if(t){var e=dl(r);return{labels:hP(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?f6(r):h6(r)}function u6(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:hP(r,e)}:r.type==="category"?c6(r,t):{ticks:Y(r.scale.getTicks(),function(n){return n.value})}}function f6(r){var t=r.getLabelModel(),e=vP(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function vP(r,t){var e=dP(r,"labels"),n=j_(t),a=pP(e,n);if(a)return a;var i,A;return vt(n)?i=mP(r,n):(A=n==="auto"?v6(r):n,i=yP(r,A)),gP(e,n,{labels:i,labelCategoryInterval:A})}function c6(r,t){var e=dP(r,"ticks"),n=j_(t),a=pP(e,n);if(a)return a;var i,A;if((!t.get("show")||r.scale.isBlank())&&(i=[]),vt(n))i=mP(r,n,!0);else if(n==="auto"){var o=vP(r,r.getLabelModel());A=o.labelCategoryInterval,i=Y(o.labels,function(s){return s.tickValue})}else A=n,i=yP(r,A,!0);return gP(e,n,{ticks:i,tickCategoryInterval:A})}function h6(r){var t=r.scale.getTicks(),e=dl(r);return{labels:Y(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function dP(r,t){return _f(r)[t]||(_f(r)[t]=[])}function pP(r,t){for(var e=0;e40&&(o=Math.max(1,Math.floor(A/40)));for(var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l*Math.cos(n)),f=Math.abs(l*Math.sin(n)),c=0,h=0;s<=i[1];s+=o){var v=0,d=0,p=Nf(e({value:s}),t.font,"center","top");v=p.width*1.3,d=p.height*1.3,c=Math.max(c,v,7),h=Math.max(h,d,7)}var g=c/u,y=h/f;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var m=Math.max(0,Math.floor(Math.min(g,y))),w=_f(r.model),_=r.getExtent(),B=w.lastAutoInterval,C=w.lastTickCount;return B!=null&&C!=null&&Math.abs(B-m)<=1&&Math.abs(C-A)<=1&&B>m&&w.axisExtent0===_[0]&&w.axisExtent1===_[1]?m=B:(w.lastTickCount=A,w.lastAutoInterval=m,w.axisExtent0=_[0],w.axisExtent1=_[1]),m}function p6(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function yP(r,t,e){var n=dl(r),a=r.scale,i=a.getExtent(),A=r.getLabelModel(),o=[],s=Math.max((t||0)+1,1),l=i[0],u=a.count();l!==0&&s>1&&u/s>2&&(l=Math.round(Math.ceil(l/s)*s));var f=lP(r),c=A.get("showMinLabel")||f,h=A.get("showMaxLabel")||f;c&&l!==i[0]&&d(i[0]);for(var v=l;v<=i[1];v+=s)d(v);h&&v-s!==i[1]&&d(i[1]);function d(p){var g={value:p};o.push(e?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p})}return o}function mP(r,t,e){var n=r.scale,a=dl(r),i=[];return I(n.getTicks(),function(A){var o=n.getLabel(A),s=A.value;t(A.value,o)&&i.push(e?s:{formattedLabel:a(A),rawLabel:o,tickValue:s})}),i}var qb=[0,1],Kn=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return _M(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),jb(n,a.count())),$t(t,qb,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),jb(n,a.count()));var i=$t(t,n,qb,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=u6(this,e),a=n.ticks,i=Y(a,function(o){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(o):o),tickValue:o}},this),A=e.get("alignWithLabel");return g6(this,i,A,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=Y(n,function(i){return Y(i,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this)},this);return a},r.prototype.getViewLabels=function(){return l6(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return d6(this)},r}();function jb(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function g6(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),A,o;if(a===1)t[0].coord=i[0],A=t[1]={coord:i[1]};else{var s=t[a-1].tickValue-t[0].tickValue,l=(t[a-1].coord-t[0].coord)/s;I(t,function(h){h.coord-=l/2});var u=r.scale.getExtent();o=1+u[1]-t[a-1].tickValue,A={coord:t[a-1].coord+l*o},t.push(A)}var f=i[0]>i[1];c(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&c(i[0],t[0].coord)&&t.unshift({coord:i[0]}),c(i[1],A.coord)&&(n?A.coord=i[1]:t.pop()),n&&c(A.coord,i[1])&&t.push({coord:i[1]});function c(h,v){return h=me(h),v=me(v),f?h>v:ha&&(a+=kl);var h=Math.atan2(o,A);if(h<0&&(h+=kl),h>=n&&h<=a||h+kl>=n&&h+kl<=a)return s[0]=u,s[1]=f,l-e;var v=e*Math.cos(n)+r,d=e*Math.sin(n)+t,p=e*Math.cos(a)+r,g=e*Math.sin(a)+t,y=(v-A)*(v-A)+(d-o)*(d-o),m=(p-A)*(p-A)+(g-o)*(g-o);return y0){t=t/180*Math.PI,Un.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),It.sub(ua,Un,Ae),It.sub(Aa,we,Ae);var e=ua.len(),n=Aa.len();if(!(e<.001||n<.001)){ua.scale(1/e),Aa.scale(1/n);var a=ua.dot(Aa),i=Math.cos(t);if(i1&&It.copy(gr,we),gr.toArray(r[1])}}}}function C6(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Un.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),It.sub(ua,Ae,Un),It.sub(Aa,we,Ae);var n=ua.len(),a=Aa.len();if(!(n<.001||a<.001)){ua.scale(1/n),Aa.scale(1/a);var i=ua.dot(t),A=Math.cos(e);if(i=s)It.copy(gr,we);else{gr.scaleAndAdd(Aa,o/Math.tan(Math.PI/2-u));var f=we.x!==Ae.x?(gr.x-Ae.x)/(we.x-Ae.x):(gr.y-Ae.y)/(we.y-Ae.y);if(isNaN(f))return;f<0?It.copy(gr,Ae):f>1&&It.copy(gr,we)}gr.toArray(r[1])}}}}function gy(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var A=n.get("smooth");A&&A===!0&&(A=.3),i.shape=i.shape||{},A>0&&(i.shape.smooth=A);var o=n.getModel("lineStyle").getLineStyle();a?r.useStyle(o):i.style=o}function S6(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=Di(n[0],n[1]),i=Di(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var A=Math.min(a,i)*e,o=$h([],n[1],n[0],A/a),s=$h([],n[1],n[2],A/i),l=$h([],o,s,.5);r.bezierCurveTo(o[0],o[1],o[0],o[1],l[0],l[1]),r.bezierCurveTo(s[0],s[1],s[0],s[1],n[2][0],n[2][1])}else for(var u=1;u0&&i&&_(-u/A,0,A);var d=r[0],p=r[A-1],g,y;m(),g<0&&B(-g,.8),y<0&&B(y,.8),m(),w(g,y,1),w(y,g,-1),m(),g<0&&C(-g),y<0&&C(y);function m(){g=d.rect[t]-n,y=a-p.rect[t]-p.rect[e]}function w(x,S,b){if(x<0){var T=Math.min(S,-x);if(T>0){_(T*b,0,A);var F=T+x;F<0&&B(-F*b,1)}else B(-x*b,1)}}function _(x,S,b){x!==0&&(l=!0);for(var T=S;T0)for(var F=0;F0;F--){var M=b[F-1]*L;_(-M,F,A)}}}function C(x){var S=x<0?-1:1;x=Math.abs(x);for(var b=Math.ceil(x/(A-1)),T=0;T0?_(b,0,T+1):_(-b,A-T-1,A),x-=b,x<=0)return}return l}function x6(r,t,e,n){return CP(r,"x","width",t,e,n)}function SP(r,t,e,n){return CP(r,"y","height",t,e,n)}function xP(r){var t=[];r.sort(function(d,p){return p.priority-d.priority});var e=new Dt(0,0,0,0);function n(d){if(!d.ignore){var p=d.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}d.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),Lt(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),zt(n,l,e,s)}else if(n.attr(l),!ol(n).valueAnimation){var f=xt(n.style.opacity,1);n.style.opacity=0,ue(n,{style:{opacity:f}},e,s)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};Jc(h,l,qc),Jc(h,n.states.select,qc)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};Jc(v,l,qc),Jc(v,n.states.emphasis,qc)}gU(n,s,u,e,e)}if(a&&!a.ignore&&!a.invisible){var i=I6(a),A=i.oldLayout,d={points:a.shape.points};A?(a.attr({shape:A}),zt(a,{shape:d},e)):(a.setShape(d),a.style.strokePercent=0,ue(a,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),my=Vt();function E6(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=my(e).labelManager;a||(a=my(e).labelManager=new F6),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=my(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var wy=Math.sin,By=Math.cos,bP=Math.PI,PA=Math.PI*2,D6=180/bP,TP=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){this._add("C",t,e,n,a,i,A)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,A){this.ellipse(t,e,n,n,0,a,i,A)},r.prototype.ellipse=function(t,e,n,a,i,A,o,s){var l=o-A,u=!s,f=Math.abs(l),c=Pi(f-PA)||(u?l>=PA:-l>=PA),h=l>0?l%PA:l%PA+PA,v=!1;c?v=!0:Pi(f)?v=!1:v=h>=bP==!!u;var d=t+n*By(A),p=e+a*wy(A);this._start&&this._add("M",d,p);var g=Math.round(i*D6);if(c){var y=1/this._p,m=(u?1:-1)*(PA-y);this._add("A",n,a,g,1,+u,t+n*By(A+m),e+a*wy(A+m)),y>.01&&this._add("A",n,a,g,0,+u,d,p)}else{var w=t+n*By(o),_=e+a*wy(o);this._add("A",n,a,g,+v,+u,w,_)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,a,i,A,o,s,l){for(var u=[],f=this._p,c=1;c"}function k6(r){return""}function nC(r,t){t=t||{};var e=t.newline?` +`:"";function n(a){var i=a.children,A=a.tag,o=a.attrs,s=a.text;return O6(A,o)+(A!=="style"?Lr(s):s||"")+(i?""+e+Y(i,function(l){return n(l)}).join(e)+e:"")+k6(A)}return n(r)}function N6(r,t,e){e=e||{};var n=e.newline?` +`:"",a=" {"+n,i=n+"}",A=Y(Ot(r),function(s){return s+a+Y(Ot(r[s]),function(l){return l+":"+r[s][l]+";"}).join(n)+i}).join(n),o=Y(Ot(t),function(s){return"@keyframes "+s+a+Y(Ot(t[s]),function(l){return l+a+Y(Ot(t[s][l]),function(u){var f=t[s][l][u];return u==="d"&&(f='path("'+f+'")'),u+":"+f+";"}).join(n)+i}).join(n)+i}).join(n);return!A&&!o?"":[""].join(n)}function dw(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function nT(r,t,e,n){return Re("svg","root",{width:r,height:t,xmlns:IP,"xmlns:xlink":FP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var V6=0;function DP(){return V6++}var aT={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},NA="transform-origin";function G6(r,t,e){var n=V({},r.shape);V(n,t),r.buildPath(e,n);var a=new TP;return a.reset(hM(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function K6(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[NA]=e+"px "+n+"px")}var z6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function LP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function W6(r,t,e){var n=r.shape.paths,a={},i,A;if(I(n,function(s){var l=dw(e.zrId);l.animation=!0,Ip(s,{},l,!0);var u=l.cssAnims,f=l.cssNodes,c=Ot(u),h=c.length;if(h){A=c[h-1];var v=u[A];for(var d in v){var p=v[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var g in f){var y=f[g].animation;y.indexOf(A)>=0&&(i=y)}}}),!!i){t.d=!1;var o=LP(a,e);return i.replace(A,o)}}function iT(r){return nt(r)?aT[r]?"cubic-bezier("+aT[r]+")":o_(r)?r:"":""}function Ip(r,t,e,n){var a=r.animators,i=a.length,A=[];if(r instanceof __){var o=W6(r,t,e);if(o)A.push(o);else if(!i)return}else if(!i)return;for(var s={},l=0;l0}).length){var N=LP(C,e);return N+" "+y[0]+" both"}}for(var p in s){var o=d(s[p]);o&&A.push(o)}if(A.length){var g=e.zrId+"-cls-"+DP();e.cssNodes["."+g]={animation:A.join(",")},t.class=g}}function X6(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};AT(n,t,e)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var A=r.style&&r.style.fill,o=r.states.select&&r.states.select.style&&r.states.select.style.fill,s=r.currentStates.indexOf("select")>=0&&o||A;s&&(i=T0(s))}var l=a.lineWidth;if(l){var u=!a.strokeNoScale&&r.transform?r.transform[0]:1;l=l/u}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),l&&(n["stroke-width"]=l),AT(n,t,e)}}function AT(r,t,e,n){var a=JSON.stringify(r),i=e.cssStyleCache[a];i||(i=e.zrId+"-cls-"+DP(),e.cssStyleCache[a]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var Cf=Math.round;function QP(r){return r&&nt(r.src)}function MP(r){return r&&vt(r.toDataURL)}function aC(r,t,e,n){P6(function(a,i){var A=a==="fill"||a==="stroke";A&&cM(i)?PP(t,r,a,n):A&&s_(i)?RP(e,r,a,n):A&&i==="none"?r[a]="transparent":r[a]=i},t,e,!1),tY(e,r,n)}function iC(r,t){var e=WK(t);e&&(e.each(function(n,a){n!=null&&(r[(rT+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[rT+"silent"]="true"))}function oT(r){return Pi(r[0]-1)&&Pi(r[1])&&Pi(r[2])&&Pi(r[3]-1)}function Y6(r){return Pi(r[4])&&Pi(r[5])}function AC(r,t,e){if(t&&!(Y6(t)&&oT(t))){var n=1e4;r.transform=oT(t)?"translate("+Cf(t[4]*n)/n+" "+Cf(t[5]*n)/n+")":dK(t)}}function sT(r,t,e){for(var n=r.points,a=[],i=0;i"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";Cr(c,p),Cr(h,p)}else if(c==null||h==null){var g=function(b,T){if(b){var F=b.elm,E=c||T.width,D=h||T.height;b.tag==="pattern"&&(l?(D=1,E/=i.width):u&&(E=1,D/=i.height)),b.attrs.width=E,b.attrs.height=D,F&&(F.setAttribute("width",E),F.setAttribute("height",D))}},y=v_(v,null,r,function(b){s||g(B,b),g(f,b)});y&&y.width&&y.height&&(c=c||y.width,h=h||y.height)}f=Re("image","img",{href:v,width:c,height:h}),A.width=c,A.height=h}else a.svgElement&&(f=wt(a.svgElement),A.width=a.svgWidth,A.height=a.svgHeight);if(f){var m,w;s?m=w=1:l?(w=1,m=A.width/i.width):u?(m=1,w=A.height/i.height):A.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(A.width=m),w!=null&&!isNaN(w)&&(A.height=w);var _=vM(a);_&&(A.patternTransform=_);var B=Re("pattern","",A,[f]),C=nC(B),x=n.patternCache,S=x[C];S||(S=n.zrId+"-p"+n.patternIdx++,x[C]=S,A.id=S,B=n.defs[S]=Re("pattern",S,A,[f])),t[e]=jd(S)}}function eY(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var A={id:i};n[r.id]=i,a[i]=Re("clipPath",i,A,[UP(r,e)])}t["clip-path"]=jd(i)}function fT(r){return document.createTextNode(r)}function ZA(r,t,e){r.insertBefore(t,e)}function cT(r,t){r.removeChild(t)}function hT(r,t){r.appendChild(t)}function HP(r){return r.parentNode}function OP(r){return r.nextSibling}function _y(r,t){r.textContent=t}var vT=58,rY=120,nY=Re("","");function pw(r){return r===void 0}function na(r){return r!==void 0}function aY(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function uu(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function Sf(r){var t,e=r.children,n=r.tag;if(na(n)){var a=r.elm=EP(n);if(oC(nY,r),K(e))for(t=0;ti?(v=e[s+1]==null?null:e[s+1].elm,kP(r,v,e,a,s)):ad(r,t,n,i))}function gs(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(oC(r,t),pw(t.text)?na(n)&&na(a)?n!==a&&iY(e,n,a):na(a)?(na(r.text)&&_y(e,""),kP(e,null,a,0,a.length-1)):na(n)?ad(e,n,0,n.length-1):na(r.text)&&_y(e,""):r.text!==t.text&&(na(n)&&ad(e,n,0,n.length-1),_y(e,t.text)))}function AY(r,t){if(uu(r,t))gs(r,t);else{var e=r.elm,n=HP(e);Sf(t),n!==null&&(ZA(n,t.elm,OP(e)),ad(n,[r],0,0))}return t}var oY=0,sY=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=dT(),this.configLayer=dT(),this.storage=e,this._opts=n=V({},n),this.root=t,this._id="zr"+oY++,this._oldVNode=nT(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=EP("svg");oC(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",AY(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return uT(t,dw(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=dw(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var A=[],o=this._bgVNode=lY(n,a,this._backgroundColor,i);o&&A.push(o);var s=t.compress?null:this._mainVNode=Re("g","main",{},[]);this._paintList(e,i,s?s.children:A),s&&A.push(s);var l=Y(Ot(i.defs),function(c){return i.defs[c]});if(l.length&&A.push(Re("defs","defs",{},l)),t.animation){var u=N6(i.cssNodes,i.cssAnims,{newline:!0});if(u){var f=Re("style","stl",{},[],u);A.push(f)}}return nT(n,a,A,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},nC(this.renderToVNode({animation:xt(t.cssAnimation,!0),emphasis:xt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:xt(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var a=t.length,i=[],A=0,o,s,l=0,u=0;u=0&&!(c&&s&&c[d]===s[d]);d--);for(var p=v-1;p>d;p--)A--,o=i[A-1];for(var g=d+1;g=o)}}for(var f=this.__startIndex;f15)break}}D.prevElClipPaths&&g.restore()};if(y)if(y.length===0)x=p.__endIndex;else for(var b=h.dpr,T=0;T0&&t>a[0]){for(s=0;st);s++);o=n[a[s]]}if(a.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?A.insertBefore(e.dom,l.nextSibling):A.appendChild(e.dom)}else A.firstChild?A.insertBefore(e.dom,A.firstChild):A.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,a=0;a0?jc:0),this._needsManuallyCompositing),u.__builtin__||t_("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),i=u),a.__dirty&zr&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=s))}e(s),this.eachBuiltinLayer(function(f,c){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,I(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Et(n[t],e,!0):n[t]=e;for(var a=0;a-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.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}(se);function Xs(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Ks(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],A=0;A=0&&n.push(t[i])}return n.join(" ")}var jf=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;return A.updateData(e,n,a,i),A}return t.prototype._createSymbol=function(e,n,a,i,A){this.removeAll();var o=Fe(e,-1,-1,2,2,null,A);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=gY,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ya(this.childAt(0))},t.prototype.downplay=function(){Za(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var A=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=A!==this._symbolType,u=i&&i.disableAnimation;if(l){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(A,e,n,s,f)}else{var c=this.childAt(0);c.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(h):zt(c,h,o,n),Vn(c)}if(this._updateCommon(e,n,s,a,i),l){var c=this.childAt(0);if(!u){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ue(c,h,o,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,A){var o=this.childAt(0),s=e.hostModel,l,u,f,c,h,v,d,p,g;if(i&&(l=i.emphasisItemStyle,u=i.blurItemStyle,f=i.selectItemStyle,c=i.focus,h=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,v=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),m=y.getModel("emphasis");l=m.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),u=y.getModel(["blur","itemStyle"]).getItemStyle(),c=m.get("focus"),h=m.get("blurScope"),v=m.get("disabled"),d=ke(y),p=m.getShallow("scale"),g=y.getShallow("cursor")}var w=e.getItemVisual(n,"symbolRotate");o.attr("rotation",(w||0)*Math.PI/180||0);var _=Mo(e.getItemVisual(n,"symbolOffset"),a);_&&(o.x=_[0],o.y=_[1]),g&&o.attr("cursor",g);var B=e.getItemVisual(n,"style"),C=B.fill;if(o instanceof ze){var x=o.style;o.useStyle(V({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},B))}else o.__isEmptyBrush?o.useStyle(V({},B)):o.useStyle(B),o.style.decal=null,o.setColor(C,A&&A.symbolInnerColor),o.style.strokeNoScale=!0;var S=e.getItemVisual(n,"liftZ"),b=this._z2;S!=null?b==null&&(this._z2=o.z2,o.z2+=S):b!=null&&(o.z2=b,this._z2=null);var T=A&&A.useNameLabel;qe(o,d,{labelFetcher:s,labelDataIndex:n,defaultText:F,inheritColor:C,defaultOpacity:B.opacity});function F(L){return T?e.getName(L):Xs(e,L)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var E=o.ensureState("emphasis");E.style=l,o.ensureState("select").style=f,o.ensureState("blur").style=u;var D=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;E.scaleX=this._sizeX*D,E.scaleY=this._sizeY*D,this.setSymbolScale(1),ye(this,c,h,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),A=St(this).dataIndex,o=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var s=i.getTextContent();s&&tA(s,{style:{opacity:0}},n,{dataIndex:A,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();tA(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:A,cb:e,removeOpt:o})},t.getSymbolSize=function(e,n){return vl(e.getItemVisual(n,"symbolSize"))},t}(Ct);function gY(r,t){this.parent.drift(r,t)}function Sy(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function yT(r){return r!=null&&!yt(r)&&(r={isIgnore:r}),r||{}}function mT(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:ke(t),cursorStyle:t.get("cursor")}}var tc=function(){function r(t){this.group=new Ct,this._SymbolCtor=t||jf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=yT(e);var n=this.group,a=t.hostModel,i=this._data,A=this._SymbolCtor,o=e.disableAnimation,s=mT(t),l={disableAnimation:o},u=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var c=u(f);if(Sy(t,c,f,e)){var h=new A(t,f,s,l);h.setPosition(c),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,c){var h=i.getItemGraphicEl(c),v=u(f);if(!Sy(t,v,f,e)){n.remove(h);return}var d=t.getItemVisual(f,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType();if(!h||p&&p!==d)n.remove(h),h=new A(t,f,s,l),h.setPosition(v);else{h.updateData(t,f,s,l);var g={x:v[0],y:v[1]};o?h.attr(g):zt(h,g,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var c=i.getItemGraphicEl(f);c&&c.fadeOut(function(){n.remove(c)},a)}).execute(),this._getSymbolPoint=u,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=mT(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=yT(n);function a(s){s.isGroup||(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=n[0]:n[1]<0&&(e=n[1]),e}function GP(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,A=[];return A[i]=e.get(r.baseDim,n),A[1-i]=a,t.dataToPoint(A)}function mY(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function wY(r,t,e,n,a,i,A,o){for(var s=mY(r,t),l=[],u=[],f=[],c=[],h=[],v=[],d=[],p=VP(a,t,A),g=r.getLayout("points")||[],y=t.getLayout("points")||[],m=0;m=a||d<0)break;if(go(g,y)){if(s){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](g,y),f=g,c=y;else{var m=g-l,w=y-u;if(m*m+w*w<.5){d+=i;continue}if(A>0){for(var _=d+i,B=t[_*2],C=t[_*2+1];B===g&&C===y&&p=n||go(B,C))h=g,v=y;else{b=B-l,T=C-u;var D=g-l,L=B-g,M=y-u,R=C-y,P=void 0,O=void 0;if(o==="x"){P=Math.abs(D),O=Math.abs(L);var G=b>0?1:-1;h=g-G*P*A,v=y,F=g+G*O*A,E=y}else if(o==="y"){P=Math.abs(M),O=Math.abs(R);var X=T>0?1:-1;h=g,v=y-X*P*A,F=g,E=y+X*O*A}else P=Math.sqrt(D*D+M*M),O=Math.sqrt(L*L+R*R),S=O/(O+P),h=g-b*A*(1-S),v=y-T*A*(1-S),F=g+b*A*S,E=y+T*A*S,F=di(F,pi(B,g)),E=di(E,pi(C,y)),F=pi(F,di(B,g)),E=pi(E,di(C,y)),b=F-g,T=E-y,h=g-b*P/O,v=y-T*P/O,h=di(h,pi(l,g)),v=di(v,pi(u,y)),h=pi(h,di(l,g)),v=pi(v,di(u,y)),b=g-h,T=y-v,F=g+b*O/P,E=y+T*O/P}r.bezierCurveTo(f,c,h,v,g,y),f=F,c=E}else r.lineTo(g,y)}l=g,u=y,d+=i}return p}var KP=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),BY=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new KP},t.prototype.buildPath=function(e,n){var a=n.points,i=0,A=a.length/2;if(n.connectNulls){for(;A>0&&go(a[A*2-2],a[A*2-1]);A--);for(;i=0){var w=l?(v-s)*m+s:(h-o)*m+o;return l?[e,w]:[w,e]}o=h,s=v;break;case A.C:h=i[f++],v=i[f++],d=i[f++],p=i[f++],g=i[f++],y=i[f++];var _=l?Qv(o,h,d,g,e,u):Qv(s,v,p,y,e,u);if(_>0)for(var B=0;B<_;B++){var C=u[B];if(C<=1&&C>=0){var w=l?Me(s,v,p,y,C):Me(o,h,d,g,C);return l?[e,w]:[w,e]}}o=g,s=y;break}}},t}(Mt),_Y=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(KP),zP=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new _Y},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,A=0,o=a.length/2,s=n.smoothMonotone;if(n.connectNulls){for(;o>0&&go(a[o*2-2],a[o*2-1]);o--);for(;At){i?e.push(A(i,s,t)):a&&e.push(A(a,s,0),A(a,s,t));break}else a&&(e.push(A(a,s,0)),a=null),e.push(s),i=s}return e}function xY(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,A=n.length-1;A>=0;A--){var o=r.getDimensionInfo(n[A].dimension);if(a=o&&o.coordDim,a==="x"||a==="y"){i=n[A];break}}if(i){var s=t.getAxis(a),l=Y(i.stops,function(m){return{coord:s.toGlobalCoord(s.dataToCoord(m.value)),color:m.color}}),u=l.length,f=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),f.reverse());var c=SY(l,a==="x"?e.getWidth():e.getHeight()),h=c.length;if(!h&&u)return l[0].coord<0?f[1]?f[1]:l[u-1].color:f[0]?f[0]:l[0].color;var v=10,d=c[0].coord-v,p=c[h-1].coord+v,g=p-d;if(g<.001)return"transparent";I(c,function(m){m.offset=(m.coord-d)/g}),c.push({offset:h?c[h-1].offset:.5,color:f[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:f[0]||"transparent"});var y=new Wf(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=p,y}}}function bY(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&TY(i,t))){var A=t.mapDimension(i.dim),o={};return I(i.getViewLabels(),function(s){var l=i.scale.getRawOrdinalNumber(s.tickValue);o[l]=1}),function(s){return!o.hasOwnProperty(t.get(A,s))}}}}function TY(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),A=0;An)return!1;return!0}function IY(r,t){return isNaN(r)||isNaN(t)}function FY(r){for(var t=r.length/2;t>0&&IY(r[t*2-2],r[t*2-1]);t--);return t-1}function ST(r,t){return[r[t*2],r[t*2+1]]}function EY(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,A,o=0,s=-1,l=0;l=t||i>=t&&A<=t){s=l;break}o=l,i=A}return{range:[o,s],t:(t-i)/(A-i)}}function YP(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=d.getState("emphasis").style;G.lineWidth=+d.style.lineWidth+1}St(d).seriesIndex=e.seriesIndex,ye(d,R,P,O);var X=CT(e.get("smooth")),J=e.get("smoothMonotone");if(d.setShape({smooth:X,smoothMonotone:J,connectNulls:x}),p){var At=s.getCalculationInfo("stackedOnSeries"),lt=0;p.useStyle(gt(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),At&&(lt=CT(At.get("smooth"))),p.setShape({smooth:X,stackedOnSmooth:lt,smoothMonotone:J,connectNulls:x}),Je(p,e,"areaStyle"),St(p).seriesIndex=e.seriesIndex,ye(p,R,P,O)}var Bt=function(_t){i._changePolyState(_t)};s.eachItemGraphicEl(function(_t){_t&&(_t.onHoverStateChange=Bt)}),this._polyline.onHoverStateChange=Bt,this._data=s,this._coordSys=A,this._stackedOnPoints=B,this._points=f,this._step=T,this._valueOrigin=w,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){St(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var A=e.getData(),o=Co(A,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&o!=null&&o>=0){var s=A.getLayout("points"),l=A.getItemGraphicEl(o);if(!l){var u=s[o*2],f=s[o*2+1];if(isNaN(u)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,f))return;var c=e.get("zlevel")||0,h=e.get("z")||0;l=new jf(A,o),l.x=u,l.y=f,l.setZ(c,h);var v=l.getSymbolPath().getTextContent();v&&(v.zlevel=c,v.z=h,v.z2=this._polyline.z2+1),l.__temp=!0,A.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else te.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var A=e.getData(),o=Co(A,i);if(this._changePolyState("normal"),o!=null&&o>=0){var s=A.getItemGraphicEl(o);s&&(s.__temp?(A.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else te.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;kv(this._polyline,e),n&&kv(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new BY({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new zP({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,A,o=n.getBaseAxis(),s=o.inverse;n.type==="cartesian2d"?(i=o.isHorizontal(),A=!1):n.type==="polar"&&(i=o.dim==="angle",A=!0);var l=e.hostModel,u=l.get("animationDuration");vt(u)&&(u=u(null));var f=l.get("animationDelay")||0,c=vt(f)?f(null):f;e.eachItemGraphicEl(function(h,v){var d=h;if(d){var p=[h.x,h.y],g=void 0,y=void 0,m=void 0;if(a)if(A){var w=a,_=n.pointToCoord(p);i?(g=w.startAngle,y=w.endAngle,m=-_[1]/180*Math.PI):(g=w.r0,y=w.r,m=_[0])}else{var B=a;i?(g=B.x,y=B.x+B.width,m=h.x):(g=B.y+B.height,y=B.y,m=h.y)}var C=y===g?0:(m-g)/(y-g);s&&(C=1-C);var x=vt(f)?f(v):u*C+c,S=d.getSymbolPath(),b=S.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),S.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(YP(e)){var A=e.getData(),o=this._polyline,s=A.getLayout("points");if(!s){o.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Gt({z2:200}),l.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var u=FY(s);u>=0&&(qe(o,ke(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:u,defaultText:function(f,c,h){return h!=null?NP(A,h):Xs(A,f)},enableTextSetter:!0},DY(i,n)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,A,o,s){var l=this._endLabel,u=this._polyline;if(l){e<1&&i.originalX==null&&(i.originalX=l.x,i.originalY=l.y);var f=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),v=o.get("precision"),d=o.get("distance")||0,p=s.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,m=n.shape,w=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?d:0)*(y?-1:1),B=(g?0:-d)*(y?-1:1),C=g?"x":"y",x=EY(f,w,C),S=x.range,b=S[1]-S[0],T=void 0;if(b>=1){if(b>1&&!h){var F=ST(f,S[0]);l.attr({x:F[0]+_,y:F[1]+B}),A&&(T=c.getRawValue(S[0]))}else{var F=u.getPointOn(w,C);F&&l.attr({x:F[0]+_,y:F[1]+B});var E=c.getRawValue(S[0]),D=c.getRawValue(S[1]);A&&(T=QM(a,v,E,D,x.t))}i.lastFrameIndex=S[0]}else{var L=e===1||i.lastFrameIndex>0?S[0]:0,F=ST(f,L);A&&(T=c.getRawValue(L)),l.attr({x:F[0]+_,y:F[1]+B})}if(A){var M=ol(l);typeof M.setLabelText=="function"&&M.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,A,o,s){var l=this._polyline,u=this._polygon,f=e.hostModel,c=wY(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=c.current,v=c.stackedOnCurrent,d=c.next,p=c.stackedOnNext;if(A&&(h=gi(c.current,a,A,s),v=gi(c.stackedOnCurrent,a,A,s),d=gi(c.next,a,A,s),p=gi(c.stackedOnNext,a,A,s)),_T(h,d)>3e3||u&&_T(v,p)>3e3){l.stopAnimation(),l.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),l.stopAnimation(),zt(l,g,f),u&&(u.setShape({points:h,stackedOnPoints:v}),u.stopAnimation(),zt(u,{shape:{stackedOnPoints:p}},f),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],m=c.status,w=0;wt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},MY=function(r){return Math.round(r.length/2)};function ZP(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),A=t.coordinateSystem,o=a.count();if(o>10&&A.type==="cartesian2d"&&i){var s=A.getBaseAxis(),l=A.getOtherAxis(s),u=s.getExtent(),f=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(f||1),h=Math.round(o/c);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(l.dim),1/h));var v=void 0;nt(i)?v=QY[i]:vt(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(l.dim),1/h,v,MY))}}}}}function UY(r){r.registerChartView(LY),r.registerSeriesModel(pY),r.registerLayout(rc("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ZP("line"))}var xf=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ai(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var A=i.clampData(e),o=i.dataToPoint(A);if(a)I(i.getAxes(),function(c,h){if(c.type==="category"&&n!=null){var v=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),p=A[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!d&&(p+=1),v.length<2)return;if(v.length===2){o[h]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,w=1,_=0;_p){m=(B+y)/2;break}_===1&&(w=C-v[0].tickValue)}m==null&&(y?y&&(m=v[v.length-1].coord):m=v[0].coord),o[h]=c.toGlobalCoord(m)}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(se);se.registerClass(xf);var PY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ai(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=uA(xf.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(xf),RY=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),id=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new RY},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.max(n.r0||0,0),o=Math.max(n.r,0),s=(o-A)*.5,l=A+s,u=n.startAngle,f=n.endAngle,c=n.clockwise,h=Math.PI*2,v=c?f-uMath.PI/2&&uo)return!0;o=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),A=Math.max(0,i[0]),o=Math.min(i[1],a.getOrdinalMeta().categories.length-1);A<=o;++A)if(e.ordinalNumbers[A]!==a.getRawOrdinalNumber(A))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var A=this._dataSort(e,a,n);this._isOrderDifferentInView(A,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:A}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,A=this._dataSort(e,i,function(o){return e.get(e.mapDimension(n.otherAxis.dim),o)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:A})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){df(i,e,St(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(te),xT={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,A=by(t.x,r.x),o=Ty(t.x+t.width,a),s=by(t.y,r.y),l=Ty(t.y+t.height,i),u=oa?o:A,t.y=f&&s>i?l:s,t.width=u?0:o-A,t.height=f?0:l-s,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),u||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=Ty(t.r,r.r),i=by(t.r0,r.r0);t.r=a,t.r0=i;var A=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return A}},bT={cartesian2d:function(r,t,e,n,a,i,A,o,s){var l=new Nt({shape:V({},n),z2:1});if(l.__dataIndex=e,l.name="item",i){var u=l.shape,f=a?"height":"width";u[f]=0}return l},polar:function(r,t,e,n,a,i,A,o,s){var l=!a&&s?id:xr,u=new l({shape:n,z2:1});u.name="item";var f=$P(a);if(u.calculateTextPosition=HY(f,{isRoundCap:l===id}),i){var c=u.shape,h=a?"r":"endAngle",v={};c[h]=a?n.r0:n.startAngle,v[h]=n[h],(o?zt:ue)(u,{shape:v},i)}return u}};function VY(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function TT(r,t,e,n,a,i,A,o){var s,l;i?(l={x:n.x,width:n.width},s={y:n.y,height:n.height}):(l={y:n.y,height:n.height},s={x:n.x,width:n.width}),o||(A?zt:ue)(e,{shape:s},t,a,null);var u=t?r.baseAxis.model:null;(A?zt:ue)(e,{shape:l},u,a)}function IT(r,t){for(var e=0;e0?1:-1,A=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+A*a/2,width:n.width-i*a,height:n.height-A*a}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function zY(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function $P(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function ET(r,t,e,n,a,i,A,o){var s=t.getItemVisual(e,"style");if(o){if(!i.get("roundCap")){var u=r.shape,f=Ao(n.getModel("itemStyle"),u,!0);V(u,f),r.setShape(u)}}else{var l=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(s);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var h=o?A?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":A?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=ke(n);qe(r,v,{labelFetcher:i,labelDataIndex:e,defaultText:Xs(i.getData(),e),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(o&&d){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,OY(r,p==="outside"?h:p,$P(A),n.get(["label","rotate"]))}pU(d,v,i.getRawValue(e),function(y){return NP(t,y)});var g=n.getModel(["emphasis"]);ye(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),Je(r,n),zY(a)&&(r.style.fill="none",r.style.stroke="none",I(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function WY(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var XY=function(){function r(){}return r}(),DT=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new XY},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,A=1-this.baseDimIdx,o=[],s=[],l=this.barWidth,u=0;u=0?e:null},30,!1);function YY(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,A=r.largeDataIndices,o=[],s=[],l=r.barWidth,u=0,f=i.length/3;u=o[0]&&t<=o[0]+s[0]&&e>=o[1]&&e<=o[1]+s[1])return A[u]}return-1}function JP(r,t,e){if(Po(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function ZY(r,t,e){var n=r.type==="polar"?xr:Nt;return new n({shape:JP(t,e,r),silent:!0,z2:0})}function $Y(r){r.registerChartView(NY),r.registerSeriesModel(PY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(rP,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nP("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ZP("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var MT=Math.PI*2,nh=Math.PI/180;function qP(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function jP(r,t){var e=qP(r,t),n=r.get("center"),a=r.get("radius");K(a)||(a=[0,a]);var i=et(e.width,t.getWidth()),A=et(e.height,t.getHeight()),o=Math.min(i,A),s=et(a[0],o/2),l=et(a[1],o/2),u,f,c=r.coordinateSystem;if(c){var h=c.dataToPoint(n);u=h[0]||0,f=h[1]||0}else K(n)||(n=[n,n]),u=et(n[0],i)+e.x,f=et(n[1],A)+e.y;return{cx:u,cy:f,r0:s,r:l}}function JY(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),A=qP(n,e),o=jP(n,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=-n.get("startAngle")*nh,h=n.get("endAngle"),v=n.get("padAngle")*nh;h=h==="auto"?c-MT:-h*nh;var d=n.get("minAngle")*nh,p=d+v,g=0;a.each(i,function(R){!isNaN(R)&&g++});var y=a.getSum(i),m=Math.PI/(y||g)*2,w=n.get("clockwise"),_=n.get("roseType"),B=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var x=w?1:-1,S=[c,h],b=x*v/2;d_(S,!w),c=S[0],h=S[1];var T=tR(n);T.startAngle=c,T.endAngle=h,T.clockwise=w;var F=Math.abs(h-c),E=F,D=0,L=c;if(a.setLayout({viewRect:A,r:u}),a.each(i,function(R,P){var O;if(isNaN(R)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:s,cy:l,r0:f,r:_?NaN:u});return}_!=="area"?O=y===0&&B?m:R*m:O=F/g,OO?(X=L+x*O/2,J=X):(X=L+b,J=G-b),a.setItemLayout(P,{angle:O,startAngle:X,endAngle:J,clockwise:w,cx:s,cy:l,r0:f,r:_?$t(R,C,[f,u]):u}),L=G}),Ee?g:p,_=Math.abs(m.label.y-e);if(_>=w.maxY){var B=m.label.x-t-m.len2*a,C=n+m.len,x=Math.abs(B)r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var d=n.getBoundingRect();i.width=d.width;var p=(n.style.margin||0)+2.1;i.height=d.height+p,i.y-=(i.height-f)/2}}}function Iy(r){return r.position==="center"}function tZ(r){var t=r.getData(),e=[],n,a,i=!1,A=(r.get("minShowLabelAngle")||0)*qY,o=t.getLayout("viewRect"),s=t.getLayout("r"),l=o.width,u=o.x,f=o.y,c=o.height;function h(B){B.ignore=!0}function v(B){if(!B.ignore)return!0;for(var C in B.states)if(B.states[C].ignore===!1)return!0;return!1}t.each(function(B){var C=t.getItemGraphicEl(B),x=C.shape,S=C.getTextContent(),b=C.getTextGuideLine(),T=t.getItemModel(B),F=T.getModel("label"),E=F.get("position")||T.get(["emphasis","label","position"]),D=F.get("distanceToLabelLine"),L=F.get("alignTo"),M=et(F.get("edgeDistance"),l),R=F.get("bleedMargin"),P=T.getModel("labelLine"),O=P.get("length");O=et(O,l);var G=P.get("length2");if(G=et(G,l),Math.abs(x.endAngle-x.startAngle)0?"right":"left":J>0?"left":"right"}var k=Math.PI,Z=0,W=F.get("rotate");if(Kt(W))Z=W*(k/180);else if(E==="center")Z=0;else if(W==="radial"||W===!0){var tt=J<0?-X+k:-X;Z=tt}else if(W==="tangential"&&E!=="outside"&&E!=="outer"){var ot=Math.atan2(J,At);ot<0&&(ot=k*2+ot);var ut=At>0;ut&&(ot=k+ot),Z=ot-k}if(i=!!Z,S.x=lt,S.y=Bt,S.rotation=Z,S.setStyle({verticalAlign:"middle"}),z){S.setStyle({align:N});var Ft=S.states.select;Ft&&(Ft.x+=S.x,Ft.y+=S.y)}else{var at=S.getBoundingRect().clone();at.applyTransform(S.getComputedTransform());var rt=(S.style.margin||0)+2.1;at.y-=rt/2,at.height+=rt,e.push({label:S,labelLine:b,position:E,len:O,len2:G,minTurnAngle:P.get("minTurnAngle"),maxSurfaceAngle:P.get("maxSurfaceAngle"),surfaceNormal:new It(J,At),linePoints:_t,textAlign:N,labelDistance:D,labelAlignTo:L,edgeDistance:M,bleedMargin:R,rect:at,unconstrainedWidth:at.width,labelStyleWidth:S.style.width})}C.setTextConfig({inside:z})}}),!i&&r.get("avoidLabelOverlap")&&jY(e,n,a,s,l,c,u,f);for(var d=0;d0){for(var u=A.getItemLayout(0),f=1;isNaN(u&&u.startAngle)&&f=i.r0}},t.type="pie",t}(te);function pl(r,t,e){t=K(t)&&{coordDimensions:t}||V({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=Jf(n,t).dimensions,i=new Br(a,r);return i.initData(n,e),i}var ac=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),nZ=Vt(),aZ=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new ac(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return pl(this,{coordDimensions:["value"],encodeDefaulter:bt(L_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=nZ(n),i=a.seats;if(!i){var A=[];n.each(n.mapDimension("value"),function(s){A.push(s)}),i=a.seats=$K(A,n.hostModel.get("percentPrecision"))}var o=r.prototype.getDataParams.call(this,e);return o.percent=i[e]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){_o(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(se);function iZ(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),A=n.get(i,a);return!(Kt(A)&&!isNaN(A)&&A<0)})}}}function AZ(r){r.registerChartView(rZ),r.registerSeriesModel(aZ),_2("pie",r.registerAction),r.registerLayout(bt(JY,"pie")),r.registerProcessor(nc("pie")),r.registerProcessor(iZ("pie"))}var oZ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ai(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(se),rR=4,sZ=function(){function r(){}return r}(),lZ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new sZ},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,A=this.symbolProxy,o=A.shape,s=e.getContext?e.getContext():e,l=s&&i[0]=0;l--){var u=l*2,f=i[u]-o/2,c=i[u+1]-s/2;if(e>=f&&n>=c&&e<=f+o&&n<=c+s)return l}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,A=i[0],o=i[1],s=1/0,l=1/0,u=-1/0,f=-1/0,c=0;c=0&&(l.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),fZ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var A=rc("").reset(e,n,a);A.progress&&A.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,A=i.large;return(!a||A!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=A?new uZ:new tc,this._isLargeDraw=A,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(te),cZ=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Ht),yw=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Te).models[0]},t.type="cartesian2dAxis",t}(Ht);Ee(yw,qf);var nR={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)"]}}},hZ=Et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},nR),sC=Et({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}}},nR),vZ=Et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},sC),dZ=gt({logBase:10},sC);const aR={category:hZ,value:sC,time:vZ,log:dZ};var pZ={value:1,category:1,time:1,log:1};function Ys(r,t,e,n){I(pZ,function(a,i){var A=Et(Et({},aR[i],!0),n,!0),o=function(s){H(l,s);function l(){var u=s!==null&&s.apply(this,arguments)||this;return u.type=t+"Axis."+i,u}return l.prototype.mergeDefaultAndTheme=function(u,f){var c=gf(this),h=c?ul(u):{},v=f.getTheme();Et(u,v.get(i+"Axis")),Et(u,this.getDefaultOption()),u.type=PT(u),c&&eA(u,h,c)},l.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=fw.createByAxisModel(this))},l.prototype.getCategories=function(u){var f=this.option;if(f.type==="category")return u?f.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+i,l.defaultOption=A,l}(e);r.registerComponentModel(o)}),r.registerSubTypeDefaulter(t+"Axis",PT)}function PT(r){return r.type||(r.data?"category":"value")}var gZ=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Jt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),mw=["x","y"];function RT(r){return r.type==="interval"||r.type==="time"}var yZ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=mw,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!RT(e)||!RT(n))){var a=e.getExtent(),i=n.getExtent(),A=this.dataToPoint([a[0],i[0]]),o=this.dataToPoint([a[1],i[1]]),s=a[1]-a[0],l=i[1]-i[0];if(!(!s||!l)){var u=(o[0]-A[0])/s,f=(o[1]-A[1])/l,c=A[0]-a[0]*u,h=A[1]-i[0]*f,v=this._transform=[u,0,0,f,c,h];this._invTransform=rl([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),A=this.getArea(),o=new Dt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return A.intersect(o)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],A=e[1];if(this._transform&&i!=null&&isFinite(i)&&A!=null&&isFinite(A))return $e(a,e,this._transform);var o=this.getAxis("x"),s=this.getAxis("y");return a[0]=o.toGlobalCoord(o.dataToCoord(i,n)),a[1]=s.toGlobalCoord(s.dataToCoord(A,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,A=a.getExtent(),o=i.getExtent(),s=a.parse(e[0]),l=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(A[0],A[1]),s),Math.max(A[0],A[1])),n[1]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return $e(a,e,this._invTransform);var i=this.getAxis("x"),A=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=A.coordToData(A.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,A=Math.min(a[0],a[1])-e,o=Math.max(n[0],n[1])-i+e,s=Math.max(a[0],a[1])-A+e;return new Dt(i,A,o,s)},t}(gZ),mZ=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.index=0,o.type=i||"value",o.position=A||"bottom",o}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Kn);function ww(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},A=a.getAxesOnZeroOf()[0],o=a.position,s=A?"onZero":o,l=a.dim,u=n.getRect(),f=[u.x,u.x+u.width,u.y,u.y+u.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=l==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(A){var d=A.toGlobalCoord(A.dataToCoord(0));v[c.onZero]=Math.max(Math.min(d,v[1]),v[0])}i.position=[l==="y"?v[c[s]]:f[0],l==="x"?v[c[s]]:f[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[o],i.labelOffset=A?v[c[o]]-v[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ke(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function HT(r){return r.get("coordinateSystem")==="cartesian2d"}function OT(r){var t={xAxisModel:null,yAxisModel:null};return I(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Te).models[0];t[n]=i}),t}var Fy=Math.log;function iR(r,t,e){var n=Ja.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),A=a.length-1,o=n.getInterval.call(e),s=sP(r,t),l=s.extent,u=s.fixMin,f=s.fixMax;if(r.type==="log"){var c=Fy(r.base);l=[Fy(l[0])/c,Fy(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:A,fixMin:u,fixMax:f});var h=n.getExtent.call(r);u&&(l[0]=h[0]),f&&(l[1]=h[1]);var v=n.getInterval.call(r),d=l[0],p=l[1];if(u&&f)v=(p-d)/A;else if(u)for(p=l[0]+v*A;pl[0]&&isFinite(d)&&isFinite(l[0]);)v=vy(v),d=l[1]-v*A;else{var g=r.getTicks().length-1;g>A&&(v=vy(v));var y=v*A;p=Math.ceil(l[1]/v)*v,d=me(p-y),d<0&&l[0]>=0?(d=0,p=me(y)):p>0&&l[1]<=0&&(p=0,d=-me(y))}var m=(a[0].value-i[0].value)/o,w=(a[A].value-i[A].value)/o;n.setExtent.call(r,d+v*m,p+v*w),n.setInterval.call(r,v),(m||w)&&n.setNiceExtent.call(r,d+v,p-v)}var wZ=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=mw,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(A){var o,s=Ot(A),l=s.length;if(l){for(var u=[],f=l-1;f>=0;f--){var c=+s[f],h=A[c],v=h.model,d=h.scale;cw(d)&&v.get("alignTicks")&&v.get("interval")==null?u.push(h):(Ws(d,v),cw(d)&&(o=h))}u.length&&(o||(o=u.pop(),Ws(o.scale,o.model)),I(u,function(p){iR(p.scale,p.model,o.scale)}))}}a(n.x),a(n.y);var i={};I(n.x,function(A){kT(n,"y",A,i)}),I(n.y,function(A){kT(n,"x",A,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),A=Qe(a,{width:e.getWidth(),height:e.getHeight()});this._rect=A;var o=this._axesList;s(),i&&(I(o,function(l){if(!l.model.get(["axisLabel","inside"])){var u=t6(l);if(u){var f=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);A[f]-=u[f]+c,l.position==="top"?A.y+=u.height+c:l.position==="left"&&(A.x+=u.width+c)}}}),s()),I(this._coordsList,function(l){l.calcAffineTransform()});function s(){I(o,function(l){var u=l.isHorizontal(),f=u?[0,A.width]:[0,A.height],c=l.inverse?1:0;l.setExtent(f[c],f[1-c]),BZ(l,u?A.x:A.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}yt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):ff(a-Ri)?(A=n>0?"bottom":"top",i="center"):(A="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:A}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),VT={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),A=n.transform,o=[i[0],0],s=[i[1],0],l=o[0]>s[0];A&&($e(o,o,A),$e(s,s,A));var u=V({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Pe({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Gs(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var c=t.get(["axisLine","symbol"]);if(c!=null){var h=t.get(["axisLine","symbolSize"]);nt(c)&&(c=[c,c]),(nt(h)||Kt(h))&&(h=[h,h]);var v=Mo(t.get(["axisLine","symbolOffset"])||0,h),d=h[0],p=h[1];I([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((o[0]-s[0])*(o[0]-s[0])+(o[1]-s[1])*(o[1]-s[1]))}],function(g,y){if(c[y]!=="none"&&c[y]!=null){var m=Fe(c[y],-d/2,-p/2,d,p,u.stroke,!0),w=g.r+g.offset,_=l?s:o;m.attr({rotation:g.rotate,x:_[0]+w*Math.cos(r.rotation),y:_[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,n){var a=SZ(e,n,t,r),i=bZ(e,n,t,r);if(CZ(t,i,a),xZ(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var A=_P(Y(i,function(o){return{label:o,priority:o.z2,defaultAttr:{ignore:o.ignore}}}));xP(A)}},axisName:function(r,t,e,n){var a=Ke(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),A=r.nameDirection,o=t.getModel("nameTextStyle"),s=t.get("nameGap")||0,l=t.axis.getExtent(),u=l[0]>l[1]?-1:1,f=[i==="start"?l[0]-u*s:i==="end"?l[1]+u*s:(l[0]+l[1])/2,KT(i)?r.labelOffset+A*s:0],c,h=t.get("nameRotate");h!=null&&(h=h*Ri/180);var v;KT(i)?c=_r.innerTextLayout(r.rotation,h??r.rotation,A):(c=_Z(r.rotation,i,h||0,l),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(c.rotation)),!isFinite(v)&&(v=null)));var d=o.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,y=Ke(r.nameTruncateMaxWidth,p.maxWidth,v),m=new Gt({x:f[0],y:f[1],rotation:c.rotation,silent:_r.isLabelSilent(t),style:oe(o,{text:a,font:d,overflow:"truncate",width:y,ellipsis:g,fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:o.get("align")||c.textAlign,verticalAlign:o.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Al({el:m,componentModel:t,itemName:a}),m.__fullText=a,m.anid="name",t.get("triggerEvent")){var w=_r.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,St(m).eventData=w}n.add(m),m.updateTransform(),e.add(m),m.decomposeTransform()}}};function _Z(r,t,e,n){var a=CM(e-r),i,A,o=n[0]>n[1],s=t==="start"&&!o||t!=="start"&&o;return ff(a-Ri/2)?(A=s?"bottom":"top",i="center"):ff(a-Ri*1.5)?(A=s?"top":"bottom",i="center"):(A="middle",aRi/2?i=s?"left":"right":i=s?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:A}}function CZ(r,t,e){if(!lP(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],A=t[1],o=t[t.length-1],s=t[t.length-2],l=e[0],u=e[1],f=e[e.length-1],c=e[e.length-2];n===!1?(jr(i),jr(l)):GT(i,A)&&(n?(jr(A),jr(u)):(jr(i),jr(l))),a===!1?(jr(o),jr(f)):GT(s,o)&&(a?(jr(s),jr(c)):(jr(o),jr(f)))}}function jr(r){r&&(r.ignore=!0)}function GT(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=qd([]);return Lo(a,a,-r.rotation),e.applyTransform(ka([],a,r.getLocalTransform())),n.applyTransform(ka([],a,t.getLocalTransform())),e.intersect(n)}}function KT(r){return r==="middle"||r==="center"}function AR(r,t,e,n,a){for(var i=[],A=[],o=[],s=0;s=0||r===t}function LZ(r){var t=lC(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),A=e.get("value");A!=null&&(A=n.parse(A));var o=Bw(e);i==null&&(a.status=o?"show":"hide");var s=n.getExtent().slice();s[0]>s[1]&&s.reverse(),(A==null||A>s[1])&&(A=s[1]),A0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=s;v.color!=null&&(d=gt({color:v.color},s));var p=Et(wt(v),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:A,axisLabel:o,name:v.text,showName:l,nameLocation:"end",nameGap:f,nameTextStyle:d,triggerEvent:c},!1);if(nt(u)){var g=p.name;p.name=u.replace("{value}",g??"")}else vt(u)&&(p.name=u(p.name,p));var y=new Yt(p,null,this.ecModel);return Ee(y,qf.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Et({lineStyle:{color:"#bbb"}},Nl.axisLine),axisLabel:ah(Nl.axisLabel,!1),axisTick:ah(Nl.axisTick,!1),splitLine:ah(Nl.splitLine,!0),splitArea:ah(Nl.splitArea,!0),indicator:[]},t}(Ht),zZ=["axisLine","axisTickLabel","axisName"],WZ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=Y(a,function(A){var o=A.model.get("showName")?A.name:"",s=new _r(A.model,{axisName:o,position:[n.cx,n.cy],rotation:A.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});I(i,function(A){I(zZ,A.add,A),this.group.add(A.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),A=e.getModel("splitLine"),o=e.getModel("splitArea"),s=A.getModel("lineStyle"),l=o.getModel("areaStyle"),u=A.get("show"),f=o.get("show"),c=s.get("color"),h=l.get("color"),v=K(c)?c:[c],d=K(h)?h:[h],p=[],g=[];function y(L,M,R){var P=R%M.length;return L[P]=L[P]||[],P}if(i==="circle")for(var m=a[0].getTicksCoords(),w=n.cx,_=n.cy,B=0;B3?1.4:A>1?1.2:1.1,u=i>0?l:1/l;Ly(this,"zoom","zoomOnMouseWheel",e,{scale:u,originX:o,originY:s,isAvailableBehavior:null})}if(a){var f=Math.abs(i),c=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);Ly(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:s,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!$T(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;Ly(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Cn);function Ly(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(Wa(n.event),cR(r,t,e,n,a))}function cR(r,t,e,n,a){a.isAvailableBehavior=it(lv,null,e,n),r.trigger(t,a)}function lv(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}function fC(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function cC(r,t,e,n){var a=r.target,i=r.zoomLimit,A=r.zoom=r.zoom||1;if(A*=t,i){var o=i.min||0,s=i.max||1/0;A=Math.max(Math.min(s,A),o)}var l=A/r.zoom;r.zoom=A,a.x-=(e-a.x)*(l-1),a.y-=(n-a.y)*(l-1),a.scaleX*=l,a.scaleY*=l,a.dirty()}var jZ={axisPointer:1,tooltip:1,brush:1};function Fp(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!jZ.hasOwnProperty(n.mainType)&&a&&a.model!==e}function hR(r){if(nt(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Qy,Ad={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},JT=Ot(Ad),od={"alignment-baseline":"textBaseline","stop-color":"stopColor"},qT=Ot(od),t9=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=hR(t);this._defsUsePending=[];var a=new Ct;this._root=a;var i=[],A=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Nr(n,a,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,a,i,null,!1,!1),l=l.nextSibling;n9(this._defs,this._defsUsePending),this._defsUsePending=[];var u,f;if(A){var c=Ep(A);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&o!=null&&s!=null&&(f=dR(u,{x:0,y:0,width:o,height:s}),!e.ignoreViewBox)){var h=a;a=new Ct,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!e.ignoreRootClip&&o!=null&&s!=null&&a.setClipPath(new Nt({shape:{x:0,y:0,width:o,height:s}})),{root:a,width:o,height:s,viewBoxRect:u,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(t,e,n,a,i,A){var o=t.nodeName.toLowerCase(),s,l=a;if(o==="defs"&&(i=!0),o==="text"&&(A=!0),o==="defs"||o==="switch")s=e;else{if(!i){var u=Qy[o];if(u&&st(Qy,o)){s=u.call(this,t,e);var f=t.getAttribute("name");if(f){var c={name:f,namedFrom:null,svgNodeTagLower:o,el:s};n.push(c),o==="g"&&(l=c)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:o,el:s});e.add(s)}}var h=jT[o];if(h&&st(jT,o)){var v=h.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=v)}}if(s&&s.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,s,n,l,i,A):p.nodeType===3&&A&&this._parseText(p,s),p=p.nextSibling},r.prototype._parseText=function(t,e){var n=new Vs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});tn(e,n),Nr(t,n,this._defsUsePending,!1,!1),e9(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var A=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=A;var o=n.getBoundingRect();return this._textX+=o.width,e.add(n),n},r.internalField=function(){Qy={g:function(t,e){var n=new Ct;return tn(e,n),Nr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Nt;return tn(e,n),Nr(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new ni;return tn(e,n),Nr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Pe;return tn(e,n),Nr(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new sp;return tn(e,n),Nr(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),a;n&&(a=rI(n));var i=new br({shape:{points:a||[]},silent:!0});return tn(e,i),Nr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=rI(n));var i=new Tr({shape:{points:a||[]},silent:!0});return tn(e,i),Nr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new ze;return tn(e,n),Nr(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",A=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(A);var o=new Ct;return tn(e,o),Nr(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",A=t.getAttribute("dy")||"0",o=new Ct;return tn(e,o),Nr(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(A),o},path:function(t,e){var n=t.getAttribute("d")||"",a=aU(n);return tn(e,a),Nr(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),jT={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new Wf(t,e,n,a);return tI(r,i),eI(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new sU(t,e,n);return tI(r,a),eI(r,a),a}};function tI(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function eI(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};vR(e,i,i);var A=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:A})}e=e.nextSibling}}function tn(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),gt(t.__inheritedStyle,r.__inheritedStyle))}function rI(r){for(var t=Ep(r),e=[],n=0;n0;i-=2){var A=n[i],o=n[i-1],s=Ep(A);switch(a=a||Yr(),o){case"translate":pa(a,a,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":A_(a,a,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":Lo(a,a,-parseFloat(s[0])*My,[parseFloat(s[1]||"0"),parseFloat(s[2]||"0")]);break;case"skewX":var l=Math.tan(parseFloat(s[0])*My);ka(a,[1,0,l,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(s[0])*My);ka(a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(s[0]),a[1]=parseFloat(s[1]),a[2]=parseFloat(s[2]),a[3]=parseFloat(s[3]),a[4]=parseFloat(s[4]),a[5]=parseFloat(s[5]);break}}t.setLocalTransform(a)}}var aI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function vR(r,t,e){var n=r.getAttribute("style");if(n){aI.lastIndex=0;for(var a;(a=aI.exec(n))!=null;){var i=a[1],A=st(Ad,i)?Ad[i]:null;A&&(t[A]=a[2]);var o=st(od,i)?od[i]:null;o&&(e[o]=a[2])}}}function o9(r,t,e){for(var n=0;n0,p={api:n,geo:s,mapOrGeoModel:t,data:o,isVisualEncodedByVisualMap:d,isGeo:A,transformInfoRaw:c};s.resourceType==="geoJSON"?this._buildGeoJSON(p):s.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),a=this._regionsGroup,i=t.transformInfoRaw,A=t.mapOrGeoModel,o=t.data,s=t.geo.projection,l=s&&s.stream;function u(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],d=!l&&s&&s.project,p=0;p=0)&&(c=a);var h=A?{normal:{align:"center",verticalAlign:"middle"}}:null;qe(t,ke(n),{labelFetcher:c,labelDataIndex:f,defaultText:e},h);var v=t.getTextContent();if(v&&(pR(v).ignore=v.ignore,t.textConfig&&A)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(A[0]-d.x)/d.width*100+"%",(A[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function lI(r,t,e,n,a,i){r.data?r.data.setItemGraphicEl(i,t):St(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:n&&n.option||{}}}function uI(r,t,e,n,a){r.data||Al({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function fI(r,t,e,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),A=i.get("focus");return ye(t,A,i.get("blurScope"),i.get("disabled")),r.isGeo&&C5(t,a,e),A}function cI(r,t,e){var n=[],a;function i(){a=[]}function A(){a.length&&(n.push(a),a=[])}var o=t({polygonStart:i,polygonEnd:A,lineStart:i,lineEnd:A,point:function(s,l){isFinite(s)&&isFinite(l)&&a.push([s,l])},sphere:function(){}});return!e&&o.polygonStart(),I(r,function(s){o.lineStart();for(var l=0;l-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(se);function T9(r,t){var e={};return I(r,function(n){n.each(n.mapDimension("value"),function(a,i){var A="ec-"+n.getName(i);e[A]=e[A]||[],isNaN(a)||e[A].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),A=0,o=1/0,s=-1/0,l=e[i].length,u=0;u1?(w.width=m,w.height=m/p):(w.height=m,w.width=m*p),w.y=y[1]-w.height/2,w.x=y[0]-w.width/2;else{var _=r.getBoxLayoutParams();_.aspect=p,w=Qe(_,{width:v,height:d})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function D9(r,t){I(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var L9=function(){function r(){this.dimensions=yR}return r.prototype.create=function(t,e){var n=[];function a(A){return{nameProperty:A.get("nameProperty"),aspectScale:A.get("aspectScale"),projection:A.get("projection")}}t.eachComponent("geo",function(A,o){var s=A.get("map"),l=new Sw(s+o,s,V({nameMap:A.get("nameMap")},a(A)));l.zoomLimit=A.get("scaleLimit"),n.push(l),A.coordinateSystem=l,l.model=A,l.resize=pI,l.resize(A,e)}),t.eachSeries(function(A){var o=A.get("coordinateSystem");if(o==="geo"){var s=A.get("geoIndex")||0;A.coordinateSystem=n[s]}});var i={};return t.eachSeriesByType("map",function(A){if(!A.getHostGeoModel()){var o=A.getMapType();i[o]=i[o]||[],i[o].push(A)}}),I(i,function(A,o){var s=Y(A,function(u){return u.get("nameMap")}),l=new Sw(o,o,V({nameMap:e_(s)},a(A[0])));l.zoomLimit=Ke.apply(null,Y(A,function(u){return u.get("scaleLimit")})),n.push(l),l.resize=pI,l.resize(A[0],e),I(A,function(u){u.coordinateSystem=l,D9(l,u)})}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),A=ft(),o=0;o=0;A--){var o=a[A];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:A,thread:null},e.push(o)}}function H9(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){N9(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=V9(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function O9(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function yI(r){return arguments.length?r:z9}function fu(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function k9(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function N9(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function V9(r,t,e,n){if(t){for(var a=r,i=r,A=i.parentNode.children[0],o=t,s=a.hierNode.modifier,l=i.hierNode.modifier,u=A.hierNode.modifier,f=o.hierNode.modifier;o=Uy(o),i=Py(i),o&&i;){a=Uy(a),A=Py(A),a.hierNode.ancestor=r;var c=o.hierNode.prelim+f-i.hierNode.prelim-l+n(o,i);c>0&&(K9(G9(o,r,e),r,c),l+=c,s+=c),f+=o.hierNode.modifier,l+=i.hierNode.modifier,s+=a.hierNode.modifier,u+=A.hierNode.modifier}o&&!Uy(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=f-s),i&&!Py(A)&&(A.hierNode.thread=i,A.hierNode.modifier+=l-u,e=r)}return e}function Uy(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Py(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function G9(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function K9(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function z9(r,t){return r.parentNode===t.parentNode?1:2}var W9=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),X9=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new W9},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,A=n.parentPoint,o=a[0],s=a[i-1];if(i===1){e.moveTo(A[0],A[1]),e.lineTo(o[0],o[1]);return}var l=n.orient,u=l==="TB"||l==="BT"?0:1,f=1-u,c=et(n.forkPosition,1),h=[];h[u]=A[u],h[f]=A[f]+(s[f]-A[f])*c,e.moveTo(A[0],A[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[u]=o[u],e.lineTo(h[0],h[1]),h[u]=s[u],e.lineTo(h[0],h[1]),e.lineTo(s[0],s[1]);for(var v=1;vy.x,_||(w=w-Math.PI));var C=_?"left":"right",x=o.getModel("label"),S=x.get("rotate"),b=S*(Math.PI/180),T=p.getTextContent();T&&(p.setTextConfig({position:x.get("position")||C,rotation:S==null?-w:b,origin:"center"}),T.setStyle("verticalAlign","middle"))}var F=o.get(["emphasis","focus"]),E=F==="relative"?Ev(A.getAncestorsIndices(),A.getDescendantIndices()):F==="ancestor"?A.getAncestorsIndices():F==="descendant"?A.getDescendantIndices():null;E&&(St(e).focus=E),Z9(a,A,u,e,v,h,d,n),e.__edge&&(e.onHoverStateChange=function(D){if(D!=="blur"){var L=A.parentNode&&r.getItemGraphicEl(A.parentNode.dataIndex);L&&L.hoverState===Gf||kv(e.__edge,D)}})}function Z9(r,t,e,n,a,i,A,o){var s=t.getModel(),l=r.get("edgeShape"),u=r.get("layout"),f=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=s.getModel("lineStyle").getLineStyle(),d=n.__edge;if(l==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=n.__edge=new zf({shape:xw(u,f,c,a,a)})),zt(d,{shape:xw(u,f,c,i,A)},r));else if(l==="polyline"&&u==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,g=[],y=0;ye&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var n=e.getData().tree.root,a=r.targetNode;if(nt(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function SR(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function gC(r,t){var e=SR(r);return Lt(e,t)>=0}function Dp(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var a7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},a=e.leaves||{},i=new Yt(a,this,this.ecModel),A=pC.createTree(n,this,o);function o(f){f.wrapMethod("getItemModel",function(c,h){var v=A.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(c.parentModel=i),c})}var s=0;A.eachNode("preorder",function(f){f.depth>s&&(s=f.depth)});var l=e.expandAndCollapse,u=l&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return A.root.eachNode("preorder",function(f){var c=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=c&&c.collapsed!=null?!c.collapsed:f.depth<=u}),A.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,n,a){for(var i=this.getData().tree,A=i.root.children[0],o=i.getNodeByDataIndex(e),s=o.getValue(),l=o.name;o&&o!==A;)l=o.parentNode.name+"."+l,o=o.parentNode;return Ne("nameValue",{name:l,value:s,noValue:isNaN(s)||s==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Dp(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(se);function i7(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var A=i.children;if(A.length)for(var o=0;o=0;i--)e.push(a[i])}}function A7(r,t){r.eachSeriesByType("tree",function(e){o7(e,t)})}function o7(r,t){var e=k9(r,t);r.layoutInfo=e;var n=r.get("layout"),a=0,i=0,A=null;n==="radial"?(a=2*Math.PI,i=Math.min(e.height,e.width)/2,A=yI(function(m,w){return(m.parentNode===w.parentNode?1:2)/m.depth})):(a=e.width,i=e.height,A=yI());var o=r.getData().tree.root,s=o.children[0];if(s){R9(o),i7(s,H9,A),o.hierNode.modifier=-s.hierNode.prelim,Gl(s,O9);var l=s,u=s,f=s;Gl(s,function(m){var w=m.getLayout().x;wu.getLayout().x&&(u=m),m.depth>f.depth&&(f=m)});var c=l===u?1:A(l,u)/2,h=c-l.getLayout().x,v=0,d=0,p=0,g=0;if(n==="radial")v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Gl(s,function(m){p=(m.getLayout().x+h)*v,g=(m.depth-1)*d;var w=fu(p,g);m.setLayout({x:w.x,y:w.y,rawX:p,rawY:g},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(d=i/(u.getLayout().x+c+h),v=a/(f.depth-1||1),Gl(s,function(m){g=(m.getLayout().x+h)*d,p=y==="LR"?(m.depth-1)*v:a-(m.depth-1)*v,m.setLayout({x:p,y:g},!0)})):(y==="TB"||y==="BT")&&(v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Gl(s,function(m){p=(m.getLayout().x+h)*v,g=y==="TB"?(m.depth-1)*d:i-(m.depth-1)*d,m.setLayout({x:p,y:g},!0)}))}}}function s7(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),A=i.getModel("itemStyle").getItemStyle(),o=e.ensureUniqueItemVisual(a.dataIndex,"style");V(o,A)})})}function l7(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,A=i.getNodeByDataIndex(a);A.isExpand=!A.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,A=vC(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}function u7(r){r.registerChartView(Y9),r.registerSeriesModel(a7),r.registerLayout(A7),r.registerVisual(s7),l7(r)}var CI=["treemapZoomToNode","treemapRender","treemapMove"];function f7(r){for(var t=0;t1;)i=i.parentNode;var A=j0(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",A)})}var c7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};bR(a);var i=e.levels||[],A=this.designatedVisualItemStyle={},o=new Yt({itemStyle:A},this,n);i=e.levels=h7(i,n);var s=Y(i||[],function(f){return new Yt(f,o,n)},this),l=pC.createTree(a,this,u);function u(f){f.wrapMethod("getItemModel",function(c,h){var v=l.getNodeByDataIndex(h),d=v?s[v.depth]:null;return c.parentModel=d||o,c})}return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),A=this.getRawValue(e),o=i.getName(e);return Ne("nameValue",{name:o,value:A})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Dp(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ft(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){xR(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(se);function bR(r){var t=0;I(r.children,function(n){bR(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}function h7(r,t){var e=qt(t.get("color")),n=qt(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;I(r,function(o){var s=new Yt(o),l=s.get("color"),u=s.get("decal");(s.get(["itemStyle","color"])||l&&l!=="none")&&(a=!0),(s.get(["itemStyle","decal"])||u&&u!=="none")&&(i=!0)});var A=r[0]||(r[0]={});return a||(A.color=e.slice()),!i&&n&&(A.decal=n.slice()),r}}var v7=8,SI=8,Ry=5,d7=function(){function r(t){this.group=new Ct,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),A=this.group;if(A.removeAll(),!(!i.get("show")||!n)){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,l),this._renderContent(t,f,o,s,l,u,a),yp(A,f.pos,f.box)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=Le(a.getModel().get("name"),""),A=n.getTextRect(i),o=Math.max(A.width+v7*2,e.emptyItemWidth);e.totalWidth+=o+SI,e.renderList.push({node:a,text:i,width:o})}},r.prototype._renderContent=function(t,e,n,a,i,A,o){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),f=xz(e.pos,e.box),c=e.totalWidth,h=e.renderList,v=a.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var p=h[d],g=p.node,y=p.width,m=p.text;c>f.width&&(c-=y-l,y=l,m=null);var w=new br({shape:{points:p7(s,0,y,u,d===h.length-1,d===0)},style:gt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gt({style:oe(i,{text:m})}),textConfig:{position:"inside"},z2:al*1e4,onclick:bt(o,g)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=oe(A,{text:m}),w.ensureState("emphasis").style=v,ye(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),g7(w,t,g),s+=y+SI}},r.prototype.remove=function(){this.group.removeAll()},r}();function p7(r,t,e,n,a,i){var A=[[a?r:r-Ry,t],[r+e,t],[r+e,t+n],[a?r:r-Ry,t+n]];return!i&&A.splice(2,0,[r+e+Ry,t+n/2]),!a&&A.push([r,t+n/2]),A}function g7(r,t,e){St(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Dp(e,t)}}var y7=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;abI||Math.abs(e.dy)>bI)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY,i=e.scale;if(this._state!=="animating"){var A=this.seriesModel.getData().tree.root;if(!A)return;var o=A.getLayout();if(!o)return;var s=new Dt(o.x,o.y,o.width,o.height),l=null,u=this._controllerHost;l=u.zoomLimit;var f=u.zoom=u.zoom||1;if(f*=i,l){var c=l.min||0,h=l.max||1/0;f=Math.max(Math.min(h,f),c)}var v=f/u.zoom;u.zoom=f;var d=this.seriesModel.layoutInfo;n-=d.x,a-=d.y;var p=Yr();pa(p,p,[-n,-a]),A_(p,p,[v,v]),pa(p,p,[n,a]),s.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var A=n.findTarget(a.offsetX,a.offsetY);if(A){var o=A.node;if(o.getLayout().isLeafRoot)n._rootToNode(A);else if(i==="zoomToNode")n._zoomToNode(A);else if(i==="link"){var s=o.hostTree.data.getItemModel(o.dataIndex),l=s.get("link",!0),u=s.get("target",!0)||"blank";l&&Wv(l,u)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new d7(this.group))).render(e,n,a.node,function(A){i._state!=="animating"&&(gC(e.getViewRoot(),A)?i._rootToNode({node:A}):i._zoomToNode({node:A}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Kl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(A){var o=this._storage.background[A.getRawIndex()];if(o){var s=o.transformCoordToLocal(e,n),l=o.shape;if(l.x<=s[0]&&s[0]<=l.x+l.width&&l.y<=s[1]&&s[1]<=l.y+l.height)a={node:A,offsetX:s[0],offsetY:s[1]};else return!1}},this),a},t.type="treemap",t}(te);function Kl(){return{nodeGroup:[],background:[],content:[]}}function S7(r,t,e,n,a,i,A,o,s,l){if(!A)return;var u=A.getLayout(),f=r.getData(),c=A.getModel();if(f.setItemGraphicEl(A.dataIndex,null),!u||!u.isInView)return;var h=u.width,v=u.height,d=u.borderWidth,p=u.invisible,g=A.getRawIndex(),y=o&&o.getRawIndex(),m=A.viewChildren,w=u.upperHeight,_=m&&m.length,B=c.getModel("itemStyle"),C=c.getModel(["emphasis","itemStyle"]),x=c.getModel(["blur","itemStyle"]),S=c.getModel(["select","itemStyle"]),b=B.get("borderRadius")||0,T=lt("nodeGroup",bw);if(!T)return;if(s.add(T),T.x=u.x||0,T.y=u.y||0,T.markRedraw(),sd(T).nodeWidth=h,sd(T).nodeHeight=v,u.isAboveViewRoot)return T;var F=lt("background",xI,l,B7);F&&O(T,F,_&&u.upperLabelHeight);var E=c.getModel("emphasis"),D=E.get("focus"),L=E.get("blurScope"),M=E.get("disabled"),R=D==="ancestor"?A.getAncestorsIndices():D==="descendant"?A.getDescendantIndices():D;if(_)vf(T)&&eo(T,!1),F&&(eo(F,!M),f.setItemGraphicEl(A.dataIndex,F),z0(F,R,L));else{var P=lt("content",xI,l,_7);P&&G(T,P),F.disableMorphing=!0,F&&vf(F)&&eo(F,!1),eo(T,!M),f.setItemGraphicEl(A.dataIndex,T),z0(T,R,L)}return T;function O(N,z,$){var q=St(z);if(q.dataIndex=A.dataIndex,q.seriesIndex=r.seriesIndex,z.setShape({x:0,y:0,width:h,height:v,r:b}),p)X(z);else{z.invisible=!1;var j=A.getVisual("style"),ct=j.stroke,Q=FI(B);Q.fill=ct;var U=GA(C);U.fill=C.get("borderColor");var k=GA(x);k.fill=x.get("borderColor");var Z=GA(S);if(Z.fill=S.get("borderColor"),$){var W=h-2*d;J(z,ct,j.opacity,{x:d,y:0,width:W,height:w})}else z.removeTextContent();z.setStyle(Q),z.ensureState("emphasis").style=U,z.ensureState("blur").style=k,z.ensureState("select").style=Z,xo(z)}N.add(z)}function G(N,z){var $=St(z);$.dataIndex=A.dataIndex,$.seriesIndex=r.seriesIndex;var q=Math.max(h-2*d,0),j=Math.max(v-2*d,0);if(z.culling=!0,z.setShape({x:d,y:d,width:q,height:j,r:b}),p)X(z);else{z.invisible=!1;var ct=A.getVisual("style"),Q=ct.fill,U=FI(B);U.fill=Q,U.decal=ct.decal;var k=GA(C),Z=GA(x),W=GA(S);J(z,Q,ct.opacity,null),z.setStyle(U),z.ensureState("emphasis").style=k,z.ensureState("blur").style=Z,z.ensureState("select").style=W,xo(z)}N.add(z)}function X(N){!N.invisible&&i.push(N)}function J(N,z,$,q){var j=c.getModel(q?II:TI),ct=Le(c.get("name"),null),Q=j.getShallow("show");qe(N,ke(c,q?II:TI),{defaultText:Q?ct:null,inheritColor:z,defaultOpacity:$,labelFetcher:r,labelDataIndex:A.dataIndex});var U=N.getTextContent();if(U){var k=U.style,Z=n_(k.padding||0);q&&(N.setTextConfig({layoutRect:q}),U.disableLabelLayout=!0),U.beforeUpdate=function(){var tt=Math.max((q?q.width:N.shape.width)-Z[1]-Z[3],0),ot=Math.max((q?q.height:N.shape.height)-Z[0]-Z[2],0);(k.width!==tt||k.height!==ot)&&U.setStyle({width:tt,height:ot})},k.truncateMinChar=2,k.lineOverflow="truncate",At(k,q,u);var W=U.getState("emphasis");At(W?W.style:null,q,u)}}function At(N,z,$){var q=N?N.text:null;if(!z&&$.isLeafRoot&&q!=null){var j=r.get("drillDownIcon",!0);N.text=j?j+" "+q:q}}function lt(N,z,$,q){var j=y!=null&&e[N][y],ct=a[N];return j?(e[N][y]=null,Bt(ct,j)):p||(j=new z,j instanceof _n&&(j.z2=x7($,q)),_t(ct,j)),t[N][g]=j}function Bt(N,z){var $=N[g]={};z instanceof bw?($.oldX=z.x,$.oldY=z.y):$.oldShape=V({},z.shape)}function _t(N,z){var $=N[g]={},q=A.parentNode,j=z instanceof Ct;if(q&&(!n||n.direction==="drillDown")){var ct=0,Q=0,U=a.background[q.getRawIndex()];!n&&U&&U.oldShape&&(ct=U.oldShape.width,Q=U.oldShape.height),j?($.oldX=0,$.oldY=Q):$.oldShape={x:ct,y:Q,width:0,height:0}}$.fadein=!j}}function x7(r,t){return r*w7+t}var If=I,b7=yt,ld=-1,He=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=wt(t);this.type=n,this.mappingMethod=e,this._normalizeData=F7[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Hy(a),T7(a)):e==="category"?a.categories?I7(a):Hy(a,!0):(Cr(e!=="linear"||a.dataExtent),Hy(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return it(this._normalizeData,this)},r.listVisualTypes=function(){return Ot(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){yt(t)?I(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=K(t)?[]:yt(t)?{}:(a=!0,null);return r.eachVisual(t,function(A,o){var s=e.call(n,A,o);a?i=s:i[o]=s}),i},r.retrieveVisuals=function(t){var e={},n;return t&&If(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(K(t))t=t.slice();else if(b7(t)){var e=[];If(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var a,i=1/0,A=0,o=e.length;A=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function Hy(r,t){var e=r.visual,n=[];yt(e)?If(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),TR(r,n)}function Ah(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:Tw([0,1])}}function EI(r){var t=this.option.visual;return t[Math.round($t(r,[0,1],[0,t.length-1],!0))]||{}}function zl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function cu(r){var t=this.option.visual;return t[this.option.loop&&r!==ld?r%t.length:r]}function KA(){return this.option.visual[0]}function Tw(r){return{linear:function(t){return $t(t,r,this.option.visual,!0)},category:cu,piecewise:function(t,e){var n=Iw.call(this,e);return n==null&&(n=$t(t,r,this.option.visual,!0)),n},fixed:KA}}function Iw(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=He.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function TR(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var n=Zr(e);return n||[0,0,0,1]})),t}var F7={linear:function(r){return $t(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=He.findPieceIndex(r,t,!0);if(e!=null)return $t(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??ld},fixed:Be};function oh(r,t,e){return r?t<=e:t=e.length||d===e[d.depth]){var g=U7(a,s,d,p,v,n);FR(d,g,e,n)}})}}}function L7(r,t,e){var n=V({},t),a=e.designatedVisualItemStyle;return I(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var A=r.get(i);a[i]=null,A!=null&&(n[i]=A)}),n}function DI(r){var t=Oy(r,"color");if(t){var e=Oy(r,"colorAlpha"),n=Oy(r,"colorSaturation");return n&&(t=Qu(t,null,null,n)),e&&(t=Mv(t,e)),t}}function Q7(r,t){return t!=null?Qu(t,null,null,r):null}function Oy(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function M7(r,t,e,n,a,i){if(!(!i||!i.length)){var A=ky(t,"color")||a.color!=null&&a.color!=="none"&&(ky(t,"colorAlpha")||ky(t,"colorSaturation"));if(A){var o=t.get("visualMin"),s=t.get("visualMax"),l=e.dataExtent.slice();o!=null&&ol[1]&&(l[1]=s);var u=t.get("colorMappingBy"),f={type:A.name,dataExtent:l,visual:A.range};f.type==="color"&&(u==="index"||u==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var c=new He(f);return IR(c).drColorMappingBy=u,c}}}function ky(r,t){var e=r.get(t);return K(e)&&e.length?{name:t,range:e}:null}function U7(r,t,e,n,a,i){var A=V({},t);if(a){var o=a.type,s=o==="color"&&IR(a).drColorMappingBy,l=s==="index"?n:s==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));A[o]=a.mapValueToVisual(l)}return A}var Ff=Math.max,ud=Math.min,LI=Ke,yC=I,ER=["itemStyle","borderWidth"],P7=["itemStyle","gapWidth"],R7=["upperLabel","show"],H7=["upperLabel","height"];const O7={seriesType:"treemap",reset:function(r,t,e,n){var a=e.getWidth(),i=e.getHeight(),A=r.option,o=Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),s=A.size||[],l=et(LI(o.width,s[0]),a),u=et(LI(o.height,s[1]),i),f=n&&n.type,c=["treemapZoomToNode","treemapRootToNode"],h=Tf(n,c,r),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),p=SR(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?z7(r,h,d,l,u):v?[v.width,v.height]:[l,u],y=A.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:A.squareRatio,sort:y,leafDepth:A.leafDepth};d.hostTree.clearLayouts();var w={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(w),DR(d,m,!1,0),w=d.getLayout(),yC(p,function(B,C){var x=(p[C+1]||d).getValue();B.setLayout(V({dataExtent:[x,x],borderWidth:0,upperHeight:0},w))})}var _=r.getData().tree.root;_.setLayout(W7(o,v,h),!0),r.setLayoutInfo(o),LR(_,new Dt(-o.x,-o.y,a,i),p,d,0)}};function DR(r,t,e,n){var a,i;if(!r.isRemoved()){var A=r.getLayout();a=A.width,i=A.height;var o=r.getModel(),s=o.get(ER),l=o.get(P7)/2,u=QR(o),f=Math.max(s,u),c=s-l,h=f-l;r.setLayout({borderWidth:s,upperHeight:f,upperLabelHeight:u},!0),a=Ff(a-2*c,0),i=Ff(i-c-h,0);var v=a*i,d=k7(r,o,v,t,e,n);if(d.length){var p={x:c,y:h,width:a,height:i},g=ud(a,i),y=1/0,m=[];m.area=0;for(var w=0,_=d.length;w<_;){var B=d[w];m.push(B),m.area+=B.getLayout().area;var C=K7(m,g,t.squareRatio);C<=y?(w++,y=C):(m.area-=m.pop().getLayout().area,QI(m,g,p,l,!1),g=ud(p.width,p.height),m.length=m.area=0,y=1/0)}if(m.length&&QI(m,g,p,l,!0),!e){var x=o.get("childrenVisibleMin");x!=null&&v=0;s--){var l=a[n==="asc"?A-s-1:s].getValue();l/e*to[1]&&(o[1]=l)})),{sum:n,dataExtent:o}}function K7(r,t,e){for(var n=0,a=1/0,i=0,A=void 0,o=r.length;in&&(n=A));var s=r.area*r.area,l=t*t*e;return s?Ff(l*n/s,s/(l*a)):1/0}function QI(r,t,e,n,a){var i=t===e.width?0:1,A=1-i,o=["x","y"],s=["width","height"],l=e[o[i]],u=t?r.area/t:0;(a||u>e[s[A]])&&(u=e[s[A]]);for(var f=0,c=r.length;fzS&&(l=zS),i=o}ln&&(n=t);var i=n%2?n+2:n+3;a=[];for(var A=0;A0&&(_[0]=-_[0],_[1]=-_[1]);var C=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var x=-Math.atan2(w[1],w[0]);f[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*g+u[0],i.y=-c[1]*y+u[1],v=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*C+u[0],i.y=u[1]+S,v=w[0]<0?"right":"left",i.originX=-g*C,i.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=B[0],i.y=B[1]+S,v="center",i.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*C+f[0],i.y=f[1]+S,v=w[0]>=0?"right":"left",i.originX=g*C,i.originY=-S;break}i.scaleX=i.scaleY=A,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||v})}},t}(Ct),CC=function(){function r(t){this.group=new Ct,this._LineCtor=t||_C}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var A=OI(t);t.diff(i).add(function(o){e._doAdd(t,o,A)}).update(function(o,s){e._doUpdate(i,t,s,o,A)}).remove(function(o){a.remove(i.getItemGraphicEl(o))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=OI(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(o){!o.isGroup&&!u$(o)&&(o.incremental=!0,o.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function OI(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:ke(t)}}function kI(r){return isNaN(r[0])||isNaN(r[1])}function zy(r){return r&&!kI(r[0])&&!kI(r[1])}var Wy=[],Xy=[],Yy=[],ts=Ge,Zy=lo,NI=Math.abs;function VI(r,t,e){for(var n=r[0],a=r[1],i=r[2],A=1/0,o,s=e*e,l=.1,u=.1;u<=.9;u+=.1){Wy[0]=ts(n[0],a[0],i[0],u),Wy[1]=ts(n[1],a[1],i[1],u);var f=NI(Zy(Wy,t)-s);f=0?o=o+l:o=o-l:v>=0?o=o-l:o=o+l}return o}function $y(r,t){var e=[],n=sf,a=[[],[],[]],i=[[],[]],A=[];t/=2,r.eachEdge(function(o,s){var l=o.getLayout(),u=o.getVisual("fromSymbol"),f=o.getVisual("toSymbol");l.__original||(l.__original=[Oa(l[0]),Oa(l[1])],l[2]&&l.__original.push(Oa(l[2])));var c=l.__original;if(l[2]!=null){if(dr(a[0],c[0]),dr(a[1],c[2]),dr(a[2],c[1]),u&&u!=="none"){var h=vu(o.node1),v=VI(a,c[0],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],v,e),a[0][1]=e[3],a[1][1]=e[4]}if(f&&f!=="none"){var h=vu(o.node2),v=VI(a,c[1],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],v,e),a[1][1]=e[1],a[2][1]=e[2]}dr(l[0],a[0]),dr(l[1],a[2]),dr(l[2],a[1])}else{if(dr(i[0],c[0]),dr(i[1],c[1]),jA(A,i[1],i[0]),el(A,A),u&&u!=="none"){var h=vu(o.node1);p0(i[0],i[0],A,h*t)}if(f&&f!=="none"){var h=vu(o.node2);p0(i[1],i[1],A,-h*t)}dr(l[0],i[0]),dr(l[1],i[1])}})}function GI(r){return r.type==="view"}var f$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){var a=new tc,i=new CC,A=this.group;this._controller=new ic(n.getZr()),this._controllerHost={target:A},A.add(a.group),A.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,A=e.coordinateSystem;this._model=e;var o=this._symbolDraw,s=this._lineDraw,l=this.group;if(GI(A)){var u={x:A.x,y:A.y,scaleX:A.scaleX,scaleY:A.scaleY};this._firstRender?l.attr(u):zt(l,u,e)}$y(e.getGraph(),hu(e));var f=e.getData();o.updateData(f);var c=e.getEdgeData();s.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,n,a),clearTimeout(this._layoutTimeout);var h=e.forceLayout,v=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var d=e.get("layout");f.graph.eachNode(function(m){var w=m.dataIndex,_=m.getGraphicEl(),B=m.getModel();if(_){_.off("drag").off("dragend");var C=B.get("draggable");C&&_.on("drag",function(S){switch(d){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[_.x,_.y]);break;case"circular":f.setItemLayout(w,[_.x,_.y]),m.setLayout({fixed:!0},!0),BC(e,"symbolSize",m,[S.offsetX,S.offsetY]),i.updateLayout(e);break;case"none":default:f.setItemLayout(w,[_.x,_.y]),wC(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),_.setDraggable(C,!!B.get("cursor"));var x=B.get(["emphasis","focus"]);x==="adjacency"&&(St(_).focus=m.getAdjacentDataIndices())}}),f.graph.eachEdge(function(m){var w=m.getGraphicEl(),_=m.getModel().get(["emphasis","focus"]);w&&_==="adjacency"&&(St(w).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var p=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),g=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(m){RR(m,p,g,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var a=this;(function i(){e.step(function(A){a.updateLayout(a._model),(a._layouting=!A)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,n,a){var i=this,A=this._controller,o=this._controllerHost,s=this.group;if(A.setPointerChecker(function(l,u,f){var c=s.getBoundingRect();return c.applyTransform(s.transform),c.contain(u,f)&&!Fp(l,a,e)}),!GI(e.coordinateSystem)){A.disable();return}A.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),A.off("pan").off("zoom").on("pan",function(l){fC(o,l.dx,l.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){cC(o,l.scale,l.originX,l.originY),a.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY}),i._updateNodeAndLinkScale(),$y(e.getGraph(),hu(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=hu(e);n.eachItemGraphicEl(function(i,A){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){$y(e.getGraph(),hu(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(te);function es(r){return"_EC_"+r}var c$=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[es(t)]){var a=new zA(t,e);return a.hostGraph=this,this.nodes.push(a),n[es(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[es(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Kt(t)&&(t=this.nodes[t]),Kt(e)&&(e=this.nodes[e]),t instanceof zA||(t=a[es(t)]),e instanceof zA||(e=a[es(e)]),!(!t||!e)){var A=t.id+"-"+e.id,o=new OR(t,e,n);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),i[A]=o,o}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof zA&&(t=t.id),e instanceof zA&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,a=n.length,i=0;i=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof zA||(e=this._nodesMap[es(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",A=0;A=0&&s.node2.dataIndex>=0});for(var i=0,A=a.length;i=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}Ee(zA,kR("hostGraph","data"));Ee(OR,kR("hostGraph","edgeData"));function NR(r,t,e,n,a){for(var i=new c$(n),A=0;A "+c)),l++)}var h=e.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=ai(r,e);else{var d=Zf.get(h),p=d?d.dimensions||[]:[];Lt(p,"value")<0&&p.concat(["value"]);var g=Jf(r,{coordDimensions:p,encodeDefine:e.getEncode()}).dimensions;v=new Br(g,e),v.initData(r)}var y=new Br(["value"],e);return y.initData(s,o),a&&a(v,y),_R({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var h$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new ac(a,a),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),_o(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],A=this;if(i&&a){j7(this);var o=NR(i,a,this,!0,s);return I(o.edges,function(l){t$(l.node1,l.node2,this,l.dataIndex)},this),o.data}function s(l,u){l.wrapMethod("getItemModel",function(v){var d=A._categoriesModels,p=v.getShallow("category"),g=d[p];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var f=Yt.prototype.getModel;function c(v,d){var p=f.call(this,v,d);return p.resolveParentPath=h,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,n,a){if(a==="edge"){var i=this.getData(),A=this.getDataParams(e,a),o=i.graph.getEdgeByIndex(e),s=i.getName(o.node1.dataIndex),l=i.getName(o.node2.dataIndex),u=[];return s!=null&&u.push(s),l!=null&&u.push(l),Ne("nameValue",{name:u.join(" > "),value:A.value,noValue:A.value==null})}var f=c2({series:this,dataIndex:e,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(a){return a.value!=null?a:V({value:0},a)}),n=new Br(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(se),v$={type:"graphRoam",event:"graphRoam",update:"none"};function d$(r){r.registerChartView(f$),r.registerSeriesModel(h$),r.registerProcessor(Y7),r.registerVisual(Z7),r.registerVisual($7),r.registerLayout(e$),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,n$),r.registerLayout(i$),r.registerCoordinateSystem("graphView",{dimensions:Ac.dimensions,create:o$}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Be),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Be),r.registerAction(v$,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,A=vC(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}var p$=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),g$=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new p$},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,A=n.r,o=n.width,s=n.angle,l=n.x-a(s)*o*(o>=A/3?1:2),u=n.y-i(s)*o*(o>=A/3?1:2);s=n.angle-Math.PI/2,e.moveTo(l,u),e.lineTo(n.x+a(s)*o,n.y+i(s)*o),e.lineTo(n.x+a(n.angle)*A,n.y+i(n.angle)*A),e.lineTo(n.x-a(s)*o,n.y-i(s)*o),e.lineTo(l,u)},t}(Mt);function y$(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),A=et(e[0],t.getWidth()),o=et(e[1],t.getHeight()),s=et(r.get("radius"),i/2);return{cx:A,cy:o,r:s}}function lh(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var m$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),A=y$(e,a);this._renderMain(e,n,a,i,A),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,A){var o=this.group,s=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,f=e.getModel("axisLine"),c=f.get("roundCap"),h=c?id:xr,v=f.get("show"),d=f.getModel("lineStyle"),p=d.get("width"),g=[l,u];d_(g,!s),l=g[0],u=g[1];for(var y=u-l,m=l,w=[],_=0;v&&_=S&&(b===0?0:i[b-1][0])Math.PI/2&&(lt+=Math.PI)):At==="tangential"?lt=-x-Math.PI/2:Kt(At)&&(lt=At*Math.PI/180),lt===0?f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:D<-.4?"left":D>.4?"right":"center"},{inheritColor:G}),silent:!0})):f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:X,originY:J,rotation:lt}))}if(y.get("show")&&M!==w){var R=y.get("distance");R=R?R+u:u;for(var Bt=0;Bt<=_;Bt++){D=Math.cos(x),L=Math.sin(x);var _t=new Pe({shape:{x1:D*(v-R)+c,y1:L*(v-R)+h,x2:D*(v-C-R)+c,y2:L*(v-C-R)+h},silent:!0,style:F});F.stroke==="auto"&&_t.setStyle({stroke:i((M+Bt/_)/w)}),f.add(_t),x+=b}x-=b}else x+=S}},t.prototype._renderPointer=function(e,n,a,i,A,o,s,l,u){var f=this.group,c=this._data,h=this._progressEls,v=[],d=e.get(["pointer","show"]),p=e.getModel("progress"),g=p.get("show"),y=e.getData(),m=y.mapDimension("value"),w=+e.get("min"),_=+e.get("max"),B=[w,_],C=[o,s];function x(b,T){var F=y.getItemModel(b),E=F.getModel("pointer"),D=et(E.get("width"),A.r),L=et(E.get("length"),A.r),M=e.get(["pointer","icon"]),R=E.get("offsetCenter"),P=et(R[0],A.r),O=et(R[1],A.r),G=E.get("keepAspect"),X;return M?X=Fe(M,P-D/2,O-L,D,L,null,G):X=new g$({shape:{angle:-Math.PI/2,width:D,r:L,x:P,y:O}}),X.rotation=-(T+Math.PI/2),X.x=A.cx,X.y=A.cy,X}function S(b,T){var F=p.get("roundCap"),E=F?id:xr,D=p.get("overlap"),L=D?p.get("width"):u/y.count(),M=D?A.r-L:A.r-(b+1)*L,R=D?A.r:A.r-b*L,P=new E({shape:{startAngle:o,endAngle:T,cx:A.cx,cy:A.cy,clockwise:l,r0:M,r:R}});return D&&(P.z2=_-y.get(m,b)%_),P}(g||d)&&(y.diff(c).add(function(b){var T=y.get(m,b);if(d){var F=x(b,o);ue(F,{rotation:-((isNaN(+T)?C[0]:$t(T,B,C,!0))+Math.PI/2)},e),f.add(F),y.setItemGraphicEl(b,F)}if(g){var E=S(b,o),D=p.get("clip");ue(E,{shape:{endAngle:$t(T,B,C,D)}},e),f.add(E),V0(e.seriesIndex,y.dataType,b,E),v[b]=E}}).update(function(b,T){var F=y.get(m,b);if(d){var E=c.getItemGraphicEl(T),D=E?E.rotation:o,L=x(b,D);L.rotation=D,zt(L,{rotation:-((isNaN(+F)?C[0]:$t(F,B,C,!0))+Math.PI/2)},e),f.add(L),y.setItemGraphicEl(b,L)}if(g){var M=h[T],R=M?M.shape.endAngle:o,P=S(b,R),O=p.get("clip");zt(P,{shape:{endAngle:$t(F,B,C,O)}},e),f.add(P),V0(e.seriesIndex,y.dataType,b,P),v[b]=P}}).execute(),y.each(function(b){var T=y.getItemModel(b),F=T.getModel("emphasis"),E=F.get("focus"),D=F.get("blurScope"),L=F.get("disabled");if(d){var M=y.getItemGraphicEl(b),R=y.getItemVisual(b,"style"),P=R.fill;if(M instanceof ze){var O=M.style;M.useStyle(V({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},R))}else M.useStyle(R),M.type!=="pointer"&&M.setColor(P);M.setStyle(T.getModel(["pointer","itemStyle"]).getItemStyle()),M.style.fill==="auto"&&M.setStyle("fill",i($t(y.get(m,b),B,[0,1],!0))),M.z2EmphasisLift=0,Je(M,T),ye(M,E,D,L)}if(g){var G=v[b];G.useStyle(y.getItemVisual(b,"style")),G.setStyle(T.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,Je(G,T),ye(G,E,D,L)}}),this._progressEls=v)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var A=a.get("size"),o=a.get("icon"),s=a.get("offsetCenter"),l=a.get("keepAspect"),u=Fe(o,n.cx-A/2+et(s[0],n.r),n.cy-A/2+et(s[1],n.r),A,A,null,l);u.z2=a.get("showAbove")?1:0,u.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,A){var o=this,s=e.getData(),l=s.mapDimension("value"),u=+e.get("min"),f=+e.get("max"),c=new Ct,h=[],v=[],d=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);s.diff(this._data).add(function(g){h[g]=new Gt({silent:!0}),v[g]=new Gt({silent:!0})}).update(function(g,y){h[g]=o._titleEls[y],v[g]=o._detailEls[y]}).execute(),s.each(function(g){var y=s.getItemModel(g),m=s.get(l,g),w=new Ct,_=i($t(m,[u,f],[0,1],!0)),B=y.getModel("title");if(B.get("show")){var C=B.get("offsetCenter"),x=A.cx+et(C[0],A.r),S=A.cy+et(C[1],A.r),b=h[g];b.attr({z2:p?0:2,style:oe(B,{x,y:S,text:s.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:_})}),w.add(b)}var T=y.getModel("detail");if(T.get("show")){var F=T.get("offsetCenter"),E=A.cx+et(F[0],A.r),D=A.cy+et(F[1],A.r),L=et(T.get("width"),A.r),M=et(T.get("height"),A.r),R=e.get(["progress","show"])?s.getItemVisual(g,"style").fill:_,b=v[g],P=T.get("formatter");b.attr({z2:p?0:2,style:oe(T,{x:E,y:D,text:lh(m,P),width:isNaN(L)?null:L,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:R})}),pU(b,{normal:T},m,function(G){return lh(G,P)}),d&&gU(b,g,s,e,{getFormattedLabel:function(G,X,J,At,lt,Bt){return lh(Bt?Bt.interpolatedValue:m,P)}}),w.add(b)}c.add(w)}),this.group.add(c),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(te),w$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return pl(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(se);function B$(r){r.registerChartView(m$),r.registerSeriesModel(w$)}var _$=["itemStyle","opacity"],C$=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=a,A=new Tr,o=new Gt;return i.setTextContent(o),a.setTextGuideLine(A),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,A=e.hostModel,o=e.getItemModel(n),s=e.getItemLayout(n),l=o.getModel("emphasis"),u=o.get(_$);u=u??1,a||Vn(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:s.points}),i.style.opacity=0,ue(i,{style:{opacity:u}},A,n)):zt(i,{style:{opacity:u},shape:{points:s.points}},A,n),Je(i,o),this._updateLabel(e,n),ye(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),A=a.getTextContent(),o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=l.label,f=e.getItemVisual(n,"style"),c=f.fill;qe(A,ke(s),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:e.getName(n)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),a.setTextConfig({local:!0,inside:!!u.inside,insideStroke:c,outsideFill:c});var h=u.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new It(h[0][0],h[0][1]):null},zt(A,{style:{x:u.x,y:u.y}},o,n),A.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),tC(a,eC(s),{stroke:c})},t}(br),S$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this._data,o=this.group;i.diff(A).add(function(s){var l=new C$(i,s);i.setItemGraphicEl(s,l),o.add(l)}).update(function(s,l){var u=A.getItemGraphicEl(l);u.updateData(i,s),o.add(u),i.setItemGraphicEl(s,u)}).remove(function(s){var l=A.getItemGraphicEl(s);df(l,e,s)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(te),x$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new ac(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return pl(this,{coordDimensions:["value"],encodeDefaulter:bt(L_,this)})},t.prototype._defaultLabelLine=function(e){_o(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),A=n.getSum(i);return a.percent=A?+(n.get(i,e)/A*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(se);function b$(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function T$(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(s){return s}),a=[],i=t==="ascending",A=0,o=r.count();AG$)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!qy(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function qy(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var W$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Et(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){I(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],a=Jt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);I(a,function(i){e.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Ht),X$=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o.axisIndex=A,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Kn);function Ho(r,t,e,n,a,i){r=r||0;var A=e[1]-e[0];if(a!=null&&(a=rs(a,[0,A])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var o=Math.abs(t[1]-t[0]);o=rs(o,[0,A]),a=i=rs(o,[a,i]),n=0}t[0]=rs(t[0],e),t[1]=rs(t[1],e);var s=jy(t,n);t[n]+=r;var l=a||0,u=e.slice();s.sign<0?u[0]+=l:u[1]-=l,t[n]=rs(t[n],u);var f;return f=jy(t,n),a!=null&&(f.sign!==s.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function jy(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function rs(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var tm=I,GR=Math.min,KR=Math.max,WI=Math.floor,Y$=Math.ceil,XI=me,Z$=Math.PI,$$=function(){function r(t,e,n){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=t.dimensions,i=t.parallelAxisIndex;tm(a,function(A,o){var s=i[o],l=e.getComponent("parallelAxis",s),u=this._axesMap.set(A,new X$(A,Tp(l),[0,0],l.get("type"),s)),f=u.type==="category";u.onBand=f&&l.get("boundaryGap"),u.inverse=l.get("inverse"),l.axis=u,u.model=l,u.coordinateSystem=l.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,a=e.layoutBase,i=e.pixelDimIndex,A=t[1-i],o=t[i];return A>=n&&A<=n+e.axisLength&&o>=a&&o<=a+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var a=n.getData();tm(this.dimensions,function(i){var A=this._axesMap.get(i);A.scale.unionExtentFromData(a,a.mapDimension(i)),Ws(A.scale,A.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=Qe(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),A=i==="horizontal"?0:1,o=e[a[A]],s=[0,o],l=this.dimensions.length,u=uh(t.get("axisExpandWidth"),s),f=uh(t.get("axisExpandCount")||0,[0,l]),c=t.get("axisExpandable")&&l>3&&l>f&&f>1&&u>0&&o>0,h=t.get("axisExpandWindow"),v;if(h)v=uh(h[1]-h[0],s),h[1]=h[0]+v;else{v=uh(u*(f-1),s);var d=t.get("axisExpandCenter")||WI(l/2);h=[u*d-v/2],h[1]=h[0]+v}var p=(o-v)/(l-f);p<3&&(p=0);var g=[WI(XI(h[0]/u,1))+1,Y$(XI(h[1]/u,1))-1],y=p/u*h[0];return{layout:i,pixelDimIndex:A,layoutBase:e[n[A]],layoutLength:o,axisBase:e[n[1-A]],axisLength:e[a[1-A]],axisExpandable:c,axisExpandWidth:u,axisCollapseWidth:p,axisExpandWindow:h,axisCount:l,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;e.each(function(A){var o=[0,a.axisLength],s=A.inverse?1:0;A.setExtent(o[s],o[1-s])}),tm(n,function(A,o){var s=(a.axisExpandable?q$:J$)(o,a),l={horizontal:{x:s.position,y:a.axisLength},vertical:{x:0,y:s.position}},u={horizontal:Z$/2,vertical:0},f=[l[i].x+t.x,l[i].y+t.y],c=u[i],h=Yr();Lo(h,h,c),pa(h,h,f),this._axesLayout[A]={position:f,rotation:c,transform:h,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,A=this.dimensions,o=[],s=[];I(A,function(p){o.push(t.mapDimension(p)),s.push(i.get(p).model)});for(var l=this.hasAxisBrushed(),u=n;ui*(1-f[0])?(l="jump",s=o-i*(1-f[2])):(s=o-i*f[1])>=0&&(s=o-i*(1-f[1]))<=0&&(s=0),s*=e.axisExpandWidth/u,s?Ho(s,a,A,"all"):l="none";else{var h=a[1]-a[0],v=A[1]*o/h;a=[KR(0,v-h/2)],a[1]=GR(A[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:l}},r}();function uh(r,t){return GR(KR(r,t[0]),t[1])}function J$(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function q$(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,A=t.winInnerIndices,o,s=i,l=!1,u;return r=0;a--)pn(n[a])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,A=n.length;inJ}function $R(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function JR(r,t,e,n){var a=new Ct;return a.add(new Nt({name:"main",style:IC(e),silent:!0,draggable:!0,cursor:"move",drift:bt($I,r,t,a,["n","s","w","e"]),ondragend:bt(Io,t,{isEnd:!0})})),I(n,function(i){a.add(new Nt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:bt($I,r,t,a,i),ondragend:bt(Io,t,{isEnd:!0})}))}),a}function qR(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Zs(a,aJ),A=e[0][0],o=e[1][0],s=A-a/2,l=o-a/2,u=e[0][1],f=e[1][1],c=u-i+a/2,h=f-i+a/2,v=u-A,d=f-o,p=v+a,g=d+a;Fa(r,t,"main",A,o,v,d),n.transformable&&(Fa(r,t,"w",s,l,i,g),Fa(r,t,"e",c,l,i,g),Fa(r,t,"n",s,l,p,i),Fa(r,t,"s",s,h,p,i),Fa(r,t,"nw",s,l,i,i),Fa(r,t,"ne",c,l,i,i),Fa(r,t,"sw",s,h,i,i),Fa(r,t,"se",c,h,i,i))}function Mw(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(IC(e)),a.attr({silent:!n,cursor:n?"move":"default"}),I([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var A=t.childOfName(i.join("")),o=i.length===1?Uw(r,i[0]):uJ(r,i);A&&A.attr({silent:!n,invisible:!n,cursor:n?AJ[o]+"-resize":null})})}function Fa(r,t,e,n,a,i,A){var o=t.childOfName(e);o&&o.setShape(cJ(FC(r,t,[[n,a],[n+i,a+A]])))}function IC(r){return gt({strokeNoScale:!0},r.brushStyle)}function jR(r,t,e,n){var a=[Df(r,e),Df(t,n)],i=[Zs(r,e),Zs(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function lJ(r){return vo(r.group)}function Uw(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=fp(e[t],lJ(r));return n[a]}function uJ(r,t){var e=[Uw(r,t[0]),Uw(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function $I(r,t,e,n,a,i){var A=e.__brushOption,o=r.toRectRange(A.range),s=tH(t,a,i);I(n,function(l){var u=iJ[l];o[u[0]][u[1]]+=s[u[0]]}),A.range=r.fromRectRange(jR(o[0][0],o[1][0],o[0][1],o[1][1])),xC(t,e),Io(t,{isEnd:!1})}function fJ(r,t,e,n){var a=t.__brushOption.range,i=tH(r,e,n);I(a,function(A){A[0]+=i[0],A[1]+=i[1]}),xC(r,t),Io(r,{isEnd:!1})}function tH(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function FC(r,t,e){var n=ZR(r,t);return n&&n!==To?n.clipPath(e,r._transform):wt(e)}function cJ(r){var t=Df(r[0][0],r[1][0]),e=Df(r[0][1],r[1][1]),n=Zs(r[0][0],r[1][0]),a=Zs(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function hJ(r,t,e){if(!(!r._brushType||dJ(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=TC(r,t,e);if(!r._dragging)for(var A=0;An.getWidth()||e<0||e>n.getHeight()}var Qp={lineX:jI(0),lineY:jI(1),rect:{createCover:function(r,t){function e(n){return n}return JR({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=$R(r);return jR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){qR(r,t,e,n)},updateCommon:Mw,contain:Rw},polygon:{createCover:function(r,t){var e=new Ct;return e.add(new Tr({name:"main",style:IC(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new br({name:"main",draggable:!0,drift:bt(fJ,r,t),ondragend:bt(Io,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:FC(r,t,e)})},updateCommon:Mw,contain:Rw}};function jI(r){return{createCover:function(t,e){return JR({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=$R(t),n=Df(e[0][r],e[1][r]),a=Zs(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,A=ZR(t,e);if(A!==To&&A.getLinearBrushOtherExtent)i=A.getLinearBrushOtherExtent(r);else{var o=t._zr;i=[0,[o.getWidth(),o.getHeight()][1-r]]}var s=[n,i];r&&s.reverse(),qR(t,e,s,a)},updateCommon:Mw,contain:Rw}}function rH(r){return r=EC(r),function(t){return hU(t,r)}}function nH(r,t){return r=EC(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function aH(r,t,e){var n=EC(r);return function(a,i){return n.contain(i[0],i[1])&&!Fp(a,t,e)}}function EC(r){return Dt.create(r)}var pJ=["axisLine","axisTickLabel","axisName"],gJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new SC(n.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!yJ(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var A=this._axisGroup;if(this._axisGroup=new Ct,this.group.add(this._axisGroup),!!e.get("show")){var o=wJ(e,n),s=o.coordinateSystem,l=e.getAreaSelectStyle(),u=l.width,f=e.axis.dim,c=s.getAxisLayout(f),h=V({strokeContainThreshold:u},c),v=new _r(e,h);I(pJ,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,l,e,o,u,a),Xf(A,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,A,o){var s=a.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,Math.abs(l)*.1),f=Dt.create({x:s[0],y:-A/2,width:l,height:A});f.x-=u,f.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:rH(f),isTargetByCursor:aH(f,o,i),getLinearBrushOtherExtent:nH(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(mJ(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,A=Y(n,function(o){return[i.coordToData(o.range[0],!0),i.coordToData(o.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:A})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(de);function yJ(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function mJ(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function wJ(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var BJ={type:"axisAreaSelect",event:"axisAreaSelected"};function _J(r){r.registerAction(BJ,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var CJ={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function iH(r){r.registerComponentView(K$),r.registerComponentModel(W$),r.registerCoordinateSystem("parallel",tJ),r.registerPreprocessor(k$),r.registerComponentModel(Lw),r.registerComponentView(gJ),Ys(r,"parallel",Lw,CJ),_J(r)}function SJ(r){Qt(iH),r.registerChartView(L$),r.registerSeriesModel(U$),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,O$)}var xJ=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),bJ=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new xJ},t.prototype.buildPath=function(e,n){var a=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){Ya(this)},t.prototype.downplay=function(){Za(this)},t}(Mt),TJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,a){var i=this,A=e.getGraph(),o=this.group,s=e.layoutInfo,l=s.width,u=s.height,f=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=s.x,o.y=s.y,A.eachEdge(function(v){var d=new bJ,p=St(d);p.dataIndex=v.dataIndex,p.seriesIndex=e.seriesIndex,p.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),w=v.node1.getLayout(),_=v.node1.getModel(),B=_.get("localX"),C=_.get("localY"),x=v.node2.getLayout(),S=v.node2.getModel(),b=S.get("localX"),T=S.get("localY"),F=v.getLayout(),E,D,L,M,R,P,O,G;d.shape.extent=Math.max(1,F.dy),d.shape.orient=h,h==="vertical"?(E=(B!=null?B*l:w.x)+F.sy,D=(C!=null?C*u:w.y)+w.dy,L=(b!=null?b*l:x.x)+F.ty,M=T!=null?T*u:x.y,R=E,P=D*(1-m)+M*m,O=L,G=D*m+M*(1-m)):(E=(B!=null?B*l:w.x)+w.dx,D=(C!=null?C*u:w.y)+F.sy,L=b!=null?b*l:x.x,M=(T!=null?T*u:x.y)+F.ty,R=E*(1-m)+L*m,P=D,O=E*m+L*(1-m),G=M),d.setShape({x1:E,y1:D,x2:L,y2:M,cpx1:R,cpy1:P,cpx2:O,cpy2:G}),d.useStyle(y.getItemStyle()),tF(d.style,h,v);var X=""+g.get("value"),J=ke(g,"edgeLabel");qe(d,J,{labelFetcher:{getFormattedLabel:function(Bt,_t,N,z,$,q){return e.getFormattedLabel(Bt,_t,"edge",z,ha($,J.normal&&J.normal.get("formatter"),X),q)}},labelDataIndex:v.dataIndex,defaultText:X}),d.setTextConfig({position:"inside"});var At=g.getModel("emphasis");Je(d,g,"lineStyle",function(Bt){var _t=Bt.getItemStyle();return tF(_t,h,v),_t}),o.add(d),c.setItemGraphicEl(v.dataIndex,d);var lt=At.get("focus");ye(d,lt==="adjacency"?v.getAdjacentDataIndices():lt==="trajectory"?v.getTrajectoryDataIndices():lt,At.get("blurScope"),At.get("disabled"))}),A.eachNode(function(v){var d=v.getLayout(),p=v.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),w=p.get(["itemStyle","borderRadius"])||0,_=new Nt({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:w},style:p.getModel("itemStyle").getItemStyle(),z2:10});qe(_,ke(p),{labelFetcher:{getFormattedLabel:function(C,x){return e.getFormattedLabel(C,x,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),Je(_,p),o.add(_),f.setItemGraphicEl(v.dataIndex,_),St(_).dataType="node";var B=m.get("focus");ye(_,B==="adjacency"?v.getAdjacentDataIndices():B==="trajectory"?v.getTrajectoryDataIndices():B,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(v,d){var p=f.getItemModel(d);p.get("draggable")&&(v.drift=function(g,y){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&e.isAnimationEnabled()&&o.setClipPath(IJ(o.getBoundingRect(),e,function(){o.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(te);function tF(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),a=e.node2.getVisual("color");nt(n)&&nt(a)&&(r.fill=new Wf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function IJ(r,t,e){var n=new Nt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ue(n,{shape:{width:r.width+20}},t,e),n}var FJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var a=e.edges||e.links,i=e.data||e.nodes,A=e.levels;this.levelModels=[];for(var o=this.levelModels,s=0;s=0&&(o[A[s].depth]=new Yt(A[s],this,n));if(i&&a){var l=NR(i,a,this,!0,u);return l.data}function u(f,c){f.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getData().getItemLayout(v);if(p){var g=p.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getGraph().getEdgeByIndex(v),g=p.node1.getLayout();if(g){var y=g.depth,m=d.levelModels[y];m&&(h.parentModel=m)}return h})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var A=this.getDataParams(e,a),o=A.data,s=A.value,l=o.source+" -- "+o.target;return Ne("nameValue",{name:l,value:s,noValue:i(s)})}else{var u=this.getGraph().getNodeByIndex(e),f=u.getLayout().value,c=this.getDataParams(e,a).data.name;return Ne("nameValue",{name:c!=null?c+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),A=i.getLayout().value;a.value=A}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(se);function EJ(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=DJ(e,t);e.layoutInfo=i;var A=i.width,o=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;QJ(l);var f=Jt(l,function(d){return d.getLayout().value===0}),c=f.length!==0?0:e.get("layoutIterations"),h=e.get("orient"),v=e.get("nodeAlign");LJ(l,u,n,a,A,o,c,h,v)})}function DJ(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function LJ(r,t,e,n,a,i,A,o,s){MJ(r,t,e,a,i,o,s),HJ(r,t,i,a,n,A,o),XJ(r,o)}function QJ(r){I(r,function(t){var e=Wi(t.outEdges,fd),n=Wi(t.inEdges,fd),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function MJ(r,t,e,n,a,i,A){for(var o=[],s=[],l=[],u=[],f=0,c=0;c=0;g&&p.depth>h&&(h=p.depth),d.setLayout({depth:g?p.depth:f},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var y=0;yf-1?h:f-1;A&&A!=="left"&&UJ(r,A,i,C);var x=i==="vertical"?(a-e)/C:(n-e)/C;RJ(r,x,i)}function AH(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function UJ(r,t,e,n){if(t==="right"){for(var a=[],i=r,A=0;i.length;){for(var o=0;o0;i--)s*=.99,NJ(o,s,A),em(o,a,e,n,A),WJ(o,s,A),em(o,a,e,n,A)}function OJ(r,t){var e=[],n=t==="vertical"?"y":"x",a=H0(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,A){return i-A}),I(a.keys,function(i){e.push(a.buckets.get(i))}),e}function kJ(r,t,e,n,a,i){var A=1/0;I(r,function(o){var s=o.length,l=0;I(o,function(f){l+=f.getLayout().value});var u=i==="vertical"?(n-(s-1)*a)/l:(e-(s-1)*a)/l;u0&&(o=s.getLayout()[i]+l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]+s.getLayout()[c]+t;var v=a==="vertical"?n:e;if(l=u-t-v,l>0){o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(var h=f-2;h>=0;--h)s=A[h],l=s.getLayout()[i]+s.getLayout()[c]+t-u,l>0&&(o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]}})}function NJ(r,t,e){I(r.slice().reverse(),function(n){I(n,function(a){if(a.outEdges.length){var i=Wi(a.outEdges,VJ,e)/Wi(a.outEdges,fd);if(isNaN(i)){var A=a.outEdges.length;i=A?Wi(a.outEdges,GJ,e)/A:0}if(e==="vertical"){var o=a.getLayout().x+(i-nA(a,e))*t;a.setLayout({x:o},!0)}else{var s=a.getLayout().y+(i-nA(a,e))*t;a.setLayout({y:s},!0)}}})})}function VJ(r,t){return nA(r.node2,t)*r.getValue()}function GJ(r,t){return nA(r.node2,t)}function KJ(r,t){return nA(r.node1,t)*r.getValue()}function zJ(r,t){return nA(r.node1,t)}function nA(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function fd(r){return r.getValue()}function Wi(r,t,e){for(var n=0,a=r.length,i=-1;++iA&&(A=s)}),I(n,function(o){var s=new He({type:"color",mappingMethod:"linear",dataExtent:[i,A],visual:t.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}a.length&&I(a,function(o){var s=o.getModel().get("lineStyle");o.setVisual("style",s)})})}function ZJ(r){r.registerChartView(TJ),r.registerSeriesModel(FJ),r.registerLayout(EJ),r.registerVisual(YJ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var oH=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),A=a.get("type"),o=i.get("type"),s;A==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),s=!0):o==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u=t.layout==="horizontal"?0:1,f=this._baseAxisDim=l[u],c=l[1-u],h=[a,i],v=h[u].get("type"),d=h[1-u].get("type"),p=t.data;if(p&&s){var g=[];I(p,function(w,_){var B;K(w)?(B=w.slice(),w.unshift(_)):K(w.value)?(B=V({},w),B.value=B.value.slice(),w.value.unshift(_)):B=w,g.push(B)}),t.data=g}var y=this.defaultValueDimensions,m=[{name:f,type:td(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:td(d),dimsDef:y.slice()}];return pl(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:bt(OU,m,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),sH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(se);Ee(sH,oH,!0);var $J=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this.group,o=this._data;this._data||A.removeAll();var s=e.get("layout")==="horizontal"?1:0;i.diff(o).add(function(l){if(i.hasValue(l)){var u=i.getItemLayout(l),f=eF(u,i,l,s,!0);i.setItemGraphicEl(l,f),A.add(f)}}).update(function(l,u){var f=o.getItemGraphicEl(u);if(!i.hasValue(l)){A.remove(f);return}var c=i.getItemLayout(l);f?(Vn(f),lH(c,f,i,l)):f=eF(c,i,l,s),A.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&A.remove(u)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(te),JJ=function(){function r(){}return r}(),qJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new JJ},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();id){var w=[g,m];n.push(w)}}}return{boxData:e,outliers:n}}var iq={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==ur){var n="";Xt(n)}var a=aq(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Aq(r){r.registerSeriesModel(sH),r.registerChartView($J),r.registerLayout(tq),r.registerTransform(iq)}var oq=["color","borderColor"],sq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){lA(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,A=n.getLayout("isSimpleBox"),o=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),n.diff(a).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u);if(o&&rF(l,f))return;var c=rm(f,u,!0);ue(c,{shape:{points:f.ends}},e,u),nm(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}}).update(function(u,f){var c=a.getItemGraphicEl(f);if(!n.hasValue(u)){i.remove(c);return}var h=n.getItemLayout(u);if(o&&rF(l,h)){i.remove(c);return}c?(zt(c,{shape:{points:h.ends}},e,u),Vn(c)):c=rm(h),nm(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}).remove(function(u){var f=a.getItemGraphicEl(u);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),nF(e,this.group);var n=e.get("clip",!0)?ec(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),A;(A=e.next())!=null;){var o=a.getItemLayout(A),s=rm(o);nm(s,a,A,i),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},t.prototype._incrementalRenderLarge=function(e,n){nF(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(te),lq=function(){function r(){}return r}(),uq=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new lq},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Mt);function rm(r,t,e){var n=r.ends;return new uq({shape:{points:e?fq(n,r):n},z2:100})}function rF(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(oq);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var uH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(se);Ee(uH,oH,!0);function hq(r){!r||!K(r.series)||I(r.series,function(t){yt(t)&&t.type==="k"&&(t.type="candlestick")})}var vq=["itemStyle","borderColor"],dq=["itemStyle","borderColor0"],pq=["itemStyle","borderColorDoji"],gq=["itemStyle","color"],yq=["itemStyle","color0"],mq={seriesType:"candlestick",plan:cl(),performRawSeries:!0,reset:function(r,t){function e(i,A){return A.get(i>0?gq:yq)}function n(i,A){return A.get(i===0?pq:i>0?vq:dq)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,A){for(var o;(o=i.next())!=null;){var s=A.getItemModel(o),l=A.getItemLayout(o).sign,u=s.getItemStyle();u.fill=e(l,s),u.stroke=n(l,s)||u.fill;var f=A.ensureUniqueItemVisual(o,"style");V(f,u)}}}}}},wq={seriesType:"candlestick",plan:cl(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=Bq(r,e),a=0,i=1,A=["x","y"],o=e.getDimensionIndex(e.mapDimension(A[a])),s=Y(e.mapDimensionsAll(A[i]),e.getDimensionIndex,e),l=s[0],u=s[1],f=s[2],c=s[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),o<0||s.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,p){for(var g,y=p.getStore();(g=d.next())!=null;){var m=y.get(o,g),w=y.get(l,g),_=y.get(u,g),B=y.get(f,g),C=y.get(c,g),x=Math.min(w,_),S=Math.max(w,_),b=R(x,m),T=R(S,m),F=R(B,m),E=R(C,m),D=[];P(D,T,0),P(D,b,1),D.push(G(E),G(T),G(F),G(b));var L=p.getItemModel(g),M=!!L.get(["itemStyle","borderColorDoji"]);p.setItemLayout(g,{sign:aF(y,g,w,_,u,M),initBaseline:w>_?T[i]:b[i],ends:D,brushRect:O(B,C,m)})}function R(X,J){var At=[];return At[a]=J,At[i]=X,isNaN(J)||isNaN(X)?[NaN,NaN]:t.dataToPoint(At)}function P(X,J,At){var lt=J.slice(),Bt=J.slice();lt[a]=av(lt[a]+n/2,1,!1),Bt[a]=av(Bt[a]-n/2,1,!0),At?X.push(lt,Bt):X.push(Bt,lt)}function O(X,J,At){var lt=R(X,At),Bt=R(J,At);return lt[a]-=n/2,Bt[a]-=n/2,{x:lt[0],y:lt[1],width:n,height:Bt[1]-lt[1]}}function G(X){return X[a]=av(X[a],1),X}}function v(d,p){for(var g=la(d.count*4),y=0,m,w=[],_=[],B,C=p.getStore(),x=!!r.get(["itemStyle","borderColorDoji"]);(B=d.next())!=null;){var S=C.get(o,B),b=C.get(l,B),T=C.get(u,B),F=C.get(f,B),E=C.get(c,B);if(isNaN(S)||isNaN(F)||isNaN(E)){g[y++]=NaN,y+=3;continue}g[y++]=aF(C,B,b,T,u,x),w[a]=S,w[i]=F,m=t.dataToPoint(w,null,_),g[y++]=m?m[0]:NaN,g[y++]=m?m[1]:NaN,w[i]=E,m=t.dataToPoint(w,null,_),g[y++]=m?m[1]:NaN}p.setLayout("largePoints",g)}}};function aF(r,t,e,n,a,i){var A;return e>n?A=-1:e0?r.get(a,t-1)<=n?1:-1:1,A}function Bq(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=et(xt(r.get("barMaxWidth"),a),a),A=et(xt(r.get("barMinWidth"),1),a),o=r.get("barWidth");return o!=null?et(o,a):Math.max(Math.min(a/2,i),A)}function _q(r){r.registerChartView(sq),r.registerSeriesModel(uH),r.registerPreprocessor(hq),r.registerVisual(mq),r.registerLayout(wq)}function iF(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var Cq=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=new jf(e,n),A=new Ct;return a.add(i),a.add(A),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,A=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/u*1e3),o!==this._period||s!==this._loop||l!==this._roundTrip){i.stopAnimation();var c=void 0;vt(f)?c=f(a):c=f,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,s,l)}this._period=o,this._loop=s,this._roundTrip=l}},t.prototype._animateSymbol=function(e,n,a,i,A){if(n>0){e.__t=0;var o=this,s=e.animate("",i).when(A?n*2:n,{__t:A?2:1}).delay(a).during(function(){o._updateSymbolPosition(e)});i||s.done(function(){o.remove(e)}),s.start()}},t.prototype._getLineLength=function(e){return Di(e.__p1,e.__cp1)+Di(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,A=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],s=o.slice(),l=Ge,u=C0;o[0]=l(n[0],i[0],a[0],A),o[1]=l(n[1],i[1],a[1],A);var f=e.__t<1?u(n[0],i[0],a[0],A):u(a[0],i[0],n[0],1-A),c=e.__t<1?u(n[1],i[1],a[1],A):u(a[1],i[1],n[1],1-A);e.rotation=-Math.atan2(c,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[s]<=n);s--);s=Math.min(s,A-2)}else{for(s=o;sn);s++);s=Math.min(s-1,A-2)}var u=(n-i[s])/(i[s+1]-i[s]),f=a[s],c=a[s+1];e.x=f[0]*(1-u)+u*c[0],e.y=f[1]*(1-u)+u*c[1];var h=e.__t<1?c[0]-f[0]:f[0]-c[0],v=e.__t<1?c[1]-f[1]:f[1]-c[1];e.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=n,e.ignore=!1}},t}(fH),Iq=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),Fq=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Iq},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,A;if(n.polyline)for(A=this._off;A0){e.moveTo(a[A++],a[A++]);for(var s=1;s0){var h=(l+f)/2-(u-c)*i,v=(u+c)/2-(f-l)*i;e.quadraticCurveTo(h,v,f,c)}else e.lineTo(f,c)}this.incremental&&(this._off=A,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,A=a.curveness,o=this.style.lineWidth;if(a.polyline)for(var s=0,l=0;l0)for(var f=i[l++],c=i[l++],h=1;h0){var p=(f+v)/2-(c-d)*A,g=(c+d)/2-(v-f)*A;if(OM(f,c,p,g,v,d,o,e,n))return s}else if(bi(f,c,v,d,o,e,n))return s;s++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.segs,i=1/0,A=1/0,o=-1/0,s=-1/0,l=0;l0&&(A.dataIndex=s+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),hH={seriesType:"lines",plan:cl(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var A=[];if(n){var o=void 0,s=a.end-a.start;if(e){for(var l=0,u=a.start;u0&&(u||l.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),A.updateData(i);var f=e.get("clip",!0)&&ec(e.coordinateSystem,!1,e);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateLineDraw(i,e);A.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,a){var i=e.getData(),A=e.pipelineContext;if(!this._finished||A.large||A.progressiveRender)return{update:!0};var o=hH.reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),A=!!n.get("polyline"),o=n.pipelineContext,s=o.large;return(!a||i!==this._hasEffet||A!==this._isPolyline||s!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=s?new Eq:new CC(A?i?Tq:cH:i?fH:_C),this._hasEffet=i,this._isPolyline=A,this._isLargeDraw=s),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(te),Lq=typeof Uint32Array>"u"?Array:Uint32Array,Qq=typeof Float64Array>"u"?Array:Float64Array;function AF(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),e_([a,e[0],e[1]])}))}var Mq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],AF(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(AF(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Ev(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Ev(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],A=0;A ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(se);function fh(r){return r instanceof Array||(r=[r,r]),r}var Uq={seriesType:"lines",reset:function(r){var t=fh(r.get("symbol")),e=fh(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function a(i,A){var o=i.getItemModel(A),s=fh(o.getShallow("symbol",!0)),l=fh(o.getShallow("symbolSize",!0));s[0]&&i.setItemVisual(A,"fromSymbol",s[0]),s[1]&&i.setItemVisual(A,"toSymbol",s[1]),l[0]&&i.setItemVisual(A,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(A,"toSymbolSize",l[1])}return{dataEach:n.hasItemOption?a:null}}};function Pq(r){r.registerChartView(Dq),r.registerSeriesModel(Mq),r.registerLayout(hH),r.registerVisual(Uq)}var Rq=256,Hq=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=qi.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,A){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,f=this.canvas,c=f.getContext("2d"),h=t.length;f.width=e,f.height=n;for(var v=0;v0){var F=A(m)?s:l;m>0&&(m=m*b+x),_[B++]=F[T],_[B++]=F[T+1],_[B++]=F[T+2],_[B++]=F[T+3]*m*256}else B+=4}return c.putImageData(w,0,0),f},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=qi.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],A=0,o=0;o<256;o++)t[e](o/255,!0,i),a[A++]=i[0],a[A++]=i[1],a[A++]=i[2],a[A++]=i[3];return a},r}();function Oq(r,t,e){var n=r[1]-r[0];t=Y(t,function(A){return{interval:[(A.interval[0]-r[0])/n,(A.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(A){var o;for(o=i;o=0;o--){var s=t[o].interval;if(s[0]<=A&&A<=s[1]){i=o;break}}return o>=0&&o=t[0]&&n<=t[1]}}function oF(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Nq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i;n.eachComponent("visualMap",function(o){o.eachTargetSeries(function(s){s===e&&(i=o)})}),this._progressiveEls=null,this.group.removeAll();var A=e.coordinateSystem;A.type==="cartesian2d"||A.type==="calendar"?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):oF(A)&&this._renderOnGeo(A,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var A=n.coordinateSystem;A&&(oF(A)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){lA(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,a,i,A){var o=e.coordinateSystem,s=Po(o,"cartesian2d"),l,u,f,c;if(s){var h=o.getAxis("x"),v=o.getAxis("y");l=h.getBandWidth()+.5,u=v.getBandWidth()+.5,f=h.scale.getExtent(),c=v.scale.getExtent()}for(var d=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),w=e.get(["itemStyle","borderRadius"]),_=ke(e),B=e.getModel("emphasis"),C=B.get("focus"),x=B.get("blurScope"),S=B.get("disabled"),b=s?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],T=a;Tf[1]||Lc[1])continue;var M=o.dataToPoint([D,L]);F=new Nt({shape:{x:M[0]-l/2,y:M[1]-u/2,width:l,height:u},style:E})}else{if(isNaN(p.get(b[1],T)))continue;F=new Nt({z2:1,shape:o.dataToRect([p.get(b[0],T)]).contentShape,style:E})}if(p.hasItemOption){var R=p.getItemModel(T),P=R.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=R.getModel(["blur","itemStyle"]).getItemStyle(),m=R.getModel(["select","itemStyle"]).getItemStyle(),w=R.get(["itemStyle","borderRadius"]),C=P.get("focus"),x=P.get("blurScope"),S=P.get("disabled"),_=ke(R)}F.shape.r=w;var O=e.getRawValue(T),G="-";O&&O[2]!=null&&(G=O[2]+""),qe(F,_,{labelFetcher:e,labelDataIndex:T,defaultOpacity:E.opacity,defaultText:G}),F.ensureState("emphasis").style=g,F.ensureState("blur").style=y,F.ensureState("select").style=m,ye(F,C,x,S),F.incremental=A,A&&(F.states.emphasis.hoverLayer=!0),d.add(F),p.setItemGraphicEl(T,F),this._progressiveEls&&this._progressiveEls.push(F)}},t.prototype._renderOnGeo=function(e,n,a,i){var A=a.targetVisuals.inRange,o=a.targetVisuals.outOfRange,s=n.getData(),l=this._hmLayer||this._hmLayer||new Hq;l.blurSize=n.get("blurSize"),l.pointSize=n.get("pointSize"),l.minOpacity=n.get("minOpacity"),l.maxOpacity=n.get("maxOpacity");var u=e.getViewRect().clone(),f=e.getRoamTransform();u.applyTransform(f);var c=Math.max(u.x,0),h=Math.max(u.y,0),v=Math.min(u.width+u.x,i.getWidth()),d=Math.min(u.height+u.y,i.getHeight()),p=v-c,g=d-h,y=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],m=s.mapArray(y,function(C,x,S){var b=e.dataToPoint([C,x]);return b[0]-=c,b[1]-=h,b.push(S),b}),w=a.getExtent(),_=a.type==="visualMap.continuous"?kq(w,a.option.range):Oq(w,a.getPieceList(),a.option.selected);l.update(m,p,g,A.color.getNormalizer(),{inRange:A.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var B=new ze({style:{width:p,height:g,x:c,y:h,image:l.canvas},silent:!0});this.group.add(B)},t.type="heatmap",t}(te),Vq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ai(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Zf.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(se);function Gq(r){r.registerChartView(Nq),r.registerSeriesModel(Vq)}var Kq=["itemStyle","borderWidth"],sF=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Am=new ni,zq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,A=e.getData(),o=this._data,s=e.coordinateSystem,l=s.getBaseAxis(),u=l.isHorizontal(),f=s.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:u,valueDim:sF[+u],categoryDim:sF[1-+u]};A.diff(o).add(function(v){if(A.hasValue(v)){var d=uF(A,v),p=lF(A,v,d,c),g=fF(A,c,p);A.setItemGraphicEl(v,g),i.add(g),hF(g,c,p)}}).update(function(v,d){var p=o.getItemGraphicEl(d);if(!A.hasValue(v)){i.remove(p);return}var g=uF(A,v),y=lF(A,v,g,c),m=mH(A,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),A.setItemGraphicEl(v,null),p=null),p?qq(p,c,y):p=fF(A,c,y,!0),A.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),hF(p,c,y)}).remove(function(v){var d=o.getItemGraphicEl(v);d&&cF(o,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=e.get("clip",!0)?ec(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=A,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(A){cF(i,St(A).dataIndex,e,A)}):a.removeAll()},t.type="pictorialBar",t}(te);function lF(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),A=e.get("symbolClip"),o=e.get("symbolPosition")||"start",s=e.get("symbolRotate"),l=(s||0)*Math.PI/180||0,u=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),c={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:A,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};Wq(e,i,a,n,c),Xq(r,t,a,i,A,c.boundingLength,c.pxSign,u,n,c),Yq(e,c.symbolScale,l,n,c);var h=c.symbolSize,v=Mo(e.get("symbolOffset"),h);return Zq(e,h,a,i,A,v,o,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function Wq(r,t,e,n,a){var i=n.valueDim,A=r.get("symbolBoundingData"),o=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),s=o.toGlobalCoord(o.dataToCoord(0)),l=1-+(e[i.wh]<=0),u;if(K(A)){var f=[om(o,A[0])-s,om(o,A[1])-s];f[1]0?1:-1}function om(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function Xq(r,t,e,n,a,i,A,o,s,l){var u=s.valueDim,f=s.categoryDim,c=Math.abs(e[f.wh]),h=r.getItemVisual(t,"symbolSize"),v;K(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=et(v[f.index],c),v[u.index]=et(v[u.index],n?c:Math.abs(i)),l.symbolSize=v;var d=l.symbolScale=[v[0]/o,v[1]/o];d[u.index]*=(s.isHorizontal?-1:1)*A}function Yq(r,t,e,n,a){var i=r.get(Kq)||0;i&&(Am.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Am.updateTransform(),i/=Am.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function Zq(r,t,e,n,a,i,A,o,s,l,u,f){var c=u.categoryDim,h=u.valueDim,v=f.pxSign,d=Math.max(t[h.index]+o,0),p=d;if(n){var g=Math.abs(s),y=Ke(r.get("symbolMargin"),"15%")+"",m=!1;y.lastIndexOf("!")===y.length-1&&(m=!0,y=y.slice(0,y.length-1));var w=et(y,t[h.index]),_=Math.max(d+w*2,0),B=m?0:w*2,C=xM(n),x=C?n:vF((g+B)/_),S=g-x*d;w=S/2/(m?x:Math.max(x-1,1)),_=d+w*2,B=m?0:w*2,!C&&n!=="fixed"&&(x=l?vF((Math.abs(l)+B)/_):0),p=x*_-B,f.repeatTimes=x,f.symbolMargin=w}var b=v*(p/2),T=f.pathPosition=[];T[c.index]=e[c.wh]/2,T[h.index]=A==="start"?b:A==="end"?s-b:s/2,i&&(T[0]+=i[0],T[1]+=i[1]);var F=f.bundlePosition=[];F[c.index]=e[c.xy],F[h.index]=e[h.xy];var E=f.barRectShape=V({},e);E[h.wh]=v*Math.max(Math.abs(e[h.wh]),Math.abs(T[h.index]+b)),E[c.wh]=e[c.wh];var D=f.clipShape={};D[c.xy]=-e[c.xy],D[c.wh]=u.ecSize[c.wh],D[h.xy]=0,D[h.wh]=e[h.wh]}function vH(r){var t=r.symbolPatternSize,e=Fe(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function dH(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,A=e.valueLineWidth,o=e.pathPosition,s=t.valueDim,l=e.repeatTimes||0,u=0,f=i[t.valueDim.index]+A+e.symbolMargin*2;for(DC(r,function(d){d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=l,u0:g<0)&&(y=l-1-d),p[s.index]=f*(y-l/2+.5)+o[s.index],{x:p[0],y:p[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function pH(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Rs(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=vH(e),a.add(i),Rs(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function gH(r,t,e){var n=V({},t.barRectShape),a=r.__pictorialBarRect;a?Rs(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new Nt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function yH(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=V({},e.clipShape),A=t.valueDim,o=e.animationModel,s=e.dataIndex;if(a)zt(a,{shape:i},o,s);else{i[A.wh]=0,a=new Nt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var l={};l[A.wh]=e.clipShape[A.wh],Qo[n?"updateProps":"initProps"](a,{shape:l},o,s)}}}function uF(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=$q,e.isAnimationEnabled=Jq,e}function $q(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Jq(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function fF(r,t,e,n){var a=new Ct,i=new Ct;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?dH(a,t,e):pH(a,t,e),gH(a,e,n),yH(a,t,e,n),a.__pictorialShapeStr=mH(r,e),a.__pictorialSymbolMeta=e,a}function qq(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;zt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?dH(r,t,e,!0):pH(r,t,e,!0),gH(r,e,!0),yH(r,t,e,!0)}function cF(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];DC(n,function(A){i.push(A)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),I(i,function(A){tA(A,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function mH(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function DC(r,t,e){I(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Rs(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&Qo[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function hF(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),A=i.getModel("itemStyle").getItemStyle(),o=a.getModel(["blur","itemStyle"]).getItemStyle(),s=a.getModel(["select","itemStyle"]).getItemStyle(),l=a.getShallow("cursor"),u=i.get("focus"),f=i.get("blurScope"),c=i.get("scale");DC(r,function(d){if(d instanceof ze){var p=d.style;d.useStyle(V({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},e.style))}else d.useStyle(e.style);var g=d.ensureState("emphasis");g.style=A,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=o,d.ensureState("select").style=s,l&&(d.cursor=l),d.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,qe(v,ke(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Xs(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),ye(r,u,f,i.get("disabled"))}function vF(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var jq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=uA(xf.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(xf);function tj(r){r.registerChartView(zq),r.registerSeriesModel(jq),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,bt(rP,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nP("pictorialBar"))}var ej=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this,o=this.group,s=e.getLayerSeries(),l=i.getLayout("layoutInfo"),u=l.rect,f=l.boundaryGap;o.x=0,o.y=u.y+f[0];function c(p){return p.name}var h=new $a(this._layersSeries||[],s,c,c),v=[];h.add(it(d,this,"add")).update(it(d,this,"update")).remove(it(d,this,"remove")).execute();function d(p,g,y){var m=A._layers;if(p==="remove"){o.remove(m[g]);return}for(var w=[],_=[],B,C=s[g].indices,x=0;xi&&(i=o),n.push(o)}for(var l=0;li&&(i=f)}return{y0:a,max:i}}function Aj(r){r.registerChartView(ej),r.registerSeriesModel(nj),r.registerLayout(aj),r.registerProcessor(nc("themeRiver"))}var oj=2,sj=4,pF=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;A.z2=oj,A.textConfig={inside:!0},St(A).seriesIndex=n.seriesIndex;var o=new Gt({z2:sj,silent:e.getModel().get(["label","silent"])});return A.setTextContent(o),A.updateData(!0,e,n,a,i),A}return t.prototype.updateData=function(e,n,a,i,A){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var o=this;St(o).dataIndex=n.dataIndex;var s=n.getModel(),l=s.getModel("emphasis"),u=n.getLayout(),f=V({},u);f.label=null;var c=n.getVisual("style");c.lineJoin="bevel";var h=n.getVisual("decal");h&&(c.decal=zs(h,A));var v=Ao(s.getModel("itemStyle"),f,!0);V(f,v),I(Sr,function(y){var m=o.ensureState(y),w=s.getModel([y,"itemStyle"]);m.style=w.getItemStyle();var _=Ao(w,f);_&&(m.shape=_)}),e?(o.setShape(f),o.shape.r=u.r0,ue(o,{shape:{r:u.r}},a,n.dataIndex)):(zt(o,{shape:f},a),Vn(o)),o.useStyle(c),this._updateLabel(a);var d=s.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=l.get("focus"),g=p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;ye(this,g,l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.getModel("label"),A=this.node.getLayout(),o=A.endAngle-A.startAngle,s=(A.startAngle+A.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=this,c=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(v!=null&&Math.abs(o)D&&!ff(M-D)&&M0?(A.virtualPiece?A.virtualPiece.updateData(!1,y,e,n,a):(A.virtualPiece=new pF(y,e,n,a),u.add(A.virtualPiece)),m.piece.off("click"),A.virtualPiece.on("click",function(w){A._rootToNode(m.parentNode)})):A.virtualPiece&&(u.remove(A.virtualPiece),A.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(A){if(!a&&A.piece&&A.piece===n.target){var o=A.getModel().get("nodeClick");if(o==="rootToNode")e._rootToNode(A);else if(o==="link"){var s=A.getModel(),l=s.get("link");if(l){var u=s.get("target",!0)||"_blank";Wv(l,u)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Hw,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var A=e[0]-i.cx,o=e[1]-i.cy,s=Math.sqrt(A*A+o*o);return s<=i.r&&s>=i.r0}},t.type="sunburst",t}(te),cj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};wH(a);var i=this._levelModels=Y(e.levels||[],function(s){return new Yt(s,this,n)},this),A=pC.createTree(a,this,o);function o(s){s.wrapMethod("getItemModel",function(l,u){var f=A.getNodeByDataIndex(u),c=i[f.depth];return c&&(l.parentModel=c),l})}return A.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Dp(a,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){xR(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(se);function wH(r){var t=0;I(r.children,function(n){wH(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}var yF=Math.PI/180;function hj(r,t,e){t.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");K(i)||(i=[0,i]),K(a)||(a=[a,a]);var A=e.getWidth(),o=e.getHeight(),s=Math.min(A,o),l=et(a[0],A),u=et(a[1],o),f=et(i[0],s/2),c=et(i[1],s/2),h=-n.get("startAngle")*yF,v=n.get("minAngle")*yF,d=n.getData().tree.root,p=n.getViewRoot(),g=p.depth,y=n.get("sort");y!=null&&BH(p,y);var m=0;I(p.children,function(M){!isNaN(M.getValue())&&m++});var w=p.getValue(),_=Math.PI/(w||m)*2,B=p.depth>0,C=p.height-(B?-1:1),x=(c-f)/(C||1),S=n.get("clockwise"),b=n.get("stillShowZeroSum"),T=S?1:-1,F=function(M,R){if(M){var P=R;if(M!==d){var O=M.getValue(),G=w===0&&b?_:O*_;G1;)A=A.parentNode;var o=a.getColorFromPalette(A.name||A.dataIndex+"",t);return n.depth>1&&nt(o)&&(o=b0(o,(n.depth-1)/(i-1)*.5)),o}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(A){var o=A.getModel(),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e(A,n,i.root.height));var l=a.ensureUniqueItemVisual(A.dataIndex,"style");V(l,s)})})}function pj(r){r.registerChartView(fj),r.registerSeriesModel(cj),r.registerLayout(bt(hj,"sunburst")),r.registerProcessor(bt(nc,"sunburst")),r.registerVisual(dj),uj(r)}var mF={color:"fill",borderColor:"stroke"},gj={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Va=Vt(),yj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return ai(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=Va(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(se);function mj(r,t){return t=t||[0,0],Y(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],A=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-A)-a.dataToCoord(i+A))},this)}function wj(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(mj,r)}}}function Bj(r,t){return t=t||[0,0],Y([0,1],function(e){var n=t[e],a=r[e]/2,i=[],A=[];return i[e]=n-a,A[e]=n+a,i[1-e]=A[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(A)[e])},this)}function _j(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:it(Bj,r)}}}function Cj(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function Sj(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(Cj,r)}}}function xj(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),A=t[n],o=r[n]/2,s=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(A-o)-i.dataToCoord(A+o));return e==="Angle"&&(s=s*Math.PI/180),s},this)}function bj(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),A=e.dataToAngle(a[1]),o=r.coordToPoint([i,A]);return o.push(i,A*Math.PI/180),o},size:it(xj,r)}}}function Tj(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}function _H(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function CH(r,t,e){var n=r,a,i,A;if(t==="text")A=n;else{A={},st(n,"text")&&(A.text=n.text),st(n,"rich")&&(A.rich=n.rich),st(n,"textFill")&&(A.fill=n.textFill),st(n,"textStroke")&&(A.stroke=n.textStroke),st(n,"fontFamily")&&(A.fontFamily=n.fontFamily),st(n,"fontSize")&&(A.fontSize=n.fontSize),st(n,"fontStyle")&&(A.fontStyle=n.fontStyle),st(n,"fontWeight")&&(A.fontWeight=n.fontWeight),i={type:"text",style:A,silent:!0},a={};var o=st(n,"textPosition");e?a.position=o?n.textPosition:"inside":o&&(a.position=n.textPosition),st(n,"textPosition")&&(a.position=n.textPosition),st(n,"textOffset")&&(a.offset=n.textOffset),st(n,"textRotation")&&(a.rotation=n.textRotation),st(n,"textDistance")&&(a.distance=n.textDistance)}return wF(A,r),I(A.rich,function(s){wF(s,s)}),{textConfig:a,textContent:i}}function wF(r,t){t&&(t.font=t.textFont||t.font,st(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),st(t,"textAlign")&&(r.align=t.textAlign),st(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),st(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),st(t,"textWidth")&&(r.width=t.textWidth),st(t,"textHeight")&&(r.height=t.textHeight),st(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),st(t,"textPadding")&&(r.padding=t.textPadding),st(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),st(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),st(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),st(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),st(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),st(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),st(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function BF(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";_F(n,t);var A=n.textFill==null;return a?A&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(A&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,I(t.rich,function(o){_F(o,o)}),n}function _F(r,t){t&&(st(t,"fill")&&(r.textFill=t.fill),st(t,"stroke")&&(r.textStroke=t.fill),st(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),st(t,"font")&&(r.font=t.font),st(t,"fontStyle")&&(r.fontStyle=t.fontStyle),st(t,"fontWeight")&&(r.fontWeight=t.fontWeight),st(t,"fontSize")&&(r.fontSize=t.fontSize),st(t,"fontFamily")&&(r.fontFamily=t.fontFamily),st(t,"align")&&(r.textAlign=t.align),st(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),st(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),st(t,"width")&&(r.textWidth=t.width),st(t,"height")&&(r.textHeight=t.height),st(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),st(t,"padding")&&(r.textPadding=t.padding),st(t,"borderColor")&&(r.textBorderColor=t.borderColor),st(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),st(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),st(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),st(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),st(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),st(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),st(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),st(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),st(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),st(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var SH={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},CF=Ot(SH);da(ga,function(r,t){return r[t]=1,r},{});ga.join(", ");var cd=["","style","shape","extra"],$s=Vt();function LC(r,t,e,n,a){var i=r+"Animation",A=il(r,n,a)||{},o=$s(t).userDuring;return A.duration>0&&(A.during=o?it(Lj,{el:t,userDuring:o}):null,A.setToFinal=!0,A.scope=r),V(A,e[i]),A}function uv(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,A=n.clearStyle,o=e.isAnimationEnabled(),s=$s(r),l=t.style;s.userDuring=t.during;var u={},f={};if(Mj(r,t,f),xF("shape",t,f),xF("extra",t,f),!i&&o&&(Qj(r,t,u),SF("shape",r,t,u),SF("extra",r,t,u),Uj(r,t,l,u)),f.style=l,Ij(r,f,A),Ej(r,t),o)if(i){var c={};I(cd,function(v){var d=v?t[v]:t;d&&d.enterFrom&&(v&&(c[v]=c[v]||{}),V(v?c[v]:c,d.enterFrom))});var h=LC("enter",r,t,e,a);h.duration>0&&r.animateFrom(c,h)}else Fj(r,t,a||0,e,u);xH(r,t),l?r.dirty():r.markRedraw()}function xH(r,t){for(var e=$s(r).leaveToProps,n=0;n0&&r.animateFrom(a,i)}}function Ej(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof _n&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Mt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var ta={},Dj={setTransform:function(r,t){return ta.el[r]=t,this},getTransform:function(r){return ta.el[r]},setShape:function(r,t){var e=ta.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=ta.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=ta.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=ta.el.style;if(t)return t[r]},setExtra:function(r,t){var e=ta.el.extra||(ta.el.extra={});return e[r]=t,this},getExtra:function(r){var t=ta.el.extra;if(t)return t[r]}};function Lj(){var r=this,t=r.el;if(t){var e=$s(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}ta.el=t,n(Dj)}}function SF(r,t,e,n){var a=e[r];if(a){var i=t[r],A;if(i){var o=e.transition,s=a.transition;if(s)if(!A&&(A=n[r]={}),yo(s))V(A,i);else for(var l=qt(s),u=0;u=0){!A&&(A=n[r]={});for(var h=Ot(i),u=0;u=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=n.style={});for(var v=Ot(e),l=0;l=0?t.getStore().get(R,L):void 0}var P=t.get(M.name,L),O=M&&M.ordinalMeta;return O?O.categories[P]:P}function B(D,L){L==null&&(L=l);var M=t.getItemVisual(L,"style"),R=M&&M.fill,P=M&&M.opacity,O=y(L,Hi).getItemStyle();R!=null&&(O.fill=R),P!=null&&(O.opacity=P);var G={inheritColor:nt(R)?R:"#000"},X=m(L,Hi),J=oe(X,null,G,!1,!0);J.text=X.getShallow("show")?xt(r.getFormattedLabel(L,Hi),Xs(t,L)):null;var At=Kv(X,G,!1);return S(D,O),O=BF(O,J,At),D&&x(O,D),O.legacy=!0,O}function C(D,L){L==null&&(L=l);var M=y(L,Ga).getItemStyle(),R=m(L,Ga),P=oe(R,null,null,!0,!0);P.text=R.getShallow("show")?ha(r.getFormattedLabel(L,Ga),r.getFormattedLabel(L,Hi),Xs(t,L)):null;var O=Kv(R,null,!0);return S(D,M),M=BF(M,P,O),D&&x(M,D),M.legacy=!0,M}function x(D,L){for(var M in L)st(L,M)&&(D[M]=L[M])}function S(D,L){D&&(D.textFill&&(L.textFill=D.textFill),D.textPosition&&(L.textPosition=D.textPosition))}function b(D,L){if(L==null&&(L=l),st(mF,D)){var M=t.getItemVisual(L,"style");return M?M[mF[D]]:null}if(st(gj,D))return t.getItemVisual(L,D)}function T(D){if(i.type==="cartesian2d"){var L=i.getBaseAxis();return MX(gt({axis:L},D))}}function F(){return e.getCurrentSeriesIndices()}function E(D){return x_(D,e)}}function zj(r){var t={};return I(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function fm(r,t,e,n,a,i,A){if(!n){i.remove(t);return}var o=RC(r,t,e,n,a,i);return o&&A.setItemGraphicEl(e,o),o&&ye(o,n.focus,n.blurScope,n.emphasisDisabled),o}function RC(r,t,e,n,a,i){var A=-1,o=t;t&&FH(t,n,a)&&(A=Lt(i.childrenRef(),t),t=null);var s=!t,l=t;l?l.clearStates():(l=UC(n),o&&Nj(o,l)),n.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),en.normal.cfg=en.normal.conOpt=en.emphasis.cfg=en.emphasis.conOpt=en.blur.cfg=en.blur.conOpt=en.select.cfg=en.select.conOpt=null,en.isLegacy=!1,Xj(l,e,n,a,s,en),Wj(l,e,n,a,s),PC(r,l,e,n,en,a,s),st(n,"info")&&(Va(l).info=n.info);for(var u=0;u=0?i.replaceAt(l,A):i.add(l),l}function FH(r,t,e){var n=Va(r),a=t.type,i=t.shape,A=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&qj(i)&&EH(i)!==n.customPathData||a==="image"&&st(A,"image")&&A.image!==n.customImagePath}function Wj(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var A=r.getClipPath();A&&FH(A,i,n)&&(A=null),A||(A=UC(i),r.setClipPath(A)),PC(null,A,t,i,null,n,a)}}function Xj(r,t,e,n,a,i){if(!r.isGroup){TF(e,null,i),TF(e,Ga,i);var A=i.normal.conOpt,o=i.emphasis.conOpt,s=i.blur.conOpt,l=i.select.conOpt;if(A!=null||o!=null||l!=null||s!=null){var u=r.getTextContent();if(A===!1)u&&r.removeTextContent();else{A=i.normal.conOpt=A||{type:"text"},u?u.clearStates():(u=UC(A),r.setTextContent(u)),PC(null,u,t,A,null,n,a);for(var f=A&&A.style,c=0;c=u;h--){var v=t.childAt(h);Zj(t,v,a)}}}function Zj(r,t,e){t&&Mp(t,Va(r).option,e)}function $j(r){new $a(r.oldChildren,r.newChildren,IF,IF,r).add(FF).update(FF).remove(Jj).execute()}function IF(r,t){var e=r&&r.name;return e??Oj+t}function FF(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;RC(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function Jj(r){var t=this.context,e=t.oldChildren[r];e&&Mp(e,Va(e).option,t.seriesModel)}function EH(r){return r&&(r.pathData||r.d)}function qj(r){return r&&(st(r,"pathData")||st(r,"d"))}function jj(r){r.registerChartView(Vj),r.registerSeriesModel(yj)}var $A=Vt(),EF=wt,cm=it,OC=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),A=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===A)){this._lastValue=i,this._lastStatus=A;var o=this._group,s=this._handle;if(!A||A==="hide"){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var f=this._moveAnimation=this.determineAnimation(t,e);if(!o)o=this._group=new Ct,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);else{var c=bt(DF,e,f);this.updatePointerEl(o,l,c),this.updateLabelEl(o,l,c,e)}QF(o,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",A=e.get("snap");if(!A&&!i)return!1;if(n==="auto"||n==null){var o=this.animationThreshold;if(i&&a.getBandWidth()>o)return!0;if(A){var s=lC(t).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var A=$A(t).pointerEl=new Qo[i.type](EF(e.pointer));t.add(A)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=$A(t).labelEl=new Gt(EF(e.label));t.add(i),LF(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=$A(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=$A(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),LF(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),A=e.get("status");if(!i.get("show")||!A||A==="hide"){a&&n.remove(a),this._handle=null;return}var o;this._handle||(o=!0,a=this._handle=Yf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Wa(l.event)},onmousedown:cm(this._onHandleDragMove,this,0,0),drift:cm(this._onHandleDragMove,this),ondragend:cm(this._onHandleDragEnd,this)}),n.add(a)),QF(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");K(s)||(s=[s,s]),a.scaleX=s[0]/2,a.scaleY=s[1]/2,hl(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},r.prototype._moveHandleToValue=function(t,e){DF(this._axisPointerModel,!e&&this._moveAnimation,this._handle,hm(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(hm(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(hm(a)),$A(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),mf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function DF(r,t,e,n){DH($A(e).lastProp,n)||($A(e).lastProp=n,t?zt(e,n,r):(e.stopAnimation(),e.attr(n)))}function DH(r,t){if(yt(r)&&yt(t)){var e=!0;return I(t,function(n,a){e=e&&DH(r[a],n)}),!!e}else return r===t}function LF(r,t){r[t.get(["label","show"])?"show":"hide"]()}function hm(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function QF(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function kC(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function LH(r,t,e,n,a){var i=e.get("value"),A=QH(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),o=e.getModel("label"),s=ll(o.get("padding")||0),l=o.getFont(),u=Nf(A,l),f=a.position,c=u.width+s[1]+s[3],h=u.height+s[0]+s[2],v=a.align;v==="right"&&(f[0]-=c),v==="center"&&(f[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(f[1]-=h),d==="middle"&&(f[1]-=h/2),ttt(f,c,h,n);var p=o.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:oe(o,{text:A,font:l,fill:o.getTextColor(),padding:s,backgroundColor:p}),z2:10}}function ttt(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function QH(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),A=a.formatter;if(A){var o={value:q_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I(n,function(s){var l=e.getSeriesByIndex(s.seriesIndex),u=s.dataIndexInside,f=l&&l.getDataParams(u);f&&o.seriesData.push(f)}),nt(A)?i=A.replace("{value}",i):vt(A)&&(i=A(o))}return i}function NC(r,t,e){var n=Yr();return Lo(n,n,e.rotation),pa(n,n,e.position),Hn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function MH(r,t,e,n,a,i){var A=_r.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),LH(t,n,a,i,{position:NC(n.axis,r,e),align:A.textAlign,verticalAlign:A.textVerticalAlign})}function VC(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function UH(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function MF(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var ett=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.grid,l=i.get("type"),u=UF(s,o).getOtherAxis(o).getGlobalExtent(),f=o.toGlobalCoord(o.dataToCoord(n,!0));if(l&&l!=="none"){var c=kC(i),h=rtt[l](o,f,u);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=ww(s.model,a);MH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=ww(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=NC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.grid,s=A.getGlobalExtent(!0),l=UF(o,A).getOtherAxis(A).getGlobalExtent(),u=A.dim==="x"?0:1,f=[e.x,e.y];f[u]+=n[u],f[u]=Math.min(s[1],f[u]),f[u]=Math.max(s[0],f[u]);var c=(l[1]+l[0])/2,h=[c,c];h[u]=f[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:v[u]}},t}(OC);function UF(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var rtt={line:function(r,t,e){var n=VC([t,e[0]],[t,e[1]],PF(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:UH([t-n/2,e[0]],[n,a],PF(r))}}};function PF(r){return r.dim==="x"?0:1}var ntt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Ht),Pa=Vt(),att=I;function PH(r,t,e){if(!Pt.node){var n=t.getZr();Pa(n).records||(Pa(n).records={}),itt(n,t);var a=Pa(n).records[r]||(Pa(n).records[r]={});a.handler=e}}function itt(r,t){if(Pa(r).initialized)return;Pa(r).initialized=!0,e("click",bt(RF,"click")),e("mousemove",bt(RF,"mousemove")),e("globalout",ott);function e(n,a){r.on(n,function(i){var A=stt(t);att(Pa(r).records,function(o){o&&a(o,i,A.dispatchAction)}),Att(A.pendings,t)})}}function Att(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function ott(r,t,e){r.handler("leave",null,e)}function RF(r,t,e,n){t.handler(r,e,n)}function stt(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Nw(r,t){if(!Pt.node){var e=t.getZr(),n=(Pa(e).records||{})[r];n&&(Pa(e).records[r]=null)}}var ltt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),A=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";PH("axisPointer",a,function(o,s,l){A!=="none"&&(o==="leave"||A.indexOf(o)>=0)&&l({type:"updateAxisPointer",currTrigger:o,x:s&&s.offsetX,y:s&&s.offsetY})})},t.prototype.remove=function(e,n){Nw("axisPointer",n)},t.prototype.dispose=function(e,n){Nw("axisPointer",n)},t.type="axisPointer",t}(de);function RH(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),A=Co(i,r);if(A==null||A<0||K(A))return{point:[]};var o=i.getItemGraphicEl(A),s=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(A)||[];else if(s&&s.dataToPoint)if(r.isStacked){var l=s.getBaseAxis(),u=s.getOtherAxis(l),f=u.dim,c=l.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(c),d=[];d[h]=i.get(v,A),d[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),A),e=s.dataToPoint(d)||[]}else e=s.dataToPoint(i.getValues(Y(s.dimensions,function(g){return i.mapDimension(g)}),A))||[];else if(o){var p=o.getBoundingRect().clone();p.applyTransform(o.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:o}}var HF=Vt();function utt(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,A=r.dispatchAction||it(e.dispatchAction,e),o=t.getComponent("axisPointer").coordSysAxesInfo;if(o){fv(a)&&(a=RH({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var s=fv(a),l=i.axesInfo,u=o.axesInfo,f=n==="leave"||fv(a),c={},h={},v={list:[],map:{}},d={showPointer:bt(ctt,h),showTooltip:bt(htt,v)};I(o.coordSysMap,function(g,y){var m=s||g.containPoint(a);I(o.coordSysAxesInfo[y],function(w,_){var B=w.axis,C=gtt(l,w);if(!f&&m&&(!l||C)){var x=C&&C.value;x==null&&!s&&(x=B.pointToData(a)),x!=null&&OF(w,x,d,!1,c)}})});var p={};return I(u,function(g,y){var m=g.linkGroup;m&&!h[y]&&I(m.axesInfo,function(w,_){var B=h[_];if(w!==g&&B){var C=B.value;m.mapper&&(C=g.axis.scale.parse(m.mapper(C,kF(w),kF(g)))),p[g.key]=C}})}),I(p,function(g,y){OF(u[y],g,d,!0,c)}),vtt(h,u,c),dtt(v,a,r,A),ptt(u,A,e),c}}function OF(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var A=ftt(t,r),o=A.payloadBatch,s=A.snapToValue;o[0]&&a.seriesIndex==null&&V(a,o[0]),!n&&r.snap&&i.containData(s)&&s!=null&&(t=s),e.showPointer(r,t,o),e.showTooltip(r,A,s)}}function ftt(r,t){var e=t.axis,n=e.dim,a=r,i=[],A=Number.MAX_VALUE,o=-1;return I(t.seriesModels,function(s,l){var u=s.getData().mapDimensionsAll(n),f,c;if(s.getAxisTooltipData){var h=s.getAxisTooltipData(u,r,e);c=h.dataIndices,f=h.nestestValue}else{if(c=s.getData().indicesOfNearest(u[0],r,e.type==="category"?.5:null),!c.length)return;f=s.getData().get(u[0],c[0])}if(!(f==null||!isFinite(f))){var v=r-f,d=Math.abs(v);d<=A&&((d=0&&o<0)&&(A=d,o=v,a=f,i.length=0),I(c,function(p){i.push({seriesIndex:s.seriesIndex,dataIndexInside:p,dataIndex:s.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function ctt(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function htt(r,t,e,n){var a=e.payloadBatch,i=t.axis,A=i.model,o=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var s=t.coordSys.model,l=bf(s),u=r.map[l];u||(u=r.map[l]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},r.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:A.componentIndex,axisType:A.type,axisId:A.id,value:n,valueLabelOpt:{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function vtt(r,t,e){var n=e.axesInfo=[];I(t,function(a,i){var A=a.axisPointerModel.option,o=r[i];o?(!a.useHandle&&(A.status="show"),A.value=o.value,A.seriesDataIndices=(o.payloadBatch||[]).slice()):!a.useHandle&&(A.status="hide"),A.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:A.value})})}function dtt(r,t,e,n){if(fv(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function ptt(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=HF(n)[a]||{},A=HF(n)[a]={};I(r,function(l,u){var f=l.axisPointerModel.option;f.status==="show"&&l.triggerEmphasis&&I(f.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;A[h]=c})});var o=[],s=[];I(i,function(l,u){!A[u]&&s.push(l)}),I(A,function(l,u){!i[u]&&o.push(l)}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),o.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:o})}function gtt(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function kF(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function fv(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function oc(r){Ro.registerAxisPointerClass("CartesianAxisPointer",ett),r.registerComponentModel(ntt),r.registerComponentView(ltt),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!K(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=TZ(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},utt)}function ytt(r){Qt(fR),Qt(oc)}var mtt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis;o.dim==="angle"&&(this.animationThreshold=Math.PI/18);var s=o.polar,l=s.getOtherAxis(o),u=l.getExtent(),f=o.dataToCoord(n),c=i.get("type");if(c&&c!=="none"){var h=kC(i),v=Btt[c](o,s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=i.get(["label","margin"]),p=wtt(n,a,i,s,d);LH(e,a,i,A,p)},t}(OC);function wtt(r,t,e,n,a){var i=t.axis,A=i.dataToCoord(r),o=n.getAngleAxis().getExtent()[0];o=o/180*Math.PI;var s=n.getRadiusAxis().getExtent(),l,u,f;if(i.dim==="radius"){var c=Yr();Lo(c,c,o),pa(c,c,[n.cx,n.cy]),l=Hn([A,-a],c);var h=t.getModel("axisLabel").get("rotate")||0,v=_r.innerTextLayout(o,h*Math.PI/180,-1);u=v.textAlign,f=v.textVerticalAlign}else{var d=s[1];l=n.coordToPoint([d+a,A]);var p=n.cx,g=n.cy;u=Math.abs(l[0]-p)/d<.3?"center":l[0]>p?"left":"right",f=Math.abs(l[1]-g)/d<.3?"middle":l[1]>g?"top":"bottom"}return{position:l,align:u,verticalAlign:f}}var Btt={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:VC(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:MF(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:MF(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},_tt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,a=this.ecModel;return a.eachComponent(e,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Ht),GC=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Te).models[0]},t.type="polarAxis",t}(Ht);Ee(GC,qf);var Ctt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(GC),Stt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(GC),KC=function(r){H(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(Kn);KC.prototype.dataToRadius=Kn.prototype.dataToCoord;KC.prototype.radiusToData=Kn.prototype.coordToData;var xtt=Vt(),zC=function(r){H(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),a=e.scale,i=a.getExtent(),A=a.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),l=Math.abs(s),u=Nf(o==null?"":o+"",n.getFont(),"center","top"),f=Math.max(u.height,7),c=f/l;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),v=xtt(e.model),d=v.lastAutoInterval,p=v.lastTickCount;return d!=null&&p!=null&&Math.abs(d-h)<=1&&Math.abs(p-A)<=1&&d>h?h=d:(v.lastTickCount=A,v.lastAutoInterval=h),h},t}(Kn);zC.prototype.dataToAngle=Kn.prototype.dataToCoord;zC.prototype.angleToData=Kn.prototype.coordToData;var HH=["radius","angle"],btt=function(){function r(t){this.dimensions=HH,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new KC,this._angleAxis=new zC,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),A=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);a.inverse?A=o-360:o=A+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=lo;)l+=u*360;return[s,l]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[a,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(A,o){var s=A-this.cx,l=o-this.cy,u=s*s+l*l-1e-4,f=this.r,c=this.r0;return u<=f*f&&u>=c*c}}},r.prototype.convertToPixel=function(t,e,n){var a=NF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=NF(e);return a===this?this.pointToData(n):null},r}();function NF(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Ttt(r,t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight();r.cx=et(n[0],a),r.cy=et(n[1],i);var A=r.getRadiusAxis(),o=Math.min(a,i)/2,s=t.get("radius");s==null?s=[0,"100%"]:K(s)||(s=[0,s]);var l=[et(s[0],o),et(s[1],o)];A.inverse?A.setExtent(l[1],l[0]):A.setExtent(l[0],l[1])}function Itt(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(o){if(o.coordinateSystem===e){var s=o.getData();I(ed(s,"radius"),function(l){a.scale.unionExtentFromData(s,l)}),I(ed(s,"angle"),function(l){n.scale.unionExtentFromData(s,l)})}}),Ws(n.scale,n.model),Ws(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),A=360/n.scale.count();n.inverse?i[1]+=A:i[1]-=A,n.setExtent(i[0],i[1])}}function Ftt(r){return r.mainType==="angleAxis"}function VF(r,t){var e;if(r.type=t.get("type"),r.scale=Tp(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),Ftt(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var Ett={dimensions:HH,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new btt(a+"");i.update=Itt;var A=i.getRadiusAxis(),o=i.getAngleAxis(),s=n.findAxisModel("radiusAxis"),l=n.findAxisModel("angleAxis");VF(A,s),VF(o,l),Ttt(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",Te).models[0];n.coordinateSystem=a.coordinateSystem}}),e}},Dtt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ch(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function hh(r){var t=r.getRadiusAxis();return t.inverse?0:1}function GF(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var Ltt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,i=a.polar,A=i.getRadiusAxis().getExtent(),o=a.getTicksCoords(),s=a.getMinorTicksCoords(),l=Y(a.getViewLabels(),function(u){u=wt(u);var f=a.scale,c=f.type==="ordinal"?f.getRawOrdinalNumber(u.tickValue):u.tickValue;return u.coord=a.dataToCoord(c),u});GF(l),GF(o),I(Dtt,function(u){e.get([u,"show"])&&(!a.scale.isBlank()||u==="axisLine")&&Qtt[u](this.group,e,i,o,s,A,l)},this)}},t.type="angleAxis",t}(Ro),Qtt={axisLine:function(r,t,e,n,a,i){var A=t.getModel(["axisLine","lineStyle"]),o=e.getAngleAxis(),s=Math.PI/180,l=o.getExtent(),u=hh(e),f=u?0:1,c,h=Math.abs(l[1]-l[0])===360?"Circle":"Arc";i[f]===0?c=new Qo[h]({shape:{cx:e.cx,cy:e.cy,r:i[u],startAngle:-l[0]*s,endAngle:-l[1]*s,clockwise:o.inverse},style:A.getLineStyle(),z2:1,silent:!0}):c=new Kf({shape:{cx:e.cx,cy:e.cy,r:i[u],r0:i[f]},style:A.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,t,e,n,a,i){var A=t.getModel("axisTick"),o=(A.get("inside")?-1:1)*A.get("length"),s=i[hh(e)],l=Y(n,function(u){return new Pe({shape:ch(e,[s,s+o],u.coord)})});r.add(hn(l,{style:gt(A.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var A=t.getModel("axisTick"),o=t.getModel("minorTick"),s=(A.get("inside")?-1:1)*o.get("length"),l=i[hh(e)],u=[],f=0;fg?"left":"right",w=Math.abs(p[1]-y)/d<.3?"middle":p[1]>y?"top":"bottom";if(o&&o[v]){var _=o[v];yt(_)&&_.textStyle&&(h=new Yt(_.textStyle,s,s.ecModel))}var B=new Gt({silent:_r.isLabelSilent(t),style:oe(h,{x:p[0],y:p[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:m,verticalAlign:w})});if(r.add(B),u){var C=_r.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=f.rawLabel,St(B).eventData=C}},this)},splitLine:function(r,t,e,n,a,i){var A=t.getModel("splitLine"),o=A.getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],f=0;f=0?"p":"n",L=S;_&&(n[u][E]||(n[u][E]={p:S,n:S}),L=n[u][E][D]);var M=void 0,R=void 0,P=void 0,O=void 0;if(v.dim==="radius"){var G=v.dataToCoord(F)-S,X=s.dataToCoord(E);Math.abs(G)=O})}}})}function ktt(r){var t={};I(r,function(n,a){var i=n.getData(),A=n.coordinateSystem,o=A.getBaseAxis(),s=kH(A,o),l=o.getExtent(),u=o.type==="category"?o.getBandWidth():Math.abs(l[1]-l[0])/i.count(),f=t[s]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=f.stacks;t[s]=f;var h=OH(n);c[h]||f.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var v=et(n.get("barWidth"),u),d=et(n.get("barMaxWidth"),u),p=n.get("barGap"),g=n.get("barCategoryGap");v&&!c[h].width&&(v=Math.min(f.remainedWidth,v),c[h].width=v,f.remainedWidth-=v),d&&(c[h].maxWidth=d),p!=null&&(f.gap=p),g!=null&&(f.categoryGap=g)});var e={};return I(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=et(n.categoryGap,A),s=et(n.gap,1),l=n.remainedWidth,u=n.autoWidthCount,f=(l-o)/(u+(u-1)*s);f=Math.max(f,0),I(i,function(d,p){var g=d.maxWidth;g&&g=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),a=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=e.toGlobalCoord(e.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(t,e,n){var a=KF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=KF(e);return a===this?this.pointToData(n):null},r}();function KF(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Jtt(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new $tt(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",Te).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),e}var qtt={create:Jtt,dimensions:NH},zF=["x","y"],jtt=["width","height"],tet=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.coordinateSystem,l=vm(s,1-dd(o)),u=s.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var c=kC(i),h=eet[f](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=Vw(a);MH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=Vw(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=NC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.coordinateSystem,s=dd(A),l=vm(o,s),u=[e.x,e.y];u[s]+=n[s],u[s]=Math.min(l[1],u[s]),u[s]=Math.max(l[0],u[s]);var f=vm(o,1-s),c=(f[1]+f[0])/2,h=[c,c];return h[s]=u[s],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(OC),eet={line:function(r,t,e){var n=VC([t,e[0]],[t,e[1]],dd(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),a=e[1]-e[0];return{type:"Rect",shape:UH([t-n/2,e[0]],[n,a],dd(r))}}};function dd(r){return r.isHorizontal()?0:1}function vm(r,t){var e=r.getRect();return[e[zF[t]],e[zF[t]]+e[jtt[t]]]}var ret=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(de);function net(r){Qt(oc),Ro.registerAxisPointerClass("SingleAxisPointer",tet),r.registerComponentView(ret),r.registerComponentView(Xtt),r.registerComponentModel(cv),Ys(r,"single",cv,cv.defaultOption),r.registerCoordinateSystem("single",qtt)}var aet=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,a){var i=ul(e);r.prototype.init.apply(this,arguments),WF(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),WF(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Ht);function WF(r,t){var e=r.cellSize,n;K(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=Y([0,1],function(i){return bz(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});eA(r,t,{type:"box",ignoreSize:a})}var iet=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll();var A=e.coordinateSystem,o=A.getRangeInfo(),s=A.getOrient(),l=n.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,s,i),this._renderYearText(e,o,s,i),this._renderMonthText(e,l,s,i),this._renderWeekText(e,l,o,s,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,A=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),l=n.start.time;l<=n.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,f=new Nt({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:A});a.add(f)}},t.prototype._renderLines=function(e,n,a,i){var A=this,o=e.coordinateSystem,s=e.getModel(["splitLine","lineStyle"]).getLineStyle(),l=e.get(["splitLine","show"]),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,c=0;f.time<=n.end.time;c++){v(f.formatedDate),c===0&&(f=o.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=o.getDateInfo(h)}v(o.getNextNDay(n.end.time,1).formatedDate);function v(d){A._firstDayOfMonth.push(o.getDateInfo(d)),A._firstDayPoints.push(o.dataToRect([d],!1).tl);var p=A._getLinePointsOfOneWeek(e,d,a);A._tlpoints.push(p[0]),A._blpoints.push(p[p.length-1]),l&&A._drawSplitline(p,s,i)}l&&this._drawSplitline(A._getEdgesPoints(A._tlpoints,u,a),s,i),l&&this._drawSplitline(A._getEdgesPoints(A._blpoints,u,a),s,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],A=a==="horizontal"?0:1;return i[0][A]=i[0][A]-n/2,i[1][A]=i[1][A]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new Tr({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,A=i.getDateInfo(n),o=[],s=0;s<7;s++){var l=i.getNextNDay(A.time,s),u=i.dataToRect([l.time],!1);o[2*l.day]=u.tl,o[2*l.day+1]=u[a==="horizontal"?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?Cz(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,A){var o=n[0],s=n[1],l=["center","bottom"];i==="bottom"?(s+=A,l=["center","top"]):i==="left"?o-=A:i==="right"?(o+=A,l=["center","top"]):s-=A;var u=0;return(i==="left"||i==="right")&&(u=Math.PI/2),{rotation:u,x:o,y:s,style:{align:l[0],verticalAlign:l[1]}}},t.prototype._renderYearText=function(e,n,a,i){var A=e.getModel("yearLabel");if(A.get("show")){var o=A.get("margin"),s=A.get("position");s||(s=a!=="horizontal"?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,f=(l[0][1]+l[1][1])/2,c=a==="horizontal"?0:1,h={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],f],right:[l[c][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var d=A.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:v},g=this._formatterLabel(d,p),y=new Gt({z2:30,style:oe(A,{text:g})});y.attr(this._yearTextPositionControl(y,h[s],a,s,o)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,n,a,i,A){var o="left",s="top",l=e[0],u=e[1];return a==="horizontal"?(u=u+A,n&&(o="center"),i==="start"&&(s="bottom")):(l=l+A,n&&(s="middle"),i==="start"&&(o="right")),{x:l,y:u,align:o,verticalAlign:s}},t.prototype._renderMonthText=function(e,n,a,i){var A=e.getModel("monthLabel");if(A.get("show")){var o=A.get("nameMap"),s=A.get("margin"),l=A.get("position"),u=A.get("align"),f=[this._tlpoints,this._blpoints];(!o||nt(o))&&(o&&(n=$0(o)||n),o=n.get(["time","monthAbbr"])||[]);var c=l==="start"?0:1,h=a==="horizontal"?0:1;s=l==="start"?-s:s;for(var v=u==="center",d=0;d=a.start.time&&n.timeo.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var a=Math.floor(e[1].time/dm)-Math.floor(e[0].time/dm)+1,i=new Date(e[0].time),A=i.getDate(),o=e[1].date.getDate();i.setDate(A+a-1);var s=i.getDate();if(s!==o)for(var l=i.getTime()-e[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-e[1].time)*l>0;)a-=l,i.setDate(s-l);var u=Math.floor((a+e[0].day+6)/7),f=n?-u+1:u-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:u,nthWeek:f,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&ea.lweek)return null;var i=(t-1)*7-a.fweek+e,A=new Date(a.start.time);return A.setDate(+a.start.d+i),this.getDateInfo(A)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function XF(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function oet(r){r.registerComponentModel(aet),r.registerComponentView(iet),r.registerCoordinateSystem("calendar",Aet)}function set(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function YF(r,t){var e;return I(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function uet(r,t,e){var n=V({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(Et(a,n,!0),eA(a,n,{ignoreSize:!0}),MU(e,a),vh(e,a),vh(e,a,"shape"),vh(e,a,"style"),vh(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var VH=["transition","enterFrom","leaveTo"],fet=VH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function vh(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?VH:fet,a=0;a=0;u--){var f=a[u],c=Le(f.id,null),h=c!=null?A.get(c):null;if(h){var v=h.parent,g=sn(v),y=v===i?{width:o,height:s}:{width:g.width,height:g.height},m={},w=yp(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},m);if(!sn(h).isNew&&w){for(var _=f.transition,B={},C=0;C=0)?B[x]=S:h[x]=S}zt(h,B,e,0)}else h.attr(m)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){hv(a,sn(a).option,n,e._lastGraphicModel)}),this._elMap=ft()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(de);function Gw(r){var t=st(ZF,r)?ZF[r]:S_(r),e=new t({});return sn(e).type=r,e}function $F(r,t,e,n){var a=Gw(e);return t.add(a),n.set(r,a),sn(a).id=r,sn(a).isNew=!0,a}function hv(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){hv(i,t,e,n)}),Mp(r,t,n),e.removeKey(sn(r).id))}function JF(r,t,e,n){r.isGroup||I([["cursor",_n.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];st(t,i)?r[i]=xt(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),I(Ot(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=vt(i)?i:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function det(r){return r=V({},r),I(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(QU),function(t){delete r[t]}),r}function pet(r,t,e){var n=St(r).eventData;!r.silent&&!r.ignore&&!n&&(n=St(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function get(r){r.registerComponentModel(het),r.registerComponentView(vet),r.registerPreprocessor(function(t){var e=t.graphic;K(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var qF=["x","y","radius","angle","single"],yet=["cartesian2d","polar","singleAxis"];function met(r){var t=r.get("coordinateSystem");return Lt(yet,t)>=0}function Oi(r){return r+"Axis"}function wet(r,t){var e=ft(),n=[],a=ft();r.eachComponent({mainType:"dataZoom",query:t},function(u){a.get(u.uid)||o(u)});var i;do i=!1,r.eachComponent("dataZoom",A);while(i);function A(u){!a.get(u.uid)&&s(u)&&(o(u),i=!0)}function o(u){a.set(u.uid,!0),n.push(u),l(u)}function s(u){var f=!1;return u.eachTargetAxis(function(c,h){var v=e.get(c);v&&v[h]&&(f=!0)}),f}function l(u){u.eachTargetAxis(function(f,c){(e.get(f)||e.set(f,[]))[c]=!0})}return n}function GH(r){var t=r.ecModel,e={infoList:[],infoMap:ft()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(Oi(n),a);if(i){var A=i.getCoordSysModel();if(A){var o=A.uid,s=e.infoMap.get(o);s||(s={model:A,axisModels:[]},e.infoList.push(s),e.infoMap.set(o,s)),s.axisModels.push(i)}}}),e}var pm=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Lf=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=jF(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=jF(e);Et(this.option,e,!0),Et(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;I([["start","startValue"],["end","endValue"]],function(i,A){this._rangePropMode[A]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ft(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return I(qF,function(a){var i=this.getReferringComponents(Oi(a),c3);if(i.specified){n=!0;var A=new pm;I(i.models,function(o){A.add(o.componentIndex)}),e.set(a,A)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var A=n==="vertical"?"y":"x",o=a.findComponents({mainType:A+"Axis"});s(o,A)}if(i){var o=a.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===n}});s(o,"single")}function s(l,u){var f=l[0];if(f){var c=new pm;if(c.add(f.componentIndex),e.set(u,c),i=!1,u==="x"||u==="y"){var h=f.getReferringComponents("grid",Te).models[0];h&&I(l,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Te).models[0]&&c.add(v.componentIndex)})}}}i&&I(qF,function(l){if(i){var u=a.findComponents({mainType:Oi(l),filter:function(c){return c.get("type",!0)==="category"}});if(u[0]){var f=new pm;f.add(u[0].componentIndex),e.set(l,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");I([["start","startValue"],["end","endValue"]],function(i,A){var o=e[i[0]]!=null,s=e[i[1]]!=null;o&&!s?n[A]="percent":!o&&s?n[A]="value":a?n[A]=a[A]:o&&(n[A]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Oi(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){I(a.indexList,function(A){e.call(n,i,A)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Oi(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;I([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;I(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;iA[1];if(m&&!w&&!_)return!0;m&&(p=!0),w&&(v=!0),_&&(d=!0)}return p&&v&&d})}else ys(u,function(h){if(i==="empty")s.setData(l=l.map(h,function(d){return o(d)?d:NaN}));else{var v={};v[h]=A,l.selectRange(v)}});ys(u,function(h){l.setApproximateExtent(A,h)})}});function o(s){return s>=A[0]&&s<=A[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ys(["min","max"],function(a){var i=e.get(a+"Span"),A=e.get(a+"ValueSpan");A!=null&&(A=this.getAxisModel().axis.scale.parse(A)),A!=null?i=$t(n[0]+A,n,[0,100],!0):i!=null&&(A=$t(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=A},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=_M(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function xet(r,t,e){var n=[1/0,-1/0];ys(e,function(A){r6(n,A.getData(),t)});var a=r.getAxisModel(),i=oP(a.axis.scale,a,n).calculate();return[i.min,i.max]}var bet={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(A,o){var s=r.getComponent(Oi(A),o);a(A,o,s,i)})})}t(function(a,i,A,o){A.__dzAxisProxy=null});var e=[];t(function(a,i,A,o){A.__dzAxisProxy||(A.__dzAxisProxy=new Cet(a,i,o,r),e.push(A.__dzAxisProxy))});var n=ft();return I(e,function(a){I(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Tet(r){r.registerAction("dataZoom",function(t,e){var n=wet(e,t);I(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var eE=!1;function XC(r){eE||(eE=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,bet),Tet(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Iet(r){r.registerComponentModel(Bet),r.registerComponentView(_et),XC(r)}var un=function(){function r(){}return r}(),KH={};function ms(r,t){KH[r]=t}function zH(r){return KH[r]}var Fet=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;I(this.option.feature,function(n,a){var i=zH(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Et(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Ht);function Eet(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},A=Qe(n,i,a);po(t.get("orient"),r,t.get("itemGap"),A.width,A.height),yp(r,n,i,a)}function WH(r,t){var e=ll(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Nt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Det=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var A=this.group;if(A.removeAll(),!e.get("show"))return;var o=+e.get("itemSize"),s=e.get("orient")==="vertical",l=e.get("feature")||{},u=this._features||(this._features={}),f=[];I(l,function(v,d){f.push(d)}),new $a(this._featureNames||[],f).add(c).update(c).remove(bt(c,null)).execute(),this._featureNames=f;function c(v,d){var p=f[v],g=f[d],y=l[p],m=new Yt(y,e,e.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!g){if(Let(p))w={onclick:m.option.onclick,featureName:p};else{var _=zH(p);if(!_)return;w=new _}u[p]=w}else if(w=u[g],!w)return;w.uid=sl("toolbox-feature"),w.model=m,w.ecModel=n,w.api=a;var B=w instanceof un;if(!p&&g){B&&w.dispose&&w.dispose(n,a);return}if(!m.get("show")||B&&w.unusable){B&&w.remove&&w.remove(n,a);return}h(m,w,p),m.setIconStatus=function(C,x){var S=this.option,b=this.iconPaths;S.iconStatus=S.iconStatus||{},S.iconStatus[C]=x,b[C]&&(x==="emphasis"?Ya:Za)(b[C])},w instanceof un&&w.render&&w.render(m,n,a,i)}function h(v,d,p){var g=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),m=d instanceof un&&d.getIcons?d.getIcons():v.get("icon"),w=v.get("title")||{},_,B;nt(m)?(_={},_[p]=m):_=m,nt(w)?(B={},B[p]=w):B=w;var C=v.iconPaths={};I(_,function(x,S){var b=Yf(x,{},{x:-o/2,y:-o/2,width:o,height:o});b.setStyle(g.getItemStyle());var T=b.ensureState("emphasis");T.style=y.getItemStyle();var F=new Gt({style:{text:B[S],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:x_({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});b.setTextContent(F),Al({el:b,componentModel:e,itemName:S,formatterParamsExtra:{title:B[S]}}),b.__title=B[S],b.on("mouseover",function(){var E=y.getItemStyle(),D=s?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";F.setStyle({fill:y.get("textFill")||E.fill||E.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),b.setTextConfig({position:y.get("textPosition")||D}),F.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",S])!=="emphasis"&&a.leaveEmphasis(this),F.hide()}),(v.get(["iconStatus",S])==="emphasis"?Ya:Za)(b),A.add(b),b.on("click",it(d.onclick,d,n,a,S)),C[S]=b})}Eet(A,e,a),A.add(WH(A.getBoundingRect(),e)),s||A.eachChild(function(v){var d=v.__title,p=v.ensureState("emphasis"),g=p.textConfig||(p.textConfig={}),y=v.getTextContent(),m=y&&y.ensureState("emphasis");if(m&&!vt(m)&&d){var w=m.style||(m.style={}),_=Nf(d,Gt.makeFont(w)),B=v.x+A.x,C=v.y+A.y+o,x=!1;C+_.height>a.getHeight()&&(g.position="top",x=!0);var S=x?-5-_.height:o+10;B+_.width/2>a.getWidth()?(g.position=["100%",S],w.align="right"):B-_.width/2<0&&(g.position=[0,S],w.align="left")}})},t.prototype.updateView=function(e,n,a,i){I(this._features,function(A){A instanceof un&&A.updateView&&A.updateView(A.model,n,a,i)})},t.prototype.remove=function(e,n){I(this._features,function(a){a instanceof un&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){I(this._features,function(a){a instanceof un&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(de);function Let(r){return r.indexOf("my")===0}var Qet=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",A=n.getZr().painter.getType()==="svg",o=A?"svg":a.get("type",!0)||"png",s=n.getConnectedDataURL({type:o,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),l=Pt.browser;if(typeof MouseEvent=="function"&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=i+"."+o,u.target="_blank",u.href=s;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||A){var c=s.split(","),h=c[0].indexOf("base64")>-1,v=A?decodeURIComponent(c[1]):c[1];h&&(v=window.atob(v));var d=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=v.length,g=new Uint8Array(p);p--;)g[p]=v.charCodeAt(p);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var w=m.contentWindow,_=w.document;_.open("image/svg+xml","replace"),_.write(v),_.close(),w.focus(),_.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var B=a.get("lang"),C='',x=window.open();x.document.write(C),x.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(un),rE="__ec_magicType_stack__",Met=[["line","bar"],["stack"]],Uet=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return I(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,A=i.get(["seriesIndex",a]);if(nE[a]){var o={series:[]},s=function(f){var c=f.subType,h=f.id,v=nE[a](c,h,f,i);v&&(gt(v,f.option),o.series.push(v));var d=f.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=d.getAxesByScale("ordinal")[0];if(p){var g=p.dim,y=g+"Axis",m=f.getReferringComponents(y,Te).models[0],w=m.componentIndex;o[y]=o[y]||[];for(var _=0;_<=w;_++)o[y][w]=o[y][w]||{};o[y][w].boundaryGap=a==="bar"}}};I(Met,function(f){Lt(f,a)>=0&&I(f,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:A==null?null:{seriesIndex:A}},s);var l,u=a;a==="stack"&&(l=Et({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(u="tiled")),n.dispatchAction({type:"changeMagicType",currentType:u,newOption:o,newTitle:l,featureName:"magicType"})}},t}(un),nE={line:function(r,t,e,n){if(r==="bar")return Et({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Et({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===rE;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Et({id:t,stack:a?"":rE},n.get(["option","stack"])||{},!0)}};Ba({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var Up=new Array(60).join("-"),Js=" ";function Pet(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var A=i.getBaseAxis();if(A.type==="category"){var o=A.dim+"_"+A.index;t[o]||(t[o]={categoryAxis:A,valueAxis:i.getOtherAxis(A),series:[]},n.push({axisDim:A.dim,axisIndex:A.index})),t[o].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Ret(r){var t=[];return I(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,A=i.dim,o=[" "].concat(Y(e.series,function(h){return h.name})),s=[a.model.getCategories()];I(e.series,function(h){var v=h.getRawData();s.push(h.getRawData().mapArray(v.mapDimension(A),function(d){return d}))});for(var l=[o.join(Js)],u=0;u=0)return!0}var Iw=new RegExp("["+Ks+"]+","g");function aet(r){for(var t=r.split(/\n+/g),e=ad(t.shift()).split(Iw),n=[],a=Y(e,function(s){return{name:s,data:[]}}),i=0;i=0;i--){var A=e[i];if(A[a])break}if(i<0){var o=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(o){var s=o.getPercentRange();e[0][a]={dataZoomId:a,start:s[0],end:s[1]}}}}),e.push(t)}function fet(r){var t=MC(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return BH(e,function(a,i){for(var A=t.length-1;A>=0;A--)if(a=t[A][i],a){n[i]=a;break}}),n}function cet(r){_H(r).snapshots=null}function het(r){return MC(r).length}function MC(r){var t=_H(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var vet=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){cet(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(on);ma({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var det=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],UC=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=HF(e,t);T(pet,function(A,o){(!n||!n.include||Qt(n.include,o)>=0)&&A(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var A=em[n.brushType](0,i,a);n.__rangeOffset={offset:VF[n.brushType](A.values,n.range,[1,1]),xyMinMax:A.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){T(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&T(i.coordSyses,function(A){var o=em[a.brushType](1,A,a.range,!0);n(a,o.values,A,e)})},this)},r.prototype.setInputRanges=function(t,e){T(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=em[n.brushType](0,a.coordSys,n.coordRange),A=n.__rangeOffset;n.range=A?VF[n.brushType](i.values,A.offset,get(i.xyMinMax,A.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:ER(a),isTargetByCursor:QR(a,t,n.coordSysModel),getLinearBrushOtherExtent:DR(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&Qt(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=HF(e,t),i=0;ir[1]&&r.reverse(),r}function HF(r,t){return Tu(r,t,{includeMainTypes:det})}var pet={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=ft(),A={},o={};!e&&!n&&!a||(T(e,function(s){var l=s.axis.grid.model;i.set(l.id,l),A[l.id]=!0}),T(n,function(s){var l=s.axis.grid.model;i.set(l.id,l),o[l.id]=!0}),T(a,function(s){i.set(s.id,s),A[s.id]=!0,o[s.id]=!0}),i.each(function(s){var l=s.coordinateSystem,u=[];T(l.getCartesians(),function(f,c){(Qt(e,f.getAxis("x").model)>=0||Qt(n,f.getAxis("y").model)>=0)&&u.push(f)}),t.push({panelId:"grid--"+s.id,gridModel:s,coordSysModel:s,coordSys:u[0],coordSyses:u,getPanelRect:kF.grid,xAxisDeclared:A[s.id],yAxisDeclared:o[s.id]})}))},geo:function(r,t){T(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:kF.geo})})}},OF=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],kF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(ao(r)),t}},em={lineX:bt(NF,0),lineY:bt(NF,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),A=[Fw([a[0],i[0]]),Fw([a[1],i[1]])];return{values:A,xyMinMax:A}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(A){var o=r?t.pointToData(A,n):t.dataToPoint(A,n);return a[0][0]=Math.min(a[0][0],o[0]),a[1][0]=Math.min(a[1][0],o[1]),a[0][1]=Math.max(a[0][1],o[0]),a[1][1]=Math.max(a[1][1],o[1]),o});return{values:i,xyMinMax:a}}};function NF(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Fw(Y([0,1],function(o){return t?a.coordToData(a.toLocalCoord(n[o]),!0):a.toGlobalCoord(a.dataToCoord(n[o]))})),A=[];return A[r]=i,A[1-r]=[NaN,NaN],{values:i,xyMinMax:A}}var VF={lineX:bt(GF,0),lineY:bt(GF,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Y(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function GF(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function get(r,t){var e=KF(r),n=KF(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function KF(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Ew=T,yet=bK("toolbox-dataZoom_"),met=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new uC(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),_et(e,n,this,i,a),Bet(e,n)},t.prototype.onclick=function(e,n,a){wet[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var A=new UC(PC(this.model),i,{include:["grid"]});A.matchOutputRanges(n,i,function(l,u,f){if(f.type==="cartesian2d"){var c=l.brushType;c==="rect"?(o("x",f,u[0]),o("y",f,u[1])):o({lineX:"x",lineY:"y"}[c],f,u)}}),uet(i,a),this._dispatchZoomAction(a);function o(l,u,f){var c=u.getAxis(l),h=c.model,v=s(l,h,i),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(f=Fo(0,f.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function s(l,u,f){var c;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(l,u.componentIndex);v&&(c=h)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Ew(e,function(a,i){n.push(mt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(on),wet={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(fet(this.ecModel))}};function PC(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Bet(r,t){r.setIconStatus("back",het(t)>1?"emphasis":"normal")}function _et(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var A=new UC(PC(r),t,{include:["grid"]}),o=A.makePanelOpts(a,function(s){return s.xAxisDeclared&&!s.yAxisDeclared?"lineX":!s.xAxisDeclared&&s.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(o).enableBrush(i&&o.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}J3("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=PC(n),A=Tu(r,i);Ew(A.xAxisModels,function(s){return o(s,"xAxis","xAxisIndex")}),Ew(A.yAxisModels,function(s){return o(s,"yAxis","yAxisIndex")});function o(s,l,u){var f=s.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:yet+l+f};c[u]=f,a.push(c)}return a});function Cet(r){r.registerComponentModel(Wtt),r.registerComponentView(Ytt),us("saveAsImage",$tt),us("magicType",qtt),us("dataView",oet),us("dataZoom",met),us("restore",vet),Lt(ztt)}var xet=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Rt);function CH(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function SH(r){if(Ut.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(o+="top:50%",s+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(o+="left:50%",s+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var u=l*Math.PI/180,f=A+a,c=f*Math.abs(Math.cos(u))+f*Math.abs(Math.sin(u)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-f)/2)*100)/100;o+=";"+i+":-"+h+"px";var v=t+" solid "+a+"px;",d=["position:absolute;width:"+A+"px;height:"+A+"px;z-index:-1;",o+";"+s+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function Qet(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=Ut.transformSupported?","+RC+n:",left"+n+",top"+n),Iet+":"+a}function zF(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Ut.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Ut.transform3dSupported,A="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+RC+":"+A+";":[["top",0],["left",0],[xH,A]]}function Let(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,A=r.get("textShadowOffsetX")||0,o=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+A+"px "+o+"px "+i+"px "+a),T(["decoration","align"],function(s){var l=r.get(s);l&&t.push("text-"+s+":"+l)}),t.join(";")}function Met(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),A=r.get("shadowBlur"),o=r.get("shadowColor"),s=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),u=r.getModel("textStyle"),f=OU(r,"html"),c=s+"px "+l+"px "+A+"px "+o;return n.push("box-shadow:"+c),t&&a&&n.push(Qet(a,e)),i&&n.push("background-color:"+i),T(["width","color","radius"],function(h){var v="border-"+h,d=iU(v),p=r.get(d);p!=null&&n.push(v+":"+p+(h==="color"?"":"px"))}),n.push(Let(u)),f!=null&&n.push("padding:"+rl(f).join("px ")+"px"),n.join(";")+";"}function WF(r,t,e,n,a){var i=t&&t.painter;if(e){var A=i&&i.getViewportRoot();A&&aG(r,A,e,n,a)}else{r[0]=n,r[1]=a;var o=i&&i.getViewportRootOffset();o&&(r[0]+=o.offsetLeft,r[1]+=o.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Uet=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ut.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,A=i&&(nt(i)?document.querySelector(i):Ms(i)?i:vt(i)&&i(t.getDom()));WF(this._styleCoord,a,A,t.getWidth()/2,t.getHeight()/2),(A||t.getDom()).appendChild(n),this._api=t,this._container=A;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(s){if(s=s||window.event,!o._enterable){var l=a.handler,u=a.painter.getViewportRoot();tn(u,s,!0),l.dispatch("mousemove",s)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=Tet(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Fet+Met(t,!this._firstShow,this._longHide)+zF(i[0],i[1],!0)+("border-color:"+go(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var A=this.el;if(t==null){A.innerHTML="";return}var o="";if(nt(i)&&n.get("trigger")==="item"&&!CH(n)&&(o=Det(n,a,i)),nt(t))A.innerHTML=t+o;else if(t){A.innerHTML="",K(t)||(t=[t]);for(var s=0;s=0?this._tryShow(i,A):a==="leave"&&this._hide(A))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var A=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&A.manuallyShowTip(e,n,a,{x:A._lastX,y:A._lastY,dataByCoordSys:A._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||Ut.node||!a.getDom())){var A=ZF(i,a);this._ticket="";var o=i.dataByCoordSys,s=Vet(i,n,a);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},A)}else if(i.tooltip&&i.x!=null&&i.y!=null){var u=Ret;u.x=i.x,u.y=i.y,u.update(),Ct(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},A)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},A);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=fH(i,n),c=f.point[0],h=f.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},A)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},A))}},t.prototype.manuallyHideTip=function(e,n,a,i){var A=this._tooltipContent;this._tooltipModel&&A.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(ZF(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var A=i.seriesIndex,o=i.dataIndex,s=n.getComponent("axisPointer").coordSysAxesInfo;if(!(A==null||o==null||s==null)){var l=n.getSeriesByIndex(A);if(l){var u=l.getData(),f=Ol([u.getItemModel(o),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:A,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var A=e.dataByCoordSys;if(A&&A.length)this._showAxisTooltip(A,e);else if(a){var o=Ct(a);if(o.ssrType==="legend")return;this._lastDataByCoordSys=null;var s,l;XA(a,function(u){if(Ct(u).dataIndex!=null)return s=u,!0;if(Ct(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=it(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,A=[n.offsetX,n.offsetY],o=Ol([n.tooltipOption],i),s=this._renderMode,l=[],u=ke("section",{blocks:[],noHeader:!0}),f=[],c=new kg;T(e,function(y){T(y.dataByAxis,function(m){var w=a.getComponent(m.axisDim+"Axis",m.axisIndex),_=m.value;if(!(!w||_==null)){var B=oH(_,w.axis,a,m.seriesDataIndices,m.valueLabelOpt),C=ke("section",{header:B,noHeader:!Dn(B),sortBlocks:!0,blocks:[]});u.blocks.push(C),T(m.seriesDataIndices,function(S){var x=a.getSeriesByIndex(S.seriesIndex),b=S.dataIndexInside,I=x.getDataParams(b);if(!(I.dataIndex<0)){I.axisDim=m.axisDim,I.axisIndex=m.axisIndex,I.axisType=m.axisType,I.axisId=m.axisId,I.axisValue=H_(w.axis,{value:_}),I.axisValueLabel=B,I.marker=c.makeTooltipMarker("item",go(I.color),s);var F=Ux(x.formatTooltip(b,!0,null)),E=F.frag;if(E){var D=Ol([x],i).get("valueFormatter");C.blocks.push(D?V({valueFormatter:D},E):E)}F.text&&f.push(F.text),l.push(I)}})}})}),u.blocks.reverse(),f.reverse();var h=n.position,v=o.get("order"),d=Nx(u,c,s,v,a.get("useUTC"),o.get("textStyle"));d&&f.unshift(d);var p=s==="richText"?` +`),meta:t.meta}}function pd(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ket(r){var t=r.slice(0,r.indexOf(` +`));if(t.indexOf(Js)>=0)return!0}var Kw=new RegExp("["+Js+"]+","g");function Net(r){for(var t=r.split(/\n+/g),e=pd(t.shift()).split(Kw),n=[],a=Y(e,function(s){return{name:s,data:[]}}),i=0;i=0;i--){var A=e[i];if(A[a])break}if(i<0){var o=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(o){var s=o.getPercentRange();e[0][a]={dataZoomId:a,start:s[0],end:s[1]}}}}),e.push(t)}function Xet(r){var t=YC(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return XH(e,function(a,i){for(var A=t.length-1;A>=0;A--)if(a=t[A][i],a){n[i]=a;break}}),n}function Yet(r){YH(r).snapshots=null}function Zet(r){return YC(r).length}function YC(r){var t=YH(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var $et=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){Yet(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(un);Ba({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var Jet=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ZC=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=aE(e,t);I(qet,function(A,o){(!n||!n.include||Lt(n.include,o)>=0)&&A(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var A=gm[n.brushType](0,i,a);n.__rangeOffset={offset:sE[n.brushType](A.values,n.range,[1,1]),xyMinMax:A.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){I(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&I(i.coordSyses,function(A){var o=gm[a.brushType](1,A,a.range,!0);n(a,o.values,A,e)})},this)},r.prototype.setInputRanges=function(t,e){I(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=gm[n.brushType](0,a.coordSys,n.coordRange),A=n.__rangeOffset;n.range=A?sE[n.brushType](i.values,A.offset,jet(i.xyMinMax,A.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:rH(a),isTargetByCursor:aH(a,t,n.coordSysModel),getLinearBrushOtherExtent:nH(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&Lt(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=aE(e,t),i=0;ir[1]&&r.reverse(),r}function aE(r,t){return Pu(r,t,{includeMainTypes:Jet})}var qet={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=ft(),A={},o={};!e&&!n&&!a||(I(e,function(s){var l=s.axis.grid.model;i.set(l.id,l),A[l.id]=!0}),I(n,function(s){var l=s.axis.grid.model;i.set(l.id,l),o[l.id]=!0}),I(a,function(s){i.set(s.id,s),A[s.id]=!0,o[s.id]=!0}),i.each(function(s){var l=s.coordinateSystem,u=[];I(l.getCartesians(),function(f,c){(Lt(e,f.getAxis("x").model)>=0||Lt(n,f.getAxis("y").model)>=0)&&u.push(f)}),t.push({panelId:"grid--"+s.id,gridModel:s,coordSysModel:s,coordSys:u[0],coordSyses:u,getPanelRect:AE.grid,xAxisDeclared:A[s.id],yAxisDeclared:o[s.id]})}))},geo:function(r,t){I(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:AE.geo})})}},iE=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],AE={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(vo(r)),t}},gm={lineX:bt(oE,0),lineY:bt(oE,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),A=[zw([a[0],i[0]]),zw([a[1],i[1]])];return{values:A,xyMinMax:A}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(A){var o=r?t.pointToData(A,n):t.dataToPoint(A,n);return a[0][0]=Math.min(a[0][0],o[0]),a[1][0]=Math.min(a[1][0],o[1]),a[0][1]=Math.max(a[0][1],o[0]),a[1][1]=Math.max(a[1][1],o[1]),o});return{values:i,xyMinMax:a}}};function oE(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=zw(Y([0,1],function(o){return t?a.coordToData(a.toLocalCoord(n[o]),!0):a.toGlobalCoord(a.dataToCoord(n[o]))})),A=[];return A[r]=i,A[1-r]=[NaN,NaN],{values:i,xyMinMax:A}}var sE={lineX:bt(lE,0),lineY:bt(lE,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Y(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function lE(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function jet(r,t){var e=uE(r),n=uE(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function uE(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Ww=I,trt=o3("toolbox-dataZoom_"),ert=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new SC(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),art(e,n,this,i,a),nrt(e,n)},t.prototype.onclick=function(e,n,a){rrt[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var A=new ZC($C(this.model),i,{include:["grid"]});A.matchOutputRanges(n,i,function(l,u,f){if(f.type==="cartesian2d"){var c=l.brushType;c==="rect"?(o("x",f,u[0]),o("y",f,u[1])):o({lineX:"x",lineY:"y"}[c],f,u)}}),Wet(i,a),this._dispatchZoomAction(a);function o(l,u,f){var c=u.getAxis(l),h=c.model,v=s(l,h,i),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(f=Ho(0,f.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function s(l,u,f){var c;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(l,u.componentIndex);v&&(c=h)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Ww(e,function(a,i){n.push(wt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(un),rrt={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Xet(this.ecModel))}};function $C(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function nrt(r,t){r.setIconStatus("back",Zet(t)>1?"emphasis":"normal")}function art(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var A=new ZC($C(r),t,{include:["grid"]}),o=A.makePanelOpts(a,function(s){return s.xAxisDeclared&&!s.yAxisDeclared?"lineX":!s.xAxisDeclared&&s.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(o).enableBrush(i&&o.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}Lz("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=$C(n),A=Pu(r,i);Ww(A.xAxisModels,function(s){return o(s,"xAxis","xAxisIndex")}),Ww(A.yAxisModels,function(s){return o(s,"yAxis","yAxisIndex")});function o(s,l,u){var f=s.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:trt+l+f};c[u]=f,a.push(c)}return a});function irt(r){r.registerComponentModel(Fet),r.registerComponentView(Det),ms("saveAsImage",Qet),ms("magicType",Uet),ms("dataView",Ket),ms("dataZoom",ert),ms("restore",$et),Qt(Iet)}var Art=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Ht);function ZH(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function $H(r){if(Pt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(o+="top:50%",s+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(o+="left:50%",s+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var u=l*Math.PI/180,f=A+a,c=f*Math.abs(Math.cos(u))+f*Math.abs(Math.sin(u)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-f)/2)*100)/100;o+=";"+i+":-"+h+"px";var v=t+" solid "+a+"px;",d=["position:absolute;width:"+A+"px;height:"+A+"px;z-index:-1;",o+";"+s+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function hrt(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=Pt.transformSupported?","+JC+n:",left"+n+",top"+n),lrt+":"+a}function fE(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Pt.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Pt.transform3dSupported,A="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+JC+":"+A+";":[["top",0],["left",0],[JH,A]]}function vrt(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,A=r.get("textShadowOffsetX")||0,o=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+A+"px "+o+"px "+i+"px "+a),I(["decoration","align"],function(s){var l=r.get(s);l&&t.push("text-"+s+":"+l)}),t.join(";")}function drt(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),A=r.get("shadowBlur"),o=r.get("shadowColor"),s=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),u=r.getModel("textStyle"),f=f2(r,"html"),c=s+"px "+l+"px "+A+"px "+o;return n.push("box-shadow:"+c),t&&a&&n.push(hrt(a,e)),i&&n.push("background-color:"+i),I(["width","color","radius"],function(h){var v="border-"+h,d=DU(v),p=r.get(d);p!=null&&n.push(v+":"+p+(h==="color"?"":"px"))}),n.push(vrt(u)),f!=null&&n.push("padding:"+ll(f).join("px ")+"px"),n.join(";")+";"}function cE(r,t,e,n,a){var i=t&&t.painter;if(e){var A=i&&i.getViewportRoot();A&&OG(r,A,e,n,a)}else{r[0]=n,r[1]=a;var o=i&&i.getViewportRootOffset();o&&(r[0]+=o.offsetLeft,r[1]+=o.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var prt=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Pt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,A=i&&(nt(i)?document.querySelector(i):Ns(i)?i:vt(i)&&i(t.getDom()));cE(this._styleCoord,a,A,t.getWidth()/2,t.getHeight()/2),(A||t.getDom()).appendChild(n),this._api=t,this._container=A;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(s){if(s=s||window.event,!o._enterable){var l=a.handler,u=a.painter.getViewportRoot();nn(u,s,!0),l.dispatch("mousemove",s)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=srt(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=urt+drt(t,!this._firstShow,this._longHide)+fE(i[0],i[1],!0)+("border-color:"+bo(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var A=this.el;if(t==null){A.innerHTML="";return}var o="";if(nt(i)&&n.get("trigger")==="item"&&!ZH(n)&&(o=crt(n,a,i)),nt(t))A.innerHTML=t+o;else if(t){A.innerHTML="",K(t)||(t=[t]);for(var s=0;s=0?this._tryShow(i,A):a==="leave"&&this._hide(A))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var A=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&A.manuallyShowTip(e,n,a,{x:A._lastX,y:A._lastY,dataByCoordSys:A._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||Pt.node||!a.getDom())){var A=dE(i,a);this._ticket="";var o=i.dataByCoordSys,s=Crt(i,n,a);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},A)}else if(i.tooltip&&i.x!=null&&i.y!=null){var u=yrt;u.x=i.x,u.y=i.y,u.update(),St(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},A)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},A);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=RH(i,n),c=f.point[0],h=f.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},A)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},A))}},t.prototype.manuallyHideTip=function(e,n,a,i){var A=this._tooltipContent;this._tooltipModel&&A.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(dE(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var A=i.seriesIndex,o=i.dataIndex,s=n.getComponent("axisPointer").coordSysAxesInfo;if(!(A==null||o==null||s==null)){var l=n.getSeriesByIndex(A);if(l){var u=l.getData(),f=Wl([u.getItemModel(o),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:A,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var A=e.dataByCoordSys;if(A&&A.length)this._showAxisTooltip(A,e);else if(a){var o=St(a);if(o.ssrType==="legend")return;this._lastDataByCoordSys=null;var s,l;no(a,function(u){if(St(u).dataIndex!=null)return s=u,!0;if(St(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=it(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,A=[n.offsetX,n.offsetY],o=Wl([n.tooltipOption],i),s=this._renderMode,l=[],u=Ne("section",{blocks:[],noHeader:!0}),f=[],c=new ry;I(e,function(y){I(y.dataByAxis,function(m){var w=a.getComponent(m.axisDim+"Axis",m.axisIndex),_=m.value;if(!(!w||_==null)){var B=QH(_,w.axis,a,m.seriesDataIndices,m.valueLabelOpt),C=Ne("section",{header:B,noHeader:!Mn(B),sortBlocks:!0,blocks:[]});u.blocks.push(C),I(m.seriesDataIndices,function(x){var S=a.getSeriesByIndex(x.seriesIndex),b=x.dataIndexInside,T=S.getDataParams(b);if(!(T.dataIndex<0)){T.axisDim=m.axisDim,T.axisIndex=m.axisIndex,T.axisType=m.axisType,T.axisId=m.axisId,T.axisValue=q_(w.axis,{value:_}),T.axisValueLabel=B,T.marker=c.makeTooltipMarker("item",bo(T.color),s);var F=eb(S.formatTooltip(b,!0,null)),E=F.frag;if(E){var D=Wl([S],i).get("valueFormatter");C.blocks.push(D?V({valueFormatter:D},E):E)}F.text&&f.push(F.text),l.push(T)}})}})}),u.blocks.reverse(),f.reverse();var h=n.position,v=o.get("order"),d=ob(u,c,s,v,a.get("useUTC"),o.get("textStyle"));d&&f.unshift(d);var p=s==="richText"?` -`:"
",g=f.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(o,h,A[0],A[1],this._tooltipContent,l):this._showTooltipContent(o,g,l,Math.random()+"",A[0],A[1],h,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,A=Ct(n),o=A.seriesIndex,s=i.getSeriesByIndex(o),l=A.dataModel||s,u=A.dataIndex,f=A.dataType,c=l.getData(f),h=this._renderMode,v=e.positionDefault,d=Ol([c.getItemModel(u),l,s&&(s.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=d.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(u,f),y=new kg;g.marker=y.makeTooltipMarker("item",go(g.color),h);var m=Ux(l.formatTooltip(u,!1,f)),w=d.get("order"),_=d.get("valueFormatter"),B=m.frag,C=B?Nx(_?V({valueFormatter:_},B):B,y,h,w,i.get("useUTC"),d.get("textStyle")):m.text,S="item_"+l.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,C,g,S,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",A=Ct(n),o=A.tooltipConfig,s=o.option||{},l=s.encodeHTMLContent;if(nt(s)){var u=s;s={content:u,formatter:u},l=!0}l&&i&&s.content&&(s=mt(s),s.content=Dr(s.content));var f=[s],c=this._ecModel.getComponent(A.componentMainType,A.componentIndex);c&&f.push(c),f.push({formatter:s.content});var h=e.positionDefault,v=Ol(f,this._tooltipModel,h?{position:h}:null),d=v.get("content"),p=Math.random()+"",g=new kg;this._showOrMove(v,function(){var y=mt(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,p,e.offsetX,e.offsetY,e.position,n,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,A,o,s,l,u){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var c=e.get("formatter");s=s||e.get("position");var h=n,v=this._getNearestPoint([A,o],a,e.get("trigger"),e.get("borderColor")),d=v.color;if(c)if(nt(c)){var p=e.ecModel.get("useUTC"),g=K(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=jd(g.axisValue,h,p)),h=AU(h,a,!0)}else if(vt(c)){var m=it(function(w,_){w===this._ticket&&(f.setContent(_,u,e,d,s),this._updatePosition(e,s,A,o,f,a,l))},this);this._ticket=i,h=c(a,i,m)}else h=c;f.setContent(h,u,e,d,s),f.show(e,d),this._updatePosition(e,s,A,o,f,a,l)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||K(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!K(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,A,o,s){var l=this._api.getWidth(),u=this._api.getHeight();n=n||e.get("position");var f=A.getSize(),c=e.get("align"),h=e.get("verticalAlign"),v=s&&s.getBoundingRect().clone();if(s&&v.applyTransform(s.transform),vt(n)&&(n=n([a,i],o,A.el,v,{viewSize:[l,u],contentSize:f.slice()})),K(n))a=et(n[0],l),i=et(n[1],u);else if(yt(n)){var d=n;d.width=f[0],d.height=f[1];var p=Le(d,{width:l,height:u});a=p.x,i=p.y,c=null,h=null}else if(nt(n)&&s){var g=Net(n,v,f,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=Oet(a,i,A,l,u,c?null:20,h?null:20);a=g[0],i=g[1]}if(c&&(a-=$F(c)?f[0]/2:c==="right"?f[0]:0),h&&(i-=$F(h)?f[1]/2:h==="bottom"?f[1]:0),CH(e)){var g=ket(a,i,A,l,u);a=g[0],i=g[1]}A.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,A=!!a&&a.length===e.length;return A&&T(a,function(o,s){var l=o.dataByAxis||[],u=e[s]||{},f=u.dataByAxis||[];A=A&&l.length===f.length,A&&T(l,function(c,h){var v=f[h]||{},d=c.seriesDataIndices||[],p=v.seriesDataIndices||[];A=A&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===p.length,A&&T(d,function(g,y){var m=p[y];A=A&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),i&&T(c.seriesDataIndices,function(g){var y=g.seriesIndex,m=n[y],w=i[y];m&&w&&w.data!==m.data&&(A=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!A},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Ut.node||!n.getDom()||(lf(this,"_updatePosition"),this._tooltipContent.dispose(),xw("itemTooltip",n))},t.type="tooltip",t}(de);function Ol(r,t,e){var n=t.ecModel,a;e?(a=new Yt(e,n,n),a=new Yt(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var A=r[i];A&&(A instanceof Yt&&(A=A.get("tooltip",!0)),nt(A)&&(A={formatter:A}),A&&(a=new Yt(A,a,n)))}return a}function ZF(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function Oet(r,t,e,n,a,i,A){var o=e.getSize(),s=o[0],l=o[1];return i!=null&&(r+s+i+2>n?r-=s+i:r+=i),A!=null&&(t+l+A>a?t-=l+A:t+=A),[r,t]}function ket(r,t,e,n,a){var i=e.getSize(),A=i[0],o=i[1];return r=Math.min(r+A,n)-A,t=Math.min(t+o,a)-o,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Net(r,t,e,n){var a=e[0],i=e[1],A=Math.ceil(Math.SQRT2*n)+8,o=0,s=0,l=t.width,u=t.height;switch(r){case"inside":o=t.x+l/2-a/2,s=t.y+u/2-i/2;break;case"top":o=t.x+l/2-a/2,s=t.y-i-A;break;case"bottom":o=t.x+l/2-a/2,s=t.y+u+A;break;case"left":o=t.x-a-A,s=t.y+u/2-i/2;break;case"right":o=t.x+l+A,s=t.y+u/2-i/2}return[o,s]}function $F(r){return r==="center"||r==="middle"}function Vet(r,t,e){var n=qB(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Qf(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),A=i.models[0];if(A){var o=e.getViewOfComponentModel(A),s;if(o.group.traverse(function(l){var u=Ct(l).tooltipConfig;if(u&&u.name===r.name)return s=l,!0}),s)return{componentMainType:a,componentIndex:A.componentIndex,el:s}}}}function Get(r){Lt(Jf),r.registerComponentModel(xet),r.registerComponentView(Het),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Be),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Be)}var Ket=["rect","polygon","keep","clear"];function zet(r,t){var e=qt(r?r.brush:[]);if(e.length){var n=[];T(e,function(s){var l=s.hasOwnProperty("toolbox")?s.toolbox:[];l instanceof Array&&(n=n.concat(l))});var a=r&&r.toolbox;K(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),A=i.brush||(i.brush={}),o=A.type||(A.type=[]);o.push.apply(o,n),Wet(o),t&&!o.length&&o.push.apply(o,Ket)}}function Wet(r){var t={};T(r,function(e){t[e]=1}),r.length=0,T(t,function(e,n){r.push(n)})}var JF=T;function qF(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Dw(r,t,e){var n={};return JF(t,function(i){var A=n[i]=a();JF(r[i],function(o,s){if(He.isValidType(s)){var l={type:s,visual:o};e&&e(l,i),A[s]=new He(l),s==="opacity"&&(l=mt(l),l.type="colorAlpha",A.__hidden.__alphaForOpacity=new He(l))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var A=new i;return A}}function TH(r,t,e){var n;T(e,function(a){t.hasOwnProperty(a)&&qF(t[a])&&(n=!0)}),n&&T(e,function(a){t.hasOwnProperty(a)&&qF(t[a])?r[a]=mt(t[a]):delete r[a]})}function Xet(r,t,e,n,a,i){var A={};T(r,function(f){var c=He.prepareVisualTypes(t[f]);A[f]=c});var o;function s(f){return T_(e,o,f)}function l(f,c){ZU(e,o,f,c)}e.each(u);function u(f,c){o=f;var h=e.getRawDataItem(o);if(!(h&&h.visualMap===!1))for(var v=n.call(a,f),d=t[v],p=A[v],g=0,y=p.length;gt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&nE(t)}};function nE(r){return new Dt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var ert=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new uC(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){IH(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:mt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:mt(a),$from:n})},t.type="brush",t}(de),rrt="#ddd",nrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&TH(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:rrt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(n){return aE(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=aE(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Rt);function aE(r,t){return Et({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Yt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var art=["rect","polygon","lineX","lineY","keep","clear"],irt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,A,o;n.eachComponent({mainType:"brush"},function(s){i=s.brushType,A=s.brushOption.brushMode||"single",o=o||!!s.areas.length}),this._brushType=i,this._brushMode=A,T(e.get("type",!0),function(s){e.setIconStatus(s,(s==="keep"?A==="multiple":s==="clear"?o:s===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return T(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,A=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?A==="multiple"?"single":"multiple":A}})},t.getDefaultOption=function(e){var n={show:!0,type:art.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(on);function Art(r){r.registerComponentView(ert),r.registerComponentModel(nrt),r.registerPreprocessor(zet),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,$et),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Be),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Be),us("brush",irt)}var ort=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Rt),srt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,A=e.getModel("textStyle"),o=e.getModel("subtextStyle"),s=e.get("textAlign"),l=xt(e.get("textBaseline"),e.get("textVerticalAlign")),u=new Gt({style:oe(A,{text:e.get("text"),fill:A.getTextColor()},{disableBox:!0}),z2:10}),f=u.getBoundingRect(),c=e.get("subtext"),h=new Gt({style:oe(o,{text:c,fill:o.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),d=e.get("sublink"),p=e.get("triggerEvent",!0);u.silent=!v&&!p,h.silent=!d&&!p,v&&u.on("click",function(){Mv(v,"_"+e.get("target"))}),d&&h.on("click",function(){Mv(d,"_"+e.get("subtarget"))}),Ct(u).eventData=Ct(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(u),c&&i.add(h);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=Le(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));s||(s=e.get("left")||e.get("right"),s==="middle"&&(s="center"),s==="right"?m.x+=m.width:s==="center"&&(m.x+=m.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?m.y+=m.height:l==="middle"&&(m.y+=m.height/2),l=l||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var w={align:s,verticalAlign:l};u.setStyle(w),h.setStyle(w),g=i.getBoundingRect();var _=m.margin,B=e.getItemStyle(["color","opacity"]);B.fill=e.get("backgroundColor");var C=new Nt({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(de);function lrt(r){r.registerComponentModel(ort),r.registerComponentView(srt)}var iE=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],a=e.axisType,i=this._names=[],A;a==="category"?(A=[],T(n,function(l,u){var f=De($s(l),""),c;yt(l)?(c=mt(l),c.value=u):c=u,A.push(c),i.push(f)})):A=n;var o={category:"ordinal",time:"time",value:"number"}[a]||"number",s=this._data=new mr([{name:"value",type:o}],this);s.initData(A,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Rt),FH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=nA(iE.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(iE);Fe(FH,Ap.prototype);var urt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(de),frt=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this,e,n,a)||this;return A.type=i||"value",A}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(kn),nm=Math.PI,AE=Vt(),crt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),A=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(l){var u=s.scale.getLabel({value:l});return ke("nameValue",{noName:!0,value:u})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(l){this["_render"+l](i,A,s,e)},this),this._renderAxisLabel(i,o,s,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),A=vrt(e,n),o;a==null||a==="auto"?o=i==="horizontal"?A.y+A.height/2=0||o==="+"?"left":"right"},l={horizontal:o>=0||o==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:nm/2},f=i==="vertical"?A.height:A.width,c=e.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,p=v+d,g=e.get(["label","rotate"])||0;g=g*nm/180;var y,m,w,_=c.get("position",!0),B=h&&c.get("showPlayBtn",!0),C=h&&c.get("showPrevBtn",!0),S=h&&c.get("showNextBtn",!0),x=0,b=f;_==="left"||_==="bottom"?(B&&(y=[0,0],x+=p),C&&(m=[x,0],x+=p),S&&(w=[b-v,0],b-=p)):(B&&(y=[b-v,0],b-=p),C&&(m=[0,0],x+=p),S&&(w=[b-v,0],b-=p));var I=[x,b];return e.get("inverse")&&I.reverse(),{viewRect:A,mainLength:f,orient:i,rotation:u[i],labelRotation:g,labelPosOpt:o,labelAlign:e.get(["label","align"])||s[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||l[i],playPosition:y,prevBtnPosition:m,nextBtnPosition:w,axisExtent:I,controlSize:v,controlGap:d}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,A=e.viewRect;if(e.orient==="vertical"){var o=Wr(),s=A.x,l=A.y+A.height;va(o,o,[-s,-l]),Co(o,o,-nm/2),va(o,o,[s,l]),A=A.clone(),A.applyTransform(o)}var u=y(A),f=y(a.getBoundingRect()),c=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=u[0][0];var d=e.labelPosOpt;if(d==null||nt(d)){var p=d==="+"?0:1;m(h,f,u,1,p),m(v,c,u,1,1-p)}else{var p=d>=0?0:1;m(h,f,u,1,p),v[1]=h[1]+d}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=e.rotation,g(a),g(i);function g(w){w.originX=u[0][0]-w.x,w.originY=u[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function m(w,_,B,C,S){w[C]+=B[C][S]-_[C][S]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType"),A=hrt(n,i);A.getTicks=function(){return a.mapArray(["value"],function(l){return{value:l}})};var o=a.getDataExtent("value");A.setExtent(o[0],o[1]),A.calcNiceTicks();var s=new frt("value",A,e.axisExtent,i);return s.model=n,s},t.prototype._createGroup=function(e){var n=this[e]=new _t;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var A=a.getExtent();if(i.get(["lineStyle","show"])){var o=new Pe({shape:{x1:A[0],y1:0,x2:A[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(o);var s=this._progressLine=new Pe({shape:{x1:A[0],x2:this._currentPointer?this._currentPointer.x:A[0],y1:0,y2:0},style:gt({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(s)}},t.prototype._renderAxisTick=function(e,n,a,i){var A=this,o=i.getData(),s=a.scale.getTicks();this._tickSymbols=[],T(s,function(l){var u=a.dataToCoord(l.value),f=o.getItemModel(l.value),c=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),d={x:u,y:0,onclick:it(A._changeTimeline,A,l.value)},p=oE(f,c,n,d);p.ensureState("emphasis").style=h.getItemStyle(),p.ensureState("progress").style=v.getItemStyle(),no(p);var g=Ct(p);f.get("tooltip")?(g.dataIndex=l.value,g.dataModel=i):g.dataIndex=g.dataModel=null,A._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(e,n,a,i){var A=this,o=a.getLabelModel();if(o.get("show")){var s=i.getData(),l=a.getViewLabels();this._tickLabels=[],T(l,function(u){var f=u.tickValue,c=s.getItemModel(f),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),p=a.dataToCoord(u.tickValue),g=new Gt({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:it(A._changeTimeline,A,f),silent:!1,style:oe(h,{text:u.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});g.ensureState("emphasis").style=oe(v),g.ensureState("progress").style=oe(d),n.add(g),no(g),AE(g).dataIndex=f,A._tickLabels.push(g)})}},t.prototype._renderControl=function(e,n,a,i){var A=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),f=i.get("inverse",!0);c(e.nextBtnPosition,"next",it(this._changeTimeline,this,f?"-":"+")),c(e.prevBtnPosition,"prev",it(this._changeTimeline,this,f?"+":"-")),c(e.playPosition,u?"stop":"play",it(this._handlePlayClick,this,!u),!0);function c(h,v,d,p){if(h){var g=Rn(xt(i.get(["controlStyle",v+"BtnSize"]),A),A),y=[0,-g/2,g,g],m=drt(i,v+"Icon",y,{x:h[0],y:h[1],originX:A/2,originY:0,rotation:p?-o:0,rectHover:!0,style:s,onclick:d});m.ensureState("emphasis").style=l,n.add(m),no(m)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var A=i.getData(),o=i.getCurrentIndex(),s=A.getItemModel(o).getModel("checkpointStyle"),l=this,u={onCreate:function(f){f.draggable=!0,f.drift=it(l._handlePointerDrag,l),f.ondragend=it(l._handlePointerDragend,l),sE(f,l._progressLine,o,a,i,!0)},onUpdate:function(f){sE(f,l._progressLine,o,a,i)}};this._currentPointer=oE(s,s,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,A=fn(i.getExtent().slice());a>A[1]&&(a=A[1]),a=0&&(A[i]=+A[i].toFixed(c)),[A,f]}var am={min:bt(Ah,"min"),max:bt(Ah,"max"),average:bt(Ah,"average"),median:bt(Ah,"median")};function Cf(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!Brt(t)&&!K(t.coord)&&K(a)){var i=EH(t,e,n,r);if(t=mt(t),t.type&&am[t.type]&&i.baseAxis&&i.valueAxis){var A=Qt(a,i.baseAxis.dim),o=Qt(a,i.valueAxis.dim),s=am[t.type](e,i.baseDataDim,i.valueDataDim,A,o);t.coord=s[0],t.value=s[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!K(a))t.coord=[];else for(var l=t.coord,u=0;u<2;u++)am[l[u]]&&(l[u]=OC(e,e.mapDimension(a[u]),l[u]));return t}}function EH(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(_rt(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function _rt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Sf(r,t){return r&&r.containData&&t.coord&&!Lw(t)?r.containData(t.coord):!0}function Crt(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Lw(t)&&!Lw(e)?r.containZone(t.coord,e.coord):!0}function DH(r,t){return r?function(e,n,a,i){var A=i<2?e.coord&&e.coord[i]:e.value;return Oi(A,t[i])}:function(e,n,a,i){return Oi(e.value,t[i])}}function OC(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,A){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var im=Vt(),kC=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ft()},t.prototype.render=function(e,n,a){var i=this,A=this.markerGroupMap;A.each(function(o){im(o).keep=!1}),n.eachSeries(function(o){var s=Ja.getMarkerModelFromSeries(o,i.type);s&&i.renderSeries(o,s,n,a)}),A.each(function(o){!im(o).keep&&i.group.remove(o.group)})},t.prototype.markKeep=function(e){im(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;T(e,function(i){var A=Ja.getMarkerModelFromSeries(i,a.type);if(A){var o=A.getData();o.eachItemGraphicEl(function(s){s&&(n?CM(s):i_(s))})}})},t.type="marker",t}(de);function uE(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),A,o=et(i.get("x"),e.getWidth()),s=et(i.get("y"),e.getHeight());if(!isNaN(o)&&!isNaN(s))A=[o,s];else if(t.getMarkerPosition)A=t.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var l=r.get(n.dimensions[0],a),u=r.get(n.dimensions[1],a);A=n.dataToPoint([l,u])}isNaN(o)||(A[0]=o),isNaN(s)||(A[1]=s),r.setItemLayout(a,A)})}var Srt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markPoint");A&&(uE(A.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new Kf),f=xrt(A,e,n);n.setData(f),uE(n.getData(),e,i),f.each(function(c){var h=f.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),p=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(vt(v)||vt(d)||vt(p)||vt(g)){var m=n.getRawValue(c),w=n.getDataParams(c);vt(v)&&(v=v(m,w)),vt(d)&&(d=d(m,w)),vt(p)&&(p=p(m,w)),vt(g)&&(g=g(m,w))}var _=h.getModel("itemStyle").getItemStyle(),B=kf(s,"color");_.fill||(_.fill=B),f.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:p,symbolOffset:g,symbolKeepAspect:y,style:_})}),u.updateData(f),this.group.add(u.group),f.eachItemGraphicEl(function(c){c.traverse(function(h){Ct(h).dataModel=n})}),this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(kC);function xrt(r,t,e){var n;r?n=Y(r&&r.dimensions,function(o){var s=t.getData().getDimensionInfo(t.getData().mapDimension(o))||{};return V(V({},s),{name:o,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=Y(e.get("data"),bt(Cf,t));r&&(i=Jt(i,bt(Sf,r)));var A=DH(!!r,n);return a.initData(i,null,A),a}function brt(r){r.registerComponentModel(wrt),r.registerComponentView(Srt),r.registerPreprocessor(function(t){HC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Trt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ja),oh=Vt(),Irt=function(r,t,e,n){var a=r.getData(),i;if(K(n))i=n;else{var A=n.type;if(A==="min"||A==="max"||A==="average"||A==="median"||n.xAxis!=null||n.yAxis!=null){var o=void 0,s=void 0;if(n.yAxis!=null||n.xAxis!=null)o=t.getAxis(n.yAxis!=null?"y":"x"),s=Ge(n.yAxis,n.xAxis);else{var l=EH(n,a,t,r);o=l.valueAxis;var u=S2(a,l.valueDataDim);s=OC(a,u,A)}var f=o.dim==="x"?0:1,c=1-f,h=mt(n),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=e.get("precision");d>=0&&Kt(s)&&(s=+s.toFixed(Math.min(d,20))),h.coord[f]=v.coord[f]=s,i=[h,v,{type:A,valueIndex:n.valueIndex,value:s}]}else i=[]}var p=[Cf(r,i[0]),Cf(r,i[1]),V({},i[2])];return p[2].type=p[2].type||null,Et(p[2],p[0]),Et(p[2],p[1]),p};function id(r){return!isNaN(r)&&!isFinite(r)}function fE(r,t,e,n){var a=1-r,i=n.dimensions[r];return id(t[a])&&id(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function Frt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(fE(1,e,n,r)||fE(0,e,n,r)))return!0}return Sf(r,t[0])&&Sf(r,t[1])}function Am(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get("x"),a.getWidth()),l=et(A.get("y"),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition)o=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var u=i.dimensions,f=r.get(u[0],t),c=r.get(u[1],t);o=i.dataToPoint([f,c])}if(To(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),u=i.dimensions;id(r.get(u[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):id(r.get(u[1],t))&&(o[1]=v.toGlobalCoord(v.getExtent()[e?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}r.setItemLayout(t,o)}var Ert=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markLine");if(A){var o=A.getData(),s=oh(A).from,l=oh(A).to;s.each(function(u){Am(s,u,!0,i,a),Am(l,u,!1,i,a)}),o.each(function(u){o.setItemLayout(u,[s.getItemLayout(u),l.getItemLayout(u)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new lC);this.group.add(u.group);var f=Drt(A,e,n),c=f.from,h=f.to,v=f.line;oh(n).from=c,oh(n).to=h,n.setData(v);var d=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),y=n.get("symbolOffset");K(d)||(d=[d,d]),K(p)||(p=[p,p]),K(g)||(g=[g,g]),K(y)||(y=[y,y]),f.from.each(function(w){m(c,w,!0),m(h,w,!1)}),v.each(function(w){var _=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[c.getItemLayout(w),h.getItemLayout(w)]),_.stroke==null&&(_.stroke=c.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:c.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(w,"symbolOffset"),fromSymbolRotate:c.getItemVisual(w,"symbolRotate"),fromSymbolSize:c.getItemVisual(w,"symbolSize"),fromSymbol:c.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:_})}),u.updateData(v),f.line.eachItemGraphicEl(function(w){Ct(w).dataModel=n,w.traverse(function(_){Ct(_).dataModel=n})});function m(w,_,B){var C=w.getItemModel(_);Am(w,_,B,e,i);var S=C.getModel("itemStyle").getItemStyle();S.fill==null&&(S.fill=kf(s,"color")),w.setItemVisual(_,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:xt(C.get("symbolOffset",!0),y[B?0:1]),symbolRotate:xt(C.get("symbolRotate",!0),g[B?0:1]),symbolSize:xt(C.get("symbolSize"),p[B?0:1]),symbol:xt(C.get("symbol",!0),d[B?0:1]),style:S})}this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(kC);function Drt(r,t,e){var n;r?n=Y(r&&r.dimensions,function(l){var u=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return V(V({},u),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=new mr(n,e),A=new mr([],e),o=Y(e.get("data"),bt(Irt,t,r,e));r&&(o=Jt(o,bt(Frt,r)));var s=DH(!!r,n);return a.initData(Y(o,function(l){return l[0]}),null,s),i.initData(Y(o,function(l){return l[1]}),null,s),A.initData(Y(o,function(l){return l[2]})),A.hasItemOption=!0,{from:a,to:i,line:A}}function Qrt(r){r.registerComponentModel(Trt),r.registerComponentView(Ert),r.registerPreprocessor(function(t){HC(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Lrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ja),sh=Vt(),Mrt=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var A=Cf(r,a),o=Cf(r,i),s=A.coord,l=o.coord;s[0]=Ge(s[0],-1/0),s[1]=Ge(s[1],-1/0),l[0]=Ge(l[0],1/0),l[1]=Ge(l[1],1/0);var u=NB([{},A,o]);return u.coord=[A.coord,o.coord],u.x0=A.x,u.y0=A.y,u.x1=o.x,u.y1=o.y,u}};function Ad(r){return!isNaN(r)&&!isFinite(r)}function cE(r,t,e,n){var a=1-r;return Ad(t[a])&&Ad(e[a])}function Urt(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return To(r,"cartesian2d")?e&&n&&(cE(1,e,n)||cE(0,e,n))?!0:Crt(r,a,i):Sf(r,a)||Sf(r,i)}function hE(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get(e[0]),a.getWidth()),l=et(A.get(e[1]),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition){var u=r.getValues(["x0","y0"],t),f=r.getValues(["x1","y1"],t),c=i.clampData(u),h=i.clampData(f),v=[];e[0]==="x0"?v[0]=c[0]>h[0]?f[0]:u[0]:v[0]=c[0]>h[0]?u[0]:f[0],e[1]==="y0"?v[1]=c[1]>h[1]?f[1]:u[1]:v[1]=c[1]>h[1]?u[1]:f[1],o=n.getMarkerPosition(v,e,!0)}else{var d=r.get(e[0],t),p=r.get(e[1],t),g=[d,p];i.clampData&&i.clampData(g,g),o=i.dataToPoint(g,!0)}if(To(i,"cartesian2d")){var y=i.getAxis("x"),m=i.getAxis("y"),d=r.get(e[0],t),p=r.get(e[1],t);Ad(d)?o[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):Ad(p)&&(o[1]=m.toGlobalCoord(m.getExtent()[e[1]==="y0"?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}return o}var vE=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Prt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markArea");if(A){var o=A.getData();o.each(function(s){var l=Y(vE,function(f){return hE(o,s,f,i,a)});o.setItemLayout(s,l);var u=o.getItemGraphicEl(s);u.setShape("points",l)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new _t});this.group.add(u.group),this.markKeep(u);var f=Rrt(A,e,n);n.setData(f),f.each(function(c){var h=Y(vE,function(S){return hE(f,c,S,e,i)}),v=A.getAxis("x").scale,d=A.getAxis("y").scale,p=v.getExtent(),g=d.getExtent(),y=[v.parse(f.get("x0",c)),v.parse(f.get("x1",c))],m=[d.parse(f.get("y0",c)),d.parse(f.get("y1",c))];fn(y),fn(m);var w=!(p[0]>y[1]||p[1]m[1]||g[1]=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}(Rt),Yo=bt,Uw=T,lh=_t,QH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new lh),this.group.add(this._selectorGroup=new lh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var A=e.get("align"),o=e.get("orient");(!A||A==="auto")&&(A=e.get("left")==="right"&&o==="vertical"?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);s&&(!l||l==="auto")&&(l=o==="horizontal"?"end":"start"),this.renderInner(A,e,n,a,s,o,l);var u=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},c=e.get("padding"),h=Le(u,f,c),v=this.layoutInner(e,A,h,i,s,l),d=Le(gt({width:v.width,height:v.height},u),f,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wH(v,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,A,o,s){var l=this.getContentGroup(),u=ft(),f=n.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),Uw(n.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===` -`)){var p=new lh;p.newline=!0,l.add(p);return}var g=a.getSeriesByName(d)[0];if(!u.get(d))if(g){var y=g.getData(),m=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),_=y.getVisual("style"),B=this._createItem(g,d,v,h,n,e,m,_,w,f,i);B.on("click",Yo(dE,d,null,i,c)).on("mouseover",Yo(Pw,g.name,null,i,c)).on("mouseout",Yo(Rw,g.name,null,i,c)),a.ssr&&B.eachChild(function(C){var S=Ct(C);S.seriesIndex=g.seriesIndex,S.dataIndex=v,S.ssrType="legend"}),u.set(d,!0)}else a.eachRawSeries(function(C){if(!u.get(d)&&C.legendVisualProvider){var S=C.legendVisualProvider;if(!S.containName(d))return;var x=S.indexOfName(d),b=S.getItemVisual(x,"style"),I=S.getItemVisual(x,"legendIcon"),F=Xr(b.fill);F&&F[3]===0&&(F[3]=.2,b=V(V({},b),{fill:Oa(F,"rgba")}));var E=this._createItem(C,d,v,h,n,e,{},b,I,f,i);E.on("click",Yo(dE,null,d,i,c)).on("mouseover",Yo(Pw,null,d,i,c)).on("mouseout",Yo(Rw,null,d,i,c)),a.ssr&&E.eachChild(function(D){var Q=Ct(D);Q.seriesIndex=C.seriesIndex,Q.dataIndex=v,Q.ssrType="legend"}),u.set(d,!0)}},this)},this),A&&this._createSelector(A,n,i,o,s)},t.prototype._createSelector=function(e,n,a,i,A){var o=this.getSelectorGroup();Uw(e,function(l){var u=l.type,f=new Gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});o.add(f);var c=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Je(f,{normal:c,emphasis:h},{defaultText:l.title}),no(f)})},t.prototype._createItem=function(e,n,a,i,A,o,s,l,u,f,c){var h=e.visualDrawType,v=A.get("itemWidth"),d=A.get("itemHeight"),p=A.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");u=m||u||"roundRect";var w=krt(u,i,s,l,h,p,c),_=new lh,B=i.getModel("textStyle");if(vt(e.getLegendIcon)&&(!m||m==="inherit"))_.add(e.getLegendIcon({itemWidth:v,itemHeight:d,icon:u,iconRotate:g,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var C=m==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;_.add(Nrt({itemWidth:v,itemHeight:d,icon:u,iconRotate:C,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var S=o==="left"?v+5:-5,x=o,b=A.get("formatter"),I=n;nt(b)&&b?I=b.replace("{name}",n??""):vt(b)&&(I=b(n));var F=p?B.getTextColor():i.get("inactiveColor");_.add(new Gt({style:oe(B,{text:I,x:S,y:d/2,fill:F,align:x,verticalAlign:"middle"},{inheritColor:F})}));var E=new Nt({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&js({el:E,componentModel:A,itemName:n,itemTooltipOption:D.option}),_.add(E),_.eachChild(function(Q){Q.silent=!0}),E.silent=!f,this.getContentGroup().add(_),no(_),_.__legendDataIndex=a,_},t.prototype.layoutInner=function(e,n,a,i,A,o){var s=this.getContentGroup(),l=this.getSelectorGroup();io(e.get("orient"),s,e.get("itemGap"),a.width,a.height);var u=s.getBoundingRect(),f=[-u.x,-u.y];if(l.markRedraw(),s.markRedraw(),A){io("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),h=[-c.x,-c.y],v=e.get("selectorButtonGap",!0),d=e.getOrient().index,p=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";o==="end"?h[d]+=u[p]+v:f[d]+=c[p]+v,h[1-d]+=u[g]/2-c[g]/2,l.x=h[0],l.y=h[1],s.x=f[0],s.y=f[1];var m={x:0,y:0};return m[p]=u[p]+v+c[p],m[g]=Math.max(u[g],c[g]),m[y]=Math.min(0,c[y]+h[1-d]),m}else return s.x=f[0],s.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(de);function krt(r,t,e,n,a,i,A){function o(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),Uw(p,function(y,m){p[m]==="inherit"&&(p[m]=g[m])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=s.getShallow("decal");l.decal=!f||f==="inherit"?n.decal:Hs(f,A),l.fill==="inherit"&&(l.fill=n[a]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(a==="fill"?n:e).opacity),o(l,n);var c=t.getModel("lineStyle"),h=c.getLineStyle();if(o(h,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=t.get("inactiveBorderWidth"),d=l[u];l.lineWidth=v==="auto"?n.lineWidth>0&&d?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function Nrt(r){var t=r.icon||"roundRect",e=Ie(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function dE(r,t,e,n){Rw(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Pw(r,t,e,n)}function LH(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[A],p=[-h.x,-h.y];n||(p[i]=u[l]);var g=[0,0],y=[-v.x,-v.y],m=xt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var w=e.get("pageButtonPosition",!0);w==="end"?y[i]+=a[A]-v[A]:g[i]+=v[A]+m}y[1-i]+=h[o]/2-v[o]/2,u.setPosition(p),f.setPosition(g),c.setPosition(y);var _={x:0,y:0};if(_[A]=d?a[A]:h[A],_[o]=Math.max(h[o],v[o]),_[s]=Math.min(0,v[s]+y[1-i]),f.__rectSize=a[A],d){var B={x:0,y:0};B[A]=Math.max(a[A]-v[A]-m,0),B[o]=_[o],f.setClipPath(new Nt({shape:B})),f.__rectSize=B[A]}else c.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&zt(u,{x:C.contentPosition[0],y:C.contentPosition[1]},d?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;T(["pagePrev","pageNext"],function(u){var f=u+"DataIndex",c=n[f]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),A=e.get("pageFormatter"),o=n.pageIndex,s=o!=null?o+1:0,l=n.pageCount;i&&A&&i.setStyle("text",nt(A)?A.replace("{current}",s==null?"":s+"").replace("{total}",l==null?"":l+""):A({current:s,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,A=e.getOrient().index,o=om[A],s=sm[A],l=this._findTargetItemIndex(n),u=a.children(),f=u[l],c=u.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var d=w(f);v.contentPosition[A]=-d.s;for(var p=l+1,g=d,y=d,m=null;p<=c;++p)m=w(u[p]),(!m&&y.e>g.s+i||m&&!_(m,g.s))&&(y.i>g.i?g=y:g=m,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=m;for(var p=l-1,g=d,y=d,m=null;p>=-1;--p)m=w(u[p]),(!m||!_(y,m.s))&&g.i=C&&B.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(A,o){var s=A.__legendDataIndex;i==null&&s!=null&&(i=o),s===e&&(n=o)}),n??i},t.type="legend.scroll",t}(QH);function Wrt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Xrt(r){Lt(MH),r.registerComponentModel(Krt),r.registerComponentView(zrt),Wrt(r)}function Yrt(r){Lt(MH),Lt(Xrt)}var Zrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=nA(_f.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(_f),NC=Vt();function $rt(r,t,e){NC(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function Jrt(r,t){for(var e=NC(r).coordSysRecordMap,n=e.keys(),a=0;an[e+t]&&(t=o),a=a&&A.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function rnt(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=NC(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ft());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var A=gH(i);T(A.infoList,function(o){var s=o.model.uid,l=a.get(s)||a.set(s,qrt(e,o.model)),u=l.dataZoomInfoMap||(l.dataZoomInfoMap=ft());u.set(i.uid,{dzReferCoordSysInfo:o,model:i,getRange:null})})}),a.each(function(i){var A=i.controller,o,s=i.dataZoomInfoMap;if(s){var l=s.keys()[0];l!=null&&(o=s.get(l))}if(!o){UH(a,i);return}var u=ent(s);A.enable(u.controlType,u.opt),A.setPointerChecker(i.containsPoint),Al(i,"dispatchAction",o.model.get("throttle",!0),"fixRate")})})}var nnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),$rt(a,e,{pan:it(lm.pan,this),zoom:it(lm.zoom,this),scrollMove:it(lm.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Jrt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(QC),lm={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),A=r.axisModels[0];if(A){var o=um[t](null,[n.originX,n.originY],A,e,r),s=(o.signal>0?o.pixelStart+o.pixelLength-o.pixel:o.pixel-o.pixelStart)/o.pixelLength*(i[1]-i[0])+i[0],l=Math.max(1/n.scale,0);i[0]=(i[0]-s)*l+s,i[1]=(i[1]-s)*l+s;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Fo(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:yE(function(r,t,e,n,a,i){var A=um[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return A.signal*(r[1]-r[0])*A.pixel/A.pixelLength}),scrollMove:yE(function(r,t,e,n,a,i){var A=um[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return A.signal*(r[1]-r[0])*i.scrollDelta})};function yE(r){return function(t,e,n,a){var i=this.range,A=i.slice(),o=t.axisModels[0];if(o){var s=r(A,o,t,e,n,a);if(Fo(s,A,[0,100],"all"),this.range=A,i[0]!==A[0]||i[1]!==A[1])return A}}}var um={grid:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(A.pixel=t[0]-r[0],A.pixelLength=o.width,A.pixelStart=o.x,A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=o.height,A.pixelStart=o.y,A.signal=i.inverse?-1:1),A},polar:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return r=r?o.pointToCoord(r):[0,0],t=o.pointToCoord(t),e.mainType==="radiusAxis"?(A.pixel=t[0]-r[0],A.pixelLength=s[1]-s[0],A.pixelStart=s[0],A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=l[1]-l[0],A.pixelStart=l[0],A.signal=i.inverse?-1:1),A},singleAxis:function(r,t,e,n,a){var i=e.axis,A=a.model.coordinateSystem.getRect(),o={};return r=r||[0,0],i.orient==="horizontal"?(o.pixel=t[0]-r[0],o.pixelLength=A.width,o.pixelStart=A.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=A.height,o.pixelStart=A.y,o.signal=i.inverse?-1:1),o}};function PH(r){LC(r),r.registerComponentModel(Zrt),r.registerComponentView(nnt),rnt(r)}var ant=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=nA(_f.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(_f),Vl=Nt,mE=7,int=1,fm=30,Ant=7,Gl="horizontal",wE="vertical",ont=5,snt=["line","bar","candlestick","scatter"],lnt={easing:"cubicOut",duration:100,delay:0},unt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),Al(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lf(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new _t;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?Ant:0,A=this._findCoordRect(),o={width:n.getWidth(),height:n.getHeight()},s=this._orient===Gl?{right:o.width-A.x-A.width,top:o.height-fm-mE-i,width:A.width,height:fm}:{right:mE,top:A.y,width:fm,height:A.height},l=nl(e.option);T(["right","top","width","height"],function(f){l[f]==="ph"&&(l[f]=s[f])});var u=Le(l,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===wE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),A=i&&i.get("inverse"),o=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(a===Gl&&!A?{scaleY:s?1:-1,scaleX:1}:a===Gl&&A?{scaleY:s?1:-1,scaleX:-1}:a===wE&&!A?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([o]);e.x=n.x-l.x,e.y=n.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Vl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var A=new Vl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),o=this.api.getZr();i?(A.on("mousedown",this._onBrushStart,this),A.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),a.add(A)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,A=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),s=o&&A.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(A!==this._shadowData||s!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=A.getDataExtent(s),c=(f[1]-f[0])*.3;f=[f[0]-c,f[1]+c];var h=[0,n[1]],v=[0,n[0]],d=[[n[0],0],[0,0]],p=[],g=v[1]/(A.count()-1),y=0,m=Math.round(A.count()/n[0]),w;A.each([s],function(x,b){if(m>0&&b%m){y+=g;return}var I=x==null||isNaN(x)||x==="",F=I?0:$t(x,f,h,!0);I&&!w&&b?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!I&&w&&(d.push([y,0]),p.push([y,0])),d.push([y,F]),p.push([y,F]),y+=g,w=I}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=A,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function B(x){var b=_.getModel(x?"selectedDataBackground":"dataBackground"),I=new _t,F=new Sr({shape:{points:l},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new xr({shape:{points:u},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(F),I.add(E),I}for(var C=0;C<3;C++){var S=B(C===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(A,o){var s=e.getAxisProxy(A,o).getTargetSeriesModels();T(s,function(l){if(!a&&!(n!==!0&&Qt(snt,l.get("type"))<0)){var u=i.getComponent(Li(A),o).axis,f=fnt(A),c,h=l.coordinateSystem;f!=null&&h.getOtherAxis&&(c=h.getOtherAxis(u).inverse),f=l.getData().mapDimension(f),a={thisAxis:u,series:l,thisDim:A,otherDim:f,otherAxisInverse:c}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],A=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,l=this.api,u=s.get("borderRadius")||0,f=s.get("brushSelect"),c=n.filler=new Vl({silent:f,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});A.add(c),A.add(new Vl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:int,fill:"rgba(0,0,0,0)"}})),T([0,1],function(m){var w=s.get("handleIcon");!Rv[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var _=Ie(w,-1,0,2,2,null,!0);_.attr({cursor:BE(this._orient),draggable:!0,drift:it(this._onDragMove,this,m),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var B=_.getBoundingRect(),C=s.get("handleSize");this._handleHeight=et(C,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,_.setStyle(s.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),no(_);var S=s.get("handleColor");S!=null&&(_.style.fill=S),A.add(a[m]=_);var x=s.getModel("textStyle");e.add(i[m]=new Gt({silent:!0,invisible:!0,style:oe(x,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:x.getTextColor(),font:x.getFont()}),z2:10}))},this);var h=c;if(f){var v=et(s.get("moveHandleSize"),o[1]),d=n.moveHandle=new Nt({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:v}}),p=v*.8,g=n.moveHandleIcon=Ie(s.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+v/2-.5,d.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(v,10));h=n.moveZone=new Nt({invisible:!0,shape:{y:o[1]-y,height:v+y}}),h.on("mouseover",function(){l.enterEmphasis(d)}).on("mouseout",function(){l.leaveEmphasis(d)}),A.add(d),A.add(g),A.add(h)}h.attr({draggable:!0,cursor:BE(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$t(e[0],[0,100],n,!0),$t(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,A=this._getViewExtent(),o=a.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];Fo(n,i,A,a.get("zoomLock")?"all":e,o.minSpan!=null?$t(o.minSpan,s,A,!0):null,o.maxSpan!=null?$t(o.maxSpan,s,A,!0):null);var l=this._range,u=this._range=fn([$t(i[0],A,s,!0),$t(i[1],A,s,!0)]);return!l||l[0]!==u[0]||l[1]!==u[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=fn(a.slice()),A=this._size;T([0,1],function(h){var v=n.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:A[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:A[1]});var o={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(o),n.moveZone.setShape(o),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=n.dataShadowSegs,l=[0,i[0],i[1],A[0]],u=0;un[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,A=(i[0]+i[1])/2,o=this._updateInterval("all",a[0]-A);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new It(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var A=this._getViewExtent(),o=[0,100];this._range=fn([$t(a.x,A,o,!0),$t(a.x+a.width,A,o,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ka(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,A=a.brushRect;A||(A=a.brushRect=new Vl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(A)),A.attr("ignore",!1);var o=this._brushStart,s=this._displayables.sliderGroup,l=s.transformCoordToLocal(e,n),u=s.transformCoordToLocal(o.x,o.y),f=this._size;l[0]=Math.max(Math.min(f[0],l[0]),0),A.setShape({x:u[0],y:0,width:l[0]-u[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?lnt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=gH(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),A=this.api.getHeight();e={x:i*.2,y:A*.2,width:i*.6,height:A*.6}}return e},t.type="dataZoom.slider",t}(QC);function fnt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function BE(r){return r==="vertical"?"ns-resize":"ew-resize"}function RH(r){r.registerComponentModel(ant),r.registerComponentView(unt),LC(r)}function cnt(r){Lt(PH),Lt(RH)}var HH={get:function(r,t,e){var n=mt((hnt[r]||{})[t]);return e&&K(n)?n[n.length-1]:n}},hnt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},_E=He.mapVisual,vnt=He.eachVisual,dnt=K,CE=T,pnt=fn,gnt=$t,od=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&TH(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Dw(this.option.controller,n,e),this.targetVisuals=Dw(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){T(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,A=i.precision,o=this.dataBound,s=i.formatter,l;a=a||["<",">"],K(e)&&(e=e.slice(),l=!0);var u=n?e:l?[f(e[0]),f(e[1])]:f(e);if(nt(s))return s.replace("{value}",l?u[0]:u).replace("{value2}",l?u[1]:u);if(vt(s))return l?s(e[0],e[1]):s(e);if(l)return e[0]===o[0]?a[0]+" "+u[1]:e[1]===o[1]?a[1]+" "+u[0]:u[0]+" - "+u[1];return u;function f(c){return c===o[0]?"min":c===o[1]?"max":(+c).toFixed(Math.min(A,20))}},t.prototype.resetExtent=function(){var e=this.option,n=pnt([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var a=e.dimensions,i=a.length-1;i>=0;i--){var A=a[i],o=e.getDimensionInfo(A);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),A=n.controller||(n.controller={});Et(i,a),Et(A,a);var o=this.isCategory();s.call(this,i),s.call(this,A),l.call(this,i,"inRange","outOfRange"),u.call(this,A);function s(f){dnt(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function l(f,c,h){var v=f[c],d=f[h];v&&!d&&(d=f[h]={},CE(v,function(p,g){if(He.isValidType(g)){var y=HH.get(g,"inactive",o);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function u(f){var c=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),p=d||"roundRect";CE(this.stateList,function(g){var y=this.itemSize,m=f[g];m||(m=f[g]={color:o?v:[v]}),m.symbol==null&&(m.symbol=c&&mt(c)||(o?p:[p])),m.symbolSize==null&&(m.symbolSize=h&&mt(h)||(o?y[0]:[y[0],y[0]])),m.symbol=_E(m.symbol,function(B){return B==="none"?p:B});var w=m.symbolSize;if(w!=null){var _=-1/0;vnt(w,function(B){B>_&&(_=B)}),m.symbolSize=_E(w,function(B){return gnt(B,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Rt),SE=[20,140],ynt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=SE[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=SE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):K(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=fn((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],A=a.getData();A.each(this.getDataDimensionIndex(A),function(o,s){e[0]<=o&&o<=e[1]&&i.push(s)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=xE(this,"outOfRange",this.getExtent()),a=xE(this,"inRange",this.option.range.slice()),i=[];function A(h,v){i.push({value:h,color:e(h,v)})}for(var o=0,s=0,l=a.length,u=n.length;se[1])break;i.push({color:this.getControllerVisual(s,"color",n),offset:o/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new _t(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,A=a.handleThumbs,o=a.handleLabels,s=i.itemSize,l=i.getExtent();mnt([0,1],function(u){var f=A[u];f.setStyle("fill",n.handlesColor[u]),f.y=e[u];var c=Jn(e[u],[0,s[1]],l,!0),h=this.getControllerVisual(c,"symbolSize");f.scaleX=f.scaleY=h/s[0],f.x=s[0]-h/2;var v=Un(a.handleLabelPoints[u],ao(f,this.group));o[u].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var A=this.visualMapModel,o=A.getExtent(),s=A.itemSize,l=[0,s[1]],u=this._shapes,f=u.indicator;if(f){f.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),v=this.getControllerVisual(e,"symbolSize"),d=Jn(e,o,l,!0),p=s[0]-v/2,g={x:f.x,y:f.y};f.y=d,f.x=p;var y=Un(u.indicatorLabelPoint,ao(f,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var w=this._applyTransform("left",u.mainGroup),_=this._orient,B=_==="horizontal";m.setStyle({text:(a||"")+A.formatValueText(n),verticalAlign:B?w:"middle",align:B?"center":w});var C={x:p,y:d,style:{fill:h}},S={style:{x:y[0],y:y[1]}};if(A.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(C,x),m.animateTo(S,x)}else f.attr(C),m.attr(S);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var I=0;IA[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(u,f[1],"< ",s):f[1]===1/0?this._showIndicator(u,f[0],"> ",s):this._showIndicator(u,u,"≈ ",s));var c=this._hoverLinkDataIndices,h=[];(n||FE(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=FK(c,h);this._dispatchHighDown("downplay",nv(v[0],a)),this._dispatchHighDown("highlight",nv(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(XA(e.target,function(s){var l=Ct(s);if(l.dataIndex!=null)return n=l,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var A=a.getData(n.dataType),o=A.getStore().get(i.getDataDimensionIndex(A),n.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=A,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function Tnt(r,t,e,n){for(var a=t.targetVisuals[n],i=He.prepareVisualTypes(a),A={color:kf(r.getData(),"color")},o=0,s=i.length;o0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Snt,xnt),T(bnt,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Int))}function VH(r){r.registerComponentModel(ynt),r.registerComponentView(_nt),NH(r)}var Fnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Ent[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(A,o){a==="categories"?(A.mappingMethod="category",A.categories=mt(i)):(A.dataExtent=this.getExtent(),A.mappingMethod="piecewise",A.pieceList=Y(this._pieceList,function(s){return s=mt(s),o!=="inRange"&&(s.visual=null),s}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=He.listVisualTypes(),i=this.isCategory();T(e.pieces,function(o){T(a,function(s){o.hasOwnProperty(s)&&(n[s]=1)})}),T(n,function(o,s){var l=!1;T(this.stateList,function(u){l=l||A(e,u,s)||A(e.target,u,s)},this),!l&&T(this.stateList,function(u){(e[u]||(e[u]={}))[s]=HH.get(s,u==="inRange"?"active":"inactive",i)})},this);function A(o,s,l){return o&&o[s]&&o[s].hasOwnProperty(l)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,A=(n?a:e).selected||{};if(a.selected=A,T(i,function(s,l){var u=this.getSelectedMapKey(s);A.hasOwnProperty(u)||(A[u]=!0)},this),a.selectedMode==="single"){var o=!1;T(i,function(s,l){var u=this.getSelectedMapKey(s);A[u]&&(o?A[u]=!1:o=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=mt(e)},t.prototype.getValueState=function(e){var n=He.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var A=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){var u=He.findPieceIndex(s,a);u===e&&A.push(l)},this),n.push({seriesId:i.id,dataIndex:A})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function A(u,f){var c=i.getRepresentValue({interval:u});f||(f=i.getValueState(c));var h=e(c,f);u[0]===-1/0?a[0]=h:u[1]===1/0?a[1]=h:n.push({value:u[0],color:h},{value:u[1],color:h})}var o=this._pieceList.slice();if(!o.length)o.push({interval:[-1/0,1/0]});else{var s=o[0].interval[0];s!==-1/0&&o.unshift({interval:[-1/0,s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}var l=-1/0;return T(o,function(u){var f=u.interval;f&&(f[0]>l&&A([l,f[0]],"outOfRange"),A(f.slice()),l=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=nA(od.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(od),Ent={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var A=0,o=n[0];A","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function LE(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Dnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,A=i.getFont(),o=i.getTextColor(),s=this._getItemAlign(),l=n.itemSize,u=this._getViewData(),f=u.endsText,c=Ge(n.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],l,c,s),T(u.viewPieceList,function(h){var v=h.piece,d=new _t;d.onclick=it(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,l[0],l[1]]),c){var g=this.visualMapModel.getValueState(p);d.add(new Gt({style:{x:s==="right"?-a:l[0]+a,y:l[1]/2,text:v.text,verticalAlign:"middle",align:s,font:A,fill:o,opacity:g==="outOfRange"?.5:1}}))}e.add(d)},this),f&&this._renderEndsText(e,f[1],l,c,s),io(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(A){var o=a.visualMapModel;o.option.hoverLink&&a.api.dispatchAction({type:A,batch:nv(o.findTargetDataIndices(n),o)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return kH(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,A){if(n){var o=new _t,s=this.visualMapModel.textStyleModel;o.add(new Gt({style:oe(s,{x:i?A==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?A:"center",text:n})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Y(e.getPieceList(),function(o,s){return{piece:o,indexInModelPieceList:s}}),a=e.get("text"),i=e.get("orient"),A=e.get("inverse");return(i==="horizontal"?A:!A)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(Ie(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var A=mt(a.selected),o=n.getSelectedMapKey(e);i==="single"||i===!0?(A[o]=!0,T(A,function(s,l){A[l]=l===o})):A[o]=!A[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:A})}},t.type="visualMap.piecewise",t}(OH);function GH(r){r.registerComponentModel(Fnt),r.registerComponentView(Dnt),NH(r)}function Qnt(r){Lt(VH),Lt(GH)}var Lnt={label:{enabled:!0},decal:{show:!1}},ME=Vt(),Mnt={};function Unt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(Lnt);Et(n.label,r.getLocaleModel().get("aria"),!1),Et(e.option,n,!1),a(),i();function a(){var l=e.getModel("decal"),u=l.get("show");if(u){var f=ft();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=f.get(c.type);h||(h={},f.set(c.type,h)),ME(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(vt(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=R0(c.ecModel,c.name,Mnt,r.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",w(m,y))}else{var v=c.getRawData(),d={},p=ME(c).scope;h.each(function(_){var B=h.getRawIndex(_);d[B]=_});var g=v.count();v.each(function(_){var B=d[_],C=v.getName(_)||_+"",S=R0(c.ecModel,C,p,g),x=h.getItemVisual(B,"decal");h.setItemVisual(B,"decal",w(x,S))})}function w(_,B){var C=_?V(V({},B),_):B;return C.dirty=!0,C}})}}function i(){var l=t.getZr().dom;if(l){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=gt(f.option,u),!!f.get("enabled")){if(f.get("description")){l.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),p;if(!(c<1)){var g=o();if(g){var y=f.get(["general","withTitle"]);p=A(y,{title:g})}else p=f.get(["general","withoutTitle"]);var m=[],w=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=A(w,{seriesCount:c}),r.eachSeries(function(S,x){if(x1?f.get(["series","multiple",F]):f.get(["series","single",F]),b=A(b,{seriesId:S.seriesIndex,seriesName:S.get("name"),seriesType:s(S.subType)});var E=S.getData();if(E.count()>h){var D=f.get(["data","partialData"]);b+=A(D,{displayCnt:h})}else b+=f.get(["data","allData"]);for(var Q=f.get(["data","separator","middle"]),M=f.get(["data","separator","end"]),R=[],P=0;P":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Hnt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):ZV(t)?t:null;if(e==null){var n="";Xt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Kt(e)?this._condVal.test(t+""):!1},r}(),Ont=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),knt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(a),a=[E,D]}function u(E,D,Q,M){gs(E,Q)&&gs(D,M)||a.push(E,D,Q,M,Q,M)}function f(E,D,Q,M,R,P){var O=Math.abs(D-E),G=Math.tan(O/4)*4/3,X=DS:I2&&n.push(a),n}function Ow(r,t,e,n,a,i,A,o,s,l){if(gs(r,e)&&gs(t,n)&&gs(a,A)&&gs(i,o)){s.push(A,o);return}var u=2/l,f=u*u,c=A-r,h=o-t,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=e-r,p=n-t,g=a-A,y=i-o,m=d*d+p*p,w=g*g+y*y;if(m=0&&S=0){s.push(A,o);return}var x=[],b=[];Wi(r,e,a,A,.5,x),Wi(t,n,i,o,.5,b),Ow(x[0],b[0],x[1],b[1],x[2],b[2],x[3],b[3],s,l),Ow(x[4],b[4],x[5],b[5],x[6],b[6],x[7],b[7],s,l)}function tat(r,t){var e=Hw(r),n=[];t=t||1;for(var a=0;a0)for(var l=0;lMath.abs(l),f=zH([s,l],u?0:1,t),c=(u?o:l)/f.length,h=0;ha,A=zH([n,a],i?0:1,t),o=i?"width":"height",s=i?"height":"width",l=i?"x":"y",u=i?"y":"x",f=r[o]/A.length,c=0;c1?null:new It(d*s+r,d*l+t)}function nat(r,t,e){var n=new It;It.sub(n,e,t),n.normalize();var a=new It;It.sub(a,r,t);var i=a.dot(n);return i}function $o(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function aat(r,t,e){for(var n=r.length,a=[],i=0;iA?(l.x=u.x=o+i/2,l.y=s,u.y=s+A):(l.y=u.y=s+A/2,l.x=o,u.x=o+i),aat(t,l,u)}function sd(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);sd(r,i[0],a,n),sd(r,i[1],e-a,n)}return n}function iat(r,t){for(var e=[],n=0;n0;l/=2){var u=0,f=0;(r&l)>0&&(u=1),(t&l)>0&&(f=1),o+=l*l*(3*u^f),f===0&&(u===1&&(r=l-1-r,t=l-1-t),s=r,r=t,t=s)}return o}function fd(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=Y(r,function(o){var s=o.getBoundingRect(),l=o.getComputedTransform(),u=s.x+s.width/2+(l?l[4]:0),f=s.y+s.height/2+(l?l[5]:0);return t=Math.min(u,t),e=Math.min(f,e),n=Math.max(u,n),a=Math.max(f,a),[u,f]}),A=Y(i,function(o,s){return{cp:o,z:vat(o[0],o[1],t,e,n,a),path:r[s]}});return A.sort(function(o,s){return o.z-s.z}).map(function(o){return o.path})}function YH(r){return sat(r.path,r.count)}function kw(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dat(r,t,e){var n=[];function a(_){for(var B=0;B<_.length;B++){var C=_[B];ld(C)?a(C.childrenRef()):C instanceof Mt&&n.push(C)}}a(r);var i=n.length;if(!i)return kw();var A=e.dividePath||YH,o=A({path:t,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),kw();n=fd(n),o=fd(o);for(var s=e.done,l=e.during,u=e.individualDelay,f=new La,c=0;c=0;a--)if(!e[a].many.length){var s=e[o].many;if(s.length<=1)if(o)o=0;else return e;var i=s.length,l=Math.ceil(i/2);e[a].many=s.slice(l,i),e[o].many=s.slice(0,l),o++}return e}var gat={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var o=n.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},A),l,u;GE(r)&&(l=r,u=t),GE(t)&&(l=t,u=r);function f(g,y,m,w,_){var B=g.many,C=g.one;if(B.length===1&&!_){var S=y?B[0]:C,x=y?C:B[0];if(ld(S))f({many:[S],one:x},!0,m,w,!0);else{var b=o?gt({delay:o(m,w)},s):s;GC(S,x,b),i(S,x,S,x,b)}}else for(var I=gt({dividePath:gat[e],individualDelay:o&&function(R,P,O,G){return o(R+m,w)}},s),F=y?dat(B,C,I):pat(C,B,I),E=F.fromIndividuals,D=F.toIndividuals,Q=E.length,M=0;Mt.length,h=l?KE(u,l):KE(c?t:r,[c?r:t]),v=0,d=0;dZH))for(var i=n.getIndices(),A=0;A0&&B.group.traverse(function(S){S instanceof Mt&&!S.animators.length&&S.animateFrom({style:{opacity:0}},C)})})}function ZE(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function $E(r){return K(r)?r.sort().join(","):r}function _i(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Sat(r,t){var e=ft(),n=ft(),a=ft();return T(r.oldSeries,function(i,A){var o=r.oldDataGroupIds[A],s=r.oldData[A],l=ZE(i),u=$E(l);n.set(u,{dataGroupId:o,data:s}),K(l)&&T(l,function(f){a.set(f,{key:u,dataGroupId:o,data:s})})}),T(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var A=i.get("dataGroupId"),o=i.getData(),s=ZE(i),l=$E(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:_i(u.data),data:u.data}],newSeries:[{dataGroupId:A,divide:_i(o),data:o}]});else if(K(s)){var f=[];T(s,function(v){var d=n.get(v);d.data&&f.push({dataGroupId:d.dataGroupId,divide:_i(d.data),data:d.data})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{dataGroupId:A,data:o,divide:_i(o)}]})}else{var c=a.get(s);if(c){var h=e.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:_i(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({dataGroupId:A,data:o,divide:_i(o)})}}}}),e}function JE(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[o],data:t.oldData[o],divide:_i(t.oldData[o]),groupIdDim:A.dimension})}),T(qt(r.to),function(A){var o=JE(e.updatedSeries,A);if(o>=0){var s=e.updatedSeries[o].getData();i.push({dataGroupId:t.oldDataGroupIds[o],data:s,divide:_i(s),groupIdDim:A.dimension})}}),a.length>0&&i.length>0&&$H(a,i,n)}function bat(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){T(qt(n.seriesTransition),function(a){T(qt(a.to),function(i){for(var A=n.updatedSeries,o=0;o0?`${t}d`:e>0?`${e}h`:n>0?`${n}m`:`${a}s`}const Eat={class:"online-status"},Dat=Bo({__name:"OutlineAnime",props:{color:{},spreadColor:{},isOnline:{type:Boolean}},setup(r){const t=r;return(e,n)=>(Er(),Fn("div",Eat,[St("div",{class:"dot",style:Ga({backgroundColor:t.color})},null,4),e.isOnline?(Er(),Fn("div",{key:0,class:"pulse",style:Ga({backgroundColor:t.spreadColor})},null,4)):jQ("",!0)]))}}),Qat=Ws(Dat,[["__scopeId","data-v-311f3e51"]]),Lat={class:"disk"},Mat={class:"hover-text"},Uat={class:"left-text"},Pat={class:"disk-text"},Rat={class:"right-text"},Hat={class:"disk-text"},Oat={class:"progress-bar",style:{display:"flex","align-items":"center"}},kat={style:{color:"var(--text-color-2)"}},Nat={class:"percentage",style:{"text-align":"right"}},Vat=Bo({__name:"Disk",props:{mountpoint:{},device:{},used:{},total:{},fstype:{}},setup(r){const t=r,e=iv(t.used/t.total*100),n=Av(t.used/t.total*100);return(a,i)=>(Er(),Fn("div",Lat,[St("div",Mat,[St("div",Uat,[St("span",Pat,Ce(t.mountpoint),1)]),St("div",Rat,[St("span",Hat,Ce(la(Nw)(t.used,t.total))+" ["+Ce(t.fstype)+"]",1)])]),St("div",Oat,[St("div",{class:"disk-total",style:Ga([{backgroundColor:la(n)},{"margin-right":"0.5rem"}])},[St("div",{class:"disk-used",style:Ga({width:t.used/t.total*100+"%",backgroundColor:la(e)})},null,4)],4),St("div",kat,[St("div",Nat,Ce((t.used/t.total*100).toFixed(1))+"%",1)])])]))}}),Gat=Ws(Vat,[["__scopeId","data-v-5ea12808"]]);/*! +`:"
",g=f.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(o,h,A[0],A[1],this._tooltipContent,l):this._showTooltipContent(o,g,l,Math.random()+"",A[0],A[1],h,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,A=St(n),o=A.seriesIndex,s=i.getSeriesByIndex(o),l=A.dataModel||s,u=A.dataIndex,f=A.dataType,c=l.getData(f),h=this._renderMode,v=e.positionDefault,d=Wl([c.getItemModel(u),l,s&&(s.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=d.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(u,f),y=new ry;g.marker=y.makeTooltipMarker("item",bo(g.color),h);var m=eb(l.formatTooltip(u,!1,f)),w=d.get("order"),_=d.get("valueFormatter"),B=m.frag,C=B?ob(_?V({valueFormatter:_},B):B,y,h,w,i.get("useUTC"),d.get("textStyle")):m.text,x="item_"+l.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,C,g,x,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",A=St(n),o=A.tooltipConfig,s=o.option||{},l=s.encodeHTMLContent;if(nt(s)){var u=s;s={content:u,formatter:u},l=!0}l&&i&&s.content&&(s=wt(s),s.content=Lr(s.content));var f=[s],c=this._ecModel.getComponent(A.componentMainType,A.componentIndex);c&&f.push(c),f.push({formatter:s.content});var h=e.positionDefault,v=Wl(f,this._tooltipModel,h?{position:h}:null),d=v.get("content"),p=Math.random()+"",g=new ry;this._showOrMove(v,function(){var y=wt(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,p,e.offsetX,e.offsetY,e.position,n,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,A,o,s,l,u){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var c=e.get("formatter");s=s||e.get("position");var h=n,v=this._getNearestPoint([A,o],a,e.get("trigger"),e.get("borderColor")),d=v.color;if(c)if(nt(c)){var p=e.ecModel.get("useUTC"),g=K(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=hp(g.axisValue,h,p)),h=LU(h,a,!0)}else if(vt(c)){var m=it(function(w,_){w===this._ticket&&(f.setContent(_,u,e,d,s),this._updatePosition(e,s,A,o,f,a,l))},this);this._ticket=i,h=c(a,i,m)}else h=c;f.setContent(h,u,e,d,s),f.show(e,d),this._updatePosition(e,s,A,o,f,a,l)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||K(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!K(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,A,o,s){var l=this._api.getWidth(),u=this._api.getHeight();n=n||e.get("position");var f=A.getSize(),c=e.get("align"),h=e.get("verticalAlign"),v=s&&s.getBoundingRect().clone();if(s&&v.applyTransform(s.transform),vt(n)&&(n=n([a,i],o,A.el,v,{viewSize:[l,u],contentSize:f.slice()})),K(n))a=et(n[0],l),i=et(n[1],u);else if(yt(n)){var d=n;d.width=f[0],d.height=f[1];var p=Qe(d,{width:l,height:u});a=p.x,i=p.y,c=null,h=null}else if(nt(n)&&s){var g=_rt(n,v,f,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=wrt(a,i,A,l,u,c?null:20,h?null:20);a=g[0],i=g[1]}if(c&&(a-=pE(c)?f[0]/2:c==="right"?f[0]:0),h&&(i-=pE(h)?f[1]/2:h==="bottom"?f[1]:0),ZH(e)){var g=Brt(a,i,A,l,u);a=g[0],i=g[1]}A.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,A=!!a&&a.length===e.length;return A&&I(a,function(o,s){var l=o.dataByAxis||[],u=e[s]||{},f=u.dataByAxis||[];A=A&&l.length===f.length,A&&I(l,function(c,h){var v=f[h]||{},d=c.seriesDataIndices||[],p=v.seriesDataIndices||[];A=A&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===p.length,A&&I(d,function(g,y){var m=p[y];A=A&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),i&&I(c.seriesDataIndices,function(g){var y=g.seriesIndex,m=n[y],w=i[y];m&&w&&w.data!==m.data&&(A=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!A},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Pt.node||!n.getDom()||(mf(this,"_updatePosition"),this._tooltipContent.dispose(),Nw("itemTooltip",n))},t.type="tooltip",t}(de);function Wl(r,t,e){var n=t.ecModel,a;e?(a=new Yt(e,n,n),a=new Yt(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var A=r[i];A&&(A instanceof Yt&&(A=A.get("tooltip",!0)),nt(A)&&(A={formatter:A}),A&&(a=new Yt(A,a,n)))}return a}function dE(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function wrt(r,t,e,n,a,i,A){var o=e.getSize(),s=o[0],l=o[1];return i!=null&&(r+s+i+2>n?r-=s+i:r+=i),A!=null&&(t+l+A>a?t-=l+A:t+=A),[r,t]}function Brt(r,t,e,n,a){var i=e.getSize(),A=i[0],o=i[1];return r=Math.min(r+A,n)-A,t=Math.min(t+o,a)-o,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function _rt(r,t,e,n){var a=e[0],i=e[1],A=Math.ceil(Math.SQRT2*n)+8,o=0,s=0,l=t.width,u=t.height;switch(r){case"inside":o=t.x+l/2-a/2,s=t.y+u/2-i/2;break;case"top":o=t.x+l/2-a/2,s=t.y-i-A;break;case"bottom":o=t.x+l/2-a/2,s=t.y+u+A;break;case"left":o=t.x-a-A,s=t.y+u/2-i/2;break;case"right":o=t.x+l+A,s=t.y+u/2-i/2}return[o,s]}function pE(r){return r==="center"||r==="middle"}function Crt(r,t,e){var n=c_(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Vf(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),A=i.models[0];if(A){var o=e.getViewOfComponentModel(A),s;if(o.group.traverse(function(l){var u=St(l).tooltipConfig;if(u&&u.name===r.name)return s=l,!0}),s)return{componentMainType:a,componentIndex:A.componentIndex,el:s}}}}function Srt(r){Qt(oc),r.registerComponentModel(Art),r.registerComponentView(mrt),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Be),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Be)}var xrt=["rect","polygon","keep","clear"];function brt(r,t){var e=qt(r?r.brush:[]);if(e.length){var n=[];I(e,function(s){var l=s.hasOwnProperty("toolbox")?s.toolbox:[];l instanceof Array&&(n=n.concat(l))});var a=r&&r.toolbox;K(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),A=i.brush||(i.brush={}),o=A.type||(A.type=[]);o.push.apply(o,n),Trt(o),t&&!o.length&&o.push.apply(o,xrt)}}function Trt(r){var t={};I(r,function(e){t[e]=1}),r.length=0,I(t,function(e,n){r.push(n)})}var gE=I;function yE(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Xw(r,t,e){var n={};return gE(t,function(i){var A=n[i]=a();gE(r[i],function(o,s){if(He.isValidType(s)){var l={type:s,visual:o};e&&e(l,i),A[s]=new He(l),s==="opacity"&&(l=wt(l),l.type="colorAlpha",A.__hidden.__alphaForOpacity=new He(l))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var A=new i;return A}}function jH(r,t,e){var n;I(e,function(a){t.hasOwnProperty(a)&&yE(t[a])&&(n=!0)}),n&&I(e,function(a){t.hasOwnProperty(a)&&yE(t[a])?r[a]=wt(t[a]):delete r[a]})}function Irt(r,t,e,n,a,i){var A={};I(r,function(f){var c=He.prepareVisualTypes(t[f]);A[f]=c});var o;function s(f){return N_(e,o,f)}function l(f,c){B2(e,o,f,c)}e.each(u);function u(f,c){o=f;var h=e.getRawDataItem(o);if(!(h&&h.visualMap===!1))for(var v=n.call(a,f),d=t[v],p=A[v],g=0,y=p.length;gt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&CE(t)}};function CE(r){return new Dt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Prt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new SC(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){tO(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:wt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:wt(a),$from:n})},t.type="brush",t}(de),Rrt="#ddd",Hrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&jH(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:Rrt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(n){return SE(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=SE(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Ht);function SE(r,t){return Et({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Yt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var Ort=["rect","polygon","lineX","lineY","keep","clear"],krt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,A,o;n.eachComponent({mainType:"brush"},function(s){i=s.brushType,A=s.brushOption.brushMode||"single",o=o||!!s.areas.length}),this._brushType=i,this._brushMode=A,I(e.get("type",!0),function(s){e.setIconStatus(s,(s==="keep"?A==="multiple":s==="clear"?o:s===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return I(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,A=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?A==="multiple"?"single":"multiple":A}})},t.getDefaultOption=function(e){var n={show:!0,type:Ort.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(un);function Nrt(r){r.registerComponentView(Prt),r.registerComponentModel(Hrt),r.registerPreprocessor(brt),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Drt),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Be),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Be),ms("brush",krt)}var Vrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Ht),Grt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,A=e.getModel("textStyle"),o=e.getModel("subtextStyle"),s=e.get("textAlign"),l=xt(e.get("textBaseline"),e.get("textVerticalAlign")),u=new Gt({style:oe(A,{text:e.get("text"),fill:A.getTextColor()},{disableBox:!0}),z2:10}),f=u.getBoundingRect(),c=e.get("subtext"),h=new Gt({style:oe(o,{text:c,fill:o.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),d=e.get("sublink"),p=e.get("triggerEvent",!0);u.silent=!v&&!p,h.silent=!d&&!p,v&&u.on("click",function(){Wv(v,"_"+e.get("target"))}),d&&h.on("click",function(){Wv(d,"_"+e.get("subtarget"))}),St(u).eventData=St(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(u),c&&i.add(h);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=Qe(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));s||(s=e.get("left")||e.get("right"),s==="middle"&&(s="center"),s==="right"?m.x+=m.width:s==="center"&&(m.x+=m.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?m.y+=m.height:l==="middle"&&(m.y+=m.height/2),l=l||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var w={align:s,verticalAlign:l};u.setStyle(w),h.setStyle(w),g=i.getBoundingRect();var _=m.margin,B=e.getItemStyle(["color","opacity"]);B.fill=e.get("backgroundColor");var C=new Nt({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(de);function Krt(r){r.registerComponentModel(Vrt),r.registerComponentView(Grt)}var xE=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],a=e.axisType,i=this._names=[],A;a==="category"?(A=[],I(n,function(l,u){var f=Le(nl(l),""),c;yt(l)?(c=wt(l),c.value=u):c=u,A.push(c),i.push(f)})):A=n;var o={category:"ordinal",time:"time",value:"number"}[a]||"number",s=this._data=new Br([{name:"value",type:o}],this);s.initData(A,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Ht),eO=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=uA(xE.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(xE);Ee(eO,wp.prototype);var zrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(de),Wrt=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this,e,n,a)||this;return A.type=i||"value",A}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Kn),mm=Math.PI,bE=Vt(),Xrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),A=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(l){var u=s.scale.getLabel({value:l});return Ne("nameValue",{noName:!0,value:u})},I(["AxisLine","AxisTick","Control","CurrentPointer"],function(l){this["_render"+l](i,A,s,e)},this),this._renderAxisLabel(i,o,s,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),A=Zrt(e,n),o;a==null||a==="auto"?o=i==="horizontal"?A.y+A.height/2=0||o==="+"?"left":"right"},l={horizontal:o>=0||o==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:mm/2},f=i==="vertical"?A.height:A.width,c=e.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,p=v+d,g=e.get(["label","rotate"])||0;g=g*mm/180;var y,m,w,_=c.get("position",!0),B=h&&c.get("showPlayBtn",!0),C=h&&c.get("showPrevBtn",!0),x=h&&c.get("showNextBtn",!0),S=0,b=f;_==="left"||_==="bottom"?(B&&(y=[0,0],S+=p),C&&(m=[S,0],S+=p),x&&(w=[b-v,0],b-=p)):(B&&(y=[b-v,0],b-=p),C&&(m=[0,0],S+=p),x&&(w=[b-v,0],b-=p));var T=[S,b];return e.get("inverse")&&T.reverse(),{viewRect:A,mainLength:f,orient:i,rotation:u[i],labelRotation:g,labelPosOpt:o,labelAlign:e.get(["label","align"])||s[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||l[i],playPosition:y,prevBtnPosition:m,nextBtnPosition:w,axisExtent:T,controlSize:v,controlGap:d}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,A=e.viewRect;if(e.orient==="vertical"){var o=Yr(),s=A.x,l=A.y+A.height;pa(o,o,[-s,-l]),Lo(o,o,-mm/2),pa(o,o,[s,l]),A=A.clone(),A.applyTransform(o)}var u=y(A),f=y(a.getBoundingRect()),c=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=u[0][0];var d=e.labelPosOpt;if(d==null||nt(d)){var p=d==="+"?0:1;m(h,f,u,1,p),m(v,c,u,1,1-p)}else{var p=d>=0?0:1;m(h,f,u,1,p),v[1]=h[1]+d}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=e.rotation,g(a),g(i);function g(w){w.originX=u[0][0]-w.x,w.originY=u[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function m(w,_,B,C,x){w[C]+=B[C][x]-_[C][x]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType"),A=Yrt(n,i);A.getTicks=function(){return a.mapArray(["value"],function(l){return{value:l}})};var o=a.getDataExtent("value");A.setExtent(o[0],o[1]),A.calcNiceTicks();var s=new Wrt("value",A,e.axisExtent,i);return s.model=n,s},t.prototype._createGroup=function(e){var n=this[e]=new Ct;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var A=a.getExtent();if(i.get(["lineStyle","show"])){var o=new Pe({shape:{x1:A[0],y1:0,x2:A[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(o);var s=this._progressLine=new Pe({shape:{x1:A[0],x2:this._currentPointer?this._currentPointer.x:A[0],y1:0,y2:0},style:gt({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(s)}},t.prototype._renderAxisTick=function(e,n,a,i){var A=this,o=i.getData(),s=a.scale.getTicks();this._tickSymbols=[],I(s,function(l){var u=a.dataToCoord(l.value),f=o.getItemModel(l.value),c=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),d={x:u,y:0,onclick:it(A._changeTimeline,A,l.value)},p=TE(f,c,n,d);p.ensureState("emphasis").style=h.getItemStyle(),p.ensureState("progress").style=v.getItemStyle(),ho(p);var g=St(p);f.get("tooltip")?(g.dataIndex=l.value,g.dataModel=i):g.dataIndex=g.dataModel=null,A._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(e,n,a,i){var A=this,o=a.getLabelModel();if(o.get("show")){var s=i.getData(),l=a.getViewLabels();this._tickLabels=[],I(l,function(u){var f=u.tickValue,c=s.getItemModel(f),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),p=a.dataToCoord(u.tickValue),g=new Gt({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:it(A._changeTimeline,A,f),silent:!1,style:oe(h,{text:u.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});g.ensureState("emphasis").style=oe(v),g.ensureState("progress").style=oe(d),n.add(g),ho(g),bE(g).dataIndex=f,A._tickLabels.push(g)})}},t.prototype._renderControl=function(e,n,a,i){var A=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),f=i.get("inverse",!0);c(e.nextBtnPosition,"next",it(this._changeTimeline,this,f?"-":"+")),c(e.prevBtnPosition,"prev",it(this._changeTimeline,this,f?"+":"-")),c(e.playPosition,u?"stop":"play",it(this._handlePlayClick,this,!u),!0);function c(h,v,d,p){if(h){var g=Nn(xt(i.get(["controlStyle",v+"BtnSize"]),A),A),y=[0,-g/2,g,g],m=$rt(i,v+"Icon",y,{x:h[0],y:h[1],originX:A/2,originY:0,rotation:p?-o:0,rectHover:!0,style:s,onclick:d});m.ensureState("emphasis").style=l,n.add(m),ho(m)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var A=i.getData(),o=i.getCurrentIndex(),s=A.getItemModel(o).getModel("checkpointStyle"),l=this,u={onCreate:function(f){f.draggable=!0,f.drift=it(l._handlePointerDrag,l),f.ondragend=it(l._handlePointerDragend,l),IE(f,l._progressLine,o,a,i,!0)},onUpdate:function(f){IE(f,l._progressLine,o,a,i)}};this._currentPointer=TE(s,s,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,A=pn(i.getExtent().slice());a>A[1]&&(a=A[1]),a=0&&(A[i]=+A[i].toFixed(c)),[A,f]}var wm={min:bt(gh,"min"),max:bt(gh,"max"),average:bt(gh,"average"),median:bt(gh,"median")};function Qf(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!rnt(t)&&!K(t.coord)&&K(a)){var i=rO(t,e,n,r);if(t=wt(t),t.type&&wm[t.type]&&i.baseAxis&&i.valueAxis){var A=Lt(a,i.baseAxis.dim),o=Lt(a,i.valueAxis.dim),s=wm[t.type](e,i.baseDataDim,i.valueDataDim,A,o);t.coord=s[0],t.value=s[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!K(a))t.coord=[];else for(var l=t.coord,u=0;u<2;u++)wm[l[u]]&&(l[u]=jC(e,e.mapDimension(a[u]),l[u]));return t}}function rO(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(nnt(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function nnt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Mf(r,t){return r&&r.containData&&t.coord&&!Zw(t)?r.containData(t.coord):!0}function ant(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Zw(t)&&!Zw(e)?r.containZone(t.coord,e.coord):!0}function nO(r,t){return r?function(e,n,a,i){var A=i<2?e.coord&&e.coord[i]:e.value;return zi(A,t[i])}:function(e,n,a,i){return zi(e.value,t[i])}}function jC(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,A){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Bm=Vt(),t1=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ft()},t.prototype.render=function(e,n,a){var i=this,A=this.markerGroupMap;A.each(function(o){Bm(o).keep=!1}),n.eachSeries(function(o){var s=ja.getMarkerModelFromSeries(o,i.type);s&&i.renderSeries(o,s,n,a)}),A.each(function(o){!Bm(o).keep&&i.group.remove(o.group)})},t.prototype.markKeep=function(e){Bm(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;I(e,function(i){var A=ja.getMarkerModelFromSeries(i,a.type);if(A){var o=A.getData();o.eachItemGraphicEl(function(s){s&&(n?ZM(s):m_(s))})}})},t.type="marker",t}(de);function EE(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),A,o=et(i.get("x"),e.getWidth()),s=et(i.get("y"),e.getHeight());if(!isNaN(o)&&!isNaN(s))A=[o,s];else if(t.getMarkerPosition)A=t.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var l=r.get(n.dimensions[0],a),u=r.get(n.dimensions[1],a);A=n.dataToPoint([l,u])}isNaN(o)||(A[0]=o),isNaN(s)||(A[1]=s),r.setItemLayout(a,A)})}var int=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=ja.getMarkerModelFromSeries(i,"markPoint");A&&(EE(A.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new tc),f=Ant(A,e,n);n.setData(f),EE(n.getData(),e,i),f.each(function(c){var h=f.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),p=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(vt(v)||vt(d)||vt(p)||vt(g)){var m=n.getRawValue(c),w=n.getDataParams(c);vt(v)&&(v=v(m,w)),vt(d)&&(d=d(m,w)),vt(p)&&(p=p(m,w)),vt(g)&&(g=g(m,w))}var _=h.getModel("itemStyle").getItemStyle(),B=$f(s,"color");_.fill||(_.fill=B),f.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:p,symbolOffset:g,symbolKeepAspect:y,style:_})}),u.updateData(f),this.group.add(u.group),f.eachItemGraphicEl(function(c){c.traverse(function(h){St(h).dataModel=n})}),this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(t1);function Ant(r,t,e){var n;r?n=Y(r&&r.dimensions,function(o){var s=t.getData().getDimensionInfo(t.getData().mapDimension(o))||{};return V(V({},s),{name:o,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Br(n,e),i=Y(e.get("data"),bt(Qf,t));r&&(i=Jt(i,bt(Mf,r)));var A=nO(!!r,n);return a.initData(i,null,A),a}function ont(r){r.registerComponentModel(ent),r.registerComponentView(int),r.registerPreprocessor(function(t){qC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var snt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ja),yh=Vt(),lnt=function(r,t,e,n){var a=r.getData(),i;if(K(n))i=n;else{var A=n.type;if(A==="min"||A==="max"||A==="average"||A==="median"||n.xAxis!=null||n.yAxis!=null){var o=void 0,s=void 0;if(n.yAxis!=null||n.xAxis!=null)o=t.getAxis(n.yAxis!=null?"y":"x"),s=Ke(n.yAxis,n.xAxis);else{var l=rO(n,a,t,r);o=l.valueAxis;var u=$2(a,l.valueDataDim);s=jC(a,u,A)}var f=o.dim==="x"?0:1,c=1-f,h=wt(n),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=e.get("precision");d>=0&&Kt(s)&&(s=+s.toFixed(Math.min(d,20))),h.coord[f]=v.coord[f]=s,i=[h,v,{type:A,valueIndex:n.valueIndex,value:s}]}else i=[]}var p=[Qf(r,i[0]),Qf(r,i[1]),V({},i[2])];return p[2].type=p[2].type||null,Et(p[2],p[0]),Et(p[2],p[1]),p};function gd(r){return!isNaN(r)&&!isFinite(r)}function DE(r,t,e,n){var a=1-r,i=n.dimensions[r];return gd(t[a])&&gd(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function unt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(DE(1,e,n,r)||DE(0,e,n,r)))return!0}return Mf(r,t[0])&&Mf(r,t[1])}function _m(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get("x"),a.getWidth()),l=et(A.get("y"),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition)o=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var u=i.dimensions,f=r.get(u[0],t),c=r.get(u[1],t);o=i.dataToPoint([f,c])}if(Po(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),u=i.dimensions;gd(r.get(u[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):gd(r.get(u[1],t))&&(o[1]=v.toGlobalCoord(v.getExtent()[e?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}r.setItemLayout(t,o)}var fnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=ja.getMarkerModelFromSeries(i,"markLine");if(A){var o=A.getData(),s=yh(A).from,l=yh(A).to;s.each(function(u){_m(s,u,!0,i,a),_m(l,u,!1,i,a)}),o.each(function(u){o.setItemLayout(u,[s.getItemLayout(u),l.getItemLayout(u)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new CC);this.group.add(u.group);var f=cnt(A,e,n),c=f.from,h=f.to,v=f.line;yh(n).from=c,yh(n).to=h,n.setData(v);var d=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),y=n.get("symbolOffset");K(d)||(d=[d,d]),K(p)||(p=[p,p]),K(g)||(g=[g,g]),K(y)||(y=[y,y]),f.from.each(function(w){m(c,w,!0),m(h,w,!1)}),v.each(function(w){var _=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[c.getItemLayout(w),h.getItemLayout(w)]),_.stroke==null&&(_.stroke=c.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:c.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(w,"symbolOffset"),fromSymbolRotate:c.getItemVisual(w,"symbolRotate"),fromSymbolSize:c.getItemVisual(w,"symbolSize"),fromSymbol:c.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:_})}),u.updateData(v),f.line.eachItemGraphicEl(function(w){St(w).dataModel=n,w.traverse(function(_){St(_).dataModel=n})});function m(w,_,B){var C=w.getItemModel(_);_m(w,_,B,e,i);var x=C.getModel("itemStyle").getItemStyle();x.fill==null&&(x.fill=$f(s,"color")),w.setItemVisual(_,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:xt(C.get("symbolOffset",!0),y[B?0:1]),symbolRotate:xt(C.get("symbolRotate",!0),g[B?0:1]),symbolSize:xt(C.get("symbolSize"),p[B?0:1]),symbol:xt(C.get("symbol",!0),d[B?0:1]),style:x})}this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(t1);function cnt(r,t,e){var n;r?n=Y(r&&r.dimensions,function(l){var u=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return V(V({},u),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Br(n,e),i=new Br(n,e),A=new Br([],e),o=Y(e.get("data"),bt(lnt,t,r,e));r&&(o=Jt(o,bt(unt,r)));var s=nO(!!r,n);return a.initData(Y(o,function(l){return l[0]}),null,s),i.initData(Y(o,function(l){return l[1]}),null,s),A.initData(Y(o,function(l){return l[2]})),A.hasItemOption=!0,{from:a,to:i,line:A}}function hnt(r){r.registerComponentModel(snt),r.registerComponentView(fnt),r.registerPreprocessor(function(t){qC(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var vnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ja),mh=Vt(),dnt=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var A=Qf(r,a),o=Qf(r,i),s=A.coord,l=o.coord;s[0]=Ke(s[0],-1/0),s[1]=Ke(s[1],-1/0),l[0]=Ke(l[0],1/0),l[1]=Ke(l[1],1/0);var u=e_([{},A,o]);return u.coord=[A.coord,o.coord],u.x0=A.x,u.y0=A.y,u.x1=o.x,u.y1=o.y,u}};function yd(r){return!isNaN(r)&&!isFinite(r)}function LE(r,t,e,n){var a=1-r;return yd(t[a])&&yd(e[a])}function pnt(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return Po(r,"cartesian2d")?e&&n&&(LE(1,e,n)||LE(0,e,n))?!0:ant(r,a,i):Mf(r,a)||Mf(r,i)}function QE(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get(e[0]),a.getWidth()),l=et(A.get(e[1]),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition){var u=r.getValues(["x0","y0"],t),f=r.getValues(["x1","y1"],t),c=i.clampData(u),h=i.clampData(f),v=[];e[0]==="x0"?v[0]=c[0]>h[0]?f[0]:u[0]:v[0]=c[0]>h[0]?u[0]:f[0],e[1]==="y0"?v[1]=c[1]>h[1]?f[1]:u[1]:v[1]=c[1]>h[1]?u[1]:f[1],o=n.getMarkerPosition(v,e,!0)}else{var d=r.get(e[0],t),p=r.get(e[1],t),g=[d,p];i.clampData&&i.clampData(g,g),o=i.dataToPoint(g,!0)}if(Po(i,"cartesian2d")){var y=i.getAxis("x"),m=i.getAxis("y"),d=r.get(e[0],t),p=r.get(e[1],t);yd(d)?o[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):yd(p)&&(o[1]=m.toGlobalCoord(m.getExtent()[e[1]==="y0"?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}return o}var ME=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],gnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=ja.getMarkerModelFromSeries(i,"markArea");if(A){var o=A.getData();o.each(function(s){var l=Y(ME,function(f){return QE(o,s,f,i,a)});o.setItemLayout(s,l);var u=o.getItemGraphicEl(s);u.setShape("points",l)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new Ct});this.group.add(u.group),this.markKeep(u);var f=ynt(A,e,n);n.setData(f),f.each(function(c){var h=Y(ME,function(x){return QE(f,c,x,e,i)}),v=A.getAxis("x").scale,d=A.getAxis("y").scale,p=v.getExtent(),g=d.getExtent(),y=[v.parse(f.get("x0",c)),v.parse(f.get("x1",c))],m=[d.parse(f.get("y0",c)),d.parse(f.get("y1",c))];pn(y),pn(m);var w=!(p[0]>y[1]||p[1]m[1]||g[1]=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}(Ht),ns=bt,Jw=I,wh=Ct,aO=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new wh),this.group.add(this._selectorGroup=new wh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var A=e.get("align"),o=e.get("orient");(!A||A==="auto")&&(A=e.get("left")==="right"&&o==="vertical"?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);s&&(!l||l==="auto")&&(l=o==="horizontal"?"end":"start"),this.renderInner(A,e,n,a,s,o,l);var u=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},c=e.get("padding"),h=Qe(u,f,c),v=this.layoutInner(e,A,h,i,s,l),d=Qe(gt({width:v.width,height:v.height},u),f,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=WH(v,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,A,o,s){var l=this.getContentGroup(),u=ft(),f=n.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),Jw(n.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===` +`)){var p=new wh;p.newline=!0,l.add(p);return}var g=a.getSeriesByName(d)[0];if(!u.get(d))if(g){var y=g.getData(),m=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),_=y.getVisual("style"),B=this._createItem(g,d,v,h,n,e,m,_,w,f,i);B.on("click",ns(UE,d,null,i,c)).on("mouseover",ns(qw,g.name,null,i,c)).on("mouseout",ns(jw,g.name,null,i,c)),a.ssr&&B.eachChild(function(C){var x=St(C);x.seriesIndex=g.seriesIndex,x.dataIndex=v,x.ssrType="legend"}),u.set(d,!0)}else a.eachRawSeries(function(C){if(!u.get(d)&&C.legendVisualProvider){var x=C.legendVisualProvider;if(!x.containName(d))return;var S=x.indexOfName(d),b=x.getItemVisual(S,"style"),T=x.getItemVisual(S,"legendIcon"),F=Zr(b.fill);F&&F[3]===0&&(F[3]=.2,b=V(V({},b),{fill:Na(F,"rgba")}));var E=this._createItem(C,d,v,h,n,e,{},b,T,f,i);E.on("click",ns(UE,null,d,i,c)).on("mouseover",ns(qw,null,d,i,c)).on("mouseout",ns(jw,null,d,i,c)),a.ssr&&E.eachChild(function(D){var L=St(D);L.seriesIndex=C.seriesIndex,L.dataIndex=v,L.ssrType="legend"}),u.set(d,!0)}},this)},this),A&&this._createSelector(A,n,i,o,s)},t.prototype._createSelector=function(e,n,a,i,A){var o=this.getSelectorGroup();Jw(e,function(l){var u=l.type,f=new Gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});o.add(f);var c=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);qe(f,{normal:c,emphasis:h},{defaultText:l.title}),ho(f)})},t.prototype._createItem=function(e,n,a,i,A,o,s,l,u,f,c){var h=e.visualDrawType,v=A.get("itemWidth"),d=A.get("itemHeight"),p=A.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");u=m||u||"roundRect";var w=Bnt(u,i,s,l,h,p,c),_=new wh,B=i.getModel("textStyle");if(vt(e.getLegendIcon)&&(!m||m==="inherit"))_.add(e.getLegendIcon({itemWidth:v,itemHeight:d,icon:u,iconRotate:g,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var C=m==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;_.add(_nt({itemWidth:v,itemHeight:d,icon:u,iconRotate:C,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var x=o==="left"?v+5:-5,S=o,b=A.get("formatter"),T=n;nt(b)&&b?T=b.replace("{name}",n??""):vt(b)&&(T=b(n));var F=p?B.getTextColor():i.get("inactiveColor");_.add(new Gt({style:oe(B,{text:T,x,y:d/2,fill:F,align:S,verticalAlign:"middle"},{inheritColor:F})}));var E=new Nt({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&Al({el:E,componentModel:A,itemName:n,itemTooltipOption:D.option}),_.add(E),_.eachChild(function(L){L.silent=!0}),E.silent=!f,this.getContentGroup().add(_),ho(_),_.__legendDataIndex=a,_},t.prototype.layoutInner=function(e,n,a,i,A,o){var s=this.getContentGroup(),l=this.getSelectorGroup();po(e.get("orient"),s,e.get("itemGap"),a.width,a.height);var u=s.getBoundingRect(),f=[-u.x,-u.y];if(l.markRedraw(),s.markRedraw(),A){po("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),h=[-c.x,-c.y],v=e.get("selectorButtonGap",!0),d=e.getOrient().index,p=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";o==="end"?h[d]+=u[p]+v:f[d]+=c[p]+v,h[1-d]+=u[g]/2-c[g]/2,l.x=h[0],l.y=h[1],s.x=f[0],s.y=f[1];var m={x:0,y:0};return m[p]=u[p]+v+c[p],m[g]=Math.max(u[g],c[g]),m[y]=Math.min(0,c[y]+h[1-d]),m}else return s.x=f[0],s.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(de);function Bnt(r,t,e,n,a,i,A){function o(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),Jw(p,function(y,m){p[m]==="inherit"&&(p[m]=g[m])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=s.getShallow("decal");l.decal=!f||f==="inherit"?n.decal:zs(f,A),l.fill==="inherit"&&(l.fill=n[a]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(a==="fill"?n:e).opacity),o(l,n);var c=t.getModel("lineStyle"),h=c.getLineStyle();if(o(h,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=t.get("inactiveBorderWidth"),d=l[u];l.lineWidth=v==="auto"?n.lineWidth>0&&d?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function _nt(r){var t=r.icon||"roundRect",e=Fe(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function UE(r,t,e,n){jw(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),qw(r,t,e,n)}function iO(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[A],p=[-h.x,-h.y];n||(p[i]=u[l]);var g=[0,0],y=[-v.x,-v.y],m=xt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var w=e.get("pageButtonPosition",!0);w==="end"?y[i]+=a[A]-v[A]:g[i]+=v[A]+m}y[1-i]+=h[o]/2-v[o]/2,u.setPosition(p),f.setPosition(g),c.setPosition(y);var _={x:0,y:0};if(_[A]=d?a[A]:h[A],_[o]=Math.max(h[o],v[o]),_[s]=Math.min(0,v[s]+y[1-i]),f.__rectSize=a[A],d){var B={x:0,y:0};B[A]=Math.max(a[A]-v[A]-m,0),B[o]=_[o],f.setClipPath(new Nt({shape:B})),f.__rectSize=B[A]}else c.eachChild(function(x){x.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&zt(u,{x:C.contentPosition[0],y:C.contentPosition[1]},d?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;I(["pagePrev","pageNext"],function(u){var f=u+"DataIndex",c=n[f]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),A=e.get("pageFormatter"),o=n.pageIndex,s=o!=null?o+1:0,l=n.pageCount;i&&A&&i.setStyle("text",nt(A)?A.replace("{current}",s==null?"":s+"").replace("{total}",l==null?"":l+""):A({current:s,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,A=e.getOrient().index,o=Cm[A],s=Sm[A],l=this._findTargetItemIndex(n),u=a.children(),f=u[l],c=u.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var d=w(f);v.contentPosition[A]=-d.s;for(var p=l+1,g=d,y=d,m=null;p<=c;++p)m=w(u[p]),(!m&&y.e>g.s+i||m&&!_(m,g.s))&&(y.i>g.i?g=y:g=m,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=m;for(var p=l-1,g=d,y=d,m=null;p>=-1;--p)m=w(u[p]),(!m||!_(y,m.s))&&g.i=C&&B.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(A,o){var s=A.__legendDataIndex;i==null&&s!=null&&(i=o),s===e&&(n=o)}),n??i},t.type="legend.scroll",t}(aO);function Tnt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Int(r){Qt(AO),r.registerComponentModel(xnt),r.registerComponentView(bnt),Tnt(r)}function Fnt(r){Qt(AO),Qt(Int)}var Ent=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=uA(Lf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Lf),e1=Vt();function Dnt(r,t,e){e1(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function Lnt(r,t){for(var e=e1(r).coordSysRecordMap,n=e.keys(),a=0;an[e+t]&&(t=o),a=a&&A.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Rnt(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=e1(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ft());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var A=GH(i);I(A.infoList,function(o){var s=o.model.uid,l=a.get(s)||a.set(s,Qnt(e,o.model)),u=l.dataZoomInfoMap||(l.dataZoomInfoMap=ft());u.set(i.uid,{dzReferCoordSysInfo:o,model:i,getRange:null})})}),a.each(function(i){var A=i.controller,o,s=i.dataZoomInfoMap;if(s){var l=s.keys()[0];l!=null&&(o=s.get(l))}if(!o){oO(a,i);return}var u=Pnt(s);A.enable(u.controlType,u.opt),A.setPointerChecker(i.containsPoint),hl(i,"dispatchAction",o.model.get("throttle",!0),"fixRate")})})}var Hnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Dnt(a,e,{pan:it(xm.pan,this),zoom:it(xm.zoom,this),scrollMove:it(xm.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Lnt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(WC),xm={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),A=r.axisModels[0];if(A){var o=bm[t](null,[n.originX,n.originY],A,e,r),s=(o.signal>0?o.pixelStart+o.pixelLength-o.pixel:o.pixel-o.pixelStart)/o.pixelLength*(i[1]-i[0])+i[0],l=Math.max(1/n.scale,0);i[0]=(i[0]-s)*l+s,i[1]=(i[1]-s)*l+s;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ho(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:HE(function(r,t,e,n,a,i){var A=bm[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return A.signal*(r[1]-r[0])*A.pixel/A.pixelLength}),scrollMove:HE(function(r,t,e,n,a,i){var A=bm[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return A.signal*(r[1]-r[0])*i.scrollDelta})};function HE(r){return function(t,e,n,a){var i=this.range,A=i.slice(),o=t.axisModels[0];if(o){var s=r(A,o,t,e,n,a);if(Ho(s,A,[0,100],"all"),this.range=A,i[0]!==A[0]||i[1]!==A[1])return A}}}var bm={grid:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(A.pixel=t[0]-r[0],A.pixelLength=o.width,A.pixelStart=o.x,A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=o.height,A.pixelStart=o.y,A.signal=i.inverse?-1:1),A},polar:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return r=r?o.pointToCoord(r):[0,0],t=o.pointToCoord(t),e.mainType==="radiusAxis"?(A.pixel=t[0]-r[0],A.pixelLength=s[1]-s[0],A.pixelStart=s[0],A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=l[1]-l[0],A.pixelStart=l[0],A.signal=i.inverse?-1:1),A},singleAxis:function(r,t,e,n,a){var i=e.axis,A=a.model.coordinateSystem.getRect(),o={};return r=r||[0,0],i.orient==="horizontal"?(o.pixel=t[0]-r[0],o.pixelLength=A.width,o.pixelStart=A.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=A.height,o.pixelStart=A.y,o.signal=i.inverse?-1:1),o}};function sO(r){XC(r),r.registerComponentModel(Ent),r.registerComponentView(Hnt),Rnt(r)}var Ont=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=uA(Lf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Lf),Zl=Nt,OE=7,knt=1,Tm=30,Nnt=7,$l="horizontal",kE="vertical",Vnt=5,Gnt=["line","bar","candlestick","scatter"],Knt={easing:"cubicOut",duration:100,delay:0},znt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),hl(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){mf(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?Nnt:0,A=this._findCoordRect(),o={width:n.getWidth(),height:n.getHeight()},s=this._orient===$l?{right:o.width-A.x-A.width,top:o.height-Tm-OE-i,width:A.width,height:Tm}:{right:OE,top:A.y,width:Tm,height:A.height},l=ul(e.option);I(["right","top","width","height"],function(f){l[f]==="ph"&&(l[f]=s[f])});var u=Qe(l,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===kE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),A=i&&i.get("inverse"),o=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(a===$l&&!A?{scaleY:s?1:-1,scaleX:1}:a===$l&&A?{scaleY:s?1:-1,scaleX:-1}:a===kE&&!A?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([o]);e.x=n.x-l.x,e.y=n.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Zl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var A=new Zl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),o=this.api.getZr();i?(A.on("mousedown",this._onBrushStart,this),A.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),a.add(A)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,A=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),s=o&&A.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(A!==this._shadowData||s!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=A.getDataExtent(s),c=(f[1]-f[0])*.3;f=[f[0]-c,f[1]+c];var h=[0,n[1]],v=[0,n[0]],d=[[n[0],0],[0,0]],p=[],g=v[1]/(A.count()-1),y=0,m=Math.round(A.count()/n[0]),w;A.each([s],function(S,b){if(m>0&&b%m){y+=g;return}var T=S==null||isNaN(S)||S==="",F=T?0:$t(S,f,h,!0);T&&!w&&b?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!T&&w&&(d.push([y,0]),p.push([y,0])),d.push([y,F]),p.push([y,F]),y+=g,w=T}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=A,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function B(S){var b=_.getModel(S?"selectedDataBackground":"dataBackground"),T=new Ct,F=new br({shape:{points:l},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new Tr({shape:{points:u},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return T.add(F),T.add(E),T}for(var C=0;C<3;C++){var x=B(C===1);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(A,o){var s=e.getAxisProxy(A,o).getTargetSeriesModels();I(s,function(l){if(!a&&!(n!==!0&&Lt(Gnt,l.get("type"))<0)){var u=i.getComponent(Oi(A),o).axis,f=Wnt(A),c,h=l.coordinateSystem;f!=null&&h.getOtherAxis&&(c=h.getOtherAxis(u).inverse),f=l.getData().mapDimension(f),a={thisAxis:u,series:l,thisDim:A,otherDim:f,otherAxisInverse:c}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],A=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,l=this.api,u=s.get("borderRadius")||0,f=s.get("brushSelect"),c=n.filler=new Zl({silent:f,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});A.add(c),A.add(new Zl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:knt,fill:"rgba(0,0,0,0)"}})),I([0,1],function(m){var w=s.get("handleIcon");!Zv[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var _=Fe(w,-1,0,2,2,null,!0);_.attr({cursor:NE(this._orient),draggable:!0,drift:it(this._onDragMove,this,m),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var B=_.getBoundingRect(),C=s.get("handleSize");this._handleHeight=et(C,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,_.setStyle(s.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),ho(_);var x=s.get("handleColor");x!=null&&(_.style.fill=x),A.add(a[m]=_);var S=s.getModel("textStyle");e.add(i[m]=new Gt({silent:!0,invisible:!0,style:oe(S,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:S.getTextColor(),font:S.getFont()}),z2:10}))},this);var h=c;if(f){var v=et(s.get("moveHandleSize"),o[1]),d=n.moveHandle=new Nt({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:v}}),p=v*.8,g=n.moveHandleIcon=Fe(s.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+v/2-.5,d.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(v,10));h=n.moveZone=new Nt({invisible:!0,shape:{y:o[1]-y,height:v+y}}),h.on("mouseover",function(){l.enterEmphasis(d)}).on("mouseout",function(){l.leaveEmphasis(d)}),A.add(d),A.add(g),A.add(h)}h.attr({draggable:!0,cursor:NE(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$t(e[0],[0,100],n,!0),$t(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,A=this._getViewExtent(),o=a.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];Ho(n,i,A,a.get("zoomLock")?"all":e,o.minSpan!=null?$t(o.minSpan,s,A,!0):null,o.maxSpan!=null?$t(o.maxSpan,s,A,!0):null);var l=this._range,u=this._range=pn([$t(i[0],A,s,!0),$t(i[1],A,s,!0)]);return!l||l[0]!==u[0]||l[1]!==u[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=pn(a.slice()),A=this._size;I([0,1],function(h){var v=n.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:A[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:A[1]});var o={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(o),n.moveZone.setShape(o),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=n.dataShadowSegs,l=[0,i[0],i[1],A[0]],u=0;un[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,A=(i[0]+i[1])/2,o=this._updateInterval("all",a[0]-A);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new It(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var A=this._getViewExtent(),o=[0,100];this._range=pn([$t(a.x,A,o,!0),$t(a.x+a.width,A,o,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Wa(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,A=a.brushRect;A||(A=a.brushRect=new Zl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(A)),A.attr("ignore",!1);var o=this._brushStart,s=this._displayables.sliderGroup,l=s.transformCoordToLocal(e,n),u=s.transformCoordToLocal(o.x,o.y),f=this._size;l[0]=Math.max(Math.min(f[0],l[0]),0),A.setShape({x:u[0],y:0,width:l[0]-u[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Knt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=GH(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),A=this.api.getHeight();e={x:i*.2,y:A*.2,width:i*.6,height:A*.6}}return e},t.type="dataZoom.slider",t}(WC);function Wnt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function NE(r){return r==="vertical"?"ns-resize":"ew-resize"}function lO(r){r.registerComponentModel(Ont),r.registerComponentView(znt),XC(r)}function Xnt(r){Qt(sO),Qt(lO)}var uO={get:function(r,t,e){var n=wt((Ynt[r]||{})[t]);return e&&K(n)?n[n.length-1]:n}},Ynt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},VE=He.mapVisual,Znt=He.eachVisual,$nt=K,GE=I,Jnt=pn,qnt=$t,md=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&jH(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Xw(this.option.controller,n,e),this.targetVisuals=Xw(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){I(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,A=i.precision,o=this.dataBound,s=i.formatter,l;a=a||["<",">"],K(e)&&(e=e.slice(),l=!0);var u=n?e:l?[f(e[0]),f(e[1])]:f(e);if(nt(s))return s.replace("{value}",l?u[0]:u).replace("{value2}",l?u[1]:u);if(vt(s))return l?s(e[0],e[1]):s(e);if(l)return e[0]===o[0]?a[0]+" "+u[1]:e[1]===o[1]?a[1]+" "+u[0]:u[0]+" - "+u[1];return u;function f(c){return c===o[0]?"min":c===o[1]?"max":(+c).toFixed(Math.min(A,20))}},t.prototype.resetExtent=function(){var e=this.option,n=Jnt([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var a=e.dimensions,i=a.length-1;i>=0;i--){var A=a[i],o=e.getDimensionInfo(A);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),A=n.controller||(n.controller={});Et(i,a),Et(A,a);var o=this.isCategory();s.call(this,i),s.call(this,A),l.call(this,i,"inRange","outOfRange"),u.call(this,A);function s(f){$nt(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function l(f,c,h){var v=f[c],d=f[h];v&&!d&&(d=f[h]={},GE(v,function(p,g){if(He.isValidType(g)){var y=uO.get(g,"inactive",o);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function u(f){var c=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),p=d||"roundRect";GE(this.stateList,function(g){var y=this.itemSize,m=f[g];m||(m=f[g]={color:o?v:[v]}),m.symbol==null&&(m.symbol=c&&wt(c)||(o?p:[p])),m.symbolSize==null&&(m.symbolSize=h&&wt(h)||(o?y[0]:[y[0],y[0]])),m.symbol=VE(m.symbol,function(B){return B==="none"?p:B});var w=m.symbolSize;if(w!=null){var _=-1/0;Znt(w,function(B){B>_&&(_=B)}),m.symbolSize=VE(w,function(B){return qnt(B,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Ht),KE=[20,140],jnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=KE[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=KE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):K(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),I(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=pn((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],A=a.getData();A.each(this.getDataDimensionIndex(A),function(o,s){e[0]<=o&&o<=e[1]&&i.push(s)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=zE(this,"outOfRange",this.getExtent()),a=zE(this,"inRange",this.option.range.slice()),i=[];function A(h,v){i.push({value:h,color:e(h,v)})}for(var o=0,s=0,l=a.length,u=n.length;se[1])break;i.push({color:this.getControllerVisual(s,"color",n),offset:o/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new Ct(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,A=a.handleThumbs,o=a.handleLabels,s=i.itemSize,l=i.getExtent();tat([0,1],function(u){var f=A[u];f.setStyle("fill",n.handlesColor[u]),f.y=e[u];var c=ea(e[u],[0,s[1]],l,!0),h=this.getControllerVisual(c,"symbolSize");f.scaleX=f.scaleY=h/s[0],f.x=s[0]-h/2;var v=Hn(a.handleLabelPoints[u],vo(f,this.group));o[u].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var A=this.visualMapModel,o=A.getExtent(),s=A.itemSize,l=[0,s[1]],u=this._shapes,f=u.indicator;if(f){f.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),v=this.getControllerVisual(e,"symbolSize"),d=ea(e,o,l,!0),p=s[0]-v/2,g={x:f.x,y:f.y};f.y=d,f.x=p;var y=Hn(u.indicatorLabelPoint,vo(f,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var w=this._applyTransform("left",u.mainGroup),_=this._orient,B=_==="horizontal";m.setStyle({text:(a||"")+A.formatValueText(n),verticalAlign:B?w:"middle",align:B?"center":w});var C={x:p,y:d,style:{fill:h}},x={style:{x:y[0],y:y[1]}};if(A.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(C,S),m.animateTo(x,S)}else f.attr(C),m.attr(x);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var T=0;TA[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(u,f[1],"< ",s):f[1]===1/0?this._showIndicator(u,f[0],"> ",s):this._showIndicator(u,u,"≈ ",s));var c=this._hoverLinkDataIndices,h=[];(n||ZE(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=u3(c,h);this._dispatchHighDown("downplay",vv(v[0],a)),this._dispatchHighDown("highlight",vv(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(no(e.target,function(s){var l=St(s);if(l.dataIndex!=null)return n=l,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var A=a.getData(n.dataType),o=A.getStore().get(i.getDataDimensionIndex(A),n.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=A,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function sat(r,t,e,n){for(var a=t.targetVisuals[n],i=He.prepareVisualTypes(a),A={color:$f(r.getData(),"color")},o=0,s=i.length;o0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(iat,Aat),I(oat,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(lat))}function vO(r){r.registerComponentModel(jnt),r.registerComponentView(nat),hO(r)}var uat=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],fat[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(A,o){a==="categories"?(A.mappingMethod="category",A.categories=wt(i)):(A.dataExtent=this.getExtent(),A.mappingMethod="piecewise",A.pieceList=Y(this._pieceList,function(s){return s=wt(s),o!=="inRange"&&(s.visual=null),s}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=He.listVisualTypes(),i=this.isCategory();I(e.pieces,function(o){I(a,function(s){o.hasOwnProperty(s)&&(n[s]=1)})}),I(n,function(o,s){var l=!1;I(this.stateList,function(u){l=l||A(e,u,s)||A(e.target,u,s)},this),!l&&I(this.stateList,function(u){(e[u]||(e[u]={}))[s]=uO.get(s,u==="inRange"?"active":"inactive",i)})},this);function A(o,s,l){return o&&o[s]&&o[s].hasOwnProperty(l)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,A=(n?a:e).selected||{};if(a.selected=A,I(i,function(s,l){var u=this.getSelectedMapKey(s);A.hasOwnProperty(u)||(A[u]=!0)},this),a.selectedMode==="single"){var o=!1;I(i,function(s,l){var u=this.getSelectedMapKey(s);A[u]&&(o?A[u]=!1:o=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=wt(e)},t.prototype.getValueState=function(e){var n=He.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var A=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){var u=He.findPieceIndex(s,a);u===e&&A.push(l)},this),n.push({seriesId:i.id,dataIndex:A})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function A(u,f){var c=i.getRepresentValue({interval:u});f||(f=i.getValueState(c));var h=e(c,f);u[0]===-1/0?a[0]=h:u[1]===1/0?a[1]=h:n.push({value:u[0],color:h},{value:u[1],color:h})}var o=this._pieceList.slice();if(!o.length)o.push({interval:[-1/0,1/0]});else{var s=o[0].interval[0];s!==-1/0&&o.unshift({interval:[-1/0,s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}var l=-1/0;return I(o,function(u){var f=u.interval;f&&(f[0]>l&&A([l,f[0]],"outOfRange"),A(f.slice()),l=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=uA(md.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(md),fat={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var A=0,o=n[0];A","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function jE(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var cat=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,A=i.getFont(),o=i.getTextColor(),s=this._getItemAlign(),l=n.itemSize,u=this._getViewData(),f=u.endsText,c=Ke(n.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],l,c,s),I(u.viewPieceList,function(h){var v=h.piece,d=new Ct;d.onclick=it(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,l[0],l[1]]),c){var g=this.visualMapModel.getValueState(p);d.add(new Gt({style:{x:s==="right"?-a:l[0]+a,y:l[1]/2,text:v.text,verticalAlign:"middle",align:s,font:A,fill:o,opacity:g==="outOfRange"?.5:1}}))}e.add(d)},this),f&&this._renderEndsText(e,f[1],l,c,s),po(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(A){var o=a.visualMapModel;o.option.hoverLink&&a.api.dispatchAction({type:A,batch:vv(o.findTargetDataIndices(n),o)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return cO(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,A){if(n){var o=new Ct,s=this.visualMapModel.textStyleModel;o.add(new Gt({style:oe(s,{x:i?A==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?A:"center",text:n})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Y(e.getPieceList(),function(o,s){return{piece:o,indexInModelPieceList:s}}),a=e.get("text"),i=e.get("orient"),A=e.get("inverse");return(i==="horizontal"?A:!A)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(Fe(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var A=wt(a.selected),o=n.getSelectedMapKey(e);i==="single"||i===!0?(A[o]=!0,I(A,function(s,l){A[l]=l===o})):A[o]=!A[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:A})}},t.type="visualMap.piecewise",t}(fO);function dO(r){r.registerComponentModel(uat),r.registerComponentView(cat),hO(r)}function hat(r){Qt(vO),Qt(dO)}var vat={label:{enabled:!0},decal:{show:!1}},tD=Vt(),dat={};function pat(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=wt(vat);Et(n.label,r.getLocaleModel().get("aria"),!1),Et(e.option,n,!1),a(),i();function a(){var l=e.getModel("decal"),u=l.get("show");if(u){var f=ft();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=f.get(c.type);h||(h={},f.set(c.type,h)),tD(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(vt(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=j0(c.ecModel,c.name,dat,r.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",w(m,y))}else{var v=c.getRawData(),d={},p=tD(c).scope;h.each(function(_){var B=h.getRawIndex(_);d[B]=_});var g=v.count();v.each(function(_){var B=d[_],C=v.getName(_)||_+"",x=j0(c.ecModel,C,p,g),S=h.getItemVisual(B,"decal");h.setItemVisual(B,"decal",w(S,x))})}function w(_,B){var C=_?V(V({},B),_):B;return C.dirty=!0,C}})}}function i(){var l=t.getZr().dom;if(l){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=gt(f.option,u),!!f.get("enabled")){if(f.get("description")){l.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),p;if(!(c<1)){var g=o();if(g){var y=f.get(["general","withTitle"]);p=A(y,{title:g})}else p=f.get(["general","withoutTitle"]);var m=[],w=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=A(w,{seriesCount:c}),r.eachSeries(function(x,S){if(S1?f.get(["series","multiple",F]):f.get(["series","single",F]),b=A(b,{seriesId:x.seriesIndex,seriesName:x.get("name"),seriesType:s(x.subType)});var E=x.getData();if(E.count()>h){var D=f.get(["data","partialData"]);b+=A(D,{displayCnt:h})}else b+=f.get(["data","allData"]);for(var L=f.get(["data","separator","middle"]),M=f.get(["data","separator","end"]),R=[],P=0;P":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},mat=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):EG(t)?t:null;if(e==null){var n="";Xt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Kt(e)?this._condVal.test(t+""):!1},r}(),wat=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Bat=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(a),a=[E,D]}function u(E,D,L,M){xs(E,L)&&xs(D,M)||a.push(E,D,L,M,L,M)}function f(E,D,L,M,R,P){var O=Math.abs(D-E),G=Math.tan(O/4)*4/3,X=Dx:T2&&n.push(a),n}function eB(r,t,e,n,a,i,A,o,s,l){if(xs(r,e)&&xs(t,n)&&xs(a,A)&&xs(i,o)){s.push(A,o);return}var u=2/l,f=u*u,c=A-r,h=o-t,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=e-r,p=n-t,g=a-A,y=i-o,m=d*d+p*p,w=g*g+y*y;if(m=0&&x=0){s.push(A,o);return}var S=[],b=[];ji(r,e,a,A,.5,S),ji(t,n,i,o,.5,b),eB(S[0],b[0],S[1],b[1],S[2],b[2],S[3],b[3],s,l),eB(S[4],b[4],S[5],b[5],S[6],b[6],S[7],b[7],s,l)}function Uat(r,t){var e=tB(r),n=[];t=t||1;for(var a=0;a0)for(var l=0;lMath.abs(l),f=gO([s,l],u?0:1,t),c=(u?o:l)/f.length,h=0;ha,A=gO([n,a],i?0:1,t),o=i?"width":"height",s=i?"height":"width",l=i?"x":"y",u=i?"y":"x",f=r[o]/A.length,c=0;c1?null:new It(d*s+r,d*l+t)}function Hat(r,t,e){var n=new It;It.sub(n,e,t),n.normalize();var a=new It;It.sub(a,r,t);var i=a.dot(n);return i}function is(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Oat(r,t,e){for(var n=r.length,a=[],i=0;iA?(l.x=u.x=o+i/2,l.y=s,u.y=s+A):(l.y=u.y=s+A/2,l.x=o,u.x=o+i),Oat(t,l,u)}function wd(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);wd(r,i[0],a,n),wd(r,i[1],e-a,n)}return n}function kat(r,t){for(var e=[],n=0;n0;l/=2){var u=0,f=0;(r&l)>0&&(u=1),(t&l)>0&&(f=1),o+=l*l*(3*u^f),f===0&&(u===1&&(r=l-1-r,t=l-1-t),s=r,r=t,t=s)}return o}function Cd(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=Y(r,function(o){var s=o.getBoundingRect(),l=o.getComputedTransform(),u=s.x+s.width/2+(l?l[4]:0),f=s.y+s.height/2+(l?l[5]:0);return t=Math.min(u,t),e=Math.min(f,e),n=Math.max(u,n),a=Math.max(f,a),[u,f]}),A=Y(i,function(o,s){return{cp:o,z:Zat(o[0],o[1],t,e,n,a),path:r[s]}});return A.sort(function(o,s){return o.z-s.z}).map(function(o){return o.path})}function wO(r){return Gat(r.path,r.count)}function rB(){return{fromIndividuals:[],toIndividuals:[],count:0}}function $at(r,t,e){var n=[];function a(_){for(var B=0;B<_.length;B++){var C=_[B];Bd(C)?a(C.childrenRef()):C instanceof Mt&&n.push(C)}}a(r);var i=n.length;if(!i)return rB();var A=e.dividePath||wO,o=A({path:t,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),rB();n=Cd(n),o=Cd(o);for(var s=e.done,l=e.during,u=e.individualDelay,f=new Ua,c=0;c=0;a--)if(!e[a].many.length){var s=e[o].many;if(s.length<=1)if(o)o=0;else return e;var i=s.length,l=Math.ceil(i/2);e[a].many=s.slice(l,i),e[o].many=s.slice(0,l),o++}return e}var qat={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var o=n.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},A),l,u;lD(r)&&(l=r,u=t),lD(t)&&(l=t,u=r);function f(g,y,m,w,_){var B=g.many,C=g.one;if(B.length===1&&!_){var x=y?B[0]:C,S=y?C:B[0];if(Bd(x))f({many:[x],one:S},!0,m,w,!0);else{var b=o?gt({delay:o(m,w)},s):s;n1(x,S,b),i(x,S,x,S,b)}}else for(var T=gt({dividePath:qat[e],individualDelay:o&&function(R,P,O,G){return o(R+m,w)}},s),F=y?$at(B,C,T):Jat(C,B,T),E=F.fromIndividuals,D=F.toIndividuals,L=E.length,M=0;Mt.length,h=l?uD(u,l):uD(c?t:r,[c?r:t]),v=0,d=0;dBO))for(var i=n.getIndices(),A=0;A0&&B.group.traverse(function(x){x instanceof Mt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},C)})})}function dD(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function pD(r){return K(r)?r.sort().join(","):r}function Ti(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function iit(r,t){var e=ft(),n=ft(),a=ft();return I(r.oldSeries,function(i,A){var o=r.oldDataGroupIds[A],s=r.oldData[A],l=dD(i),u=pD(l);n.set(u,{dataGroupId:o,data:s}),K(l)&&I(l,function(f){a.set(f,{key:u,dataGroupId:o,data:s})})}),I(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var A=i.get("dataGroupId"),o=i.getData(),s=dD(i),l=pD(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:Ti(u.data),data:u.data}],newSeries:[{dataGroupId:A,divide:Ti(o),data:o}]});else if(K(s)){var f=[];I(s,function(v){var d=n.get(v);d.data&&f.push({dataGroupId:d.dataGroupId,divide:Ti(d.data),data:d.data})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{dataGroupId:A,data:o,divide:Ti(o)}]})}else{var c=a.get(s);if(c){var h=e.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Ti(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({dataGroupId:A,data:o,divide:Ti(o)})}}}}),e}function gD(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[o],data:t.oldData[o],divide:Ti(t.oldData[o]),groupIdDim:A.dimension})}),I(qt(r.to),function(A){var o=gD(e.updatedSeries,A);if(o>=0){var s=e.updatedSeries[o].getData();i.push({dataGroupId:t.oldDataGroupIds[o],data:s,divide:Ti(s),groupIdDim:A.dimension})}}),a.length>0&&i.length>0&&_O(a,i,n)}function oit(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){I(qt(n.seriesTransition),function(a){I(qt(a.to),function(i){for(var A=n.updatedSeries,o=0;o0?`${t}d`:e>0?`${e}h`:n>0?`${n}m`:`${a}s`}const fit={class:"online-status"},cit=Eo({__name:"OutlineAnime",props:{color:{},spreadColor:{},isOnline:{type:Boolean}},setup(r){const t=r;return(e,n)=>(wr(),cn("div",fit,[mt("div",{class:"dot",style:za({backgroundColor:t.color})},null,4),e.isOnline?(wr(),cn("div",{key:0,class:"pulse",style:za({backgroundColor:t.spreadColor})},null,4)):zB("",!0)]))}}),hit=js(cit,[["__scopeId","data-v-d33c36a0"]]),vit={class:"disk"},dit={class:"hover-text"},pit={class:"left-text"},git={class:"disk-text"},yit={class:"right-text"},mit={class:"disk-text"},wit={class:"progress-bar",style:{display:"flex","align-items":"center"}},Bit={style:{color:"var(--text-color-2)"}},_it={class:"percentage",style:{"text-align":"right"}},Cit=Eo({__name:"Disk",props:{mountpoint:{},device:{},used:{},total:{},fstype:{}},setup(r){const t=r,e=pv(t.used/t.total*100),n=gv(t.used/t.total*100);return(a,i)=>(wr(),cn("div",vit,[mt("div",dit,[mt("div",pit,[mt("span",git,Ce(t.mountpoint),1)]),mt("div",yit,[mt("span",mit,Ce(ca(nB)(t.used,t.total))+" ["+Ce(t.fstype)+"]",1)])]),mt("div",wit,[mt("div",{class:"disk-total",style:za([{backgroundColor:ca(n)},{"margin-right":"0.5rem"}])},[mt("div",{class:"disk-used",style:za({width:t.used/t.total*100+"%",backgroundColor:ca(e)})},null,4)],4),mt("div",Bit,[mt("div",_it,Ce((t.used/t.total*100).toFixed(1))+"%",1)])])]))}}),Sit=js(Cit,[["__scopeId","data-v-6cc8290d"]]);/*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License @@ -94,8 +94,8 @@ 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 Vw=function(r,t){return Vw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Vw(r,t)};function Nn(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Vw(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Gw=function(){return Gw=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=55296&&a<=56319&&e>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},jE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zat=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ch=0;ch"u"?[]:new Uint8Array(256);for(var hh=0;hh>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},Xat=function(r){for(var t=r.length,e=[],n=0;n>so,$at=1<>so,qat=qH+Jat,jat=qat,tit=32,eit=jat+tit,rit=65536>>KC,nit=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>so],e=(e<>so)],e=(e<>KC),e=this.index[e],e+=t>>so&ait,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var vh=0;vhnD?(a.push(!0),o-=nD):a.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(A),e.push(Ww);if(o===fit||o===Kw){if(A===0)return n.push(A),e.push(VA);var s=e[A-1];return mit.indexOf(s)===-1?(n.push(n[A-1]),e.push(s)):(n.push(A),e.push(VA))}if(n.push(A),o===pit)return e.push(t==="strict"?Xw:xf);if(o===rO||o===dit)return e.push(VA);if(o===git)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(xf):e.push(VA);e.push(o)}),[n,e,a]},wm=function(r,t,e,n){var a=n[e];if(Array.isArray(r)?r.indexOf(a)!==-1:r===a)for(var i=e;i<=n.length;){i++;var A=n[i];if(A===t)return!0;if(A!==Mi)break}if(a===Mi)for(var i=e;i>0;){i--;var o=n[i];if(Array.isArray(r)?r.indexOf(o)!==-1:r===o)for(var s=e;s<=n.length;){s++;var A=n[s];if(A===t)return!0;if(A!==Mi)break}if(o!==Mi)break}return!1},uD=function(r,t){for(var e=r;e>=0;){var n=t[e];if(n===Mi)e--;else return n}return 0},_it=function(r,t,e,n,a){if(e[n]===0)return Wt;var i=n-1;if(Array.isArray(a)&&a[i]===!0)return Wt;var A=i-1,o=i+1,s=t[i],l=A>=0?t[A]:0,u=t[o];if(s===jH&&u===tO)return Wt;if(jw.indexOf(s)!==-1)return nO;if(jw.indexOf(u)!==-1||aO.indexOf(u)!==-1)return Wt;if(uD(i,t)===eO)return yh;if(qw.get(r[i])===Kw||(s===ph||s===gh)&&qw.get(r[o])===Kw||s===aD||u===aD||s===iD||[Mi,zw,lu].indexOf(s)===-1&&u===iD||[dh,Kl,vit,qo,jo].indexOf(u)!==-1||uD(i,t)===zl||wm(ym,zl,i,t)||wm([dh,Kl],Xw,i,t)||wm(AD,AD,i,t))return Wt;if(s===Mi)return yh;if(s===ym||u===ym)return Wt;if(u===Ww||s===Ww)return yh;if([zw,lu,Xw].indexOf(u)!==-1||s===hit||l===$w&&wit.indexOf(s)!==-1||s===jo&&u===$w||u===oD||Ia.indexOf(u)!==-1&&s===kr||Ia.indexOf(s)!==-1&&u===kr||s===fu&&[xf,ph,gh].indexOf(u)!==-1||[xf,ph,gh].indexOf(s)!==-1&&u===uu||Ia.indexOf(s)!==-1&&sD.indexOf(u)!==-1||sD.indexOf(s)!==-1&&Ia.indexOf(u)!==-1||[fu,uu].indexOf(s)!==-1&&(u===kr||[zl,lu].indexOf(u)!==-1&&t[o+1]===kr)||[zl,lu].indexOf(s)!==-1&&u===kr||s===kr&&[kr,jo,qo].indexOf(u)!==-1)return Wt;if([kr,jo,qo,dh,Kl].indexOf(u)!==-1)for(var f=i;f>=0;){var c=t[f];if(c===kr)return Wt;if([jo,qo].indexOf(c)!==-1)f--;else break}if([fu,uu].indexOf(u)!==-1)for(var f=[dh,Kl].indexOf(s)!==-1?A:i;f>=0;){var c=t[f];if(c===kr)return Wt;if([jo,qo].indexOf(c)!==-1)f--;else break}if(Jw===s&&[Jw,ov,Yw,Zw].indexOf(u)!==-1||[ov,Yw].indexOf(s)!==-1&&[ov,sv].indexOf(u)!==-1||[sv,Zw].indexOf(s)!==-1&&u===sv||lD.indexOf(s)!==-1&&[oD,uu].indexOf(u)!==-1||lD.indexOf(u)!==-1&&s===fu||Ia.indexOf(s)!==-1&&Ia.indexOf(u)!==-1||s===qo&&Ia.indexOf(u)!==-1||Ia.concat(kr).indexOf(s)!==-1&&u===zl&&yit.indexOf(r[o])===-1||Ia.concat(kr).indexOf(u)!==-1&&s===Kl)return Wt;if(s===mm&&u===mm){for(var h=e[i],v=1;h>0&&(h--,t[h]===mm);)v++;if(v%2!==0)return Wt}return s===ph&&u===gh?Wt:yh},Cit=function(r,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=Bit(r,t.lineBreak),n=e[0],a=e[1],i=e[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(a=a.map(function(o){return[kr,VA,rO].indexOf(o)!==-1?xf:o}));var A=t.wordBreak==="keep-all"?i.map(function(o,s){return o&&r[s]>=19968&&r[s]<=40959}):void 0;return[n,a,A]},Sit=function(){function r(t,e,n,a){this.codePoints=t,this.required=e===nO,this.start=n,this.end=a}return r.prototype.slice=function(){return Se.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),xit=function(r,t){var e=Cp(r),n=Cit(e,t),a=n[0],i=n[1],A=n[2],o=e.length,s=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var u=Wt;l=iO&&r<=57},iAt=function(r){return r>=55296&&r<=57343},ts=function(r){return nr(r)||r>=sO&&r<=uO||r>=AO&&r<=tAt},AAt=function(r){return r>=AO&&r<=rAt},oAt=function(r){return r>=sO&&r<=aAt},sAt=function(r){return AAt(r)||oAt(r)},lAt=function(r){return r>=Kit},Ch=function(r){return r===cd||r===Iit||r===Fit},hd=function(r){return sAt(r)||lAt(r)||r===Lit},dD=function(r){return hd(r)||nr(r)||r===Ir},uAt=function(r){return r>=Yit&&r<=Zit||r===$it||r>=Jit&&r<=qit||r===jit},Ci=function(r,t){return r!==Hu?!1:t!==cd},Sh=function(r,t,e){return r===Ir?hd(t)||Ci(t,e):hd(r)?!0:!!(r===Hu&&Ci(r,t))},_m=function(r,t,e){return r===JA||r===Ir?nr(t)?!0:t===bf&&nr(e):nr(r===bf?t:r)},fAt=function(r){var t=0,e=1;(r[t]===JA||r[t]===Ir)&&(r[t]===Ir&&(e=-1),t++);for(var n=[];nr(r[t]);)n.push(r[t++]);var a=n.length?parseInt(Se.apply(void 0,n),10):0;r[t]===bf&&t++;for(var i=[];nr(r[t]);)i.push(r[t++]);var A=i.length,o=A?parseInt(Se.apply(void 0,i),10):0;(r[t]===lO||r[t]===oO)&&t++;var s=1;(r[t]===JA||r[t]===Ir)&&(r[t]===Ir&&(s=-1),t++);for(var l=[];nr(r[t]);)l.push(r[t++]);var u=l.length?parseInt(Se.apply(void 0,l),10):0;return e*(a+o*Math.pow(10,-A))*Math.pow(10,s*u)},cAt={type:2},hAt={type:3},vAt={type:4},dAt={type:13},pAt={type:8},gAt={type:21},yAt={type:9},mAt={type:10},wAt={type:11},BAt={type:12},_At={type:14},xh={type:23},CAt={type:1},SAt={type:25},xAt={type:24},bAt={type:26},TAt={type:27},IAt={type:28},FAt={type:29},EAt={type:31},tB={type:32},fO=function(){function r(){this._value=[]}return r.prototype.write=function(t){this._value=this._value.concat(Cp(t))},r.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==tB;)t.push(e),e=this.consumeToken();return t},r.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case mh:return this.consumeStringToken(mh);case Eit:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(dD(e)||Ci(n,a)){var i=Sh(e,n,a)?Tit:bit,A=this.consumeName();return{type:5,value:A,flags:i}}break;case Dit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),dAt;break;case wh:return this.consumeStringToken(wh);case Bh:return cAt;case Xl:return hAt;case Bm:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),_At;break;case JA:if(_m(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case zit:return vAt;case Ir:var o=t,s=this.peekCodePoint(0),l=this.peekCodePoint(1);if(_m(o,s,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Sh(o,s,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(s===Ir&&l===Pit)return this.consumeCodePoint(),this.consumeCodePoint(),xAt;break;case bf:if(_m(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case cD:if(this.peekCodePoint(0)===Bm)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===Bm&&(u=this.consumeCodePoint(),u===cD))return this.consumeToken();if(u===Zn)return this.consumeToken()}break;case Wit:return bAt;case Xit:return TAt;case Uit:if(this.peekCodePoint(0)===Mit&&this.peekCodePoint(1)===Ir&&this.peekCodePoint(2)===Ir)return this.consumeCodePoint(),this.consumeCodePoint(),SAt;break;case Rit:var f=this.peekCodePoint(0),c=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Sh(f,c,h)){var A=this.consumeName();return{type:7,value:A}}break;case Hit:return IAt;case Hu:if(Ci(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case Oit:return FAt;case kit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),pAt;break;case Nit:return wAt;case Vit:return BAt;case eAt:case nAt:var v=this.peekCodePoint(0),d=this.peekCodePoint(1);return v===JA&&(ts(d)||d===_h)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case hD:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),yAt;if(this.peekCodePoint(0)===hD)return this.consumeCodePoint(),gAt;break;case Git:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),mAt;break;case Zn:return tB}return Ch(t)?(this.consumeWhiteSpace(),EAt):nr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):hd(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Se(t)}},r.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},r.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},r.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},r.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ts(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;e===_h&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(Se.apply(void 0,t.map(function(s){return s===_h?iO:s})),16),i=parseInt(Se.apply(void 0,t.map(function(s){return s===_h?uO:s})),16);return{type:30,start:a,end:i}}var A=parseInt(Se.apply(void 0,t),16);if(this.peekCodePoint(0)===Ir&&ts(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var o=[];ts(e)&&o.length<6;)o.push(e),e=this.consumeCodePoint();var i=parseInt(Se.apply(void 0,o),16);return{type:30,start:A,end:i}}else return{type:30,start:A,end:A}},r.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Bh?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Bh?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},r.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===wh||e===mh){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn||this.peekCodePoint(0)===Xl)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),xh)}for(;;){var a=this.consumeCodePoint();if(a===Zn||a===Xl)return{type:22,value:Se.apply(void 0,t)};if(Ch(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Zn||this.peekCodePoint(0)===Xl?(this.consumeCodePoint(),{type:22,value:Se.apply(void 0,t)}):(this.consumeBadUrlRemnants(),xh);if(a===mh||a===wh||a===Bh||uAt(a))return this.consumeBadUrlRemnants(),xh;if(a===Hu)if(Ci(a,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),xh;else t.push(a)}},r.prototype.consumeWhiteSpace=function(){for(;Ch(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Xl||t===Zn)return;Ci(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(t){for(var e=5e4,n="";t>0;){var a=Math.min(e,t);n+=Se.apply(void 0,this._value.splice(0,a)),t-=a}return this._value.shift(),n},r.prototype.consumeStringToken=function(t){var e="",n=0;do{var a=this._value[n];if(a===Zn||a===void 0||a===t)return e+=this.consumeStringSlice(n),{type:0,value:e};if(a===cd)return this._value.splice(0,n),CAt;if(a===Hu){var i=this._value[n+1];i!==Zn&&i!==void 0&&(i===cd?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ci(a,i)&&(e+=this.consumeStringSlice(n),e+=Se(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var t=[],e=qf,n=this.peekCodePoint(0);for((n===JA||n===Ir)&&t.push(this.consumeCodePoint());nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===bf&&nr(a))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=fD;nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===lO||n===oO)&&((a===JA||a===Ir)&&nr(i)||nr(a)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=fD;nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[fAt(t),e]},r.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),A=this.peekCodePoint(2);if(Sh(a,i,A)){var o=this.consumeName();return{type:15,number:e,flags:n,unit:o}}return a===Qit?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ts(t)){for(var e=Se(t);ts(this.peekCodePoint(0))&&e.length<6;)e+=Se(this.consumeCodePoint());Ch(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||iAt(n)||n>1114111?vD:n}return t===Zn?vD:t},r.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(dD(e))t+=Se(e);else if(Ci(e,this.peekCodePoint(0)))t+=Se(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),t}},r}(),cO=function(){function r(t){this._tokens=t}return r.create=function(t){var e=new fO;return e.write(t),new r(e.read())},r.parseValue=function(t){return r.create(t).parseComponentValue()},r.parseValues=function(t){return r.create(t).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===32)return t;t.push(e),t.push()}},r.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},r.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||QAt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?tB:t},r.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},r}(),jf=function(r){return r.type===15},ul=function(r){return r.type===17},le=function(r){return r.type===20},DAt=function(r){return r.type===0},eB=function(r,t){return le(r)&&r.value===t},hO=function(r){return r.type!==31},zs=function(r){return r.type!==31&&r.type!==4},Ba=function(r){var t=[],e=[];return r.forEach(function(n){if(n.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(e),e=[];return}n.type!==31&&e.push(n)}),e.length&&t.push(e),t},QAt=function(r,t){return t===11&&r.type===12||t===28&&r.type===29?!0:t===2&&r.type===3},qi=function(r){return r.type===17||r.type===15},Ee=function(r){return r.type===16||qi(r)},vO=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},Xe={type:17,number:0,flags:qf},zC={type:16,number:50,flags:qf},Ui={type:16,number:100,flags:qf},cu=function(r,t,e){var n=r[0],a=r[1];return[ve(n,t),ve(typeof a<"u"?a:n,e)]},ve=function(r,t){if(r.type===16)return r.number/100*t;if(jf(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},dO="deg",pO="grad",gO="rad",yO="turn",Sp={name:"angle",parse:function(r,t){if(t.type===15)switch(t.unit){case dO:return Math.PI*t.number/180;case pO:return Math.PI/200*t.number;case gO:return t.number;case yO:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},mO=function(r){return r.type===15&&(r.unit===dO||r.unit===pO||r.unit===gO||r.unit===yO)},wO=function(r){var t=r.filter(le).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xe,Xe];case"to top":case"bottom":return cn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xe,Ui];case"to right":case"left":return cn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ui,Ui];case"to bottom":case"top":return cn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ui,Xe];case"to left":case"right":return cn(270)}return 0},cn=function(r){return Math.PI*r/180},Ni={name:"color",parse:function(r,t){if(t.type===18){var e=LAt[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(r,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3);return Pi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3),A=t.value.substring(3,4);return Pi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(A+A,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6);return Pi(parseInt(n,16),parseInt(a,16),parseInt(i,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6),A=t.value.substring(6,8);return Pi(parseInt(n,16),parseInt(a,16),parseInt(i,16),parseInt(A,16)/255)}}if(t.type===20){var o=Va[t.value.toUpperCase()];if(typeof o<"u")return o}return Va.TRANSPARENT}},Vi=function(r){return(255&r)===0},Ne=function(r){var t=255&r,e=255&r>>8,n=255&r>>16,a=255&r>>24;return t<255?"rgba("+a+","+n+","+e+","+t/255+")":"rgb("+a+","+n+","+e+")"},Pi=function(r,t,e,n){return(r<<24|t<<16|e<<8|Math.round(n*255)<<0)>>>0},pD=function(r,t){if(r.type===17)return r.number;if(r.type===16){var e=t===3?1:255;return t===3?r.number/100*e:Math.round(r.number/100*e)}return 0},gD=function(r,t){var e=t.filter(zs);if(e.length===3){var n=e.map(pD),a=n[0],i=n[1],A=n[2];return Pi(a,i,A,1)}if(e.length===4){var o=e.map(pD),a=o[0],i=o[1],A=o[2],s=o[3];return Pi(a,i,A,s)}return 0};function Cm(r,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-r)*e*6+r:e<1/2?t:e<2/3?(t-r)*6*(2/3-e)+r:r}var yD=function(r,t){var e=t.filter(zs),n=e[0],a=e[1],i=e[2],A=e[3],o=(n.type===17?cn(n.number):Sp.parse(r,n))/(Math.PI*2),s=Ee(a)?a.number/100:0,l=Ee(i)?i.number/100:0,u=typeof A<"u"&&Ee(A)?ve(A,1):1;if(s===0)return Pi(l*255,l*255,l*255,1);var f=l<=.5?l*(s+1):l+s-l*s,c=l*2-f,h=Cm(c,f,o+1/3),v=Cm(c,f,o),d=Cm(c,f,o-1/3);return Pi(h*255,v*255,d*255,u)},LAt={hsl:yD,hsla:yD,rgb:gD,rgba:gD},Ou=function(r,t){return Ni.parse(r,cO.create(t).parseComponentValue())},Va={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},MAt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},UAt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xp=function(r,t){var e=Ni.parse(r,t[0]),n=t[1];return n&&Ee(n)?{color:e,stop:n}:{color:e,stop:null}},mD=function(r,t){var e=r[0],n=r[r.length-1];e.stop===null&&(e.stop=Xe),n.stop===null&&(n.stop=Ui);for(var a=[],i=0,A=0;Ai?a.push(s):a.push(i),i=s}else a.push(null)}for(var l=null,A=0;AA.optimumDistance)?{optimumCorner:o,optimumDistance:u}:A},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},HAt=function(r,t,e,n,a){var i=0,A=0;switch(r.size){case 0:r.shape===0?i=A=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-n)),A=Math.min(Math.abs(e),Math.abs(e-a)));break;case 2:if(r.shape===0)i=A=Math.min(xn(t,e),xn(t,e-a),xn(t-n,e),xn(t-n,e-a));else if(r.shape===1){var o=Math.min(Math.abs(e),Math.abs(e-a))/Math.min(Math.abs(t),Math.abs(t-n)),s=wD(n,a,t,e,!0),l=s[0],u=s[1];i=xn(l-t,(u-e)/o),A=o*i}break;case 1:r.shape===0?i=A=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-n)),A=Math.max(Math.abs(e),Math.abs(e-a)));break;case 3:if(r.shape===0)i=A=Math.max(xn(t,e),xn(t,e-a),xn(t-n,e),xn(t-n,e-a));else if(r.shape===1){var o=Math.max(Math.abs(e),Math.abs(e-a))/Math.max(Math.abs(t),Math.abs(t-n)),f=wD(n,a,t,e,!1),l=f[0],u=f[1];i=xn(l-t,(u-e)/o),A=o*i}break}return Array.isArray(r.size)&&(i=ve(r.size[0],n),A=r.size.length===2?ve(r.size[1],a):i),[i,A]},OAt=function(r,t){var e=cn(180),n=[];return Ba(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&A.value==="to"){e=wO(a);return}else if(mO(A)){e=Sp.parse(r,A);return}}var o=xp(r,a);n.push(o)}),{angle:e,stops:n,type:1}},bh=function(r,t){var e=cn(180),n=[];return Ba(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&["top","left","right","bottom"].indexOf(A.value)!==-1){e=wO(a);return}else if(mO(A)){e=(Sp.parse(r,A)+cn(270))%cn(360);return}}var o=xp(r,a);n.push(o)}),{angle:e,stops:n,type:1}},kAt=function(r,t){var e=cn(180),n=[],a=1,i=0,A=3,o=[];return Ba(t).forEach(function(s,l){var u=s[0];if(l===0){if(le(u)&&u.value==="linear"){a=1;return}else if(le(u)&&u.value==="radial"){a=2;return}}if(u.type===18){if(u.name==="from"){var f=Ni.parse(r,u.values[0]);n.push({stop:Xe,color:f})}else if(u.name==="to"){var f=Ni.parse(r,u.values[0]);n.push({stop:Ui,color:f})}else if(u.name==="color-stop"){var c=u.values.filter(zs);if(c.length===2){var f=Ni.parse(r,c[1]),h=c[0];ul(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:f})}}}}),a===1?{angle:(e+cn(180))%cn(360),stops:n,type:a}:{size:A,shape:i,stops:n,position:o,type:a}},BO="closest-side",_O="farthest-side",CO="closest-corner",SO="farthest-corner",xO="circle",bO="ellipse",TO="cover",IO="contain",NAt=function(r,t){var e=0,n=3,a=[],i=[];return Ba(t).forEach(function(A,o){var s=!0;if(o===0){var l=!1;s=A.reduce(function(f,c){if(l)if(le(c))switch(c.value){case"center":return i.push(zC),f;case"top":case"left":return i.push(Xe),f;case"right":case"bottom":return i.push(Ui),f}else(Ee(c)||qi(c))&&i.push(c);else if(le(c))switch(c.value){case xO:return e=0,!1;case bO:return e=1,!1;case"at":return l=!0,!1;case BO:return n=0,!1;case TO:case _O:return n=1,!1;case IO:case CO:return n=2,!1;case SO:return n=3,!1}else if(qi(c)||Ee(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return f},s)}if(s){var u=xp(r,A);a.push(u)}}),{size:n,shape:e,stops:a,position:i,type:2}},Th=function(r,t){var e=0,n=3,a=[],i=[];return Ba(t).forEach(function(A,o){var s=!0;if(o===0?s=A.reduce(function(u,f){if(le(f))switch(f.value){case"center":return i.push(zC),!1;case"top":case"left":return i.push(Xe),!1;case"right":case"bottom":return i.push(Ui),!1}else if(Ee(f)||qi(f))return i.push(f),!1;return u},s):o===1&&(s=A.reduce(function(u,f){if(le(f))switch(f.value){case xO:return e=0,!1;case bO:return e=1,!1;case IO:case BO:return n=0,!1;case _O:return n=1,!1;case CO:return n=2,!1;case TO:case SO:return n=3,!1}else if(qi(f)||Ee(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return u},s)),s){var l=xp(r,A);a.push(l)}}),{size:n,shape:e,stops:a,position:i,type:2}},VAt=function(r){return r.type===1},GAt=function(r){return r.type===2},WC={name:"image",parse:function(r,t){if(t.type===22){var e={url:t.value,type:0};return r.cache.addImage(t.value),e}if(t.type===18){var n=FO[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(r,t.values)}throw new Error("Unsupported image type "+t.type)}};function KAt(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!FO[r.name])}var FO={"linear-gradient":OAt,"-moz-linear-gradient":bh,"-ms-linear-gradient":bh,"-o-linear-gradient":bh,"-webkit-linear-gradient":bh,"radial-gradient":NAt,"-moz-radial-gradient":Th,"-ms-radial-gradient":Th,"-o-radial-gradient":Th,"-webkit-radial-gradient":Th,"-webkit-gradient":kAt},zAt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t.filter(function(n){return zs(n)&&KAt(n)}).map(function(n){return WC.parse(r,n)})}},WAt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},XAt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(Ee)}).map(vO)}},YAt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(le).map(function(n){return n.value}).join(" ")}).map(ZAt)}},ZAt=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Es;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Es||(Es={}));var $At={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(JAt)})}},JAt=function(r){return le(r)||Ee(r)},bp=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},qAt=bp("top"),jAt=bp("right"),tot=bp("bottom"),eot=bp("left"),Tp=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return vO(e.filter(Ee))}}},rot=Tp("top-left"),not=Tp("top-right"),aot=Tp("bottom-right"),iot=Tp("bottom-left"),Ip=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Aot=Ip("top"),oot=Ip("right"),sot=Ip("bottom"),lot=Ip("left"),Fp=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return jf(e)?e.number:0}}},uot=Fp("top"),fot=Fp("right"),cot=Fp("bottom"),hot=Fp("left"),vot={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dot={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},pot={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,t){return t.filter(le).reduce(function(e,n){return e|got(n.value)},0)}},got=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},yot={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},mot={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},vd;(function(r){r.NORMAL="normal",r.STRICT="strict"})(vd||(vd={}));var wot={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"strict":return vd.STRICT;case"normal":default:return vd.NORMAL}}},Bot={name:"line-height",initialValue:"normal",prefix:!1,type:4},BD=function(r,t){return le(r)&&r.value==="normal"?1.2*t:r.type===17?t*r.number:Ee(r)?ve(r,t):t},_ot={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,t){return t.type===20&&t.value==="none"?null:WC.parse(r,t)}},Cot={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},rB={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ep=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},Sot=Ep("top"),xot=Ep("right"),bot=Ep("bottom"),Tot=Ep("left"),Iot={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Fot={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Dp=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Eot=Dp("top"),Dot=Dp("right"),Qot=Dp("bottom"),Lot=Dp("left"),Mot={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Uot={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Pot={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.length===1&&eB(t[0],"none")?[]:Ba(t).map(function(e){for(var n={color:Va.TRANSPARENT,offsetX:Xe,offsetY:Xe,blur:Xe},a=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},Oot=function(r){var t=r.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},kot=function(r){var t=r.filter(function(s){return s.type===17}).map(function(s){return s.number}),e=t[0],n=t[1];t[2],t[3];var a=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var A=t[12],o=t[13];return t[14],t[15],t.length===16?[e,n,a,i,A,o]:null},Not={matrix:Oot,matrix3d:kot},_D={type:16,number:50,flags:qf},Vot=[_D,_D],Got={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,t){var e=t.filter(Ee);return e.length!==2?Vot:[e[0],e[1]]}},Kot={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},ku;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(ku||(ku={}));var zot={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-all":return ku.BREAK_ALL;case"keep-all":return ku.KEEP_ALL;case"normal":default:return ku.NORMAL}}},Wot={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,t){if(t.type===20)return{auto:!0,order:0};if(ul(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},EO={name:"time",parse:function(r,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},Xot={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,t){return ul(t)?t.number:1}},Yot={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Zot={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},$ot={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,t){var e=[],n=[];return t.forEach(function(a){switch(a.type){case 20:case 0:e.push(a.value);break;case 17:e.push(a.number.toString());break;case 4:n.push(e.join(" ")),e.length=0;break}}),e.length&&n.push(e.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},Jot={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},qot={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,t){if(ul(t))return t.number;if(le(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},jot={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.filter(le).map(function(e){return e.value})}},tst={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ue=function(r,t){return(r&t)!==0},est={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t}},rst={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;for(var n=[],a=t.filter(hO),i=0;i1?1:0],this.overflowWrap=pt(t,Fot,e.overflowWrap),this.paddingTop=pt(t,Eot,e.paddingTop),this.paddingRight=pt(t,Dot,e.paddingRight),this.paddingBottom=pt(t,Qot,e.paddingBottom),this.paddingLeft=pt(t,Lot,e.paddingLeft),this.paintOrder=pt(t,ost,e.paintOrder),this.position=pt(t,Uot,e.position),this.textAlign=pt(t,Mot,e.textAlign),this.textDecorationColor=pt(t,Yot,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=pt(t,Zot,(a=e.textDecorationLine)!==null&&a!==void 0?a:e.textDecoration),this.textShadow=pt(t,Pot,e.textShadow),this.textTransform=pt(t,Rot,e.textTransform),this.transform=pt(t,Hot,e.transform),this.transformOrigin=pt(t,Got,e.transformOrigin),this.visibility=pt(t,Kot,e.visibility),this.webkitTextStrokeColor=pt(t,sst,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=pt(t,lst,e.webkitTextStrokeWidth),this.wordBreak=pt(t,zot,e.wordBreak),this.zIndex=pt(t,Wot,e.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return Vi(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return Ue(this.display,4)||Ue(this.display,33554432)||Ue(this.display,268435456)||Ue(this.display,536870912)||Ue(this.display,67108864)||Ue(this.display,134217728)},r}(),fst=function(){function r(t,e){this.content=pt(t,est,e.content),this.quotes=pt(t,ist,e.quotes)}return r}(),SD=function(){function r(t,e){this.counterIncrement=pt(t,rst,e.counterIncrement),this.counterReset=pt(t,nst,e.counterReset)}return r}(),pt=function(r,t,e){var n=new fO,a=e!==null&&typeof e<"u"?e.toString():t.initialValue;n.write(a);var i=new cO(n.read());switch(t.type){case 2:var A=i.parseComponentValue();return t.parse(r,le(A)?A.value:t.initialValue);case 0:return t.parse(r,i.parseComponentValue());case 1:return t.parse(r,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Sp.parse(r,i.parseComponentValue());case"color":return Ni.parse(r,i.parseComponentValue());case"image":return WC.parse(r,i.parseComponentValue());case"length":var o=i.parseComponentValue();return qi(o)?o:Xe;case"length-percentage":var s=i.parseComponentValue();return Ee(s)?s:Xe;case"time":return EO.parse(r,i.parseComponentValue())}break}},cst="data-html2canvas-debug",hst=function(r){var t=r.getAttribute(cst);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},nB=function(r,t){var e=hst(r);return e===1||t===e},_a=function(){function r(t,e){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,nB(e,3))debugger;this.styles=new ust(t,window.getComputedStyle(e,null)),AB(e)&&(this.styles.animationDuration.some(function(n){return n>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=_p(this.context,e),nB(e,4)&&(this.flags|=16)}return r}(),vst="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",xD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ih=0;Ih>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},pst=function(r){for(var t=r.length,e=[],n=0;n>lo,mst=1<>lo,Bst=DO+wst,_st=Bst,Cst=32,Sst=_st+Cst,xst=65536>>XC,bst=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>lo],e=(e<>lo)],e=(e<>XC),e=this.index[e],e+=t>>lo&Tst,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var Fh=0;Fh=55296&&a<=56319&&e>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},Pst=Fst(vst),rn="×",Dm="÷",Rst=function(r){return Pst.get(r)},Hst=function(r,t,e){var n=e-2,a=t[n],i=t[e-1],A=t[e];if(i===bm&&A===Tm)return rn;if(i===bm||i===Tm||i===ID||A===bm||A===Tm||A===ID)return Dm;if(i===ED&&[ED,Im,DD,QD].indexOf(A)!==-1||(i===DD||i===Im)&&(A===Im||A===Fm)||(i===QD||i===Fm)&&A===Fm||A===LD||A===FD||A===Lst||i===Qst)return rn;if(i===LD&&A===MD){for(;a===FD;)a=t[--n];if(a===MD)return rn}if(i===Em&&A===Em){for(var o=0;a===Em;)o++,a=t[--n];if(o%2===0)return rn}return Dm},Ost=function(r){var t=Mst(r),e=t.length,n=0,a=0,i=t.map(Rst);return{next:function(){if(n>=e)return{done:!0,value:null};for(var A=rn;nA.x||u.y>A.y;return A=u,l===0?!0:f});return r.body.removeChild(t),o},Gst=function(){return typeof new Image().crossOrigin<"u"},Kst=function(){return typeof new XMLHttpRequest().responseType=="string"},zst=function(r){var t=new Image,e=r.createElement("canvas"),n=e.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,";try{n.drawImage(t,0,0),e.toDataURL()}catch{return!1}return!0},UD=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},Wst=function(r){var t=r.createElement("canvas"),e=100;t.width=e,t.height=e;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,e,e);var a=new Image,i=t.toDataURL();a.src=i;var A=aB(e,e,0,0,a);return n.fillStyle="red",n.fillRect(0,0,e,e),PD(A).then(function(o){n.drawImage(o,0,0);var s=n.getImageData(0,0,e,e).data;n.fillStyle="red",n.fillRect(0,0,e,e);var l=r.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=e+"px",UD(s)?PD(aB(e,e,0,0,l)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),UD(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},aB=function(r,t,e,n,a){var i="http://www.w3.org/2000/svg",A=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return A.setAttributeNS(null,"width",r.toString()),A.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),A.appendChild(o),o.appendChild(a),A},PD=function(r){return new Promise(function(t,e){var n=new Image;n.onload=function(){return t(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},We={get SUPPORT_RANGE_BOUNDS(){var r=Nst(document);return Object.defineProperty(We,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=We.SUPPORT_RANGE_BOUNDS&&Vst(document);return Object.defineProperty(We,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=zst(document);return Object.defineProperty(We,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?Wst(document):Promise.resolve(!1);return Object.defineProperty(We,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=Gst();return Object.defineProperty(We,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=Kst();return Object.defineProperty(We,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(We,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(We,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},Nu=function(){function r(t,e){this.text=t,this.bounds=e}return r}(),Xst=function(r,t,e,n){var a=$st(t,e),i=[],A=0;return a.forEach(function(o){if(e.textDecorationLine.length||o.trim().length>0)if(We.SUPPORT_RANGE_BOUNDS){var s=RD(n,A,o.length).getClientRects();if(s.length>1){var l=YC(o),u=0;l.forEach(function(c){i.push(new Nu(c,qa.fromDOMRectList(r,RD(n,u+A,c.length).getClientRects()))),u+=c.length})}else i.push(new Nu(o,qa.fromDOMRectList(r,s)))}else{var f=n.splitText(o.length);i.push(new Nu(o,Yst(r,n))),n=f}else We.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));A+=o.length}),i},Yst=function(r,t){var e=t.ownerDocument;if(e){var n=e.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var a=t.parentNode;if(a){a.replaceChild(n,t);var i=_p(r,n);return n.firstChild&&a.replaceChild(n.firstChild,n),i}}return qa.EMPTY},RD=function(r,t,e){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(r,t),a.setEnd(r,t+e),a},YC=function(r){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(r)).map(function(e){return e.segment})}return kst(r)},Zst=function(r,t){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(r)).map(function(n){return n.segment})}return qst(r,t)},$st=function(r,t){return t.letterSpacing!==0?YC(r):Zst(r,t)},Jst=[32,160,4961,65792,65793,4153,4241],qst=function(r,t){for(var e=xit(r,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],a,i=function(){if(a.value){var A=a.value.slice(),o=Cp(A),s="";o.forEach(function(l){Jst.indexOf(l)===-1?s+=Se(l):(s.length&&n.push(s),n.push(Se(l)),s="")}),s.length&&n.push(s)}};!(a=e.next()).done;)i();return n},jst=function(){function r(t,e,n){this.text=tlt(e.data,n.textTransform),this.textBounds=Xst(t,this.text,n,e)}return r}(),tlt=function(r,t){switch(t){case 1:return r.toLowerCase();case 3:return r.replace(elt,rlt);case 2:return r.toUpperCase();default:return r}},elt=/(^|\s|:|-|\(|\))([a-z])/g,rlt=function(r,t,e){return r.length>0?t+e.toUpperCase():r},QO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return t}(_a),LO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return t}(_a),MO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this,i=new XMLSerializer,A=_p(e,n);return n.setAttribute("width",A.width+"px"),n.setAttribute("height",A.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return t}(_a),UO=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.value=n.value,a}return t}(_a),iB=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return t}(_a),nlt=[{type:15,flags:0,unit:"px",number:3}],alt=[{type:16,flags:0,number:50}],ilt=function(r){return r.width>r.height?new qa(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)e.textNodes.push(new jst(r,a,e.styles));else if(ys(a))if(zO(a)&&a.assignedNodes)a.assignedNodes().forEach(function(o){return lv(r,o,e,n)});else{var A=OO(r,a);A.styles.isVisible()&&(llt(a,A,n)?A.flags|=4:ult(A.styles)&&(A.flags|=2),slt.indexOf(a.tagName)!==-1&&(A.flags|=8),e.elements.push(A),a.slot,a.shadowRoot?lv(r,a.shadowRoot,A,n):!gd(a)&&!VO(a)&&!yd(a)&&lv(r,a,A,n))}},OO=function(r,t){return oB(t)?new QO(r,t):GO(t)?new LO(r,t):VO(t)?new MO(r,t):flt(t)?new UO(r,t):clt(t)?new iB(r,t):hlt(t)?new ZC(r,t):yd(t)?new PO(r,t):gd(t)?new RO(r,t):KO(t)?new HO(r,t):new _a(r,t)},kO=function(r,t){var e=OO(r,t);return e.flags|=4,lv(r,t,e,e),e},llt=function(r,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||$C(r)&&e.styles.isTransparent()},ult=function(r){return r.isPositioned()||r.isFloating()},NO=function(r){return r.nodeType===Node.TEXT_NODE},ys=function(r){return r.nodeType===Node.ELEMENT_NODE},AB=function(r){return ys(r)&&typeof r.style<"u"&&!uv(r)},uv=function(r){return typeof r.className=="object"},flt=function(r){return r.tagName==="LI"},clt=function(r){return r.tagName==="OL"},hlt=function(r){return r.tagName==="INPUT"},vlt=function(r){return r.tagName==="HTML"},VO=function(r){return r.tagName==="svg"},$C=function(r){return r.tagName==="BODY"},GO=function(r){return r.tagName==="CANVAS"},OD=function(r){return r.tagName==="VIDEO"},oB=function(r){return r.tagName==="IMG"},KO=function(r){return r.tagName==="IFRAME"},kD=function(r){return r.tagName==="STYLE"},dlt=function(r){return r.tagName==="SCRIPT"},gd=function(r){return r.tagName==="TEXTAREA"},yd=function(r){return r.tagName==="SELECT"},zO=function(r){return r.tagName==="SLOT"},ND=function(r){return r.tagName.indexOf("-")>0},plt=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},r.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},r.prototype.pop=function(t){var e=this;t.forEach(function(n){return e.counters[n].pop()})},r.prototype.parse=function(t){var e=this,n=t.counterIncrement,a=t.counterReset,i=!0;n!==null&&n.forEach(function(o){var s=e.counters[o.counter];s&&o.increment!==0&&(i=!1,s.length||s.push(1),s[Math.max(0,s.length-1)]+=o.increment)});var A=[];return i&&a.forEach(function(o){var s=e.counters[o.counter];A.push(o.counter),s||(s=e.counters[o.counter]=[]),s.push(o.reset)}),A},r}(),VD={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},GD={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},glt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ylt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},es=function(r,t,e,n,a,i){return re?Tf(r,a,i.length>0):n.integers.reduce(function(A,o,s){for(;r>=o;)r-=o,A+=n.values[s];return A},"")+i},WO=function(r,t,e,n){var a="";do e||r--,a=n(r)+a,r/=t;while(r*t>=t);return a},_e=function(r,t,e,n,a){var i=e-t+1;return(r<0?"-":"")+(WO(Math.abs(r),i,n,function(A){return Se(Math.floor(A%i)+t)})+a)},EA=function(r,t,e){e===void 0&&(e=". ");var n=t.length;return WO(Math.abs(r),n,!1,function(a){return t[Math.floor(a%n)]})+e},fs=1,pi=2,gi=4,vu=8,Fa=function(r,t,e,n,a,i){if(r<-9999||r>9999)return Tf(r,4,a.length>0);var A=Math.abs(r),o=a;if(A===0)return t[0]+o;for(var s=0;A>0&&s<=4;s++){var l=A%10;l===0&&Ue(i,fs)&&o!==""?o=t[l]+o:l>1||l===1&&s===0||l===1&&s===1&&Ue(i,pi)||l===1&&s===1&&Ue(i,gi)&&r>100||l===1&&s>1&&Ue(i,vu)?o=t[l]+(s>0?e[s-1]:"")+o:l===1&&s>0&&(o=e[s-1]+o),A=Math.floor(A/10)}return(r<0?n:"")+o},KD="十百千萬",zD="拾佰仟萬",WD="マイナス",Qm="마이너스",Tf=function(r,t,e){var n=e?". ":"",a=e?"、":"",i=e?", ":"",A=e?" ":"";switch(t){case 0:return"•"+A;case 1:return"◦"+A;case 2:return"◾"+A;case 5:var o=_e(r,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return EA(r,"〇一二三四五六七八九",a);case 6:return es(r,1,3999,VD,3,n).toLowerCase();case 7:return es(r,1,3999,VD,3,n);case 8:return _e(r,945,969,!1,n);case 9:return _e(r,97,122,!1,n);case 10:return _e(r,65,90,!1,n);case 11:return _e(r,1632,1641,!0,n);case 12:case 49:return es(r,1,9999,GD,3,n);case 35:return es(r,1,9999,GD,3,n).toLowerCase();case 13:return _e(r,2534,2543,!0,n);case 14:case 30:return _e(r,6112,6121,!0,n);case 15:return EA(r,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return EA(r,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return Fa(r,"零一二三四五六七八九",KD,"負",a,pi|gi|vu);case 47:return Fa(r,"零壹貳參肆伍陸柒捌玖",zD,"負",a,fs|pi|gi|vu);case 42:return Fa(r,"零一二三四五六七八九",KD,"负",a,pi|gi|vu);case 41:return Fa(r,"零壹贰叁肆伍陆柒捌玖",zD,"负",a,fs|pi|gi|vu);case 26:return Fa(r,"〇一二三四五六七八九","十百千万",WD,a,0);case 25:return Fa(r,"零壱弐参四伍六七八九","拾百千万",WD,a,fs|pi|gi);case 31:return Fa(r,"영일이삼사오육칠팔구","십백천만",Qm,i,fs|pi|gi);case 33:return Fa(r,"零一二三四五六七八九","十百千萬",Qm,i,0);case 32:return Fa(r,"零壹貳參四五六七八九","拾百千",Qm,i,fs|pi|gi);case 18:return _e(r,2406,2415,!0,n);case 20:return es(r,1,19999,ylt,3,n);case 21:return _e(r,2790,2799,!0,n);case 22:return _e(r,2662,2671,!0,n);case 22:return es(r,1,10999,glt,3,n);case 23:return EA(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return EA(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return _e(r,3302,3311,!0,n);case 28:return EA(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return EA(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return _e(r,3792,3801,!0,n);case 37:return _e(r,6160,6169,!0,n);case 38:return _e(r,4160,4169,!0,n);case 39:return _e(r,2918,2927,!0,n);case 40:return _e(r,1776,1785,!0,n);case 43:return _e(r,3046,3055,!0,n);case 44:return _e(r,3174,3183,!0,n);case 45:return _e(r,3664,3673,!0,n);case 46:return _e(r,3872,3881,!0,n);case 3:default:return _e(r,48,57,!0,n)}},XO="data-html2canvas-ignore",XD=function(){function r(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new plt,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(t,e){var n=this,a=mlt(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,A=t.defaultView.pageYOffset,o=a.contentWindow,s=o.document,l=_lt(a).then(function(){return hr(n,void 0,void 0,function(){var u,f;return er(this,function(c){switch(c.label){case 0:return this.scrolledElements.forEach(blt),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),u=this.options.onclone,f=this.clonedReferenceElement,typeof f>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:c.sent(),c.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Blt(s)]:[3,4];case 3:c.sent(),c.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(s,f)}).then(function(){return a})]:[2,a]}})})});return s.open(),s.write(Slt(document.doctype)+""),xlt(this.referenceElement.ownerDocument,i,A),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),l},r.prototype.createElementClone=function(t){if(nB(t,2))debugger;if(GO(t))return this.createCanvasClone(t);if(OD(t))return this.createVideoClone(t);if(kD(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return oB(e)&&(oB(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),ND(e)?this.createCustomElementClone(e):e},r.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return Lm(t.style,e),e},r.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(i,A){return A&&typeof A.cssText=="string"?i+A.cssText:i},""),a=t.cloneNode(!1);return a.textContent=n,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},r.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var a=t.cloneNode(!1);try{a.width=t.width,a.height=t.height;var i=t.getContext("2d"),A=a.getContext("2d");if(A)if(!this.options.allowTaint&&i)A.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=(e=t.getContext("webgl2"))!==null&&e!==void 0?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();(s==null?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}A.drawImage(t,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return a},r.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var a=t.ownerDocument.createElement("canvas");return a.width=t.offsetWidth,a.height=t.offsetHeight,a},r.prototype.appendChildNode=function(t,e,n){(!ys(e)||!dlt(e)&&!e.hasAttribute(XO)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!ys(e)||!kD(e))&&t.appendChild(this.cloneNode(e,n))},r.prototype.cloneChildNodes=function(t,e,n){for(var a=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(ys(i)&&zO(i)&&typeof i.assignedNodes=="function"){var A=i.assignedNodes();A.length&&A.forEach(function(o){return a.appendChildNode(e,o,n)})}else this.appendChildNode(e,i,n)},r.prototype.cloneNode=function(t,e){if(NO(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&ys(t)&&(AB(t)||uv(t))){var a=this.createElementClone(t);a.style.transitionProperty="none";var i=n.getComputedStyle(t),A=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&AB(a)&&(this.clonedReferenceElement=a),$C(a)&&Flt(a);var s=this.counters.parse(new SD(this.context,i)),l=this.resolvePseudoContent(t,a,A,Vu.BEFORE);ND(t)&&(e=!0),OD(t)||this.cloneChildNodes(t,a,e),l&&a.insertBefore(l,a.firstChild);var u=this.resolvePseudoContent(t,a,o,Vu.AFTER);return u&&a.appendChild(u),this.counters.pop(s),(i&&(this.options.copyStyles||uv(t))&&!KO(t)||e)&&Lm(i,a),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([a,t.scrollLeft,t.scrollTop]),(gd(t)||yd(t))&&(gd(a)||yd(a))&&(a.value=t.value),a}return t.cloneNode(!1)},r.prototype.resolvePseudoContent=function(t,e,n,a){var i=this;if(n){var A=n.content,o=e.ownerDocument;if(!(!o||!A||A==="none"||A==="-moz-alt-content"||n.display==="none")){this.counters.parse(new SD(this.context,n));var s=new fst(this.context,n),l=o.createElement("html2canvaspseudoelement");Lm(n,l),s.content.forEach(function(f){if(f.type===0)l.appendChild(o.createTextNode(f.value));else if(f.type===22){var c=o.createElement("img");c.src=f.value,c.style.opacity="1",l.appendChild(c)}else if(f.type===18){if(f.name==="attr"){var h=f.values.filter(le);h.length&&l.appendChild(o.createTextNode(t.getAttribute(h[0].value)||""))}else if(f.name==="counter"){var v=f.values.filter(zs),d=v[0],p=v[1];if(d&&le(d)){var g=i.counters.getCounterValue(d.value),y=p&&le(p)?rB.parse(i.context,p.value):3;l.appendChild(o.createTextNode(Tf(g,y,!1)))}}else if(f.name==="counters"){var m=f.values.filter(zs),d=m[0],w=m[1],p=m[2];if(d&&le(d)){var _=i.counters.getCounterValues(d.value),B=p&&le(p)?rB.parse(i.context,p.value):3,C=w&&w.type===0?w.value:"",S=_.map(function(I){return Tf(I,B,!1)}).join(C);l.appendChild(o.createTextNode(S))}}}else if(f.type===20)switch(f.value){case"open-quote":l.appendChild(o.createTextNode(CD(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(CD(s.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(f.value))}}),l.className=sB+" "+lB;var u=a===Vu.BEFORE?" "+sB:" "+lB;return uv(e)?e.className.baseValue+=u:e.className+=u,l}}},r.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},r}(),Vu;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Vu||(Vu={}));var mlt=function(r,t){var e=r.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(XO,"true"),r.body.appendChild(e),e},wlt=function(r){return new Promise(function(t){if(r.complete){t();return}if(!r.src){t();return}r.onload=t,r.onerror=t})},Blt=function(r){return Promise.all([].slice.call(r.images,0).map(wlt))},_lt=function(r){return new Promise(function(t,e){var n=r.contentWindow;if(!n)return e("No window assigned for iframe");var a=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),t(r))},50)}})},Clt=["all","d","content"],Lm=function(r,t){for(var e=r.length-1;e>=0;e--){var n=r.item(e);Clt.indexOf(n)===-1&&t.style.setProperty(n,r.getPropertyValue(n))}return t},Slt=function(r){var t="";return r&&(t+=""),t},xlt=function(r,t,e){r&&r.defaultView&&(t!==r.defaultView.pageXOffset||e!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(t,e)},blt=function(r){var t=r[0],e=r[1],n=r[2];t.scrollLeft=e,t.scrollTop=n},Tlt=":before",Ilt=":after",sB="___html2canvas___pseudoelement_before",lB="___html2canvas___pseudoelement_after",YD=`{ +***************************************************************************** */var aB=function(r,t){return aB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},aB(r,t)};function zn(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");aB(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var iB=function(){return iB=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=55296&&a<=56319&&e>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},mD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bit=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ch=0;Ch"u"?[]:new Uint8Array(256);for(var Sh=0;Sh>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},Iit=function(r){for(var t=r.length,e=[],n=0;n>mo,Dit=1<>mo,Qit=SO+Lit,Mit=Qit,Uit=32,Pit=Mit+Uit,Rit=65536>>a1,Hit=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>mo],e=(e<>mo)],e=(e<>a1),e=this.index[e],e+=t>>mo&Oit,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var xh=0;xh<_D.length;xh++)Git[_D.charCodeAt(xh)]=xh;var Kit="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",CD=50,zit=1,xO=2,bO=3,Wit=4,Xit=5,SD=7,TO=8,xD=9,ki=10,AB=11,bD=12,oB=13,Yit=14,pu=15,sB=16,bh=17,Jl=18,Zit=19,TD=20,lB=21,ql=22,Mm=23,os=24,Vr=25,gu=26,yu=27,ss=28,$it=29,qA=30,Jit=31,Th=32,Ih=33,uB=34,fB=35,cB=36,Uf=37,hB=38,yv=39,mv=40,Um=41,IO=42,qit=43,jit=[9001,65288],FO="!",Wt="×",Fh="÷",vB=Nit(Kit),Ea=[qA,cB],dB=[zit,xO,bO,Xit],EO=[ki,TO],ID=[yu,gu],tAt=dB.concat(EO),FD=[hB,yv,mv,uB,fB],eAt=[pu,oB],rAt=function(r,t){t===void 0&&(t="strict");var e=[],n=[],a=[];return r.forEach(function(i,A){var o=vB.get(i);if(o>CD?(a.push(!0),o-=CD):a.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(A),e.push(sB);if(o===Wit||o===AB){if(A===0)return n.push(A),e.push(qA);var s=e[A-1];return tAt.indexOf(s)===-1?(n.push(n[A-1]),e.push(s)):(n.push(A),e.push(qA))}if(n.push(A),o===Jit)return e.push(t==="strict"?lB:Uf);if(o===IO||o===$it)return e.push(qA);if(o===qit)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Uf):e.push(qA);e.push(o)}),[n,e,a]},Pm=function(r,t,e,n){var a=n[e];if(Array.isArray(r)?r.indexOf(a)!==-1:r===a)for(var i=e;i<=n.length;){i++;var A=n[i];if(A===t)return!0;if(A!==ki)break}if(a===ki)for(var i=e;i>0;){i--;var o=n[i];if(Array.isArray(r)?r.indexOf(o)!==-1:r===o)for(var s=e;s<=n.length;){s++;var A=n[s];if(A===t)return!0;if(A!==ki)break}if(o!==ki)break}return!1},ED=function(r,t){for(var e=r;e>=0;){var n=t[e];if(n===ki)e--;else return n}return 0},nAt=function(r,t,e,n,a){if(e[n]===0)return Wt;var i=n-1;if(Array.isArray(a)&&a[i]===!0)return Wt;var A=i-1,o=i+1,s=t[i],l=A>=0?t[A]:0,u=t[o];if(s===xO&&u===bO)return Wt;if(dB.indexOf(s)!==-1)return FO;if(dB.indexOf(u)!==-1||EO.indexOf(u)!==-1)return Wt;if(ED(i,t)===TO)return Fh;if(vB.get(r[i])===AB||(s===Th||s===Ih)&&vB.get(r[o])===AB||s===SD||u===SD||s===xD||[ki,oB,pu].indexOf(s)===-1&&u===xD||[bh,Jl,Zit,os,ss].indexOf(u)!==-1||ED(i,t)===ql||Pm(Mm,ql,i,t)||Pm([bh,Jl],lB,i,t)||Pm(bD,bD,i,t))return Wt;if(s===ki)return Fh;if(s===Mm||u===Mm)return Wt;if(u===sB||s===sB)return Fh;if([oB,pu,lB].indexOf(u)!==-1||s===Yit||l===cB&&eAt.indexOf(s)!==-1||s===ss&&u===cB||u===TD||Ea.indexOf(u)!==-1&&s===Vr||Ea.indexOf(s)!==-1&&u===Vr||s===yu&&[Uf,Th,Ih].indexOf(u)!==-1||[Uf,Th,Ih].indexOf(s)!==-1&&u===gu||Ea.indexOf(s)!==-1&&ID.indexOf(u)!==-1||ID.indexOf(s)!==-1&&Ea.indexOf(u)!==-1||[yu,gu].indexOf(s)!==-1&&(u===Vr||[ql,pu].indexOf(u)!==-1&&t[o+1]===Vr)||[ql,pu].indexOf(s)!==-1&&u===Vr||s===Vr&&[Vr,ss,os].indexOf(u)!==-1)return Wt;if([Vr,ss,os,bh,Jl].indexOf(u)!==-1)for(var f=i;f>=0;){var c=t[f];if(c===Vr)return Wt;if([ss,os].indexOf(c)!==-1)f--;else break}if([yu,gu].indexOf(u)!==-1)for(var f=[bh,Jl].indexOf(s)!==-1?A:i;f>=0;){var c=t[f];if(c===Vr)return Wt;if([ss,os].indexOf(c)!==-1)f--;else break}if(hB===s&&[hB,yv,uB,fB].indexOf(u)!==-1||[yv,uB].indexOf(s)!==-1&&[yv,mv].indexOf(u)!==-1||[mv,fB].indexOf(s)!==-1&&u===mv||FD.indexOf(s)!==-1&&[TD,gu].indexOf(u)!==-1||FD.indexOf(u)!==-1&&s===yu||Ea.indexOf(s)!==-1&&Ea.indexOf(u)!==-1||s===os&&Ea.indexOf(u)!==-1||Ea.concat(Vr).indexOf(s)!==-1&&u===ql&&jit.indexOf(r[o])===-1||Ea.concat(Vr).indexOf(u)!==-1&&s===Jl)return Wt;if(s===Um&&u===Um){for(var h=e[i],v=1;h>0&&(h--,t[h]===Um);)v++;if(v%2!==0)return Wt}return s===Th&&u===Ih?Wt:Fh},aAt=function(r,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=rAt(r,t.lineBreak),n=e[0],a=e[1],i=e[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(a=a.map(function(o){return[Vr,qA,IO].indexOf(o)!==-1?Uf:o}));var A=t.wordBreak==="keep-all"?i.map(function(o,s){return o&&r[s]>=19968&&r[s]<=40959}):void 0;return[n,a,A]},iAt=function(){function r(t,e,n,a){this.codePoints=t,this.required=e===FO,this.start=n,this.end=a}return r.prototype.slice=function(){return Se.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),AAt=function(r,t){var e=Rp(r),n=aAt(e,t),a=n[0],i=n[1],A=n[2],o=e.length,s=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var u=Wt;l=DO&&r<=57},kAt=function(r){return r>=55296&&r<=57343},ls=function(r){return ar(r)||r>=MO&&r<=PO||r>=LO&&r<=UAt},NAt=function(r){return r>=LO&&r<=RAt},VAt=function(r){return r>=MO&&r<=OAt},GAt=function(r){return NAt(r)||VAt(r)},KAt=function(r){return r>=xAt},Mh=function(r){return r===Sd||r===lAt||r===uAt},xd=function(r){return GAt(r)||KAt(r)||r===vAt},UD=function(r){return xd(r)||ar(r)||r===Dr},zAt=function(r){return r>=FAt&&r<=EAt||r===DAt||r>=LAt&&r<=QAt||r===MAt},Ii=function(r,t){return r!==Xu?!1:t!==Sd},Uh=function(r,t,e){return r===Dr?xd(t)||Ii(t,e):xd(r)?!0:!!(r===Xu&&Ii(r,t))},Hm=function(r,t,e){return r===oo||r===Dr?ar(t)?!0:t===Pf&&ar(e):ar(r===Pf?t:r)},WAt=function(r){var t=0,e=1;(r[t]===oo||r[t]===Dr)&&(r[t]===Dr&&(e=-1),t++);for(var n=[];ar(r[t]);)n.push(r[t++]);var a=n.length?parseInt(Se.apply(void 0,n),10):0;r[t]===Pf&&t++;for(var i=[];ar(r[t]);)i.push(r[t++]);var A=i.length,o=A?parseInt(Se.apply(void 0,i),10):0;(r[t]===UO||r[t]===QO)&&t++;var s=1;(r[t]===oo||r[t]===Dr)&&(r[t]===Dr&&(s=-1),t++);for(var l=[];ar(r[t]);)l.push(r[t++]);var u=l.length?parseInt(Se.apply(void 0,l),10):0;return e*(a+o*Math.pow(10,-A))*Math.pow(10,s*u)},XAt={type:2},YAt={type:3},ZAt={type:4},$At={type:13},JAt={type:8},qAt={type:21},jAt={type:9},tot={type:10},eot={type:11},rot={type:12},not={type:14},Ph={type:23},aot={type:1},iot={type:25},Aot={type:24},oot={type:26},sot={type:27},lot={type:28},uot={type:29},fot={type:31},pB={type:32},RO=function(){function r(){this._value=[]}return r.prototype.write=function(t){this._value=this._value.concat(Rp(t))},r.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==pB;)t.push(e),e=this.consumeToken();return t},r.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Eh:return this.consumeStringToken(Eh);case fAt:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(UD(e)||Ii(n,a)){var i=Uh(e,n,a)?sAt:oAt,A=this.consumeName();return{type:5,value:A,flags:i}}break;case cAt:if(this.peekCodePoint(0)===jl)return this.consumeCodePoint(),$At;break;case Dh:return this.consumeStringToken(Dh);case Lh:return XAt;case tu:return YAt;case Rm:if(this.peekCodePoint(0)===jl)return this.consumeCodePoint(),not;break;case oo:if(Hm(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case bAt:return ZAt;case Dr:var o=t,s=this.peekCodePoint(0),l=this.peekCodePoint(1);if(Hm(o,s,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Uh(o,s,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(s===Dr&&l===gAt)return this.consumeCodePoint(),this.consumeCodePoint(),Aot;break;case Pf:if(Hm(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case LD:if(this.peekCodePoint(0)===Rm)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===Rm&&(u=this.consumeCodePoint(),u===LD))return this.consumeToken();if(u===jn)return this.consumeToken()}break;case TAt:return oot;case IAt:return sot;case pAt:if(this.peekCodePoint(0)===dAt&&this.peekCodePoint(1)===Dr&&this.peekCodePoint(2)===Dr)return this.consumeCodePoint(),this.consumeCodePoint(),iot;break;case yAt:var f=this.peekCodePoint(0),c=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Uh(f,c,h)){var A=this.consumeName();return{type:7,value:A}}break;case mAt:return lot;case Xu:if(Ii(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case wAt:return uot;case BAt:if(this.peekCodePoint(0)===jl)return this.consumeCodePoint(),JAt;break;case _At:return eot;case CAt:return rot;case PAt:case HAt:var v=this.peekCodePoint(0),d=this.peekCodePoint(1);return v===oo&&(ls(d)||d===Qh)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case QD:if(this.peekCodePoint(0)===jl)return this.consumeCodePoint(),jAt;if(this.peekCodePoint(0)===QD)return this.consumeCodePoint(),qAt;break;case SAt:if(this.peekCodePoint(0)===jl)return this.consumeCodePoint(),tot;break;case jn:return pB}return Mh(t)?(this.consumeWhiteSpace(),fot):ar(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):xd(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Se(t)}},r.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},r.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},r.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},r.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ls(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;e===Qh&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(Se.apply(void 0,t.map(function(s){return s===Qh?DO:s})),16),i=parseInt(Se.apply(void 0,t.map(function(s){return s===Qh?PO:s})),16);return{type:30,start:a,end:i}}var A=parseInt(Se.apply(void 0,t),16);if(this.peekCodePoint(0)===Dr&&ls(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var o=[];ls(e)&&o.length<6;)o.push(e),e=this.consumeCodePoint();var i=parseInt(Se.apply(void 0,o),16);return{type:30,start:A,end:i}}else return{type:30,start:A,end:A}},r.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Lh?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Lh?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},r.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===jn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Dh||e===Eh){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===jn||this.peekCodePoint(0)===tu)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Ph)}for(;;){var a=this.consumeCodePoint();if(a===jn||a===tu)return{type:22,value:Se.apply(void 0,t)};if(Mh(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===jn||this.peekCodePoint(0)===tu?(this.consumeCodePoint(),{type:22,value:Se.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Ph);if(a===Eh||a===Dh||a===Lh||zAt(a))return this.consumeBadUrlRemnants(),Ph;if(a===Xu)if(Ii(a,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Ph;else t.push(a)}},r.prototype.consumeWhiteSpace=function(){for(;Mh(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===tu||t===jn)return;Ii(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(t){for(var e=5e4,n="";t>0;){var a=Math.min(e,t);n+=Se.apply(void 0,this._value.splice(0,a)),t-=a}return this._value.shift(),n},r.prototype.consumeStringToken=function(t){var e="",n=0;do{var a=this._value[n];if(a===jn||a===void 0||a===t)return e+=this.consumeStringSlice(n),{type:0,value:e};if(a===Sd)return this._value.splice(0,n),aot;if(a===Xu){var i=this._value[n+1];i!==jn&&i!==void 0&&(i===Sd?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ii(a,i)&&(e+=this.consumeStringSlice(n),e+=Se(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var t=[],e=sc,n=this.peekCodePoint(0);for((n===oo||n===Dr)&&t.push(this.consumeCodePoint());ar(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===Pf&&ar(a))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=DD;ar(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===UO||n===QO)&&((a===oo||a===Dr)&&ar(i)||ar(a)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=DD;ar(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[WAt(t),e]},r.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),A=this.peekCodePoint(2);if(Uh(a,i,A)){var o=this.consumeName();return{type:15,number:e,flags:n,unit:o}}return a===hAt?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ls(t)){for(var e=Se(t);ls(this.peekCodePoint(0))&&e.length<6;)e+=Se(this.consumeCodePoint());Mh(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||kAt(n)||n>1114111?MD:n}return t===jn?MD:t},r.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(UD(e))t+=Se(e);else if(Ii(e,this.peekCodePoint(0)))t+=Se(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),t}},r}(),HO=function(){function r(t){this._tokens=t}return r.create=function(t){var e=new RO;return e.write(t),new r(e.read())},r.parseValue=function(t){return r.create(t).parseComponentValue()},r.parseValues=function(t){return r.create(t).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===32)return t;t.push(e),t.push()}},r.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},r.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||hot(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?pB:t},r.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},r}(),lc=function(r){return r.type===15},gl=function(r){return r.type===17},le=function(r){return r.type===20},cot=function(r){return r.type===0},gB=function(r,t){return le(r)&&r.value===t},OO=function(r){return r.type!==31},qs=function(r){return r.type!==31&&r.type!==4},Ca=function(r){var t=[],e=[];return r.forEach(function(n){if(n.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(e),e=[];return}n.type!==31&&e.push(n)}),e.length&&t.push(e),t},hot=function(r,t){return t===11&&r.type===12||t===28&&r.type===29?!0:t===2&&r.type===3},iA=function(r){return r.type===17||r.type===15},De=function(r){return r.type===16||iA(r)},kO=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},Ze={type:17,number:0,flags:sc},i1={type:16,number:50,flags:sc},Ni={type:16,number:100,flags:sc},mu=function(r,t,e){var n=r[0],a=r[1];return[ve(n,t),ve(typeof a<"u"?a:n,e)]},ve=function(r,t){if(r.type===16)return r.number/100*t;if(lc(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},NO="deg",VO="grad",GO="rad",KO="turn",Hp={name:"angle",parse:function(r,t){if(t.type===15)switch(t.unit){case NO:return Math.PI*t.number/180;case VO:return Math.PI/200*t.number;case GO:return t.number;case KO:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},zO=function(r){return r.type===15&&(r.unit===NO||r.unit===VO||r.unit===GO||r.unit===KO)},WO=function(r){var t=r.filter(le).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ze,Ze];case"to top":case"bottom":return gn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ze,Ni];case"to right":case"left":return gn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ni,Ni];case"to bottom":case"top":return gn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ni,Ze];case"to left":case"right":return gn(270)}return 0},gn=function(r){return Math.PI*r/180},Xi={name:"color",parse:function(r,t){if(t.type===18){var e=vot[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(r,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3);return Vi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3),A=t.value.substring(3,4);return Vi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(A+A,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6);return Vi(parseInt(n,16),parseInt(a,16),parseInt(i,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6),A=t.value.substring(6,8);return Vi(parseInt(n,16),parseInt(a,16),parseInt(i,16),parseInt(A,16)/255)}}if(t.type===20){var o=Ka[t.value.toUpperCase()];if(typeof o<"u")return o}return Ka.TRANSPARENT}},Yi=function(r){return(255&r)===0},Ve=function(r){var t=255&r,e=255&r>>8,n=255&r>>16,a=255&r>>24;return t<255?"rgba("+a+","+n+","+e+","+t/255+")":"rgb("+a+","+n+","+e+")"},Vi=function(r,t,e,n){return(r<<24|t<<16|e<<8|Math.round(n*255)<<0)>>>0},PD=function(r,t){if(r.type===17)return r.number;if(r.type===16){var e=t===3?1:255;return t===3?r.number/100*e:Math.round(r.number/100*e)}return 0},RD=function(r,t){var e=t.filter(qs);if(e.length===3){var n=e.map(PD),a=n[0],i=n[1],A=n[2];return Vi(a,i,A,1)}if(e.length===4){var o=e.map(PD),a=o[0],i=o[1],A=o[2],s=o[3];return Vi(a,i,A,s)}return 0};function Om(r,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-r)*e*6+r:e<1/2?t:e<2/3?(t-r)*6*(2/3-e)+r:r}var HD=function(r,t){var e=t.filter(qs),n=e[0],a=e[1],i=e[2],A=e[3],o=(n.type===17?gn(n.number):Hp.parse(r,n))/(Math.PI*2),s=De(a)?a.number/100:0,l=De(i)?i.number/100:0,u=typeof A<"u"&&De(A)?ve(A,1):1;if(s===0)return Vi(l*255,l*255,l*255,1);var f=l<=.5?l*(s+1):l+s-l*s,c=l*2-f,h=Om(c,f,o+1/3),v=Om(c,f,o),d=Om(c,f,o-1/3);return Vi(h*255,v*255,d*255,u)},vot={hsl:HD,hsla:HD,rgb:RD,rgba:RD},Yu=function(r,t){return Xi.parse(r,HO.create(t).parseComponentValue())},Ka={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},dot={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},pot={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Op=function(r,t){var e=Xi.parse(r,t[0]),n=t[1];return n&&De(n)?{color:e,stop:n}:{color:e,stop:null}},OD=function(r,t){var e=r[0],n=r[r.length-1];e.stop===null&&(e.stop=Ze),n.stop===null&&(n.stop=Ni);for(var a=[],i=0,A=0;Ai?a.push(s):a.push(i),i=s}else a.push(null)}for(var l=null,A=0;AA.optimumDistance)?{optimumCorner:o,optimumDistance:u}:A},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},mot=function(r,t,e,n,a){var i=0,A=0;switch(r.size){case 0:r.shape===0?i=A=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-n)),A=Math.min(Math.abs(e),Math.abs(e-a)));break;case 2:if(r.shape===0)i=A=Math.min(En(t,e),En(t,e-a),En(t-n,e),En(t-n,e-a));else if(r.shape===1){var o=Math.min(Math.abs(e),Math.abs(e-a))/Math.min(Math.abs(t),Math.abs(t-n)),s=kD(n,a,t,e,!0),l=s[0],u=s[1];i=En(l-t,(u-e)/o),A=o*i}break;case 1:r.shape===0?i=A=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-n)),A=Math.max(Math.abs(e),Math.abs(e-a)));break;case 3:if(r.shape===0)i=A=Math.max(En(t,e),En(t,e-a),En(t-n,e),En(t-n,e-a));else if(r.shape===1){var o=Math.max(Math.abs(e),Math.abs(e-a))/Math.max(Math.abs(t),Math.abs(t-n)),f=kD(n,a,t,e,!1),l=f[0],u=f[1];i=En(l-t,(u-e)/o),A=o*i}break}return Array.isArray(r.size)&&(i=ve(r.size[0],n),A=r.size.length===2?ve(r.size[1],a):i),[i,A]},wot=function(r,t){var e=gn(180),n=[];return Ca(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&A.value==="to"){e=WO(a);return}else if(zO(A)){e=Hp.parse(r,A);return}}var o=Op(r,a);n.push(o)}),{angle:e,stops:n,type:1}},Rh=function(r,t){var e=gn(180),n=[];return Ca(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&["top","left","right","bottom"].indexOf(A.value)!==-1){e=WO(a);return}else if(zO(A)){e=(Hp.parse(r,A)+gn(270))%gn(360);return}}var o=Op(r,a);n.push(o)}),{angle:e,stops:n,type:1}},Bot=function(r,t){var e=gn(180),n=[],a=1,i=0,A=3,o=[];return Ca(t).forEach(function(s,l){var u=s[0];if(l===0){if(le(u)&&u.value==="linear"){a=1;return}else if(le(u)&&u.value==="radial"){a=2;return}}if(u.type===18){if(u.name==="from"){var f=Xi.parse(r,u.values[0]);n.push({stop:Ze,color:f})}else if(u.name==="to"){var f=Xi.parse(r,u.values[0]);n.push({stop:Ni,color:f})}else if(u.name==="color-stop"){var c=u.values.filter(qs);if(c.length===2){var f=Xi.parse(r,c[1]),h=c[0];gl(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:f})}}}}),a===1?{angle:(e+gn(180))%gn(360),stops:n,type:a}:{size:A,shape:i,stops:n,position:o,type:a}},XO="closest-side",YO="farthest-side",ZO="closest-corner",$O="farthest-corner",JO="circle",qO="ellipse",jO="cover",tk="contain",_ot=function(r,t){var e=0,n=3,a=[],i=[];return Ca(t).forEach(function(A,o){var s=!0;if(o===0){var l=!1;s=A.reduce(function(f,c){if(l)if(le(c))switch(c.value){case"center":return i.push(i1),f;case"top":case"left":return i.push(Ze),f;case"right":case"bottom":return i.push(Ni),f}else(De(c)||iA(c))&&i.push(c);else if(le(c))switch(c.value){case JO:return e=0,!1;case qO:return e=1,!1;case"at":return l=!0,!1;case XO:return n=0,!1;case jO:case YO:return n=1,!1;case tk:case ZO:return n=2,!1;case $O:return n=3,!1}else if(iA(c)||De(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return f},s)}if(s){var u=Op(r,A);a.push(u)}}),{size:n,shape:e,stops:a,position:i,type:2}},Hh=function(r,t){var e=0,n=3,a=[],i=[];return Ca(t).forEach(function(A,o){var s=!0;if(o===0?s=A.reduce(function(u,f){if(le(f))switch(f.value){case"center":return i.push(i1),!1;case"top":case"left":return i.push(Ze),!1;case"right":case"bottom":return i.push(Ni),!1}else if(De(f)||iA(f))return i.push(f),!1;return u},s):o===1&&(s=A.reduce(function(u,f){if(le(f))switch(f.value){case JO:return e=0,!1;case qO:return e=1,!1;case tk:case XO:return n=0,!1;case YO:return n=1,!1;case ZO:return n=2,!1;case jO:case $O:return n=3,!1}else if(iA(f)||De(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return u},s)),s){var l=Op(r,A);a.push(l)}}),{size:n,shape:e,stops:a,position:i,type:2}},Cot=function(r){return r.type===1},Sot=function(r){return r.type===2},A1={name:"image",parse:function(r,t){if(t.type===22){var e={url:t.value,type:0};return r.cache.addImage(t.value),e}if(t.type===18){var n=ek[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(r,t.values)}throw new Error("Unsupported image type "+t.type)}};function xot(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!ek[r.name])}var ek={"linear-gradient":wot,"-moz-linear-gradient":Rh,"-ms-linear-gradient":Rh,"-o-linear-gradient":Rh,"-webkit-linear-gradient":Rh,"radial-gradient":_ot,"-moz-radial-gradient":Hh,"-ms-radial-gradient":Hh,"-o-radial-gradient":Hh,"-webkit-radial-gradient":Hh,"-webkit-gradient":Bot},bot={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t.filter(function(n){return qs(n)&&xot(n)}).map(function(n){return A1.parse(r,n)})}},Tot={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Iot={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,t){return Ca(t).map(function(e){return e.filter(De)}).map(kO)}},Fot={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,t){return Ca(t).map(function(e){return e.filter(le).map(function(n){return n.value}).join(" ")}).map(Eot)}},Eot=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Hs;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Hs||(Hs={}));var Dot={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,t){return Ca(t).map(function(e){return e.filter(Lot)})}},Lot=function(r){return le(r)||De(r)},kp=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Qot=kp("top"),Mot=kp("right"),Uot=kp("bottom"),Pot=kp("left"),Np=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return kO(e.filter(De))}}},Rot=Np("top-left"),Hot=Np("top-right"),Oot=Np("bottom-right"),kot=Np("bottom-left"),Vp=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Not=Vp("top"),Vot=Vp("right"),Got=Vp("bottom"),Kot=Vp("left"),Gp=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return lc(e)?e.number:0}}},zot=Gp("top"),Wot=Gp("right"),Xot=Gp("bottom"),Yot=Gp("left"),Zot={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$ot={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},Jot={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,t){return t.filter(le).reduce(function(e,n){return e|qot(n.value)},0)}},qot=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},jot={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},tst={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},bd;(function(r){r.NORMAL="normal",r.STRICT="strict"})(bd||(bd={}));var est={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"strict":return bd.STRICT;case"normal":default:return bd.NORMAL}}},rst={name:"line-height",initialValue:"normal",prefix:!1,type:4},ND=function(r,t){return le(r)&&r.value==="normal"?1.2*t:r.type===17?t*r.number:De(r)?ve(r,t):t},nst={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,t){return t.type===20&&t.value==="none"?null:A1.parse(r,t)}},ast={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},yB={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Kp=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},ist=Kp("top"),Ast=Kp("right"),ost=Kp("bottom"),sst=Kp("left"),lst={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ust={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},zp=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},fst=zp("top"),cst=zp("right"),hst=zp("bottom"),vst=zp("left"),dst={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},pst={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},gst={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.length===1&&gB(t[0],"none")?[]:Ca(t).map(function(e){for(var n={color:Ka.TRANSPARENT,offsetX:Ze,offsetY:Ze,blur:Ze},a=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},wst=function(r){var t=r.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},Bst=function(r){var t=r.filter(function(s){return s.type===17}).map(function(s){return s.number}),e=t[0],n=t[1];t[2],t[3];var a=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var A=t[12],o=t[13];return t[14],t[15],t.length===16?[e,n,a,i,A,o]:null},_st={matrix:wst,matrix3d:Bst},VD={type:16,number:50,flags:sc},Cst=[VD,VD],Sst={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,t){var e=t.filter(De);return e.length!==2?Cst:[e[0],e[1]]}},xst={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Zu;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(Zu||(Zu={}));var bst={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-all":return Zu.BREAK_ALL;case"keep-all":return Zu.KEEP_ALL;case"normal":default:return Zu.NORMAL}}},Tst={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,t){if(t.type===20)return{auto:!0,order:0};if(gl(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},rk={name:"time",parse:function(r,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},Ist={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,t){return gl(t)?t.number:1}},Fst={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Est={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},Dst={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,t){var e=[],n=[];return t.forEach(function(a){switch(a.type){case 20:case 0:e.push(a.value);break;case 17:e.push(a.number.toString());break;case 4:n.push(e.join(" ")),e.length=0;break}}),e.length&&n.push(e.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},Lst={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Qst={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,t){if(gl(t))return t.number;if(le(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Mst={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.filter(le).map(function(e){return e.value})}},Ust={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ue=function(r,t){return(r&t)!==0},Pst={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t}},Rst={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;for(var n=[],a=t.filter(OO),i=0;i1?1:0],this.overflowWrap=pt(t,ust,e.overflowWrap),this.paddingTop=pt(t,fst,e.paddingTop),this.paddingRight=pt(t,cst,e.paddingRight),this.paddingBottom=pt(t,hst,e.paddingBottom),this.paddingLeft=pt(t,vst,e.paddingLeft),this.paintOrder=pt(t,Vst,e.paintOrder),this.position=pt(t,pst,e.position),this.textAlign=pt(t,dst,e.textAlign),this.textDecorationColor=pt(t,Fst,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=pt(t,Est,(a=e.textDecorationLine)!==null&&a!==void 0?a:e.textDecoration),this.textShadow=pt(t,gst,e.textShadow),this.textTransform=pt(t,yst,e.textTransform),this.transform=pt(t,mst,e.transform),this.transformOrigin=pt(t,Sst,e.transformOrigin),this.visibility=pt(t,xst,e.visibility),this.webkitTextStrokeColor=pt(t,Gst,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=pt(t,Kst,e.webkitTextStrokeWidth),this.wordBreak=pt(t,bst,e.wordBreak),this.zIndex=pt(t,Tst,e.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return Yi(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return Ue(this.display,4)||Ue(this.display,33554432)||Ue(this.display,268435456)||Ue(this.display,536870912)||Ue(this.display,67108864)||Ue(this.display,134217728)},r}(),Wst=function(){function r(t,e){this.content=pt(t,Pst,e.content),this.quotes=pt(t,kst,e.quotes)}return r}(),KD=function(){function r(t,e){this.counterIncrement=pt(t,Rst,e.counterIncrement),this.counterReset=pt(t,Hst,e.counterReset)}return r}(),pt=function(r,t,e){var n=new RO,a=e!==null&&typeof e<"u"?e.toString():t.initialValue;n.write(a);var i=new HO(n.read());switch(t.type){case 2:var A=i.parseComponentValue();return t.parse(r,le(A)?A.value:t.initialValue);case 0:return t.parse(r,i.parseComponentValue());case 1:return t.parse(r,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Hp.parse(r,i.parseComponentValue());case"color":return Xi.parse(r,i.parseComponentValue());case"image":return A1.parse(r,i.parseComponentValue());case"length":var o=i.parseComponentValue();return iA(o)?o:Ze;case"length-percentage":var s=i.parseComponentValue();return De(s)?s:Ze;case"time":return rk.parse(r,i.parseComponentValue())}break}},Xst="data-html2canvas-debug",Yst=function(r){var t=r.getAttribute(Xst);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},mB=function(r,t){var e=Yst(r);return e===1||t===e},Sa=function(){function r(t,e){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,mB(e,3))debugger;this.styles=new zst(t,window.getComputedStyle(e,null)),_B(e)&&(this.styles.animationDuration.some(function(n){return n>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Pp(this.context,e),mB(e,4)&&(this.flags|=16)}return r}(),Zst="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",zD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Oh=0;Oh>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},Jst=function(r){for(var t=r.length,e=[],n=0;n>wo,tlt=1<>wo,rlt=nk+elt,nlt=rlt,alt=32,ilt=nlt+alt,Alt=65536>>o1,olt=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>wo],e=(e<>wo)],e=(e<>o1),e=this.index[e],e+=t>>wo&slt,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var kh=0;kh=55296&&a<=56319&&e>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},glt=ult(Zst),An="×",Xm="÷",ylt=function(r){return glt.get(r)},mlt=function(r,t,e){var n=e-2,a=t[n],i=t[e-1],A=t[e];if(i===Vm&&A===Gm)return An;if(i===Vm||i===Gm||i===YD||A===Vm||A===Gm||A===YD)return Xm;if(i===$D&&[$D,Km,JD,qD].indexOf(A)!==-1||(i===JD||i===Km)&&(A===Km||A===zm)||(i===qD||i===zm)&&A===zm||A===jD||A===ZD||A===vlt||i===hlt)return An;if(i===jD&&A===tL){for(;a===ZD;)a=t[--n];if(a===tL)return An}if(i===Wm&&A===Wm){for(var o=0;a===Wm;)o++,a=t[--n];if(o%2===0)return An}return Xm},wlt=function(r){var t=dlt(r),e=t.length,n=0,a=0,i=t.map(ylt);return{next:function(){if(n>=e)return{done:!0,value:null};for(var A=An;nA.x||u.y>A.y;return A=u,l===0?!0:f});return r.body.removeChild(t),o},Slt=function(){return typeof new Image().crossOrigin<"u"},xlt=function(){return typeof new XMLHttpRequest().responseType=="string"},blt=function(r){var t=new Image,e=r.createElement("canvas"),n=e.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,";try{n.drawImage(t,0,0),e.toDataURL()}catch{return!1}return!0},eL=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},Tlt=function(r){var t=r.createElement("canvas"),e=100;t.width=e,t.height=e;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,e,e);var a=new Image,i=t.toDataURL();a.src=i;var A=wB(e,e,0,0,a);return n.fillStyle="red",n.fillRect(0,0,e,e),rL(A).then(function(o){n.drawImage(o,0,0);var s=n.getImageData(0,0,e,e).data;n.fillStyle="red",n.fillRect(0,0,e,e);var l=r.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=e+"px",eL(s)?rL(wB(e,e,0,0,l)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),eL(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},wB=function(r,t,e,n,a){var i="http://www.w3.org/2000/svg",A=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return A.setAttributeNS(null,"width",r.toString()),A.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),A.appendChild(o),o.appendChild(a),A},rL=function(r){return new Promise(function(t,e){var n=new Image;n.onload=function(){return t(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},Xe={get SUPPORT_RANGE_BOUNDS(){var r=_lt(document);return Object.defineProperty(Xe,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=Xe.SUPPORT_RANGE_BOUNDS&&Clt(document);return Object.defineProperty(Xe,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=blt(document);return Object.defineProperty(Xe,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?Tlt(document):Promise.resolve(!1);return Object.defineProperty(Xe,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=Slt();return Object.defineProperty(Xe,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=xlt();return Object.defineProperty(Xe,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Xe,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Xe,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},$u=function(){function r(t,e){this.text=t,this.bounds=e}return r}(),Ilt=function(r,t,e,n){var a=Dlt(t,e),i=[],A=0;return a.forEach(function(o){if(e.textDecorationLine.length||o.trim().length>0)if(Xe.SUPPORT_RANGE_BOUNDS){var s=nL(n,A,o.length).getClientRects();if(s.length>1){var l=s1(o),u=0;l.forEach(function(c){i.push(new $u(c,ti.fromDOMRectList(r,nL(n,u+A,c.length).getClientRects()))),u+=c.length})}else i.push(new $u(o,ti.fromDOMRectList(r,s)))}else{var f=n.splitText(o.length);i.push(new $u(o,Flt(r,n))),n=f}else Xe.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));A+=o.length}),i},Flt=function(r,t){var e=t.ownerDocument;if(e){var n=e.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var a=t.parentNode;if(a){a.replaceChild(n,t);var i=Pp(r,n);return n.firstChild&&a.replaceChild(n.firstChild,n),i}}return ti.EMPTY},nL=function(r,t,e){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(r,t),a.setEnd(r,t+e),a},s1=function(r){if(Xe.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(r)).map(function(e){return e.segment})}return Blt(r)},Elt=function(r,t){if(Xe.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(r)).map(function(n){return n.segment})}return Qlt(r,t)},Dlt=function(r,t){return t.letterSpacing!==0?s1(r):Elt(r,t)},Llt=[32,160,4961,65792,65793,4153,4241],Qlt=function(r,t){for(var e=AAt(r,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],a,i=function(){if(a.value){var A=a.value.slice(),o=Rp(A),s="";o.forEach(function(l){Llt.indexOf(l)===-1?s+=Se(l):(s.length&&n.push(s),n.push(Se(l)),s="")}),s.length&&n.push(s)}};!(a=e.next()).done;)i();return n},Mlt=function(){function r(t,e,n){this.text=Ult(e.data,n.textTransform),this.textBounds=Ilt(t,this.text,n,e)}return r}(),Ult=function(r,t){switch(t){case 1:return r.toLowerCase();case 3:return r.replace(Plt,Rlt);case 2:return r.toUpperCase();default:return r}},Plt=/(^|\s|:|-|\(|\))([a-z])/g,Rlt=function(r,t,e){return r.length>0?t+e.toUpperCase():r},ak=function(r){zn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return t}(Sa),ik=function(r){zn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return t}(Sa),Ak=function(r){zn(t,r);function t(e,n){var a=r.call(this,e,n)||this,i=new XMLSerializer,A=Pp(e,n);return n.setAttribute("width",A.width+"px"),n.setAttribute("height",A.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return t}(Sa),ok=function(r){zn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.value=n.value,a}return t}(Sa),BB=function(r){zn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return t}(Sa),Hlt=[{type:15,flags:0,unit:"px",number:3}],Olt=[{type:16,flags:0,number:50}],klt=function(r){return r.width>r.height?new ti(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)e.textNodes.push(new Mlt(r,a,e.styles));else if(bs(a))if(gk(a)&&a.assignedNodes)a.assignedNodes().forEach(function(o){return wv(r,o,e,n)});else{var A=fk(r,a);A.styles.isVisible()&&(Klt(a,A,n)?A.flags|=4:zlt(A.styles)&&(A.flags|=2),Glt.indexOf(a.tagName)!==-1&&(A.flags|=8),e.elements.push(A),a.slot,a.shadowRoot?wv(r,a.shadowRoot,A,n):!Fd(a)&&!vk(a)&&!Ed(a)&&wv(r,a,A,n))}},fk=function(r,t){return CB(t)?new ak(r,t):dk(t)?new ik(r,t):vk(t)?new Ak(r,t):Wlt(t)?new ok(r,t):Xlt(t)?new BB(r,t):Ylt(t)?new l1(r,t):Ed(t)?new sk(r,t):Fd(t)?new lk(r,t):pk(t)?new uk(r,t):new Sa(r,t)},ck=function(r,t){var e=fk(r,t);return e.flags|=4,wv(r,t,e,e),e},Klt=function(r,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||u1(r)&&e.styles.isTransparent()},zlt=function(r){return r.isPositioned()||r.isFloating()},hk=function(r){return r.nodeType===Node.TEXT_NODE},bs=function(r){return r.nodeType===Node.ELEMENT_NODE},_B=function(r){return bs(r)&&typeof r.style<"u"&&!Bv(r)},Bv=function(r){return typeof r.className=="object"},Wlt=function(r){return r.tagName==="LI"},Xlt=function(r){return r.tagName==="OL"},Ylt=function(r){return r.tagName==="INPUT"},Zlt=function(r){return r.tagName==="HTML"},vk=function(r){return r.tagName==="svg"},u1=function(r){return r.tagName==="BODY"},dk=function(r){return r.tagName==="CANVAS"},iL=function(r){return r.tagName==="VIDEO"},CB=function(r){return r.tagName==="IMG"},pk=function(r){return r.tagName==="IFRAME"},AL=function(r){return r.tagName==="STYLE"},$lt=function(r){return r.tagName==="SCRIPT"},Fd=function(r){return r.tagName==="TEXTAREA"},Ed=function(r){return r.tagName==="SELECT"},gk=function(r){return r.tagName==="SLOT"},oL=function(r){return r.tagName.indexOf("-")>0},Jlt=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},r.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},r.prototype.pop=function(t){var e=this;t.forEach(function(n){return e.counters[n].pop()})},r.prototype.parse=function(t){var e=this,n=t.counterIncrement,a=t.counterReset,i=!0;n!==null&&n.forEach(function(o){var s=e.counters[o.counter];s&&o.increment!==0&&(i=!1,s.length||s.push(1),s[Math.max(0,s.length-1)]+=o.increment)});var A=[];return i&&a.forEach(function(o){var s=e.counters[o.counter];A.push(o.counter),s||(s=e.counters[o.counter]=[]),s.push(o.reset)}),A},r}(),sL={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},lL={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},qlt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},jlt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},us=function(r,t,e,n,a,i){return re?Rf(r,a,i.length>0):n.integers.reduce(function(A,o,s){for(;r>=o;)r-=o,A+=n.values[s];return A},"")+i},yk=function(r,t,e,n){var a="";do e||r--,a=n(r)+a,r/=t;while(r*t>=t);return a},_e=function(r,t,e,n,a){var i=e-t+1;return(r<0?"-":"")+(yk(Math.abs(r),i,n,function(A){return Se(Math.floor(A%i)+t)})+a)},OA=function(r,t,e){e===void 0&&(e=". ");var n=t.length;return yk(Math.abs(r),n,!1,function(a){return t[Math.floor(a%n)]})+e},ws=1,wi=2,Bi=4,Bu=8,Da=function(r,t,e,n,a,i){if(r<-9999||r>9999)return Rf(r,4,a.length>0);var A=Math.abs(r),o=a;if(A===0)return t[0]+o;for(var s=0;A>0&&s<=4;s++){var l=A%10;l===0&&Ue(i,ws)&&o!==""?o=t[l]+o:l>1||l===1&&s===0||l===1&&s===1&&Ue(i,wi)||l===1&&s===1&&Ue(i,Bi)&&r>100||l===1&&s>1&&Ue(i,Bu)?o=t[l]+(s>0?e[s-1]:"")+o:l===1&&s>0&&(o=e[s-1]+o),A=Math.floor(A/10)}return(r<0?n:"")+o},uL="十百千萬",fL="拾佰仟萬",cL="マイナス",Ym="마이너스",Rf=function(r,t,e){var n=e?". ":"",a=e?"、":"",i=e?", ":"",A=e?" ":"";switch(t){case 0:return"•"+A;case 1:return"◦"+A;case 2:return"◾"+A;case 5:var o=_e(r,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return OA(r,"〇一二三四五六七八九",a);case 6:return us(r,1,3999,sL,3,n).toLowerCase();case 7:return us(r,1,3999,sL,3,n);case 8:return _e(r,945,969,!1,n);case 9:return _e(r,97,122,!1,n);case 10:return _e(r,65,90,!1,n);case 11:return _e(r,1632,1641,!0,n);case 12:case 49:return us(r,1,9999,lL,3,n);case 35:return us(r,1,9999,lL,3,n).toLowerCase();case 13:return _e(r,2534,2543,!0,n);case 14:case 30:return _e(r,6112,6121,!0,n);case 15:return OA(r,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return OA(r,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return Da(r,"零一二三四五六七八九",uL,"負",a,wi|Bi|Bu);case 47:return Da(r,"零壹貳參肆伍陸柒捌玖",fL,"負",a,ws|wi|Bi|Bu);case 42:return Da(r,"零一二三四五六七八九",uL,"负",a,wi|Bi|Bu);case 41:return Da(r,"零壹贰叁肆伍陆柒捌玖",fL,"负",a,ws|wi|Bi|Bu);case 26:return Da(r,"〇一二三四五六七八九","十百千万",cL,a,0);case 25:return Da(r,"零壱弐参四伍六七八九","拾百千万",cL,a,ws|wi|Bi);case 31:return Da(r,"영일이삼사오육칠팔구","십백천만",Ym,i,ws|wi|Bi);case 33:return Da(r,"零一二三四五六七八九","十百千萬",Ym,i,0);case 32:return Da(r,"零壹貳參四五六七八九","拾百千",Ym,i,ws|wi|Bi);case 18:return _e(r,2406,2415,!0,n);case 20:return us(r,1,19999,jlt,3,n);case 21:return _e(r,2790,2799,!0,n);case 22:return _e(r,2662,2671,!0,n);case 22:return us(r,1,10999,qlt,3,n);case 23:return OA(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return OA(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return _e(r,3302,3311,!0,n);case 28:return OA(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return OA(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return _e(r,3792,3801,!0,n);case 37:return _e(r,6160,6169,!0,n);case 38:return _e(r,4160,4169,!0,n);case 39:return _e(r,2918,2927,!0,n);case 40:return _e(r,1776,1785,!0,n);case 43:return _e(r,3046,3055,!0,n);case 44:return _e(r,3174,3183,!0,n);case 45:return _e(r,3664,3673,!0,n);case 46:return _e(r,3872,3881,!0,n);case 3:default:return _e(r,48,57,!0,n)}},mk="data-html2canvas-ignore",hL=function(){function r(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new Jlt,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(t,e){var n=this,a=tut(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,A=t.defaultView.pageYOffset,o=a.contentWindow,s=o.document,l=nut(a).then(function(){return vr(n,void 0,void 0,function(){var u,f;return rr(this,function(c){switch(c.label){case 0:return this.scrolledElements.forEach(out),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),u=this.options.onclone,f=this.clonedReferenceElement,typeof f>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:c.sent(),c.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,rut(s)]:[3,4];case 3:c.sent(),c.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(s,f)}).then(function(){return a})]:[2,a]}})})});return s.open(),s.write(iut(document.doctype)+""),Aut(this.referenceElement.ownerDocument,i,A),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),l},r.prototype.createElementClone=function(t){if(mB(t,2))debugger;if(dk(t))return this.createCanvasClone(t);if(iL(t))return this.createVideoClone(t);if(AL(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return CB(e)&&(CB(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),oL(e)?this.createCustomElementClone(e):e},r.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return Zm(t.style,e),e},r.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(i,A){return A&&typeof A.cssText=="string"?i+A.cssText:i},""),a=t.cloneNode(!1);return a.textContent=n,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},r.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var a=t.cloneNode(!1);try{a.width=t.width,a.height=t.height;var i=t.getContext("2d"),A=a.getContext("2d");if(A)if(!this.options.allowTaint&&i)A.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=(e=t.getContext("webgl2"))!==null&&e!==void 0?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();(s==null?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}A.drawImage(t,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return a},r.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var a=t.ownerDocument.createElement("canvas");return a.width=t.offsetWidth,a.height=t.offsetHeight,a},r.prototype.appendChildNode=function(t,e,n){(!bs(e)||!$lt(e)&&!e.hasAttribute(mk)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!bs(e)||!AL(e))&&t.appendChild(this.cloneNode(e,n))},r.prototype.cloneChildNodes=function(t,e,n){for(var a=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(bs(i)&&gk(i)&&typeof i.assignedNodes=="function"){var A=i.assignedNodes();A.length&&A.forEach(function(o){return a.appendChildNode(e,o,n)})}else this.appendChildNode(e,i,n)},r.prototype.cloneNode=function(t,e){if(hk(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&bs(t)&&(_B(t)||Bv(t))){var a=this.createElementClone(t);a.style.transitionProperty="none";var i=n.getComputedStyle(t),A=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&_B(a)&&(this.clonedReferenceElement=a),u1(a)&&uut(a);var s=this.counters.parse(new KD(this.context,i)),l=this.resolvePseudoContent(t,a,A,Ju.BEFORE);oL(t)&&(e=!0),iL(t)||this.cloneChildNodes(t,a,e),l&&a.insertBefore(l,a.firstChild);var u=this.resolvePseudoContent(t,a,o,Ju.AFTER);return u&&a.appendChild(u),this.counters.pop(s),(i&&(this.options.copyStyles||Bv(t))&&!pk(t)||e)&&Zm(i,a),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([a,t.scrollLeft,t.scrollTop]),(Fd(t)||Ed(t))&&(Fd(a)||Ed(a))&&(a.value=t.value),a}return t.cloneNode(!1)},r.prototype.resolvePseudoContent=function(t,e,n,a){var i=this;if(n){var A=n.content,o=e.ownerDocument;if(!(!o||!A||A==="none"||A==="-moz-alt-content"||n.display==="none")){this.counters.parse(new KD(this.context,n));var s=new Wst(this.context,n),l=o.createElement("html2canvaspseudoelement");Zm(n,l),s.content.forEach(function(f){if(f.type===0)l.appendChild(o.createTextNode(f.value));else if(f.type===22){var c=o.createElement("img");c.src=f.value,c.style.opacity="1",l.appendChild(c)}else if(f.type===18){if(f.name==="attr"){var h=f.values.filter(le);h.length&&l.appendChild(o.createTextNode(t.getAttribute(h[0].value)||""))}else if(f.name==="counter"){var v=f.values.filter(qs),d=v[0],p=v[1];if(d&&le(d)){var g=i.counters.getCounterValue(d.value),y=p&&le(p)?yB.parse(i.context,p.value):3;l.appendChild(o.createTextNode(Rf(g,y,!1)))}}else if(f.name==="counters"){var m=f.values.filter(qs),d=m[0],w=m[1],p=m[2];if(d&&le(d)){var _=i.counters.getCounterValues(d.value),B=p&&le(p)?yB.parse(i.context,p.value):3,C=w&&w.type===0?w.value:"",x=_.map(function(T){return Rf(T,B,!1)}).join(C);l.appendChild(o.createTextNode(x))}}}else if(f.type===20)switch(f.value){case"open-quote":l.appendChild(o.createTextNode(GD(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(GD(s.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(f.value))}}),l.className=SB+" "+xB;var u=a===Ju.BEFORE?" "+SB:" "+xB;return Bv(e)?e.className.baseValue+=u:e.className+=u,l}}},r.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},r}(),Ju;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Ju||(Ju={}));var tut=function(r,t){var e=r.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(mk,"true"),r.body.appendChild(e),e},eut=function(r){return new Promise(function(t){if(r.complete){t();return}if(!r.src){t();return}r.onload=t,r.onerror=t})},rut=function(r){return Promise.all([].slice.call(r.images,0).map(eut))},nut=function(r){return new Promise(function(t,e){var n=r.contentWindow;if(!n)return e("No window assigned for iframe");var a=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),t(r))},50)}})},aut=["all","d","content"],Zm=function(r,t){for(var e=r.length-1;e>=0;e--){var n=r.item(e);aut.indexOf(n)===-1&&t.style.setProperty(n,r.getPropertyValue(n))}return t},iut=function(r){var t="";return r&&(t+=""),t},Aut=function(r,t,e){r&&r.defaultView&&(t!==r.defaultView.pageXOffset||e!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(t,e)},out=function(r){var t=r[0],e=r[1],n=r[2];t.scrollLeft=e,t.scrollTop=n},sut=":before",lut=":after",SB="___html2canvas___pseudoelement_before",xB="___html2canvas___pseudoelement_after",vL=`{ content: "" !important; display: none !important; -}`,Flt=function(r){Elt(r,"."+sB+Tlt+YD+` - .`+lB+Ilt+YD)},Elt=function(r,t){var e=r.ownerDocument;if(e){var n=e.createElement("style");n.textContent=t,r.appendChild(n)}},YO=function(){function r(){}return r.getOrigin=function(t){var e=r._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},r.isSameOrigin=function(t){return r.getOrigin(t)===r._origin},r.setContext=function(t){r._link=t.document.createElement("a"),r._origin=r.getOrigin(t.location.href)},r._origin="about:blank",r}(),Dlt=function(){function r(t,e){this.context=t,this._options=e,this._cache={}}return r.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)||(Um(t)||Ult(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),e},r.prototype.match=function(t){return this._cache[t]},r.prototype.loadImage=function(t){return hr(this,void 0,void 0,function(){var e,n,a,i,A=this;return er(this,function(o){switch(o.label){case 0:return e=YO.isSameOrigin(t),n=!Mm(t)&&this._options.useCORS===!0&&We.SUPPORT_CORS_IMAGES&&!e,a=!Mm(t)&&!e&&!Um(t)&&typeof this._options.proxy=="string"&&We.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Mm(t)&&!Um(t)&&!a&&!n?[2]:(i=t,a?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(s,l){var u=new Image;u.onload=function(){return s(u)},u.onerror=l,(Plt(i)||n)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return s(u)},500),A._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},r.prototype.has=function(t){return typeof this._cache[t]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(i,A){var o=We.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o==="text")i(s.response);else{var f=new FileReader;f.addEventListener("load",function(){return i(f.result)},!1),f.addEventListener("error",function(c){return A(c)},!1),f.readAsDataURL(s.response)}else A("Failed to proxy resource "+a+" with status code "+s.status)},s.onerror=A;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var u=e._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return A("Timed out ("+u+"ms) proxying "+a)}}s.send()})},r}(),Qlt=/^data:image\/svg\+xml/i,Llt=/^data:image\/.*;base64,/i,Mlt=/^data:image\/.*/i,Ult=function(r){return We.SUPPORT_SVG_DRAWING||!Rlt(r)},Mm=function(r){return Mlt.test(r)},Plt=function(r){return Llt.test(r)},Um=function(r){return r.substr(0,4)==="blob"},Rlt=function(r){return r.substr(-3).toLowerCase()==="svg"||Qlt.test(r)},ht=function(){function r(t,e){this.type=0,this.x=t,this.y=e}return r.prototype.add=function(t,e){return new r(this.x+t,this.y+e)},r}(),rs=function(r,t,e){return new ht(r.x+(t.x-r.x)*e,r.y+(t.y-r.y)*e)},Eh=function(){function r(t,e,n,a){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=a}return r.prototype.subdivide=function(t,e){var n=rs(this.start,this.startControl,t),a=rs(this.startControl,this.endControl,t),i=rs(this.endControl,this.end,t),A=rs(n,a,t),o=rs(a,i,t),s=rs(A,o,t);return e?new r(this.start,n,A,s):new r(s,o,i,this.end)},r.prototype.add=function(t,e){return new r(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),sn=function(r){return r.type===1},Hlt=function(){function r(t){var e=t.styles,n=t.bounds,a=cu(e.borderTopLeftRadius,n.width,n.height),i=a[0],A=a[1],o=cu(e.borderTopRightRadius,n.width,n.height),s=o[0],l=o[1],u=cu(e.borderBottomRightRadius,n.width,n.height),f=u[0],c=u[1],h=cu(e.borderBottomLeftRadius,n.width,n.height),v=h[0],d=h[1],p=[];p.push((i+s)/n.width),p.push((v+f)/n.width),p.push((A+d)/n.height),p.push((l+c)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,A/=g,s/=g,l/=g,f/=g,c/=g,v/=g,d/=g);var y=n.width-s,m=n.height-c,w=n.width-f,_=n.height-d,B=e.borderTopWidth,C=e.borderRightWidth,S=e.borderBottomWidth,x=e.borderLeftWidth,b=ve(e.paddingTop,t.bounds.width),I=ve(e.paddingRight,t.bounds.width),F=ve(e.paddingBottom,t.bounds.width),E=ve(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||A>0?pe(n.left+x/3,n.top+B/3,i-x/3,A-B/3,ee.TOP_LEFT):new ht(n.left+x/3,n.top+B/3),this.topRightBorderDoubleOuterBox=i>0||A>0?pe(n.left+y,n.top+B/3,s-C/3,l-B/3,ee.TOP_RIGHT):new ht(n.left+n.width-C/3,n.top+B/3),this.bottomRightBorderDoubleOuterBox=f>0||c>0?pe(n.left+w,n.top+m,f-C/3,c-S/3,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C/3,n.top+n.height-S/3),this.bottomLeftBorderDoubleOuterBox=v>0||d>0?pe(n.left+x/3,n.top+_,v-x/3,d-S/3,ee.BOTTOM_LEFT):new ht(n.left+x/3,n.top+n.height-S/3),this.topLeftBorderDoubleInnerBox=i>0||A>0?pe(n.left+x*2/3,n.top+B*2/3,i-x*2/3,A-B*2/3,ee.TOP_LEFT):new ht(n.left+x*2/3,n.top+B*2/3),this.topRightBorderDoubleInnerBox=i>0||A>0?pe(n.left+y,n.top+B*2/3,s-C*2/3,l-B*2/3,ee.TOP_RIGHT):new ht(n.left+n.width-C*2/3,n.top+B*2/3),this.bottomRightBorderDoubleInnerBox=f>0||c>0?pe(n.left+w,n.top+m,f-C*2/3,c-S*2/3,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C*2/3,n.top+n.height-S*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||d>0?pe(n.left+x*2/3,n.top+_,v-x*2/3,d-S*2/3,ee.BOTTOM_LEFT):new ht(n.left+x*2/3,n.top+n.height-S*2/3),this.topLeftBorderStroke=i>0||A>0?pe(n.left+x/2,n.top+B/2,i-x/2,A-B/2,ee.TOP_LEFT):new ht(n.left+x/2,n.top+B/2),this.topRightBorderStroke=i>0||A>0?pe(n.left+y,n.top+B/2,s-C/2,l-B/2,ee.TOP_RIGHT):new ht(n.left+n.width-C/2,n.top+B/2),this.bottomRightBorderStroke=f>0||c>0?pe(n.left+w,n.top+m,f-C/2,c-S/2,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C/2,n.top+n.height-S/2),this.bottomLeftBorderStroke=v>0||d>0?pe(n.left+x/2,n.top+_,v-x/2,d-S/2,ee.BOTTOM_LEFT):new ht(n.left+x/2,n.top+n.height-S/2),this.topLeftBorderBox=i>0||A>0?pe(n.left,n.top,i,A,ee.TOP_LEFT):new ht(n.left,n.top),this.topRightBorderBox=s>0||l>0?pe(n.left+y,n.top,s,l,ee.TOP_RIGHT):new ht(n.left+n.width,n.top),this.bottomRightBorderBox=f>0||c>0?pe(n.left+w,n.top+m,f,c,ee.BOTTOM_RIGHT):new ht(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=v>0||d>0?pe(n.left,n.top+_,v,d,ee.BOTTOM_LEFT):new ht(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||A>0?pe(n.left+x,n.top+B,Math.max(0,i-x),Math.max(0,A-B),ee.TOP_LEFT):new ht(n.left+x,n.top+B),this.topRightPaddingBox=s>0||l>0?pe(n.left+Math.min(y,n.width-C),n.top+B,y>n.width+C?0:Math.max(0,s-C),Math.max(0,l-B),ee.TOP_RIGHT):new ht(n.left+n.width-C,n.top+B),this.bottomRightPaddingBox=f>0||c>0?pe(n.left+Math.min(w,n.width-x),n.top+Math.min(m,n.height-S),Math.max(0,f-C),Math.max(0,c-S),ee.BOTTOM_RIGHT):new ht(n.left+n.width-C,n.top+n.height-S),this.bottomLeftPaddingBox=v>0||d>0?pe(n.left+x,n.top+Math.min(_,n.height-S),Math.max(0,v-x),Math.max(0,d-S),ee.BOTTOM_LEFT):new ht(n.left+x,n.top+n.height-S),this.topLeftContentBox=i>0||A>0?pe(n.left+x+E,n.top+B+b,Math.max(0,i-(x+E)),Math.max(0,A-(B+b)),ee.TOP_LEFT):new ht(n.left+x+E,n.top+B+b),this.topRightContentBox=s>0||l>0?pe(n.left+Math.min(y,n.width+x+E),n.top+B+b,y>n.width+x+E?0:s-x+E,l-(B+b),ee.TOP_RIGHT):new ht(n.left+n.width-(C+I),n.top+B+b),this.bottomRightContentBox=f>0||c>0?pe(n.left+Math.min(w,n.width-(x+E)),n.top+Math.min(m,n.height+B+b),Math.max(0,f-(C+I)),c-(S+F),ee.BOTTOM_RIGHT):new ht(n.left+n.width-(C+I),n.top+n.height-(S+F)),this.bottomLeftContentBox=v>0||d>0?pe(n.left+x+E,n.top+_,Math.max(0,v-(x+E)),d-(S+F),ee.BOTTOM_LEFT):new ht(n.left+x+E,n.top+n.height-(S+F))}return r}(),ee;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ee||(ee={}));var pe=function(r,t,e,n,a){var i=4*((Math.sqrt(2)-1)/3),A=e*i,o=n*i,s=r+e,l=t+n;switch(a){case ee.TOP_LEFT:return new Eh(new ht(r,l),new ht(r,l-o),new ht(s-A,t),new ht(s,t));case ee.TOP_RIGHT:return new Eh(new ht(r,t),new ht(r+A,t),new ht(s,l-o),new ht(s,l));case ee.BOTTOM_RIGHT:return new Eh(new ht(s,t),new ht(s,t+o),new ht(r+A,l),new ht(r,l));case ee.BOTTOM_LEFT:default:return new Eh(new ht(s,l),new ht(s-A,l),new ht(r,t+o),new ht(r,t))}},md=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},Olt=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},wd=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},klt=function(){function r(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return r}(),Dh=function(){function r(t,e){this.path=t,this.target=e,this.type=1}return r}(),Nlt=function(){function r(t){this.opacity=t,this.type=2,this.target=6}return r}(),Vlt=function(r){return r.type===0},ZO=function(r){return r.type===1},Glt=function(r){return r.type===2},ZD=function(r,t){return r.length===t.length?r.some(function(e,n){return e===t[n]}):!1},Klt=function(r,t,e,n,a){return r.map(function(i,A){switch(A){case 0:return i.add(t,e);case 1:return i.add(t+n,e);case 2:return i.add(t+n,e+a);case 3:return i.add(t,e+a)}return i})},$O=function(){function r(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),JO=function(){function r(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Hlt(this.container),this.container.styles.opacity<1&&this.effects.push(new Nlt(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new klt(n,a,i))}if(this.container.styles.overflowX!==0){var A=md(this.curves),o=wd(this.curves);ZD(A,o)?this.effects.push(new Dh(A,6)):(this.effects.push(new Dh(A,2)),this.effects.push(new Dh(o,4)))}}return r.prototype.getEffects=function(t){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var i=n.effects.filter(function(s){return!ZO(s)});if(e||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var A=md(n.curves),o=wd(n.curves);ZD(A,o)||a.unshift(new Dh(o,6))}}else a.unshift.apply(a,i);n=n.parent}return a.filter(function(s){return Ue(s.target,t)})},r}(),uB=function(r,t,e,n){r.container.elements.forEach(function(a){var i=Ue(a.flags,4),A=Ue(a.flags,2),o=new JO(a,r);Ue(a.styles.display,2048)&&n.push(o);var s=Ue(a.flags,8)?[]:n;if(i||A){var l=i||a.styles.isPositioned()?e:t,u=new $O(o);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var f=a.styles.zIndex.order;if(f<0){var c=0;l.negativeZIndex.some(function(v,d){return f>v.element.container.styles.zIndex.order?(c=d,!1):c>0}),l.negativeZIndex.splice(c,0,u)}else if(f>0){var h=0;l.positiveZIndex.some(function(v,d){return f>=v.element.container.styles.zIndex.order?(h=d+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);uB(o,u,i?u:e,s)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),uB(o,t,e,s);Ue(a.flags,8)&&qO(a,s)})},qO=function(r,t){for(var e=r instanceof iB?r.start:1,n=r instanceof iB?r.reversed:!1,a=0;a"u"?r[0]:e},qlt=function(r,t,e,n,a){var i=t[0],A=t[1],o=e[0],s=e[1];switch(r){case 2:return[new ht(Math.round(n.left),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(s+n.top+A)),new ht(Math.round(n.left),Math.round(s+n.top+A))];case 3:return[new ht(Math.round(n.left+i),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.height+n.top)),new ht(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new ht(Math.round(n.left+i),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A+s)),new ht(Math.round(n.left+i),Math.round(n.top+A+s))];default:return[new ht(Math.round(a.left),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.height+a.top)),new ht(Math.round(a.left),Math.round(a.height+a.top))]}},jlt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",JD="Hidden Text",tut=function(){function r(t){this._data={},this._document=t}return r.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),A=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",A.appendChild(n),a.src=jlt,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(JD)),n.appendChild(i),n.appendChild(a);var o=a.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(JD)),n.style.lineHeight="normal",a.style.verticalAlign="super";var s=a.offsetTop-n.offsetTop+2;return A.removeChild(n),{baseline:o,middle:s}},r.prototype.getMetrics=function(t,e){var n=t+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},r}(),tk=function(){function r(t,e){this.context=t,this.options=e}return r}(),eut=1e4,rut=function(r){Nn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new tut(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return t.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(a){return n.applyEffect(a)})},t.prototype.applyEffect=function(e){this.ctx.save(),Glt(e)&&(this.ctx.globalAlpha=e.opacity),Vlt(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),ZO(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return hr(this,void 0,void 0,function(){var n;return er(this,function(a){switch(a.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(e){return hr(this,void 0,void 0,function(){return er(this,function(n){switch(n.label){case 0:if(Ue(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(e,n,a){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+a);else{var A=YC(e.text);A.reduce(function(o,s){return i.ctx.fillText(s,o,e.bounds.top+a),o+i.ctx.measureText(s).width},e.bounds.left)}},t.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),a=out(e.fontFamily).join(", "),i=jf(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,a].join(" "),a,i]},t.prototype.renderTextNode=function(e,n){return hr(this,void 0,void 0,function(){var a,i,A,o,s,l,u,f,c=this;return er(this,function(h){return a=this.createFontStyle(n),i=a[0],A=a[1],o=a[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(A,o),l=s.baseline,u=s.middle,f=n.paintOrder,e.textBounds.forEach(function(v){f.forEach(function(d){switch(d){case 0:c.ctx.fillStyle=Ne(n.color),c.renderTextWithLetterSpacing(v,n.letterSpacing,l);var p=n.textShadow;p.length&&v.text.trim().length&&(p.slice(0).reverse().forEach(function(g){c.ctx.shadowColor=Ne(g.color),c.ctx.shadowOffsetX=g.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=g.offsetY.number*c.options.scale,c.ctx.shadowBlur=g.blur.number,c.renderTextWithLetterSpacing(v,n.letterSpacing,l)}),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),n.textDecorationLine.length&&(c.ctx.fillStyle=Ne(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+l),v.bounds.width,1);break;case 2:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:c.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+u),v.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&v.text.trim().length&&(c.ctx.strokeStyle=Ne(n.webkitTextStrokeColor),c.ctx.lineWidth=n.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+l)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(e,n,a){if(a&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=Bd(e),A=wd(n);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return hr(this,void 0,void 0,function(){var n,a,i,A,o,s,y,y,l,u,f,c,w,h,v,_,d,p,g,y,m,w,_;return er(this,function(B){switch(B.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,a=e.curves,i=n.styles,A=0,o=n.textNodes,B.label=1;case 1:return A0&&D>0&&(S=i.ctx.createPattern(_,"repeat"),i.renderRepeat(b,S,M,R))):GAt(u)&&(x=Pm(e,n,[null,null,null]),b=x[0],I=x[1],F=x[2],E=x[3],D=x[4],Q=u.position.length===0?[zC]:u.position,M=ve(Q[0],E),R=ve(Q[Q.length-1],D),P=HAt(u,M,R,E,D),O=P[0],G=P[1],O>0&&G>0&&(X=i.ctx.createRadialGradient(I+M,F+R,0,I+M,F+R,O),mD(u.stops,O*2).forEach(function(N){return X.addColorStop(N.stop,Ne(N.color))}),i.path(b),i.ctx.fillStyle=X,O!==G?(J=e.bounds.left+.5*e.bounds.width,At=e.bounds.top+.5*e.bounds.height,lt=G/O,wt=1/lt,i.ctx.save(),i.ctx.translate(J,At),i.ctx.transform(1,0,0,lt,0,0),i.ctx.translate(-J,-At),i.ctx.fillRect(I,wt*(F-At)+At,E,D*wt),i.ctx.restore()):i.ctx.fill())),Bt.label=6;case 6:return n--,[2]}})},i=this,A=0,o=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return A0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return c.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,3)];case 6:return c.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,e.curves)];case 8:return c.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,e.curves)];case 10:c.sent(),c.label=11;case 11:o++,c.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,n,a,i,A){return hr(this,void 0,void 0,function(){var o,s,l,u,f,c,h,v,d,p,g,y,m,w,_,B,_,B;return er(this,function(C){return this.ctx.save(),o=Ylt(i,a),s=$D(i,a),A===2&&(this.path(s),this.ctx.clip()),sn(s[0])?(l=s[0].start.x,u=s[0].start.y):(l=s[0].x,u=s[0].y),sn(s[1])?(f=s[1].end.x,c=s[1].end.y):(f=s[1].x,c=s[1].y),a===0||a===2?h=Math.abs(l-f):h=Math.abs(u-c),this.ctx.beginPath(),A===3?this.formatPath(o):this.formatPath(s.slice(0,2)),v=n<3?n*3:n*2,d=n<3?n*2:n,A===3&&(v=n,d=n),p=!0,h<=v*2?p=!1:h<=v*2+d?(g=h/(2*v+d),v*=g,d*=g):(y=Math.floor((h+d)/(v+d)),m=(h-y*v)/(y-1),w=(h-(y+1)*v)/y,d=w<=0||Math.abs(d-m)t.status),n=jn(qE(e.value.meta.uptime)),a=jn(null),i=jn(null),A=jn(null),o=jn(null);let s=[];const l=jn(!0),u=be(()=>l.value?"#22c55e":"#ff4d4f"),f=be(()=>l.value?"#80ffb0":"#fd8182"),c=jn("0"),h=be(()=>Tat(e.value.meta.os.name,e.value.meta.os.version)),v=be(()=>Nw(e.value.hardware.mem.used,e.value.hardware.mem.total)),d=be(()=>e.value.hardware.swap.total>0?Nw(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A"),p=be(()=>({borderColor:`linear-gradient(90deg, ${u.value}, ${f.value})`})),g=be(()=>u.value);function y(){const w=Lc(a.value),_=Lc(i.value),B=Lc(A.value),C=Lc(o.value),S={color:"rgba(0, 0, 0, 0.8)",fontSize:18},x=["65%","80%"],b=["#a2d8f4","#0194e3"],I="center",F={label:{show:!0,fontSize:15,fontFamily:Yl,position:["50%","20%"]}};setInterval(()=>{if(l.value){const D=Date.now()/1e3-e.value.meta.observed_at;n.value=qE(e.value.meta.uptime+D)}},1e3);function E(){const D=Date.now()/1e3-e.value.meta.observed_at;c.value=Fat(D),(s.length===0||s[s.length-1][0]!==e.value.meta.observed_at)&&s.push([e.value.meta.observed_at,e.value.hardware.net.up,e.value.hardware.net.down]),s.length>20&&s.shift(),l.value=D<=JH,w.setOption({color:[iv(e.value.hardware.cpu.percent),Av(e.value.hardware.cpu.percent)],title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:S},textStyle:{fontFamily:Yl},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:be(()=>[{value:e.value.hardware.cpu.percent,name:"Used"},{value:100-e.value.hardware.cpu.percent,name:"Free"}]).value}]}),_.setOption({color:[iv(e.value.hardware.mem.used/e.value.hardware.mem.total*100),Av(e.value.hardware.mem.used/e.value.hardware.mem.total*100)],title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:S},textStyle:{fontFamily:Yl},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.mem.used,name:"Used"},{value:e.value.hardware.mem.total-e.value.hardware.mem.used,name:"Free"}]}]}),B.setOption({color:[iv(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0),Av(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0)],title:{text:e.value.hardware.swap.total>0?`${(e.value.hardware.swap.used/e.value.hardware.swap.total*100).toFixed(1)}%`:"N/A",left:"center",top:"center",textStyle:S},textStyle:{fontFamily:Yl},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.swap.total>0?e.value.hardware.swap.used:0,name:"Used"},{value:e.value.hardware.swap.total>0?e.value.hardware.swap.total-e.value.hardware.swap.used:100,name:"Free"}]}]}),C.setOption({color:b,title:{textStyle:S},textStyle:{fontFamily:Yl},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#0f7bc5",borderRadius:50,formatter:function(Q){return Q.axisDimension==="y"?av(Q.value*8,null,"bps"):uh(Q.value,!0)}}},formatter:function(Q){let M=uh(Q[0].name,!0)+"
";return Q.forEach(function(R){M+=R.marker+(R.seriesName=="Tx"?"↑":"↓")+": "+av(R.value*8,null,"bps")+"
"}),M}},toolbox:{feature:{}},grid:{top:"25%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:s.map(Q=>Q[0]),axisLabel:{formatter:function(Q){return uh(Q,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(Q){return av(Q*8,null,"b")}}}],series:[{name:"Tx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(Q=>Q[1]),showSymbol:!1,lineStyle:{type:"dashed"}},{name:"Rx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(Q=>Q[2]),showSymbol:!1}]})}E(),yu(()=>e.value,()=>{E()})}function m(){const w=document.querySelector(".host#"+e.value.meta.id);w&&cut(w,{scale:2}).then(_=>{const B=_.toDataURL("image/png"),C=document.createElement("a");C.href=B,C.download=`screenshot-${e.value.meta.id}-${uh(Date.now(),!1)}.png`,C.click()})}return IB(()=>{y()}),(w,_)=>(Er(),Fn("div",{class:"host",style:Ga([p.value,{"--hover-border-color":g.value}]),id:e.value.meta.id},[St("div",put,Ce(e.value.meta.name),1),St("div",gut,[St("div",yut,[yr(Qat,{class:"outline-anime",color:u.value,spreadColor:f.value,"is-online":l.value},null,8,["color","spreadColor","is-online"]),_[0]||(_[0]=dv("  ")),St("div",{class:"uptime time-tag",style:Ga([{"margin-right":"5px"},{backgroundColor:f.value,borderColor:u.value}])},Ce(n.value),5),l.value?jQ("",!0):(Er(),Fn("div",mut," Offline for "+Ce(c.value),1))]),St("div",{class:"meta1-right",style:{display:"flex","justify-content":"flex-end","align-items":"center"}},[St("img",{onClick:m,src:EV,alt:"download",style:{width:"20px",height:"20px"}})])]),St("div",wut,[St("div",But,[St("img",{class:"icon",src:h.value.icon,alt:"system"},null,8,_ut),St("span",Cut,Ce(h.value.name)+" "+Ce(e.value.meta.os.release)+" · "+Ce(e.value.meta.os.machine),1)]),St("div",Sut,[_[1]||(_[1]=St("img",{class:"icon",src:DV,alt:"location"},null,-1)),St("span",xut,Ce(e.value.meta.location)+" · "+Ce(e.value.meta.timezone),1)]),St("div",but,[_[2]||(_[2]=St("img",{class:"icon",src:QV,alt:"labels"},null,-1)),St("span",null,[(Er(!0),Fn(Fr,null,Vm(e.value.meta.labels,B=>(Er(),Fn("span",{class:"label meta2-text",key:B},Ce(B),1))),128))])])]),_[8]||(_[8]=St("hr",null,null,-1)),_[9]||(_[9]=St("div",{class:"section-name"}," Hardware ",-1)),St("div",Tut,[St("div",Iut,[St("div",{class:"chart",ref_key:"cpuChartRef",ref:a},null,512),_[3]||(_[3]=St("div",{class:"hw-title"},"CPU",-1)),St("div",Fut,Ce(e.value.hardware.cpu.cores)+"C "+Ce(e.value.hardware.cpu.logics)+"T",1)]),St("div",Eut,[St("div",{class:"chart",ref_key:"memoryChartRef",ref:i},null,512),_[4]||(_[4]=St("div",{class:"hw-title"},"Mem",-1)),St("div",Dut,Ce(v.value),1)]),St("div",Qut,[St("div",{class:"chart",ref_key:"swapChartRef",ref:A},null,512),_[5]||(_[5]=St("div",{class:"hw-title"},"Swap",-1)),St("div",Lut,Ce(d.value),1)])]),_[10]||(_[10]=St("hr",null,null,-1)),St("div",Mut,[_[6]||(_[6]=St("div",{class:"section-name"}," Network ",-1)),St("div",{class:"net-chart",ref_key:"netChartRef",ref:o},null,512)]),_[11]||(_[11]=St("hr",null,null,-1)),St("div",Uut,[_[7]||(_[7]=St("div",{class:"section-name"}," Storage ",-1)),(Er(!0),Fn(Fr,null,Vm(e.value.hardware.disks,B=>(Er(),QB(Gat,{key:B.mountpoint,mountpoint:B.mountpoint,device:B.device,used:B.used,total:B.total,fstype:B.fstype},null,8,["mountpoint","device","used","total","fstype"]))),128))])],12,dut))}}),Rut=Ws(Put,[["__scopeId","data-v-53661ee8"]]),Hut={class:"overview",style:{}},Out={class:"grid-container"},kut=Bo({__name:"Home",setup(r){const t=jn({}),e=jn(0),n=be(()=>{const i=Date.now()/1e3;let A=0;for(const o of Object.values(t.value))i-o.meta.observed_at{t.value=await Y1()},1e3);return IB(async()=>{t.value=await Y1()}),FB(()=>{clearInterval(a)}),(i,A)=>(Er(),Fn(Fr,null,[St("div",Hut,[St("h2",null,"Overview: "+Ce(n.value)+" Online "+Ce(e.value)+" Offline",1)]),St("div",Out,[(Er(!0),Fn(Fr,null,Vm(t.value,(o,s)=>(Er(),QB(Rut,{class:"grid-item",key:s,status:o},null,8,["status"]))),128))])],64))}}),Nut=Ws(kut,[["__scopeId","data-v-fc5340da"]]),Vut={};function Gut(r,t){return" Test "}const Kut=Ws(Vut,[["render",Gut]]),zut=[{path:"/",name:"主页",component:Nut},{path:"/test",name:"测试",component:Kut}],Wut=TV({history:nV("/"),routes:zut}),ek=_4(b4);ek.use(Wut);ek.mount("#app"); +}`,uut=function(r){fut(r,"."+SB+sut+vL+` + .`+xB+lut+vL)},fut=function(r,t){var e=r.ownerDocument;if(e){var n=e.createElement("style");n.textContent=t,r.appendChild(n)}},wk=function(){function r(){}return r.getOrigin=function(t){var e=r._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},r.isSameOrigin=function(t){return r.getOrigin(t)===r._origin},r.setContext=function(t){r._link=t.document.createElement("a"),r._origin=r.getOrigin(t.location.href)},r._origin="about:blank",r}(),cut=function(){function r(t,e){this.context=t,this._options=e,this._cache={}}return r.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)||(Jm(t)||put(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),e},r.prototype.match=function(t){return this._cache[t]},r.prototype.loadImage=function(t){return vr(this,void 0,void 0,function(){var e,n,a,i,A=this;return rr(this,function(o){switch(o.label){case 0:return e=wk.isSameOrigin(t),n=!$m(t)&&this._options.useCORS===!0&&Xe.SUPPORT_CORS_IMAGES&&!e,a=!$m(t)&&!e&&!Jm(t)&&typeof this._options.proxy=="string"&&Xe.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!$m(t)&&!Jm(t)&&!a&&!n?[2]:(i=t,a?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(s,l){var u=new Image;u.onload=function(){return s(u)},u.onerror=l,(gut(i)||n)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return s(u)},500),A._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},r.prototype.has=function(t){return typeof this._cache[t]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(i,A){var o=Xe.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o==="text")i(s.response);else{var f=new FileReader;f.addEventListener("load",function(){return i(f.result)},!1),f.addEventListener("error",function(c){return A(c)},!1),f.readAsDataURL(s.response)}else A("Failed to proxy resource "+a+" with status code "+s.status)},s.onerror=A;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var u=e._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return A("Timed out ("+u+"ms) proxying "+a)}}s.send()})},r}(),hut=/^data:image\/svg\+xml/i,vut=/^data:image\/.*;base64,/i,dut=/^data:image\/.*/i,put=function(r){return Xe.SUPPORT_SVG_DRAWING||!yut(r)},$m=function(r){return dut.test(r)},gut=function(r){return vut.test(r)},Jm=function(r){return r.substr(0,4)==="blob"},yut=function(r){return r.substr(-3).toLowerCase()==="svg"||hut.test(r)},ht=function(){function r(t,e){this.type=0,this.x=t,this.y=e}return r.prototype.add=function(t,e){return new r(this.x+t,this.y+e)},r}(),fs=function(r,t,e){return new ht(r.x+(t.x-r.x)*e,r.y+(t.y-r.y)*e)},Nh=function(){function r(t,e,n,a){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=a}return r.prototype.subdivide=function(t,e){var n=fs(this.start,this.startControl,t),a=fs(this.startControl,this.endControl,t),i=fs(this.endControl,this.end,t),A=fs(n,a,t),o=fs(a,i,t),s=fs(A,o,t);return e?new r(this.start,n,A,s):new r(s,o,i,this.end)},r.prototype.add=function(t,e){return new r(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),fn=function(r){return r.type===1},mut=function(){function r(t){var e=t.styles,n=t.bounds,a=mu(e.borderTopLeftRadius,n.width,n.height),i=a[0],A=a[1],o=mu(e.borderTopRightRadius,n.width,n.height),s=o[0],l=o[1],u=mu(e.borderBottomRightRadius,n.width,n.height),f=u[0],c=u[1],h=mu(e.borderBottomLeftRadius,n.width,n.height),v=h[0],d=h[1],p=[];p.push((i+s)/n.width),p.push((v+f)/n.width),p.push((A+d)/n.height),p.push((l+c)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,A/=g,s/=g,l/=g,f/=g,c/=g,v/=g,d/=g);var y=n.width-s,m=n.height-c,w=n.width-f,_=n.height-d,B=e.borderTopWidth,C=e.borderRightWidth,x=e.borderBottomWidth,S=e.borderLeftWidth,b=ve(e.paddingTop,t.bounds.width),T=ve(e.paddingRight,t.bounds.width),F=ve(e.paddingBottom,t.bounds.width),E=ve(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||A>0?ge(n.left+S/3,n.top+B/3,i-S/3,A-B/3,re.TOP_LEFT):new ht(n.left+S/3,n.top+B/3),this.topRightBorderDoubleOuterBox=i>0||A>0?ge(n.left+y,n.top+B/3,s-C/3,l-B/3,re.TOP_RIGHT):new ht(n.left+n.width-C/3,n.top+B/3),this.bottomRightBorderDoubleOuterBox=f>0||c>0?ge(n.left+w,n.top+m,f-C/3,c-x/3,re.BOTTOM_RIGHT):new ht(n.left+n.width-C/3,n.top+n.height-x/3),this.bottomLeftBorderDoubleOuterBox=v>0||d>0?ge(n.left+S/3,n.top+_,v-S/3,d-x/3,re.BOTTOM_LEFT):new ht(n.left+S/3,n.top+n.height-x/3),this.topLeftBorderDoubleInnerBox=i>0||A>0?ge(n.left+S*2/3,n.top+B*2/3,i-S*2/3,A-B*2/3,re.TOP_LEFT):new ht(n.left+S*2/3,n.top+B*2/3),this.topRightBorderDoubleInnerBox=i>0||A>0?ge(n.left+y,n.top+B*2/3,s-C*2/3,l-B*2/3,re.TOP_RIGHT):new ht(n.left+n.width-C*2/3,n.top+B*2/3),this.bottomRightBorderDoubleInnerBox=f>0||c>0?ge(n.left+w,n.top+m,f-C*2/3,c-x*2/3,re.BOTTOM_RIGHT):new ht(n.left+n.width-C*2/3,n.top+n.height-x*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||d>0?ge(n.left+S*2/3,n.top+_,v-S*2/3,d-x*2/3,re.BOTTOM_LEFT):new ht(n.left+S*2/3,n.top+n.height-x*2/3),this.topLeftBorderStroke=i>0||A>0?ge(n.left+S/2,n.top+B/2,i-S/2,A-B/2,re.TOP_LEFT):new ht(n.left+S/2,n.top+B/2),this.topRightBorderStroke=i>0||A>0?ge(n.left+y,n.top+B/2,s-C/2,l-B/2,re.TOP_RIGHT):new ht(n.left+n.width-C/2,n.top+B/2),this.bottomRightBorderStroke=f>0||c>0?ge(n.left+w,n.top+m,f-C/2,c-x/2,re.BOTTOM_RIGHT):new ht(n.left+n.width-C/2,n.top+n.height-x/2),this.bottomLeftBorderStroke=v>0||d>0?ge(n.left+S/2,n.top+_,v-S/2,d-x/2,re.BOTTOM_LEFT):new ht(n.left+S/2,n.top+n.height-x/2),this.topLeftBorderBox=i>0||A>0?ge(n.left,n.top,i,A,re.TOP_LEFT):new ht(n.left,n.top),this.topRightBorderBox=s>0||l>0?ge(n.left+y,n.top,s,l,re.TOP_RIGHT):new ht(n.left+n.width,n.top),this.bottomRightBorderBox=f>0||c>0?ge(n.left+w,n.top+m,f,c,re.BOTTOM_RIGHT):new ht(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=v>0||d>0?ge(n.left,n.top+_,v,d,re.BOTTOM_LEFT):new ht(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||A>0?ge(n.left+S,n.top+B,Math.max(0,i-S),Math.max(0,A-B),re.TOP_LEFT):new ht(n.left+S,n.top+B),this.topRightPaddingBox=s>0||l>0?ge(n.left+Math.min(y,n.width-C),n.top+B,y>n.width+C?0:Math.max(0,s-C),Math.max(0,l-B),re.TOP_RIGHT):new ht(n.left+n.width-C,n.top+B),this.bottomRightPaddingBox=f>0||c>0?ge(n.left+Math.min(w,n.width-S),n.top+Math.min(m,n.height-x),Math.max(0,f-C),Math.max(0,c-x),re.BOTTOM_RIGHT):new ht(n.left+n.width-C,n.top+n.height-x),this.bottomLeftPaddingBox=v>0||d>0?ge(n.left+S,n.top+Math.min(_,n.height-x),Math.max(0,v-S),Math.max(0,d-x),re.BOTTOM_LEFT):new ht(n.left+S,n.top+n.height-x),this.topLeftContentBox=i>0||A>0?ge(n.left+S+E,n.top+B+b,Math.max(0,i-(S+E)),Math.max(0,A-(B+b)),re.TOP_LEFT):new ht(n.left+S+E,n.top+B+b),this.topRightContentBox=s>0||l>0?ge(n.left+Math.min(y,n.width+S+E),n.top+B+b,y>n.width+S+E?0:s-S+E,l-(B+b),re.TOP_RIGHT):new ht(n.left+n.width-(C+T),n.top+B+b),this.bottomRightContentBox=f>0||c>0?ge(n.left+Math.min(w,n.width-(S+E)),n.top+Math.min(m,n.height+B+b),Math.max(0,f-(C+T)),c-(x+F),re.BOTTOM_RIGHT):new ht(n.left+n.width-(C+T),n.top+n.height-(x+F)),this.bottomLeftContentBox=v>0||d>0?ge(n.left+S+E,n.top+_,Math.max(0,v-(S+E)),d-(x+F),re.BOTTOM_LEFT):new ht(n.left+S+E,n.top+n.height-(x+F))}return r}(),re;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(re||(re={}));var ge=function(r,t,e,n,a){var i=4*((Math.sqrt(2)-1)/3),A=e*i,o=n*i,s=r+e,l=t+n;switch(a){case re.TOP_LEFT:return new Nh(new ht(r,l),new ht(r,l-o),new ht(s-A,t),new ht(s,t));case re.TOP_RIGHT:return new Nh(new ht(r,t),new ht(r+A,t),new ht(s,l-o),new ht(s,l));case re.BOTTOM_RIGHT:return new Nh(new ht(s,t),new ht(s,t+o),new ht(r+A,l),new ht(r,l));case re.BOTTOM_LEFT:default:return new Nh(new ht(s,l),new ht(s-A,l),new ht(r,t+o),new ht(r,t))}},Dd=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},wut=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},Ld=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},But=function(){function r(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return r}(),Vh=function(){function r(t,e){this.path=t,this.target=e,this.type=1}return r}(),_ut=function(){function r(t){this.opacity=t,this.type=2,this.target=6}return r}(),Cut=function(r){return r.type===0},Bk=function(r){return r.type===1},Sut=function(r){return r.type===2},dL=function(r,t){return r.length===t.length?r.some(function(e,n){return e===t[n]}):!1},xut=function(r,t,e,n,a){return r.map(function(i,A){switch(A){case 0:return i.add(t,e);case 1:return i.add(t+n,e);case 2:return i.add(t+n,e+a);case 3:return i.add(t,e+a)}return i})},_k=function(){function r(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),Ck=function(){function r(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new mut(this.container),this.container.styles.opacity<1&&this.effects.push(new _ut(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new But(n,a,i))}if(this.container.styles.overflowX!==0){var A=Dd(this.curves),o=Ld(this.curves);dL(A,o)?this.effects.push(new Vh(A,6)):(this.effects.push(new Vh(A,2)),this.effects.push(new Vh(o,4)))}}return r.prototype.getEffects=function(t){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var i=n.effects.filter(function(s){return!Bk(s)});if(e||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var A=Dd(n.curves),o=Ld(n.curves);dL(A,o)||a.unshift(new Vh(o,6))}}else a.unshift.apply(a,i);n=n.parent}return a.filter(function(s){return Ue(s.target,t)})},r}(),bB=function(r,t,e,n){r.container.elements.forEach(function(a){var i=Ue(a.flags,4),A=Ue(a.flags,2),o=new Ck(a,r);Ue(a.styles.display,2048)&&n.push(o);var s=Ue(a.flags,8)?[]:n;if(i||A){var l=i||a.styles.isPositioned()?e:t,u=new _k(o);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var f=a.styles.zIndex.order;if(f<0){var c=0;l.negativeZIndex.some(function(v,d){return f>v.element.container.styles.zIndex.order?(c=d,!1):c>0}),l.negativeZIndex.splice(c,0,u)}else if(f>0){var h=0;l.positiveZIndex.some(function(v,d){return f>=v.element.container.styles.zIndex.order?(h=d+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);bB(o,u,i?u:e,s)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),bB(o,t,e,s);Ue(a.flags,8)&&Sk(a,s)})},Sk=function(r,t){for(var e=r instanceof BB?r.start:1,n=r instanceof BB?r.reversed:!1,a=0;a"u"?r[0]:e},Qut=function(r,t,e,n,a){var i=t[0],A=t[1],o=e[0],s=e[1];switch(r){case 2:return[new ht(Math.round(n.left),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(s+n.top+A)),new ht(Math.round(n.left),Math.round(s+n.top+A))];case 3:return[new ht(Math.round(n.left+i),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.height+n.top)),new ht(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new ht(Math.round(n.left+i),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A+s)),new ht(Math.round(n.left+i),Math.round(n.top+A+s))];default:return[new ht(Math.round(a.left),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.height+a.top)),new ht(Math.round(a.left),Math.round(a.height+a.top))]}},Mut="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",gL="Hidden Text",Uut=function(){function r(t){this._data={},this._document=t}return r.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),A=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",A.appendChild(n),a.src=Mut,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(gL)),n.appendChild(i),n.appendChild(a);var o=a.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(gL)),n.style.lineHeight="normal",a.style.verticalAlign="super";var s=a.offsetTop-n.offsetTop+2;return A.removeChild(n),{baseline:o,middle:s}},r.prototype.getMetrics=function(t,e){var n=t+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},r}(),bk=function(){function r(t,e){this.context=t,this.options=e}return r}(),Put=1e4,Rut=function(r){zn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new Uut(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return t.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(a){return n.applyEffect(a)})},t.prototype.applyEffect=function(e){this.ctx.save(),Sut(e)&&(this.ctx.globalAlpha=e.opacity),Cut(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Bk(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return vr(this,void 0,void 0,function(){var n;return rr(this,function(a){switch(a.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(e){return vr(this,void 0,void 0,function(){return rr(this,function(n){switch(n.label){case 0:if(Ue(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(e,n,a){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+a);else{var A=s1(e.text);A.reduce(function(o,s){return i.ctx.fillText(s,o,e.bounds.top+a),o+i.ctx.measureText(s).width},e.bounds.left)}},t.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),a=Vut(e.fontFamily).join(", "),i=lc(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,a].join(" "),a,i]},t.prototype.renderTextNode=function(e,n){return vr(this,void 0,void 0,function(){var a,i,A,o,s,l,u,f,c=this;return rr(this,function(h){return a=this.createFontStyle(n),i=a[0],A=a[1],o=a[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(A,o),l=s.baseline,u=s.middle,f=n.paintOrder,e.textBounds.forEach(function(v){f.forEach(function(d){switch(d){case 0:c.ctx.fillStyle=Ve(n.color),c.renderTextWithLetterSpacing(v,n.letterSpacing,l);var p=n.textShadow;p.length&&v.text.trim().length&&(p.slice(0).reverse().forEach(function(g){c.ctx.shadowColor=Ve(g.color),c.ctx.shadowOffsetX=g.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=g.offsetY.number*c.options.scale,c.ctx.shadowBlur=g.blur.number,c.renderTextWithLetterSpacing(v,n.letterSpacing,l)}),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),n.textDecorationLine.length&&(c.ctx.fillStyle=Ve(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+l),v.bounds.width,1);break;case 2:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:c.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+u),v.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&v.text.trim().length&&(c.ctx.strokeStyle=Ve(n.webkitTextStrokeColor),c.ctx.lineWidth=n.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+l)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(e,n,a){if(a&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=Qd(e),A=Ld(n);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return vr(this,void 0,void 0,function(){var n,a,i,A,o,s,y,y,l,u,f,c,w,h,v,_,d,p,g,y,m,w,_;return rr(this,function(B){switch(B.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,a=e.curves,i=n.styles,A=0,o=n.textNodes,B.label=1;case 1:return A0&&D>0&&(x=i.ctx.createPattern(_,"repeat"),i.renderRepeat(b,x,M,R))):Sot(u)&&(S=qm(e,n,[null,null,null]),b=S[0],T=S[1],F=S[2],E=S[3],D=S[4],L=u.position.length===0?[i1]:u.position,M=ve(L[0],E),R=ve(L[L.length-1],D),P=mot(u,M,R,E,D),O=P[0],G=P[1],O>0&&G>0&&(X=i.ctx.createRadialGradient(T+M,F+R,0,T+M,F+R,O),OD(u.stops,O*2).forEach(function(N){return X.addColorStop(N.stop,Ve(N.color))}),i.path(b),i.ctx.fillStyle=X,O!==G?(J=e.bounds.left+.5*e.bounds.width,At=e.bounds.top+.5*e.bounds.height,lt=G/O,Bt=1/lt,i.ctx.save(),i.ctx.translate(J,At),i.ctx.transform(1,0,0,lt,0,0),i.ctx.translate(-J,-At),i.ctx.fillRect(T,Bt*(F-At)+At,E,D*Bt),i.ctx.restore()):i.ctx.fill())),_t.label=6;case 6:return n--,[2]}})},i=this,A=0,o=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return A0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return c.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,3)];case 6:return c.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,e.curves)];case 8:return c.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,e.curves)];case 10:c.sent(),c.label=11;case 11:o++,c.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,n,a,i,A){return vr(this,void 0,void 0,function(){var o,s,l,u,f,c,h,v,d,p,g,y,m,w,_,B,_,B;return rr(this,function(C){return this.ctx.save(),o=Fut(i,a),s=pL(i,a),A===2&&(this.path(s),this.ctx.clip()),fn(s[0])?(l=s[0].start.x,u=s[0].start.y):(l=s[0].x,u=s[0].y),fn(s[1])?(f=s[1].end.x,c=s[1].end.y):(f=s[1].x,c=s[1].y),a===0||a===2?h=Math.abs(l-f):h=Math.abs(u-c),this.ctx.beginPath(),A===3?this.formatPath(o):this.formatPath(s.slice(0,2)),v=n<3?n*3:n*2,d=n<3?n*2:n,A===3&&(v=n,d=n),p=!0,h<=v*2?p=!1:h<=v*2+d?(g=h/(2*v+d),v*=g,d*=g):(y=Math.floor((h+d)/(v+d)),m=(h-y*v)/(y-1),w=(h-(y+1)*v)/y,d=w<=0||Math.abs(d-m)t.status),n=Er(yD(e.value.meta.uptime)),a=Er(null),i=Er(null),A=Er(null),o=Er(null);let s=[];const l=Er(!0),u=be(()=>l.value?"#22c55e":"#ff4d4f"),f=be(()=>l.value?"#80ffb0":"#fd8182"),c=Er("0"),h=be(()=>sit(e.value.meta.os.name,e.value.meta.os.version)),v=be(()=>nB(e.value.hardware.mem.used,e.value.hardware.mem.total)),d=be(()=>e.value.hardware.swap.total>0?nB(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A"),p=be(()=>({borderColor:`linear-gradient(90deg, ${u.value}, ${f.value})`})),g=be(()=>u.value);function y(){const w=Kc(a.value),_=Kc(i.value),B=Kc(A.value),C=Kc(o.value),x={color:"rgba(0, 0, 0, 0.8)",fontSize:18},S=["65%","80%"],b=["#a2d8f4","#0194e3"],T="center",F={label:{show:!0,fontSize:15,fontFamily:eu,position:["50%","20%"]}};setInterval(()=>{if(l.value){const D=Date.now()/1e3-e.value.meta.observed_at;n.value=yD(e.value.meta.uptime+D)}},1e3);function E(){const D=Date.now()/1e3-e.value.meta.observed_at;c.value=uit(D),(s.length===0||s[s.length-1][0]!==e.value.meta.observed_at)&&s.push([e.value.meta.observed_at,e.value.hardware.net.up,e.value.hardware.net.down]),s.length>20&&s.shift(),l.value=D<=CO,w.setOption({color:[pv(e.value.hardware.cpu.percent),gv(e.value.hardware.cpu.percent)],title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:x},textStyle:{fontFamily:eu},series:[{type:"pie",radius:S,avoidLabelOverlap:!1,label:{show:!1,position:T},emphasis:F,labelLine:{show:!1},data:be(()=>[{value:e.value.hardware.cpu.percent,name:"Used"},{value:100-e.value.hardware.cpu.percent,name:"Free"}]).value}]}),_.setOption({color:[pv(e.value.hardware.mem.used/e.value.hardware.mem.total*100),gv(e.value.hardware.mem.used/e.value.hardware.mem.total*100)],title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:x},textStyle:{fontFamily:eu},series:[{type:"pie",radius:S,avoidLabelOverlap:!1,label:{show:!1,position:T},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.mem.used,name:"Used"},{value:e.value.hardware.mem.total-e.value.hardware.mem.used,name:"Free"}]}]}),B.setOption({color:[pv(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0),gv(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0)],title:{text:e.value.hardware.swap.total>0?`${(e.value.hardware.swap.used/e.value.hardware.swap.total*100).toFixed(1)}%`:"N/A",left:"center",top:"center",textStyle:x},textStyle:{fontFamily:eu},series:[{type:"pie",radius:S,avoidLabelOverlap:!1,label:{show:!1,position:T},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.swap.total>0?e.value.hardware.swap.used:0,name:"Used"},{value:e.value.hardware.swap.total>0?e.value.hardware.swap.total-e.value.hardware.swap.used:100,name:"Free"}]}]}),C.setOption({color:b,title:{textStyle:x},textStyle:{fontFamily:eu},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#0f7bc5",borderRadius:50,formatter:function(L){return L.axisDimension==="y"?dv(L.value*8,null,"bps"):Bh(L.value,!0)}}},formatter:function(L){let M=Bh(L[0].name,!0)+"
";return L.forEach(function(R){M+=R.marker+(R.seriesName=="Tx"?"↑":"↓")+": "+dv(R.value*8,null,"bps")+"
"}),M}},toolbox:{feature:{}},grid:{top:"25%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:s.map(L=>L[0]),axisLabel:{formatter:function(L){return Bh(L,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(L){return dv(L*8,null,"b")}}}],series:[{name:"Tx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(L=>L[1]),showSymbol:!1,lineStyle:{type:"dashed"}},{name:"Rx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(L=>L[2]),showSymbol:!1}]})}E(),Tu(()=>e.value,()=>{E()})}function m(){const w=document.querySelector(".host#"+e.value.meta.id);w&&Xut(w,{scale:2}).then(_=>{const B=_.toDataURL("image/png"),C=document.createElement("a");C.href=B,C.download=`screenshot-${e.value.meta.id}-${Bh(Date.now(),!1)}.png`,C.click()})}return Kd(()=>{y()}),(w,_)=>(wr(),cn("div",{class:"host",style:za([p.value,{"--hover-border-color":g.value}]),id:e.value.meta.id},[mt("div",Jut,Ce(e.value.meta.name),1),mt("div",qut,[mt("div",jut,[Ar(hit,{class:"outline-anime",color:u.value,spreadColor:f.value,"is-online":l.value},null,8,["color","spreadColor","is-online"]),_[0]||(_[0]=Tv("  ")),mt("div",{class:"uptime time-tag",style:za([{"margin-right":"5px"},{backgroundColor:f.value,borderColor:u.value}])},Ce(n.value),5),l.value?zB("",!0):(wr(),cn("div",tft," Offline for "+Ce(c.value),1))]),mt("div",{class:"meta1-right",style:{display:"flex","justify-content":"flex-end","align-items":"center"}},[mt("img",{onClick:m,src:fG,alt:"download",style:{width:"20px",height:"20px"}})])]),mt("div",eft,[mt("div",rft,[mt("img",{class:"icon",src:h.value.icon,alt:"system"},null,8,nft),mt("span",aft,Ce(h.value.name)+" "+Ce(e.value.meta.os.release)+" · "+Ce(e.value.meta.os.machine),1)]),mt("div",ift,[_[1]||(_[1]=mt("img",{class:"icon",src:cG,alt:"location"},null,-1)),mt("span",Aft,Ce(e.value.meta.location)+" · "+Ce(e.value.meta.timezone),1)]),mt("div",oft,[_[2]||(_[2]=mt("img",{class:"icon",src:hG,alt:"labels"},null,-1)),mt("span",null,[(wr(!0),cn(mr,null,a0(e.value.meta.labels,B=>(wr(),cn("span",{class:"label meta2-text",key:B},Ce(B),1))),128))])])]),_[8]||(_[8]=mt("hr",null,null,-1)),_[9]||(_[9]=mt("div",{class:"section-name"}," Hardware ",-1)),mt("div",sft,[mt("div",lft,[mt("div",{class:"chart",ref_key:"cpuChartRef",ref:a},null,512),_[3]||(_[3]=mt("div",{class:"hw-title"},"CPU",-1)),mt("div",uft,Ce(e.value.hardware.cpu.cores)+"C "+Ce(e.value.hardware.cpu.logics)+"T",1)]),mt("div",fft,[mt("div",{class:"chart",ref_key:"memoryChartRef",ref:i},null,512),_[4]||(_[4]=mt("div",{class:"hw-title"},"Mem",-1)),mt("div",cft,Ce(v.value),1)]),mt("div",hft,[mt("div",{class:"chart",ref_key:"swapChartRef",ref:A},null,512),_[5]||(_[5]=mt("div",{class:"hw-title"},"Swap",-1)),mt("div",vft,Ce(d.value),1)])]),_[10]||(_[10]=mt("hr",null,null,-1)),mt("div",dft,[_[6]||(_[6]=mt("div",{class:"section-name"}," Network ",-1)),mt("div",{class:"net-chart",ref_key:"netChartRef",ref:o},null,512)]),_[11]||(_[11]=mt("hr",null,null,-1)),mt("div",pft,[_[7]||(_[7]=mt("div",{class:"section-name"}," Storage ",-1)),(wr(!0),cn(mr,null,a0(e.value.hardware.disks,B=>(wr(),KB(Sit,{key:B.mountpoint,mountpoint:B.mountpoint,device:B.device,used:B.used,total:B.total,fstype:B.fstype},null,8,["mountpoint","device","used","total","fstype"]))),128))])],12,$ut))}}),yft=js(gft,[["__scopeId","data-v-1563fa25"]]),mft={class:"overview"},wft={class:"tabs",style:{display:"flex"}},Bft={key:0,class:"options"},_ft={class:"grid-container"},Cft=Eo({__name:"Home",setup(r){const t=Er({}),e=Er(0),n=Er(!1),a=Er(""),i=Er("name"),A=Er(!1),o=()=>{n.value=!n.value},s=v=>{a.value=v,i.value=v},l=be(()=>{const v=Date.now()/1e3;let d=0;for(const p of Object.values(t.value))v-p.meta.observed_atd[1].meta.name.localeCompare(p[1].meta.name)))}function f(v){return Object.fromEntries(Object.entries(v).sort((d,p)=>d[1].meta.uptime-p[1].meta.uptime))}function c(v){let d=v;return i.value==="name"?d=u(v):i.value==="uptime"?d=f(v):i.value==="memory"?d=Object.fromEntries(Object.entries(v).sort((p,g)=>p[1].hardware.mem.total-g[1].hardware.mem.total)):i.value==="network"&&(d=Object.fromEntries(Object.entries(v).sort((p,g)=>p[1].hardware.net.down+p[1].hardware.net.up-g[1].hardware.net.down-g[1].hardware.net.up))),A.value&&(d=Object.fromEntries(Object.entries(d).reverse())),d}const h=setInterval(async()=>{t.value=c(await vS())},1e3);return Kd(async()=>{t.value=c(await vS())}),NB(()=>{clearInterval(h)}),(v,d)=>(wr(),cn(mr,null,[mt("div",mft,[mt("h2",null,"Overview: "+Ce(l.value)+" Online "+Ce(e.value)+" Offline",1)]),mt("div",wft,[mt("button",{class:"button-a",onClick:o},"Sort by"),Ar(Q4,{name:"slide-fade"},{default:JL(()=>[n.value?(wr(),cn("div",Bft,[mt("button",{class:Fi({selected:a.value==="name"}),onClick:d[0]||(d[0]=()=>s("name"))},"Name",2),mt("button",{class:Fi({selected:a.value==="uptime"}),onClick:d[1]||(d[1]=()=>s("uptime"))},"Uptime",2),mt("button",{class:Fi({selected:a.value==="memory"}),onClick:d[2]||(d[2]=()=>s("memory"))},"Memory",2),mt("button",{class:Fi({selected:a.value==="network"}),onClick:d[3]||(d[3]=()=>s("network"))},"Network",2),mt("button",{class:Fi({selected:A.value}),onClick:d[4]||(d[4]=()=>A.value=!A.value),id:"reverse-button"},"Reverse",2)])):zB("",!0)]),_:1})]),mt("div",_ft,[(wr(!0),cn(mr,null,a0(t.value,(p,g)=>(wr(),KB(yft,{class:"grid-item",key:g,status:p},null,8,["status"]))),128))])],64))}}),Sft=js(Cft,[["__scopeId","data-v-bb2fd60a"]]),xft={};function bft(r,t){return" Test "}const Tft=js(xft,[["render",bft]]),Ift=[{path:"/",name:"主页",component:Sft},{path:"/test",name:"测试",component:Tft}],Fft=sG({history:HV("/"),routes:Ift}),Tk=nV(oV);Tk.use(Fft);Tk.mount("#app"); diff --git a/api/frontend/web/assets/index-DhV9f_LC.css b/api/frontend/web/assets/index-DhV9f_LC.css new file mode 100644 index 0000000..9cc6e7f --- /dev/null +++ b/api/frontend/web/assets/index-DhV9f_LC.css @@ -0,0 +1 @@ +:root{font-family:Josefin Sans,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#000;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--text-color-1: #000;--text-color-2: #5f5f5f}.dark{color:#fff;background-color:#000}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.logo[data-v-49c835b0]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-49c835b0]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-49c835b0]:hover{filter:drop-shadow(0 0 2em #42b883aa)}footer[data-v-49c835b0]{text-align:center;padding:1em;color:#666}a[data-v-49c835b0]{color:#36a7ec}.online-status[data-v-d33c36a0]{position:relative;width:15px;height:15px}.dot[data-v-d33c36a0]{width:100%;height:100%;border-radius:50%;z-index:1}.pulse[data-v-d33c36a0]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;animation:pulse-d33c36a0 1.5s infinite;z-index:0}@keyframes pulse-d33c36a0{0%{transform:scale(1);opacity:1}to{transform:scale(2);opacity:0}}.disk[data-v-6cc8290d]{margin-top:.75rem}.disk-total[data-v-6cc8290d]{height:.618rem;width:90%;border-radius:1rem;display:flex;align-items:center;justify-content:flex-start;overflow:hidden}.disk-used[data-v-6cc8290d]{height:100%;left:0;top:0;clip-path:inset(0 0 0 0 round 1rem)}.hover-text[data-v-6cc8290d]{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:center}.left-text[data-v-6cc8290d]{display:flex;justify-content:flex-start}.right-text[data-v-6cc8290d]{display:flex;justify-content:flex-end}.disk-text[data-v-6cc8290d]{font-size:16px;color:var(--text-color-2)}.percentage[data-v-6cc8290d]{font-size:14px;color:var(--text-color-2)}[data-v-1563fa25]:root{--liteyuki-color-1: #d0e9ff;--liteyuki-color-2: #a2d8f4;--hover-border-color: #ccc}.host[data-v-1563fa25]{padding:1rem;border:2px solid #ccc;border-radius:20px;flex-direction:column;justify-content:space-between;transition:border-color .3s ease}.host[data-v-1563fa25]:hover{border-color:var(--hover-border-color)}.meta-1 .outline-anime[data-v-1563fa25]{margin-right:.5em}.host-name[data-v-1563fa25]{text-align:center;font-size:1.5rem;font-weight:700}.meta-2[data-v-1563fa25]{margin-top:.5em}.meta-2 .meta2-text[data-v-1563fa25]{font-size:.9rem;color:var(--text-color-2)}.meta-2 .section[data-v-1563fa25]{margin-bottom:.5rem;justify-content:flex-start}.labels[data-v-1563fa25]{margin-top:.5em}.labels .label[data-v-1563fa25]{padding:.05rem .5rem;border:1px dashed;border-color:var(--text-color-1);border-radius:50px;margin-right:.5rem;background-color:#dfdfdf;color:var(--text-color-1);font-size:.8rem}.icon[data-v-1563fa25]{margin-right:.618rem;height:16px}.section[data-v-1563fa25]{display:flex;margin-right:10px;align-items:center}.time-tag[data-v-1563fa25]{padding:0 .5rem;font-size:.8rem;border-radius:50px;border:1px dashed;align-items:center}.charts-container .hw-info[data-v-1563fa25]{width:30%;align-items:center}.charts-container .hw-info .chart[data-v-1563fa25]{width:100%;aspect-ratio:1}.charts-container .hw-info .hw-title[data-v-1563fa25]{text-align:center;font-size:.9rem}.charts-container .hw-info .hw-detail[data-v-1563fa25]{text-align:center;font-size:.7rem}.section-name[data-v-1563fa25]{text-align:center;font-size:1rem;font-weight:700}.net .net-chart[data-v-1563fa25]{width:100%;aspect-ratio:2}.tabs[data-v-bb2fd60a]{margin-bottom:1rem}.button-a[data-v-bb2fd60a]{margin-left:10px}button[data-v-bb2fd60a]{margin:10px 10px 0 0;padding:.5rem;border-radius:50px;border:none;background:#36a7ec}#reverse-button[data-v-bb2fd60a]{background:#05c860}#reverse-button.selected[data-v-bb2fd60a],button.selected[data-v-bb2fd60a]{background:tomato}.overview[data-v-bb2fd60a]{display:flex;justify-content:center;padding:10px}.grid-container[data-v-bb2fd60a]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px;padding:10px}.options[data-v-bb2fd60a]{display:flex;gap:10px}.slide-fade-enter-active[data-v-bb2fd60a],.slide-fade-leave-active[data-v-bb2fd60a]{transition:all .5s ease}.slide-fade-enter-from[data-v-bb2fd60a],.slide-fade-leave-to[data-v-bb2fd60a]{transform:translate(-100%);opacity:0} diff --git a/api/frontend/web/assets/index-p74jbBOU.css b/api/frontend/web/assets/index-p74jbBOU.css deleted file mode 100644 index 6b98086..0000000 --- a/api/frontend/web/assets/index-p74jbBOU.css +++ /dev/null @@ -1 +0,0 @@ -:root{font-family:Josefin Sans,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#000;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--text-color-1: #000;--text-color-2: #5f5f5f}.dark{color:#fff;background-color:#000}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.logo[data-v-49c835b0]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-49c835b0]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-49c835b0]:hover{filter:drop-shadow(0 0 2em #42b883aa)}footer[data-v-49c835b0]{text-align:center;padding:1em;color:#666}a[data-v-49c835b0]{color:#36a7ec}.online-status[data-v-311f3e51]{position:relative;width:15px;height:15px}.dot[data-v-311f3e51]{width:100%;height:100%;border-radius:50%;z-index:1}.pulse[data-v-311f3e51]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;animation:pulse-311f3e51 1.5s infinite;z-index:0}@keyframes pulse-311f3e51{0%{transform:scale(1);opacity:1}to{transform:scale(2);opacity:0}}.disk[data-v-5ea12808]{margin-top:.75rem}.disk-total[data-v-5ea12808]{height:.618rem;width:90%;border-radius:1rem;display:flex;align-items:center;justify-content:flex-start;overflow:hidden}.disk-used[data-v-5ea12808]{height:100%;left:0;top:0;clip-path:inset(0 0 0 0 round 1rem)}.hover-text[data-v-5ea12808]{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:center}.left-text[data-v-5ea12808]{display:flex;justify-content:flex-start}.right-text[data-v-5ea12808]{display:flex;justify-content:flex-end}.disk-text[data-v-5ea12808]{font-size:16px;color:var(--text-color-2)}.percentage[data-v-5ea12808]{font-size:14px;color:var(--text-color-2)}[data-v-53661ee8]:root{--liteyuki-color-1: #d0e9ff;--liteyuki-color-2: #a2d8f4;--hover-border-color: #ccc}.host[data-v-53661ee8]{padding:1rem;border:2px solid #ccc;border-radius:20px;flex-direction:column;justify-content:space-between;transition:border-color .3s ease}.host[data-v-53661ee8]:hover{border-color:var(--hover-border-color)}.meta-1 .outline-anime[data-v-53661ee8]{margin-right:.5em}.host-name[data-v-53661ee8]{text-align:center;font-size:1.5rem;font-weight:700}.meta-2[data-v-53661ee8]{margin-top:.5em}.meta-2 .meta2-text[data-v-53661ee8]{font-size:.9rem;color:var(--text-color-2)}.meta-2 .section[data-v-53661ee8]{margin-bottom:.5rem;justify-content:flex-start}.labels[data-v-53661ee8]{margin-top:.5em}.labels .label[data-v-53661ee8]{padding:.05rem .5rem;border:1px dashed;border-color:var(--text-color-1);border-radius:50px;margin-right:.5rem;background-color:#dfdfdf;color:var(--text-color-1);font-size:.8rem}.icon[data-v-53661ee8]{margin-right:.618rem;height:16px}.section[data-v-53661ee8]{display:flex;margin-right:10px;align-items:center}.time-tag[data-v-53661ee8]{padding:0 .5rem;font-size:.8rem;border-radius:50px;border:1px dashed;align-items:center}.charts-container .hw-info[data-v-53661ee8]{width:30%;align-items:center}.charts-container .hw-info .chart[data-v-53661ee8]{width:100%;aspect-ratio:1}.charts-container .hw-info .hw-title[data-v-53661ee8]{text-align:center;font-size:.9rem}.charts-container .hw-info .hw-detail[data-v-53661ee8]{text-align:center;font-size:.7rem}.section-name[data-v-53661ee8]{text-align:center;font-size:1rem;font-weight:700}.net .net-chart[data-v-53661ee8]{width:100%;aspect-ratio:2}.overview[data-v-fc5340da]{display:flex;justify-content:center;padding:10px}.grid-container[data-v-fc5340da]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px;padding:10px} diff --git a/api/frontend/web/index.html b/api/frontend/web/index.html index 0547bce..8f9c3cf 100644 --- a/api/frontend/web/index.html +++ b/api/frontend/web/index.html @@ -7,8 +7,8 @@ Server Status - - + +