index-D9YDosvz.js 1.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function e(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=e(n);fetch(n.href,i)}})();/**
  2. * @vue/shared v3.5.13
  3. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  4. * @license MIT
  5. **//*! #__NO_SIDE_EFFECTS__ */function S0(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const Se={},Vs=[],rn=()=>{},o4=()=>!1,Vd=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),M0=r=>r.startsWith("onUpdate:"),lr=Object.assign,C0=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},s4=Object.prototype.hasOwnProperty,he=(r,t)=>s4.call(r,t),Ot=Array.isArray,Gs=r=>Tc(r)==="[object Map]",vl=r=>Tc(r)==="[object Set]",J_=r=>Tc(r)==="[object Date]",jt=r=>typeof r=="function",Be=r=>typeof r=="string",sn=r=>typeof r=="symbol",Ae=r=>r!==null&&typeof r=="object",YI=r=>(Ae(r)||jt(r))&&jt(r.then)&&jt(r.catch),UI=Object.prototype.toString,Tc=r=>UI.call(r),l4=r=>Tc(r).slice(8,-1),jI=r=>Tc(r)==="[object Object]",I0=r=>Be(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,xu=S0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gd=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},u4=/-(\w)/g,fa=Gd(r=>r.replace(u4,(t,e)=>e?e.toUpperCase():"")),c4=/\B([A-Z])/g,Ko=Gd(r=>r.replace(c4,"-$1").toLowerCase()),Fd=Gd(r=>r.charAt(0).toUpperCase()+r.slice(1)),Bh=Gd(r=>r?`on${Fd(r)}`:""),wi=(r,t)=>!Object.is(r,t),sv=(r,...t)=>{for(let e=0;e<r.length;e++)r[e](...t)},XI=(r,t,e,a=!1)=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:a,value:e})},Nv=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let Q_;const Hd=()=>Q_||(Q_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ac(r){if(Ot(r)){const t={};for(let e=0;e<r.length;e++){const a=r[e],n=Be(a)?h4(a):Ac(a);if(n)for(const i in n)t[i]=n[i]}return t}else if(Be(r)||Ae(r))return r}const f4=/;(?![^(]*\))/g,v4=/:([^]+)/,d4=/\/\*[^]*?\*\//g;function h4(r){const t={};return r.replace(d4,"").split(f4).forEach(e=>{if(e){const a=e.split(v4);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function ie(r){let t="";if(Be(r))t=r;else if(Ot(r))for(let e=0;e<r.length;e++){const a=ie(r[e]);a&&(t+=a+" ")}else if(Ae(r))for(const e in r)r[e]&&(t+=e+" ");return t.trim()}const p4="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",g4=S0(p4);function qI(r){return!!r||r===""}function m4(r,t){if(r.length!==t.length)return!1;let e=!0;for(let a=0;e&&a<r.length;a++)e=Dc(r[a],t[a]);return e}function Dc(r,t){if(r===t)return!0;let e=J_(r),a=J_(t);if(e||a)return e&&a?r.getTime()===t.getTime():!1;if(e=sn(r),a=sn(t),e||a)return r===t;if(e=Ot(r),a=Ot(t),e||a)return e&&a?m4(r,t):!1;if(e=Ae(r),a=Ae(t),e||a){if(!e||!a)return!1;const n=Object.keys(r).length,i=Object.keys(t).length;if(n!==i)return!1;for(const o in r){const s=r.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Dc(r[o],t[o]))return!1}}return String(r)===String(t)}function T0(r,t){return r.findIndex(e=>Dc(e,t))}const KI=r=>!!(r&&r.__v_isRef===!0),at=r=>Be(r)?r:r==null?"":Ot(r)||Ae(r)&&(r.toString===UI||!jt(r.toString))?KI(r)?at(r.value):JSON.stringify(r,JI,2):String(r),JI=(r,t)=>KI(t)?JI(r,t.value):Gs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[a,n],i)=>(e[Vh(a,i)+" =>"]=n,e),{})}:vl(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Vh(e))}:sn(t)?Vh(t):Ae(t)&&!Ot(t)&&!jI(t)?String(t):t,Vh=(r,t="")=>{var e;return sn(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/**
  6. * @vue/reactivity v3.5.13
  7. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  8. * @license MIT
  9. **/let Fr;class y4{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Fr,!t&&Fr&&(this.index=(Fr.scopes||(Fr.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;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){const e=Fr;try{return Fr=this,t()}finally{Fr=e}}}on(){Fr=this}off(){Fr=this.parent}stop(t){if(this._active){this._active=!1;let e,a;for(e=0,a=this.effects.length;e<a;e++)this.effects[e].stop();for(this.effects.length=0,e=0,a=this.cleanups.length;e<a;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){for(e=0,a=this.scopes.length;e<a;e++)this.scopes[e].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}}function _4(){return Fr}let Te;const Gh=new WeakSet;class QI{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Fr&&Fr.active&&Fr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Gh.has(this)&&(Gh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||eT(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,tb(this),rT(this);const t=Te,e=Sa;Te=this,Sa=!0;try{return this.fn()}finally{aT(this),Te=t,Sa=e,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)L0(t);this.deps=this.depsTail=void 0,tb(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Gh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){_m(this)&&this.run()}get dirty(){return _m(this)}}let tT=0,wu,Su;function eT(r,t=!1){if(r.flags|=8,t){r.next=Su,Su=r;return}r.next=wu,wu=r}function A0(){tT++}function D0(){if(--tT>0)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(;wu;){let t=wu;for(wu=void 0;t;){const e=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){r||(r=a)}t=e}}if(r)throw r}function rT(r){for(let t=r.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function aT(r){let t,e=r.depsTail,a=e;for(;a;){const n=a.prevDep;a.version===-1?(a===e&&(e=n),L0(a),b4(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=n}r.deps=t,r.depsTail=e}function _m(r){for(let t=r.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(nT(t.dep.computed)||t.dep.version!==t.version))return!0;return!!r._dirty}function nT(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===Hu))return;r.globalVersion=Hu;const t=r.dep;if(r.flags|=2,t.version>0&&!r.isSSR&&r.deps&&!_m(r)){r.flags&=-3;return}const e=Te,a=Sa;Te=r,Sa=!0;try{rT(r);const n=r.fn(r._value);(t.version===0||wi(n,r._value))&&(r._value=n,t.version++)}catch(n){throw t.version++,n}finally{Te=e,Sa=a,aT(r),r.flags&=-3}}function L0(r,t=!1){const{dep:e,prevSub:a,nextSub:n}=r;if(a&&(a.nextSub=n,r.prevSub=void 0),n&&(n.prevSub=a,r.nextSub=void 0),e.subs===r&&(e.subs=a,!a&&e.computed)){e.computed.flags&=-5;for(let i=e.computed.deps;i;i=i.nextDep)L0(i,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function b4(r){const{prevDep:t,nextDep:e}=r;t&&(t.nextDep=e,r.prevDep=void 0),e&&(e.prevDep=t,r.nextDep=void 0)}let Sa=!0;const iT=[];function Ni(){iT.push(Sa),Sa=!1}function $i(){const r=iT.pop();Sa=r===void 0?!0:r}function tb(r){const{cleanup:t}=r;if(r.cleanup=void 0,t){const e=Te;Te=void 0;try{t()}finally{Te=e}}}let Hu=0;class x4{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 k0{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(!Te||!Sa||Te===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==Te)e=this.activeLink=new x4(Te,this),Te.deps?(e.prevDep=Te.depsTail,Te.depsTail.nextDep=e,Te.depsTail=e):Te.deps=Te.depsTail=e,oT(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const a=e.nextDep;a.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=a),e.prevDep=Te.depsTail,e.nextDep=void 0,Te.depsTail.nextDep=e,Te.depsTail=e,Te.deps===e&&(Te.deps=a)}return e}trigger(t){this.version++,Hu++,this.notify(t)}notify(t){A0();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{D0()}}}function oT(r){if(r.dep.sc++,r.sub.flags&4){const t=r.dep.computed;if(t&&!r.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)oT(a)}const e=r.dep.subs;e!==r&&(r.prevSub=e,e&&(e.nextSub=r)),r.dep.subs=r}}const bm=new WeakMap,Po=Symbol(""),xm=Symbol(""),Wu=Symbol("");function nr(r,t,e){if(Sa&&Te){let a=bm.get(r);a||bm.set(r,a=new Map);let n=a.get(e);n||(a.set(e,n=new k0),n.map=a,n.key=e),n.track()}}function In(r,t,e,a,n,i){const o=bm.get(r);if(!o){Hu++;return}const s=l=>{l&&l.trigger()};if(A0(),t==="clear")o.forEach(s);else{const l=Ot(r),u=l&&I0(e);if(l&&e==="length"){const c=Number(a);o.forEach((f,v)=>{(v==="length"||v===Wu||!sn(v)&&v>=c)&&s(f)})}else switch((e!==void 0||o.has(void 0))&&s(o.get(e)),u&&s(o.get(Wu)),t){case"add":l?u&&s(o.get("length")):(s(o.get(Po)),Gs(r)&&s(o.get(xm)));break;case"delete":l||(s(o.get(Po)),Gs(r)&&s(o.get(xm)));break;case"set":Gs(r)&&s(o.get(Po));break}}D0()}function ss(r){const t=de(r);return t===r?t:(nr(t,"iterate",Wu),ua(r)?t:t.map(ir))}function Wd(r){return nr(r=de(r),"iterate",Wu),r}const w4={__proto__:null,[Symbol.iterator](){return Fh(this,Symbol.iterator,ir)},concat(...r){return ss(this).concat(...r.map(t=>Ot(t)?ss(t):t))},entries(){return Fh(this,"entries",r=>(r[1]=ir(r[1]),r))},every(r,t){return yn(this,"every",r,t,void 0,arguments)},filter(r,t){return yn(this,"filter",r,t,e=>e.map(ir),arguments)},find(r,t){return yn(this,"find",r,t,ir,arguments)},findIndex(r,t){return yn(this,"findIndex",r,t,void 0,arguments)},findLast(r,t){return yn(this,"findLast",r,t,ir,arguments)},findLastIndex(r,t){return yn(this,"findLastIndex",r,t,void 0,arguments)},forEach(r,t){return yn(this,"forEach",r,t,void 0,arguments)},includes(...r){return Hh(this,"includes",r)},indexOf(...r){return Hh(this,"indexOf",r)},join(r){return ss(this).join(r)},lastIndexOf(...r){return Hh(this,"lastIndexOf",r)},map(r,t){return yn(this,"map",r,t,void 0,arguments)},pop(){return Ll(this,"pop")},push(...r){return Ll(this,"push",r)},reduce(r,...t){return eb(this,"reduce",r,t)},reduceRight(r,...t){return eb(this,"reduceRight",r,t)},shift(){return Ll(this,"shift")},some(r,t){return yn(this,"some",r,t,void 0,arguments)},splice(...r){return Ll(this,"splice",r)},toReversed(){return ss(this).toReversed()},toSorted(r){return ss(this).toSorted(r)},toSpliced(...r){return ss(this).toSpliced(...r)},unshift(...r){return Ll(this,"unshift",r)},values(){return Fh(this,"values",ir)}};function Fh(r,t,e){const a=Wd(r),n=a[t]();return a!==r&&!ua(r)&&(n._next=n.next,n.next=()=>{const i=n._next();return i.value&&(i.value=e(i.value)),i}),n}const S4=Array.prototype;function yn(r,t,e,a,n,i){const o=Wd(r),s=o!==r&&!ua(r),l=o[t];if(l!==S4[t]){const f=l.apply(r,i);return s?ir(f):f}let u=e;o!==r&&(s?u=function(f,v){return e.call(this,ir(f),v,r)}:e.length>2&&(u=function(f,v){return e.call(this,f,v,r)}));const c=l.call(o,u,a);return s&&n?n(c):c}function eb(r,t,e,a){const n=Wd(r);let i=e;return n!==r&&(ua(r)?e.length>3&&(i=function(o,s,l){return e.call(this,o,s,l,r)}):i=function(o,s,l){return e.call(this,o,ir(s),l,r)}),n[t](i,...a)}function Hh(r,t,e){const a=de(r);nr(a,"iterate",Wu);const n=a[t](...e);return(n===-1||n===!1)&&E0(e[0])?(e[0]=de(e[0]),a[t](...e)):n}function Ll(r,t,e=[]){Ni(),A0();const a=de(r)[t].apply(r,e);return D0(),$i(),a}const M4=S0("__proto__,__v_isRef,__isVue"),sT=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(sn));function C4(r){sn(r)||(r=String(r));const t=de(this);return nr(t,"has",r),t.hasOwnProperty(r)}class lT{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,a){if(e==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!n;if(e==="__v_isReadonly")return n;if(e==="__v_isShallow")return i;if(e==="__v_raw")return a===(n?i?N4:vT:i?fT:cT).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const o=Ot(t);if(!n){let l;if(o&&(l=w4[e]))return l;if(e==="hasOwnProperty")return C4}const s=Reflect.get(t,e,sr(t)?t:a);return(sn(e)?sT.has(e):M4(e))||(n||nr(t,"get",e),i)?s:sr(s)?o&&I0(e)?s:s.value:Ae(s)?n?hT(s):Zd(s):s}}class uT extends lT{constructor(t=!1){super(!1,t)}set(t,e,a,n){let i=t[e];if(!this._isShallow){const l=Fo(i);if(!ua(a)&&!Fo(a)&&(i=de(i),a=de(a)),!Ot(t)&&sr(i)&&!sr(a))return l?!1:(i.value=a,!0)}const o=Ot(t)&&I0(e)?Number(e)<t.length:he(t,e),s=Reflect.set(t,e,a,sr(t)?t:n);return t===de(n)&&(o?wi(a,i)&&In(t,"set",e,a):In(t,"add",e,a)),s}deleteProperty(t,e){const a=he(t,e);t[e];const n=Reflect.deleteProperty(t,e);return n&&a&&In(t,"delete",e,void 0),n}has(t,e){const a=Reflect.has(t,e);return(!sn(e)||!sT.has(e))&&nr(t,"has",e),a}ownKeys(t){return nr(t,"iterate",Ot(t)?"length":Po),Reflect.ownKeys(t)}}class I4 extends lT{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const T4=new uT,A4=new I4,D4=new uT(!0);const wm=r=>r,tf=r=>Reflect.getPrototypeOf(r);function L4(r,t,e){return function(...a){const n=this.__v_raw,i=de(n),o=Gs(i),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=n[r](...a),c=e?wm:t?Sm:ir;return!t&&nr(i,"iterate",l?xm:Po),{next(){const{value:f,done:v}=u.next();return v?{value:f,done:v}:{value:s?[c(f[0]),c(f[1])]:c(f),done:v}},[Symbol.iterator](){return this}}}}function ef(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function k4(r,t){const e={get(n){const i=this.__v_raw,o=de(i),s=de(n);r||(wi(n,s)&&nr(o,"get",n),nr(o,"get",s));const{has:l}=tf(o),u=t?wm:r?Sm:ir;if(l.call(o,n))return u(i.get(n));if(l.call(o,s))return u(i.get(s));i!==o&&i.get(n)},get size(){const n=this.__v_raw;return!r&&nr(de(n),"iterate",Po),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,o=de(i),s=de(n);return r||(wi(n,s)&&nr(o,"has",n),nr(o,"has",s)),n===s?i.has(n):i.has(n)||i.has(s)},forEach(n,i){const o=this,s=o.__v_raw,l=de(s),u=t?wm:r?Sm:ir;return!r&&nr(l,"iterate",Po),s.forEach((c,f)=>n.call(i,u(c),u(f),o))}};return lr(e,r?{add:ef("add"),set:ef("set"),delete:ef("delete"),clear:ef("clear")}:{add(n){!t&&!ua(n)&&!Fo(n)&&(n=de(n));const i=de(this);return tf(i).has.call(i,n)||(i.add(n),In(i,"add",n,n)),this},set(n,i){!t&&!ua(i)&&!Fo(i)&&(i=de(i));const o=de(this),{has:s,get:l}=tf(o);let u=s.call(o,n);u||(n=de(n),u=s.call(o,n));const c=l.call(o,n);return o.set(n,i),u?wi(i,c)&&In(o,"set",n,i):In(o,"add",n,i),this},delete(n){const i=de(this),{has:o,get:s}=tf(i);let l=o.call(i,n);l||(n=de(n),l=o.call(i,n)),s&&s.call(i,n);const u=i.delete(n);return l&&In(i,"delete",n,void 0),u},clear(){const n=de(this),i=n.size!==0,o=n.clear();return i&&In(n,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{e[n]=L4(n,r,t)}),e}function P0(r,t){const e=k4(r,t);return(a,n,i)=>n==="__v_isReactive"?!r:n==="__v_isReadonly"?r:n==="__v_raw"?a:Reflect.get(he(e,n)&&n in a?e:a,n,i)}const P4={get:P0(!1,!1)},R4={get:P0(!1,!0)},E4={get:P0(!0,!1)};const cT=new WeakMap,fT=new WeakMap,vT=new WeakMap,N4=new WeakMap;function $4(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function O4(r){return r.__v_skip||!Object.isExtensible(r)?0:$4(l4(r))}function Zd(r){return Fo(r)?r:R0(r,!1,T4,P4,cT)}function dT(r){return R0(r,!1,D4,R4,fT)}function hT(r){return R0(r,!0,A4,E4,vT)}function R0(r,t,e,a,n){if(!Ae(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const i=n.get(r);if(i)return i;const o=O4(r);if(o===0)return r;const s=new Proxy(r,o===2?a:e);return n.set(r,s),s}function Fs(r){return Fo(r)?Fs(r.__v_raw):!!(r&&r.__v_isReactive)}function Fo(r){return!!(r&&r.__v_isReadonly)}function ua(r){return!!(r&&r.__v_isShallow)}function E0(r){return r?!!r.__v_raw:!1}function de(r){const t=r&&r.__v_raw;return t?de(t):r}function z4(r){return!he(r,"__v_skip")&&Object.isExtensible(r)&&XI(r,"__v_skip",!0),r}const ir=r=>Ae(r)?Zd(r):r,Sm=r=>Ae(r)?hT(r):r;function sr(r){return r?r.__v_isRef===!0:!1}function nt(r){return pT(r,!1)}function B4(r){return pT(r,!0)}function pT(r,t){return sr(r)?r:new V4(r,t)}class V4{constructor(t,e){this.dep=new k0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:de(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,a=this.__v_isShallow||ua(t)||Fo(t);t=a?t:de(t),wi(t,e)&&(this._rawValue=t,this._value=a?t:ir(t),this.dep.trigger())}}function P(r){return sr(r)?r.value:r}const G4={get:(r,t,e)=>t==="__v_raw"?r:P(Reflect.get(r,t,e)),set:(r,t,e,a)=>{const n=r[t];return sr(n)&&!sr(e)?(n.value=e,!0):Reflect.set(r,t,e,a)}};function gT(r){return Fs(r)?r:new Proxy(r,G4)}class F4{constructor(t,e,a){this.fn=t,this.setter=e,this._value=void 0,this.dep=new k0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Hu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&Te!==this)return eT(this,!0),!0}get value(){const t=this.dep.track();return nT(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function H4(r,t,e=!1){let a,n;return jt(r)?a=r:(a=r.get,n=r.set),new F4(a,n,e)}const rf={},$v=new WeakMap;let fo;function W4(r,t=!1,e=fo){if(e){let a=$v.get(e);a||$v.set(e,a=[]),a.push(r)}}function Z4(r,t,e=Se){const{immediate:a,deep:n,once:i,scheduler:o,augmentJob:s,call:l}=e,u=x=>n?x:ua(x)||n===!1||n===0?Tn(x,1):Tn(x);let c,f,v,d,h=!1,g=!1;if(sr(r)?(f=()=>r.value,h=ua(r)):Fs(r)?(f=()=>u(r),h=!0):Ot(r)?(g=!0,h=r.some(x=>Fs(x)||ua(x)),f=()=>r.map(x=>{if(sr(x))return x.value;if(Fs(x))return u(x);if(jt(x))return l?l(x,2):x()})):jt(r)?t?f=l?()=>l(r,2):r:f=()=>{if(v){Ni();try{v()}finally{$i()}}const x=fo;fo=c;try{return l?l(r,3,[d]):r(d)}finally{fo=x}}:f=rn,t&&n){const x=f,w=n===!0?1/0:n;f=()=>Tn(x(),w)}const m=_4(),y=()=>{c.stop(),m&&m.active&&C0(m.effects,c)};if(i&&t){const x=t;t=(...w)=>{x(...w),y()}}let _=g?new Array(r.length).fill(rf):rf;const b=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const w=c.run();if(n||h||(g?w.some((S,M)=>wi(S,_[M])):wi(w,_))){v&&v();const S=fo;fo=c;try{const M=[w,_===rf?void 0:g&&_[0]===rf?[]:_,d];l?l(t,3,M):t(...M),_=w}finally{fo=S}}}else c.run()};return s&&s(b),c=new QI(f),c.scheduler=o?()=>o(b,!1):b,d=x=>W4(x,!1,c),v=c.onStop=()=>{const x=$v.get(c);if(x){if(l)l(x,4);else for(const w of x)w();$v.delete(c)}},t?a?b(!0):_=c.run():o?o(b.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function Tn(r,t=1/0,e){if(t<=0||!Ae(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),t--,sr(r))Tn(r.value,t,e);else if(Ot(r))for(let a=0;a<r.length;a++)Tn(r[a],t,e);else if(vl(r)||Gs(r))r.forEach(a=>{Tn(a,t,e)});else if(jI(r)){for(const a in r)Tn(r[a],t,e);for(const a of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,a)&&Tn(r[a],t,e)}return r}/**
  10. * @vue/runtime-core v3.5.13
  11. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  12. * @license MIT
  13. **/function Lc(r,t,e,a){try{return a?r(...a):r()}catch(n){Yd(n,t,e)}}function ln(r,t,e,a){if(jt(r)){const n=Lc(r,t,e,a);return n&&YI(n)&&n.catch(i=>{Yd(i,t,e)}),n}if(Ot(r)){const n=[];for(let i=0;i<r.length;i++)n.push(ln(r[i],t,e,a));return n}}function Yd(r,t,e,a=!0){const n=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Se;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${e}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](r,l,u)===!1)return}s=s.parent}if(i){Ni(),Lc(i,null,10,[r,l,u]),$i();return}}Y4(r,e,n,a,o)}function Y4(r,t,e,a=!0,n=!1){if(n)throw r;console.error(r)}const yr=[];let Ua=-1;const Hs=[];let si=null,Ls=0;const mT=Promise.resolve();let Ov=null;function N0(r){const t=Ov||mT;return r?t.then(this?r.bind(this):r):t}function U4(r){let t=Ua+1,e=yr.length;for(;t<e;){const a=t+e>>>1,n=yr[a],i=Zu(n);i<r||i===r&&n.flags&2?t=a+1:e=a}return t}function $0(r){if(!(r.flags&1)){const t=Zu(r),e=yr[yr.length-1];!e||!(r.flags&2)&&t>=Zu(e)?yr.push(r):yr.splice(U4(t),0,r),r.flags|=1,yT()}}function yT(){Ov||(Ov=mT.then(bT))}function j4(r){Ot(r)?Hs.push(...r):si&&r.id===-1?si.splice(Ls+1,0,r):r.flags&1||(Hs.push(r),r.flags|=1),yT()}function rb(r,t,e=Ua+1){for(;e<yr.length;e++){const a=yr[e];if(a&&a.flags&2){if(r&&a.id!==r.uid)continue;yr.splice(e,1),e--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function _T(r){if(Hs.length){const t=[...new Set(Hs)].sort((e,a)=>Zu(e)-Zu(a));if(Hs.length=0,si){si.push(...t);return}for(si=t,Ls=0;Ls<si.length;Ls++){const e=si[Ls];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}si=null,Ls=0}}const Zu=r=>r.id==null?r.flags&2?-1:1/0:r.id;function bT(r){try{for(Ua=0;Ua<yr.length;Ua++){const t=yr[Ua];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Lc(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ua<yr.length;Ua++){const t=yr[Ua];t&&(t.flags&=-2)}Ua=-1,yr.length=0,_T(),Ov=null,(yr.length||Hs.length)&&bT()}}let Hr=null,xT=null;function zv(r){const t=Hr;return Hr=r,xT=r&&r.type.__scopeId||null,t}function wT(r,t=Hr,e){if(!t||r._n)return r;const a=(...n)=>{a._d&&vb(-1);const i=zv(t);let o;try{o=r(...n)}finally{zv(i),a._d&&vb(1)}return o};return a._n=!0,a._c=!0,a._d=!0,a}function hr(r,t){if(Hr===null)return r;const e=qd(Hr),a=r.dirs||(r.dirs=[]);for(let n=0;n<t.length;n++){let[i,o,s,l=Se]=t[n];i&&(jt(i)&&(i={mounted:i,updated:i}),i.deep&&Tn(o),a.push({dir:i,instance:e,value:o,oldValue:void 0,arg:s,modifiers:l}))}return r}function Bi(r,t,e,a){const n=r.dirs,i=t&&t.dirs;for(let o=0;o<n.length;o++){const s=n[o];i&&(s.oldValue=i[o].value);let l=s.dir[a];l&&(Ni(),ln(l,e,8,[r.el,s,r,t]),$i())}}const X4=Symbol("_vte"),q4=r=>r.__isTeleport;function O0(r,t){r.shapeFlag&6&&r.component?(r.transition=t,O0(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 ST(r,t){return jt(r)?lr({name:r.name},t,{setup:r}):r}function MT(r){r.ids=[r.ids[0]+r.ids[2]+++"-",0,0]}function Bv(r,t,e,a,n=!1){if(Ot(r)){r.forEach((h,g)=>Bv(h,t&&(Ot(t)?t[g]:t),e,a,n));return}if(Mu(a)&&!n){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Bv(r,t,e,a.component.subTree);return}const i=a.shapeFlag&4?qd(a.component):a.el,o=n?null:i,{i:s,r:l}=r,u=t&&t.r,c=s.refs===Se?s.refs={}:s.refs,f=s.setupState,v=de(f),d=f===Se?()=>!1:h=>he(v,h);if(u!=null&&u!==l&&(Be(u)?(c[u]=null,d(u)&&(f[u]=null)):sr(u)&&(u.value=null)),jt(l))Lc(l,s,12,[o,c]);else{const h=Be(l),g=sr(l);if(h||g){const m=()=>{if(r.f){const y=h?d(l)?f[l]:c[l]:l.value;n?Ot(y)&&C0(y,i):Ot(y)?y.includes(i)||y.push(i):h?(c[l]=[i],d(l)&&(f[l]=c[l])):(l.value=[i],r.k&&(c[r.k]=l.value))}else h?(c[l]=o,d(l)&&(f[l]=o)):g&&(l.value=o,r.k&&(c[r.k]=o))};o?(m.id=-1,Gr(m,e)):m()}}}Hd().requestIdleCallback;Hd().cancelIdleCallback;const Mu=r=>!!r.type.__asyncLoader,CT=r=>r.type.__isKeepAlive;function K4(r,t){IT(r,"a",t)}function J4(r,t){IT(r,"da",t)}function IT(r,t,e=or){const a=r.__wdc||(r.__wdc=()=>{let n=e;for(;n;){if(n.isDeactivated)return;n=n.parent}return r()});if(Ud(t,a,e),e){let n=e.parent;for(;n&&n.parent;)CT(n.parent.vnode)&&Q4(a,t,e,n),n=n.parent}}function Q4(r,t,e,a){const n=Ud(t,r,a,!0);z0(()=>{C0(a[t],n)},e)}function Ud(r,t,e=or,a=!1){if(e){const n=e[r]||(e[r]=[]),i=t.__weh||(t.__weh=(...o)=>{Ni();const s=kc(e),l=ln(t,e,r,o);return s(),$i(),l});return a?n.unshift(i):n.push(i),i}}const Zn=r=>(t,e=or)=>{(!Uu||r==="sp")&&Ud(r,(...a)=>t(...a),e)},tR=Zn("bm"),TT=Zn("m"),eR=Zn("bu"),rR=Zn("u"),aR=Zn("bum"),z0=Zn("um"),nR=Zn("sp"),iR=Zn("rtg"),oR=Zn("rtc");function sR(r,t=or){Ud("ec",r,t)}const lR="components";function AT(r,t){return cR(lR,r,!0,t)||r}const uR=Symbol.for("v-ndc");function cR(r,t,e=!0,a=!1){const n=Hr||or;if(n){const i=n.type;{const s=qR(i,!1);if(s&&(s===t||s===fa(t)||s===Fd(fa(t))))return i}const o=ab(n[r]||i[r],t)||ab(n.appContext[r],t);return!o&&a?i:o}}function ab(r,t){return r&&(r[t]||r[fa(t)]||r[Fd(fa(t))])}function re(r,t,e,a){let n;const i=e,o=Ot(r);if(o||Be(r)){const s=o&&Fs(r);let l=!1;s&&(l=!ua(r),r=Wd(r)),n=new Array(r.length);for(let u=0,c=r.length;u<c;u++)n[u]=t(l?ir(r[u]):r[u],u,void 0,i)}else if(typeof r=="number"){n=new Array(r);for(let s=0;s<r;s++)n[s]=t(s+1,s,void 0,i)}else if(Ae(r))if(r[Symbol.iterator])n=Array.from(r,(s,l)=>t(s,l,void 0,i));else{const s=Object.keys(r);n=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];n[l]=t(r[c],c,l,i)}}else n=[];return n}const Mm=r=>r?XT(r)?qd(r):Mm(r.parent):null,Cu=lr(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=>Mm(r.parent),$root:r=>Mm(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>LT(r),$forceUpdate:r=>r.f||(r.f=()=>{$0(r.update)}),$nextTick:r=>r.n||(r.n=N0.bind(r.proxy)),$watch:r=>kR.bind(r)}),Wh=(r,t)=>r!==Se&&!r.__isScriptSetup&&he(r,t),fR={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:a,data:n,props:i,accessCache:o,type:s,appContext:l}=r;let u;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return a[t];case 2:return n[t];case 4:return e[t];case 3:return i[t]}else{if(Wh(a,t))return o[t]=1,a[t];if(n!==Se&&he(n,t))return o[t]=2,n[t];if((u=r.propsOptions[0])&&he(u,t))return o[t]=3,i[t];if(e!==Se&&he(e,t))return o[t]=4,e[t];Cm&&(o[t]=0)}}const c=Cu[t];let f,v;if(c)return t==="$attrs"&&nr(r.attrs,"get",""),c(r);if((f=s.__cssModules)&&(f=f[t]))return f;if(e!==Se&&he(e,t))return o[t]=4,e[t];if(v=l.config.globalProperties,he(v,t))return v[t]},set({_:r},t,e){const{data:a,setupState:n,ctx:i}=r;return Wh(n,t)?(n[t]=e,!0):a!==Se&&he(a,t)?(a[t]=e,!0):he(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(i[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:a,appContext:n,propsOptions:i}},o){let s;return!!e[o]||r!==Se&&he(r,o)||Wh(t,o)||(s=i[0])&&he(s,o)||he(a,o)||he(Cu,o)||he(n.config.globalProperties,o)},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:he(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function nb(r){return Ot(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}let Cm=!0;function vR(r){const t=LT(r),e=r.proxy,a=r.ctx;Cm=!1,t.beforeCreate&&ib(t.beforeCreate,r,"bc");const{data:n,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:v,beforeUpdate:d,updated:h,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:_,destroyed:b,unmounted:x,render:w,renderTracked:S,renderTriggered:M,errorCaptured:C,serverPrefetch:I,expose:T,inheritAttrs:D,components:E,directives:R,filters:k}=t;if(u&&dR(u,a,null),o)for(const V in o){const B=o[V];jt(B)&&(a[V]=B.bind(e))}if(n){const V=n.call(e,e);Ae(V)&&(r.data=Zd(V))}if(Cm=!0,i)for(const V in i){const B=i[V],Z=jt(B)?B.bind(e,e):jt(B.get)?B.get.bind(e,e):rn,X=!jt(B)&&jt(B.set)?B.set.bind(e):rn,et=Rr({get:Z,set:X});Object.defineProperty(a,V,{enumerable:!0,configurable:!0,get:()=>et.value,set:it=>et.value=it})}if(s)for(const V in s)DT(s[V],a,e,V);if(l){const V=jt(l)?l.call(e):l;Reflect.ownKeys(V).forEach(B=>{lv(B,V[B])})}c&&ib(c,r,"c");function O(V,B){Ot(B)?B.forEach(Z=>V(Z.bind(e))):B&&V(B.bind(e))}if(O(tR,f),O(TT,v),O(eR,d),O(rR,h),O(K4,g),O(J4,m),O(sR,C),O(oR,S),O(iR,M),O(aR,_),O(z0,x),O(nR,I),Ot(T))if(T.length){const V=r.exposed||(r.exposed={});T.forEach(B=>{Object.defineProperty(V,B,{get:()=>e[B],set:Z=>e[B]=Z})})}else r.exposed||(r.exposed={});w&&r.render===rn&&(r.render=w),D!=null&&(r.inheritAttrs=D),E&&(r.components=E),R&&(r.directives=R),I&&MT(r)}function dR(r,t,e=rn){Ot(r)&&(r=Im(r));for(const a in r){const n=r[a];let i;Ae(n)?"default"in n?i=Ln(n.from||a,n.default,!0):i=Ln(n.from||a):i=Ln(n),sr(i)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[a]=i}}function ib(r,t,e){ln(Ot(r)?r.map(a=>a.bind(t.proxy)):r.bind(t.proxy),t,e)}function DT(r,t,e,a){let n=a.includes(".")?WT(e,a):()=>e[a];if(Be(r)){const i=t[r];jt(i)&&uv(n,i)}else if(jt(r))uv(n,r.bind(e));else if(Ae(r))if(Ot(r))r.forEach(i=>DT(i,t,e,a));else{const i=jt(r.handler)?r.handler.bind(e):t[r.handler];jt(i)&&uv(n,i,r)}}function LT(r){const t=r.type,{mixins:e,extends:a}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:o}}=r.appContext,s=i.get(t);let l;return s?l=s:!n.length&&!e&&!a?l=t:(l={},n.length&&n.forEach(u=>Vv(l,u,o,!0)),Vv(l,t,o)),Ae(t)&&i.set(t,l),l}function Vv(r,t,e,a=!1){const{mixins:n,extends:i}=t;i&&Vv(r,i,e,!0),n&&n.forEach(o=>Vv(r,o,e,!0));for(const o in t)if(!(a&&o==="expose")){const s=hR[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const hR={data:ob,props:sb,emits:sb,methods:lu,computed:lu,beforeCreate:dr,created:dr,beforeMount:dr,mounted:dr,beforeUpdate:dr,updated:dr,beforeDestroy:dr,beforeUnmount:dr,destroyed:dr,unmounted:dr,activated:dr,deactivated:dr,errorCaptured:dr,serverPrefetch:dr,components:lu,directives:lu,watch:gR,provide:ob,inject:pR};function ob(r,t){return t?r?function(){return lr(jt(r)?r.call(this,this):r,jt(t)?t.call(this,this):t)}:t:r}function pR(r,t){return lu(Im(r),Im(t))}function Im(r){if(Ot(r)){const t={};for(let e=0;e<r.length;e++)t[r[e]]=r[e];return t}return r}function dr(r,t){return r?[...new Set([].concat(r,t))]:t}function lu(r,t){return r?lr(Object.create(null),r,t):t}function sb(r,t){return r?Ot(r)&&Ot(t)?[...new Set([...r,...t])]:lr(Object.create(null),nb(r),nb(t??{})):t}function gR(r,t){if(!r)return t;if(!t)return r;const e=lr(Object.create(null),r);for(const a in t)e[a]=dr(r[a],t[a]);return e}function kT(){return{app:null,config:{isNativeTag:o4,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let mR=0;function yR(r,t){return function(a,n=null){jt(a)||(a=lr({},a)),n!=null&&!Ae(n)&&(n=null);const i=kT(),o=new WeakSet,s=[];let l=!1;const u=i.app={_uid:mR++,_component:a,_props:n,_container:null,_context:i,_instance:null,version:JR,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&jt(c.install)?(o.add(c),c.install(u,...f)):jt(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,v){if(!l){const d=u._ceVNode||L(a,n);return d.appContext=i,v===!0?v="svg":v===!1&&(v=void 0),r(d,c,v),l=!0,u._container=c,c.__vue_app__=u,qd(d.component)}},onUnmount(c){s.push(c)},unmount(){l&&(ln(s,u._instance,16),r(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=Ws;Ws=u;try{return c()}finally{Ws=f}}};return u}}let Ws=null;function lv(r,t){if(or){let e=or.provides;const a=or.parent&&or.parent.provides;a===e&&(e=or.provides=Object.create(a)),e[r]=t}}function Ln(r,t,e=!1){const a=or||Hr;if(a||Ws){const n=Ws?Ws._context.provides:a?a.parent==null?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(n&&r in n)return n[r];if(arguments.length>1)return e&&jt(t)?t.call(a&&a.proxy):t}}const PT={},RT=()=>Object.create(PT),ET=r=>Object.getPrototypeOf(r)===PT;function _R(r,t,e,a=!1){const n={},i=RT();r.propsDefaults=Object.create(null),NT(r,t,n,i);for(const o in r.propsOptions[0])o in n||(n[o]=void 0);e?r.props=a?n:dT(n):r.type.props?r.props=n:r.props=i,r.attrs=i}function bR(r,t,e,a){const{props:n,attrs:i,vnode:{patchFlag:o}}=r,s=de(n),[l]=r.propsOptions;let u=!1;if((a||o>0)&&!(o&16)){if(o&8){const c=r.vnode.dynamicProps;for(let f=0;f<c.length;f++){let v=c[f];if(jd(r.emitsOptions,v))continue;const d=t[v];if(l)if(he(i,v))d!==i[v]&&(i[v]=d,u=!0);else{const h=fa(v);n[h]=Tm(l,s,h,d,r,!1)}else d!==i[v]&&(i[v]=d,u=!0)}}}else{NT(r,t,n,i)&&(u=!0);let c;for(const f in s)(!t||!he(t,f)&&((c=Ko(f))===f||!he(t,c)))&&(l?e&&(e[f]!==void 0||e[c]!==void 0)&&(n[f]=Tm(l,s,f,void 0,r,!0)):delete n[f]);if(i!==s)for(const f in i)(!t||!he(t,f))&&(delete i[f],u=!0)}u&&In(r.attrs,"set","")}function NT(r,t,e,a){const[n,i]=r.propsOptions;let o=!1,s;if(t)for(let l in t){if(xu(l))continue;const u=t[l];let c;n&&he(n,c=fa(l))?!i||!i.includes(c)?e[c]=u:(s||(s={}))[c]=u:jd(r.emitsOptions,l)||(!(l in a)||u!==a[l])&&(a[l]=u,o=!0)}if(i){const l=de(e),u=s||Se;for(let c=0;c<i.length;c++){const f=i[c];e[f]=Tm(n,l,f,u[f],r,!he(u,f))}}return o}function Tm(r,t,e,a,n,i){const o=r[e];if(o!=null){const s=he(o,"default");if(s&&a===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&jt(l)){const{propsDefaults:u}=n;if(e in u)a=u[e];else{const c=kc(n);a=u[e]=l.call(null,t),c()}}else a=l;n.ce&&n.ce._setProp(e,a)}o[0]&&(i&&!s?a=!1:o[1]&&(a===""||a===Ko(e))&&(a=!0))}return a}const xR=new WeakMap;function $T(r,t,e=!1){const a=e?xR:t.propsCache,n=a.get(r);if(n)return n;const i=r.props,o={},s=[];let l=!1;if(!jt(r)){const c=f=>{l=!0;const[v,d]=$T(f,t,!0);lr(o,v),d&&s.push(...d)};!e&&t.mixins.length&&t.mixins.forEach(c),r.extends&&c(r.extends),r.mixins&&r.mixins.forEach(c)}if(!i&&!l)return Ae(r)&&a.set(r,Vs),Vs;if(Ot(i))for(let c=0;c<i.length;c++){const f=fa(i[c]);lb(f)&&(o[f]=Se)}else if(i)for(const c in i){const f=fa(c);if(lb(f)){const v=i[c],d=o[f]=Ot(v)||jt(v)?{type:v}:lr({},v),h=d.type;let g=!1,m=!0;if(Ot(h))for(let y=0;y<h.length;++y){const _=h[y],b=jt(_)&&_.name;if(b==="Boolean"){g=!0;break}else b==="String"&&(m=!1)}else g=jt(h)&&h.name==="Boolean";d[0]=g,d[1]=m,(g||he(d,"default"))&&s.push(f)}}const u=[o,s];return Ae(r)&&a.set(r,u),u}function lb(r){return r[0]!=="$"&&!xu(r)}const OT=r=>r[0]==="_"||r==="$stable",B0=r=>Ot(r)?r.map(Xa):[Xa(r)],wR=(r,t,e)=>{if(t._n)return t;const a=wT((...n)=>B0(t(...n)),e);return a._c=!1,a},zT=(r,t,e)=>{const a=r._ctx;for(const n in r){if(OT(n))continue;const i=r[n];if(jt(i))t[n]=wR(n,i,a);else if(i!=null){const o=B0(i);t[n]=()=>o}}},BT=(r,t)=>{const e=B0(t);r.slots.default=()=>e},VT=(r,t,e)=>{for(const a in t)(e||a!=="_")&&(r[a]=t[a])},SR=(r,t,e)=>{const a=r.slots=RT();if(r.vnode.shapeFlag&32){const n=t._;n?(VT(a,t,e),e&&XI(a,"_",n,!0)):zT(t,a)}else t&&BT(r,t)},MR=(r,t,e)=>{const{vnode:a,slots:n}=r;let i=!0,o=Se;if(a.shapeFlag&32){const s=t._;s?e&&s===1?i=!1:VT(n,t,e):(i=!t.$stable,zT(t,n)),o=t}else t&&(BT(r,t),o={default:1});if(i)for(const s in n)!OT(s)&&o[s]==null&&delete n[s]},Gr=zR;function CR(r){return IR(r)}function IR(r,t){const e=Hd();e.__VUE__=!0;const{insert:a,remove:n,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:v,setScopeId:d=rn,insertStaticContent:h}=r,g=($,z,F,U=null,J=null,tt=null,pt=void 0,vt=null,ht=!!z.dynamicChildren)=>{if($===z)return;$&&!kl($,z)&&(U=q($),it($,J,tt,!0),$=null),z.patchFlag===-2&&(ht=!1,z.dynamicChildren=null);const{type:ut,ref:Rt,shapeFlag:bt}=z;switch(ut){case Xd:m($,z,F,U);break;case Ho:y($,z,F,U);break;case cv:$==null&&_(z,F,U,pt);break;case Ft:E($,z,F,U,J,tt,pt,vt,ht);break;default:bt&1?w($,z,F,U,J,tt,pt,vt,ht):bt&6?R($,z,F,U,J,tt,pt,vt,ht):(bt&64||bt&128)&&ut.process($,z,F,U,J,tt,pt,vt,ht,ot)}Rt!=null&&J&&Bv(Rt,$&&$.ref,tt,z||$,!z)},m=($,z,F,U)=>{if($==null)a(z.el=s(z.children),F,U);else{const J=z.el=$.el;z.children!==$.children&&u(J,z.children)}},y=($,z,F,U)=>{$==null?a(z.el=l(z.children||""),F,U):z.el=$.el},_=($,z,F,U)=>{[$.el,$.anchor]=h($.children,z,F,U,$.el,$.anchor)},b=({el:$,anchor:z},F,U)=>{let J;for(;$&&$!==z;)J=v($),a($,F,U),$=J;a(z,F,U)},x=({el:$,anchor:z})=>{let F;for(;$&&$!==z;)F=v($),n($),$=F;n(z)},w=($,z,F,U,J,tt,pt,vt,ht)=>{z.type==="svg"?pt="svg":z.type==="math"&&(pt="mathml"),$==null?S(z,F,U,J,tt,pt,vt,ht):I($,z,J,tt,pt,vt,ht)},S=($,z,F,U,J,tt,pt,vt)=>{let ht,ut;const{props:Rt,shapeFlag:bt,transition:Et,dirs:Zt}=$;if(ht=$.el=o($.type,tt,Rt&&Rt.is,Rt),bt&8?c(ht,$.children):bt&16&&C($.children,ht,null,U,J,Zh($,tt),pt,vt),Zt&&Bi($,null,U,"created"),M(ht,$,$.scopeId,pt,U),Rt){for(const Ie in Rt)Ie!=="value"&&!xu(Ie)&&i(ht,Ie,null,Rt[Ie],tt,U);"value"in Rt&&i(ht,"value",null,Rt.value,tt),(ut=Rt.onVnodeBeforeMount)&&Oa(ut,U,$)}Zt&&Bi($,null,U,"beforeMount");const le=TR(J,Et);le&&Et.beforeEnter(ht),a(ht,z,F),((ut=Rt&&Rt.onVnodeMounted)||le||Zt)&&Gr(()=>{ut&&Oa(ut,U,$),le&&Et.enter(ht),Zt&&Bi($,null,U,"mounted")},J)},M=($,z,F,U,J)=>{if(F&&d($,F),U)for(let tt=0;tt<U.length;tt++)d($,U[tt]);if(J){let tt=J.subTree;if(z===tt||YT(tt.type)&&(tt.ssContent===z||tt.ssFallback===z)){const pt=J.vnode;M($,pt,pt.scopeId,pt.slotScopeIds,J.parent)}}},C=($,z,F,U,J,tt,pt,vt,ht=0)=>{for(let ut=ht;ut<$.length;ut++){const Rt=$[ut]=vt?li($[ut]):Xa($[ut]);g(null,Rt,z,F,U,J,tt,pt,vt)}},I=($,z,F,U,J,tt,pt)=>{const vt=z.el=$.el;let{patchFlag:ht,dynamicChildren:ut,dirs:Rt}=z;ht|=$.patchFlag&16;const bt=$.props||Se,Et=z.props||Se;let Zt;if(F&&Vi(F,!1),(Zt=Et.onVnodeBeforeUpdate)&&Oa(Zt,F,z,$),Rt&&Bi(z,$,F,"beforeUpdate"),F&&Vi(F,!0),(bt.innerHTML&&Et.innerHTML==null||bt.textContent&&Et.textContent==null)&&c(vt,""),ut?T($.dynamicChildren,ut,vt,F,U,Zh(z,J),tt):pt||B($,z,vt,null,F,U,Zh(z,J),tt,!1),ht>0){if(ht&16)D(vt,bt,Et,F,J);else if(ht&2&&bt.class!==Et.class&&i(vt,"class",null,Et.class,J),ht&4&&i(vt,"style",bt.style,Et.style,J),ht&8){const le=z.dynamicProps;for(let Ie=0;Ie<le.length;Ie++){const ye=le[Ie],zr=bt[ye],Ar=Et[ye];(Ar!==zr||ye==="value")&&i(vt,ye,zr,Ar,J,F)}}ht&1&&$.children!==z.children&&c(vt,z.children)}else!pt&&ut==null&&D(vt,bt,Et,F,J);((Zt=Et.onVnodeUpdated)||Rt)&&Gr(()=>{Zt&&Oa(Zt,F,z,$),Rt&&Bi(z,$,F,"updated")},U)},T=($,z,F,U,J,tt,pt)=>{for(let vt=0;vt<z.length;vt++){const ht=$[vt],ut=z[vt],Rt=ht.el&&(ht.type===Ft||!kl(ht,ut)||ht.shapeFlag&70)?f(ht.el):F;g(ht,ut,Rt,null,U,J,tt,pt,!0)}},D=($,z,F,U,J)=>{if(z!==F){if(z!==Se)for(const tt in z)!xu(tt)&&!(tt in F)&&i($,tt,z[tt],null,J,U);for(const tt in F){if(xu(tt))continue;const pt=F[tt],vt=z[tt];pt!==vt&&tt!=="value"&&i($,tt,vt,pt,J,U)}"value"in F&&i($,"value",z.value,F.value,J)}},E=($,z,F,U,J,tt,pt,vt,ht)=>{const ut=z.el=$?$.el:s(""),Rt=z.anchor=$?$.anchor:s("");let{patchFlag:bt,dynamicChildren:Et,slotScopeIds:Zt}=z;Zt&&(vt=vt?vt.concat(Zt):Zt),$==null?(a(ut,F,U),a(Rt,F,U),C(z.children||[],F,Rt,J,tt,pt,vt,ht)):bt>0&&bt&64&&Et&&$.dynamicChildren?(T($.dynamicChildren,Et,F,J,tt,pt,vt),(z.key!=null||J&&z===J.subTree)&&GT($,z,!0)):B($,z,F,Rt,J,tt,pt,vt,ht)},R=($,z,F,U,J,tt,pt,vt,ht)=>{z.slotScopeIds=vt,$==null?z.shapeFlag&512?J.ctx.activate(z,F,U,pt,ht):k(z,F,U,J,tt,pt,ht):N($,z,ht)},k=($,z,F,U,J,tt,pt)=>{const vt=$.component=ZR($,U,J);if(CT($)&&(vt.ctx.renderer=ot),YR(vt,!1,pt),vt.asyncDep){if(J&&J.registerDep(vt,O,pt),!$.el){const ht=vt.subTree=L(Ho);y(null,ht,z,F)}}else O(vt,$,z,F,J,tt,pt)},N=($,z,F)=>{const U=z.component=$.component;if($R($,z,F))if(U.asyncDep&&!U.asyncResolved){V(U,z,F);return}else U.next=z,U.update();else z.el=$.el,U.vnode=z},O=($,z,F,U,J,tt,pt)=>{const vt=()=>{if($.isMounted){let{next:bt,bu:Et,u:Zt,parent:le,vnode:Ie}=$;{const Na=FT($);if(Na){bt&&(bt.el=Ie.el,V($,bt,pt)),Na.asyncDep.then(()=>{$.isUnmounted||vt()});return}}let ye=bt,zr;Vi($,!1),bt?(bt.el=Ie.el,V($,bt,pt)):bt=Ie,Et&&sv(Et),(zr=bt.props&&bt.props.onVnodeBeforeUpdate)&&Oa(zr,le,bt,Ie),Vi($,!0);const Ar=cb($),Ea=$.subTree;$.subTree=Ar,g(Ea,Ar,f(Ea.el),q(Ea),$,J,tt),bt.el=Ar.el,ye===null&&OR($,Ar.el),Zt&&Gr(Zt,J),(zr=bt.props&&bt.props.onVnodeUpdated)&&Gr(()=>Oa(zr,le,bt,Ie),J)}else{let bt;const{el:Et,props:Zt}=z,{bm:le,m:Ie,parent:ye,root:zr,type:Ar}=$,Ea=Mu(z);Vi($,!1),le&&sv(le),!Ea&&(bt=Zt&&Zt.onVnodeBeforeMount)&&Oa(bt,ye,z),Vi($,!0);{zr.ce&&zr.ce._injectChildStyle(Ar);const Na=$.subTree=cb($);g(null,Na,F,U,$,J,tt),z.el=Na.el}if(Ie&&Gr(Ie,J),!Ea&&(bt=Zt&&Zt.onVnodeMounted)){const Na=z;Gr(()=>Oa(bt,ye,Na),J)}(z.shapeFlag&256||ye&&Mu(ye.vnode)&&ye.vnode.shapeFlag&256)&&$.a&&Gr($.a,J),$.isMounted=!0,z=F=U=null}};$.scope.on();const ht=$.effect=new QI(vt);$.scope.off();const ut=$.update=ht.run.bind(ht),Rt=$.job=ht.runIfDirty.bind(ht);Rt.i=$,Rt.id=$.uid,ht.scheduler=()=>$0(Rt),Vi($,!0),ut()},V=($,z,F)=>{z.component=$;const U=$.vnode.props;$.vnode=z,$.next=null,bR($,z.props,U,F),MR($,z.children,F),Ni(),rb($),$i()},B=($,z,F,U,J,tt,pt,vt,ht=!1)=>{const ut=$&&$.children,Rt=$?$.shapeFlag:0,bt=z.children,{patchFlag:Et,shapeFlag:Zt}=z;if(Et>0){if(Et&128){X(ut,bt,F,U,J,tt,pt,vt,ht);return}else if(Et&256){Z(ut,bt,F,U,J,tt,pt,vt,ht);return}}Zt&8?(Rt&16&&Wt(ut,J,tt),bt!==ut&&c(F,bt)):Rt&16?Zt&16?X(ut,bt,F,U,J,tt,pt,vt,ht):Wt(ut,J,tt,!0):(Rt&8&&c(F,""),Zt&16&&C(bt,F,U,J,tt,pt,vt,ht))},Z=($,z,F,U,J,tt,pt,vt,ht)=>{$=$||Vs,z=z||Vs;const ut=$.length,Rt=z.length,bt=Math.min(ut,Rt);let Et;for(Et=0;Et<bt;Et++){const Zt=z[Et]=ht?li(z[Et]):Xa(z[Et]);g($[Et],Zt,F,null,J,tt,pt,vt,ht)}ut>Rt?Wt($,J,tt,!0,!1,bt):C(z,F,U,J,tt,pt,vt,ht,bt)},X=($,z,F,U,J,tt,pt,vt,ht)=>{let ut=0;const Rt=z.length;let bt=$.length-1,Et=Rt-1;for(;ut<=bt&&ut<=Et;){const Zt=$[ut],le=z[ut]=ht?li(z[ut]):Xa(z[ut]);if(kl(Zt,le))g(Zt,le,F,null,J,tt,pt,vt,ht);else break;ut++}for(;ut<=bt&&ut<=Et;){const Zt=$[bt],le=z[Et]=ht?li(z[Et]):Xa(z[Et]);if(kl(Zt,le))g(Zt,le,F,null,J,tt,pt,vt,ht);else break;bt--,Et--}if(ut>bt){if(ut<=Et){const Zt=Et+1,le=Zt<Rt?z[Zt].el:U;for(;ut<=Et;)g(null,z[ut]=ht?li(z[ut]):Xa(z[ut]),F,le,J,tt,pt,vt,ht),ut++}}else if(ut>Et)for(;ut<=bt;)it($[ut],J,tt,!0),ut++;else{const Zt=ut,le=ut,Ie=new Map;for(ut=le;ut<=Et;ut++){const Br=z[ut]=ht?li(z[ut]):Xa(z[ut]);Br.key!=null&&Ie.set(Br.key,ut)}let ye,zr=0;const Ar=Et-le+1;let Ea=!1,Na=0;const Dl=new Array(Ar);for(ut=0;ut<Ar;ut++)Dl[ut]=0;for(ut=Zt;ut<=bt;ut++){const Br=$[ut];if(zr>=Ar){it(Br,J,tt,!0);continue}let $a;if(Br.key!=null)$a=Ie.get(Br.key);else for(ye=le;ye<=Et;ye++)if(Dl[ye-le]===0&&kl(Br,z[ye])){$a=ye;break}$a===void 0?it(Br,J,tt,!0):(Dl[$a-le]=ut+1,$a>=Na?Na=$a:Ea=!0,g(Br,z[$a],F,null,J,tt,pt,vt,ht),zr++)}const q_=Ea?AR(Dl):Vs;for(ye=q_.length-1,ut=Ar-1;ut>=0;ut--){const Br=le+ut,$a=z[Br],K_=Br+1<Rt?z[Br+1].el:U;Dl[ut]===0?g(null,$a,F,K_,J,tt,pt,vt,ht):Ea&&(ye<0||ut!==q_[ye]?et($a,F,K_,2):ye--)}}},et=($,z,F,U,J=null)=>{const{el:tt,type:pt,transition:vt,children:ht,shapeFlag:ut}=$;if(ut&6){et($.component.subTree,z,F,U);return}if(ut&128){$.suspense.move(z,F,U);return}if(ut&64){pt.move($,z,F,ot);return}if(pt===Ft){a(tt,z,F);for(let bt=0;bt<ht.length;bt++)et(ht[bt],z,F,U);a($.anchor,z,F);return}if(pt===cv){b($,z,F);return}if(U!==2&&ut&1&&vt)if(U===0)vt.beforeEnter(tt),a(tt,z,F),Gr(()=>vt.enter(tt),J);else{const{leave:bt,delayLeave:Et,afterLeave:Zt}=vt,le=()=>a(tt,z,F),Ie=()=>{bt(tt,()=>{le(),Zt&&Zt()})};Et?Et(tt,le,Ie):Ie()}else a(tt,z,F)},it=($,z,F,U=!1,J=!1)=>{const{type:tt,props:pt,ref:vt,children:ht,dynamicChildren:ut,shapeFlag:Rt,patchFlag:bt,dirs:Et,cacheIndex:Zt}=$;if(bt===-2&&(J=!1),vt!=null&&Bv(vt,null,F,$,!0),Zt!=null&&(z.renderCache[Zt]=void 0),Rt&256){z.ctx.deactivate($);return}const le=Rt&1&&Et,Ie=!Mu($);let ye;if(Ie&&(ye=pt&&pt.onVnodeBeforeUnmount)&&Oa(ye,z,$),Rt&6)Ct($.component,F,U);else{if(Rt&128){$.suspense.unmount(F,U);return}le&&Bi($,null,z,"beforeUnmount"),Rt&64?$.type.remove($,z,F,ot,U):ut&&!ut.hasOnce&&(tt!==Ft||bt>0&&bt&64)?Wt(ut,z,F,!1,!0):(tt===Ft&&bt&384||!J&&Rt&16)&&Wt(ht,z,F),U&&yt($)}(Ie&&(ye=pt&&pt.onVnodeUnmounted)||le)&&Gr(()=>{ye&&Oa(ye,z,$),le&&Bi($,null,z,"unmounted")},F)},yt=$=>{const{type:z,el:F,anchor:U,transition:J}=$;if(z===Ft){_t(F,U);return}if(z===cv){x($);return}const tt=()=>{n(F),J&&!J.persisted&&J.afterLeave&&J.afterLeave()};if($.shapeFlag&1&&J&&!J.persisted){const{leave:pt,delayLeave:vt}=J,ht=()=>pt(F,tt);vt?vt($.el,tt,ht):ht()}else tt()},_t=($,z)=>{let F;for(;$!==z;)F=v($),n($),$=F;n(z)},Ct=($,z,F)=>{const{bum:U,scope:J,job:tt,subTree:pt,um:vt,m:ht,a:ut}=$;ub(ht),ub(ut),U&&sv(U),J.stop(),tt&&(tt.flags|=8,it(pt,$,z,F)),vt&&Gr(vt,z),Gr(()=>{$.isUnmounted=!0},z),z&&z.pendingBranch&&!z.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===z.pendingId&&(z.deps--,z.deps===0&&z.resolve())},Wt=($,z,F,U=!1,J=!1,tt=0)=>{for(let pt=tt;pt<$.length;pt++)it($[pt],z,F,U,J)},q=$=>{if($.shapeFlag&6)return q($.component.subTree);if($.shapeFlag&128)return $.suspense.next();const z=v($.anchor||$.el),F=z&&z[X4];return F?v(F):z};let rt=!1;const j=($,z,F)=>{$==null?z._vnode&&it(z._vnode,null,null,!0):g(z._vnode||null,$,z,null,null,null,F),z._vnode=$,rt||(rt=!0,rb(),_T(),rt=!1)},ot={p:g,um:it,m:et,r:yt,mt:k,mc:C,pc:B,pbc:T,n:q,o:r};return{render:j,hydrate:void 0,createApp:yR(j)}}function Zh({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 Vi({effect:r,job:t},e){e?(r.flags|=32,t.flags|=4):(r.flags&=-33,t.flags&=-5)}function TR(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function GT(r,t,e=!1){const a=r.children,n=t.children;if(Ot(a)&&Ot(n))for(let i=0;i<a.length;i++){const o=a[i];let s=n[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=n[i]=li(n[i]),s.el=o.el),!e&&s.patchFlag!==-2&&GT(o,s)),s.type===Xd&&(s.el=o.el)}}function AR(r){const t=r.slice(),e=[0];let a,n,i,o,s;const l=r.length;for(a=0;a<l;a++){const u=r[a];if(u!==0){if(n=e[e.length-1],r[n]<u){t[a]=n,e.push(a);continue}for(i=0,o=e.length-1;i<o;)s=i+o>>1,r[e[s]]<u?i=s+1:o=s;u<r[e[i]]&&(i>0&&(t[a]=e[i-1]),e[i]=a)}}for(i=e.length,o=e[i-1];i-- >0;)e[i]=o,o=t[o];return e}function FT(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:FT(t)}function ub(r){if(r)for(let t=0;t<r.length;t++)r[t].flags|=8}const DR=Symbol.for("v-scx"),LR=()=>Ln(DR);function uv(r,t,e){return HT(r,t,e)}function HT(r,t,e=Se){const{immediate:a,deep:n,flush:i,once:o}=e,s=lr({},e),l=t&&a||!t&&i!=="post";let u;if(Uu){if(i==="sync"){const d=LR();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=rn,d.resume=rn,d.pause=rn,d}}const c=or;s.call=(d,h,g)=>ln(d,c,h,g);let f=!1;i==="post"?s.scheduler=d=>{Gr(d,c&&c.suspense)}:i!=="sync"&&(f=!0,s.scheduler=(d,h)=>{h?d():$0(d)}),s.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const v=Z4(r,t,s);return Uu&&(u?u.push(v):l&&v()),v}function kR(r,t,e){const a=this.proxy,n=Be(r)?r.includes(".")?WT(a,r):()=>a[r]:r.bind(a,a);let i;jt(t)?i=t:(i=t.handler,e=t);const o=kc(this),s=HT(n,i.bind(a),e);return o(),s}function WT(r,t){const e=t.split(".");return()=>{let a=r;for(let n=0;n<e.length&&a;n++)a=a[e[n]];return a}}const PR=(r,t)=>t==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${fa(t)}Modifiers`]||r[`${Ko(t)}Modifiers`];function RR(r,t,...e){if(r.isUnmounted)return;const a=r.vnode.props||Se;let n=e;const i=t.startsWith("update:"),o=i&&PR(a,t.slice(7));o&&(o.trim&&(n=e.map(c=>Be(c)?c.trim():c)),o.number&&(n=e.map(Nv)));let s,l=a[s=Bh(t)]||a[s=Bh(fa(t))];!l&&i&&(l=a[s=Bh(Ko(t))]),l&&ln(l,r,6,n);const u=a[s+"Once"];if(u){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,ln(u,r,6,n)}}function ZT(r,t,e=!1){const a=t.emitsCache,n=a.get(r);if(n!==void 0)return n;const i=r.emits;let o={},s=!1;if(!jt(r)){const l=u=>{const c=ZT(u,t,!0);c&&(s=!0,lr(o,c))};!e&&t.mixins.length&&t.mixins.forEach(l),r.extends&&l(r.extends),r.mixins&&r.mixins.forEach(l)}return!i&&!s?(Ae(r)&&a.set(r,null),null):(Ot(i)?i.forEach(l=>o[l]=null):lr(o,i),Ae(r)&&a.set(r,o),o)}function jd(r,t){return!r||!Vd(t)?!1:(t=t.slice(2).replace(/Once$/,""),he(r,t[0].toLowerCase()+t.slice(1))||he(r,Ko(t))||he(r,t))}function cb(r){const{type:t,vnode:e,proxy:a,withProxy:n,propsOptions:[i],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:f,data:v,setupState:d,ctx:h,inheritAttrs:g}=r,m=zv(r);let y,_;try{if(e.shapeFlag&4){const x=n||a,w=x;y=Xa(u.call(w,x,c,f,d,v,h)),_=s}else{const x=t;y=Xa(x.length>1?x(f,{attrs:s,slots:o,emit:l}):x(f,null)),_=t.props?s:ER(s)}}catch(x){Iu.length=0,Yd(x,r,1),y=L(Ho)}let b=y;if(_&&g!==!1){const x=Object.keys(_),{shapeFlag:w}=b;x.length&&w&7&&(i&&x.some(M0)&&(_=NR(_,i)),b=Ks(b,_,!1,!0))}return e.dirs&&(b=Ks(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(e.dirs):e.dirs),e.transition&&O0(b,e.transition),y=b,zv(m),y}const ER=r=>{let t;for(const e in r)(e==="class"||e==="style"||Vd(e))&&((t||(t={}))[e]=r[e]);return t},NR=(r,t)=>{const e={};for(const a in r)(!M0(a)||!(a.slice(9)in t))&&(e[a]=r[a]);return e};function $R(r,t,e){const{props:a,children:n,component:i}=r,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return a?fb(a,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const v=c[f];if(o[v]!==a[v]&&!jd(u,v))return!0}}}else return(n||s)&&(!s||!s.$stable)?!0:a===o?!1:a?o?fb(a,o,u):!0:!!o;return!1}function fb(r,t,e){const a=Object.keys(t);if(a.length!==Object.keys(r).length)return!0;for(let n=0;n<a.length;n++){const i=a[n];if(t[i]!==r[i]&&!jd(e,i))return!0}return!1}function OR({vnode:r,parent:t},e){for(;t;){const a=t.subTree;if(a.suspense&&a.suspense.activeBranch===r&&(a.el=r.el),a===r)(r=t.vnode).el=e,t=t.parent;else break}}const YT=r=>r.__isSuspense;function zR(r,t){t&&t.pendingBranch?Ot(r)?t.effects.push(...r):t.effects.push(r):j4(r)}const Ft=Symbol.for("v-fgt"),Xd=Symbol.for("v-txt"),Ho=Symbol.for("v-cmt"),cv=Symbol.for("v-stc"),Iu=[];let Wr=null;function H(r=!1){Iu.push(Wr=r?null:[])}function BR(){Iu.pop(),Wr=Iu[Iu.length-1]||null}let Yu=1;function vb(r,t=!1){Yu+=r,r<0&&Wr&&t&&(Wr.hasOnce=!0)}function UT(r){return r.dynamicChildren=Yu>0?Wr||Vs:null,BR(),Yu>0&&Wr&&Wr.push(r),r}function W(r,t,e,a,n,i){return UT(p(r,t,e,a,n,i,!0))}function Gv(r,t,e,a,n){return UT(L(r,t,e,a,n,!0))}function Fv(r){return r?r.__v_isVNode===!0:!1}function kl(r,t){return r.type===t.type&&r.key===t.key}const jT=({key:r})=>r??null,fv=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?Be(r)||sr(r)||jt(r)?{i:Hr,r,k:t,f:!!e}:r:null);function p(r,t=null,e=null,a=0,n=null,i=r===Ft?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&jT(t),ref:t&&fv(t),scopeId:xT,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:a,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Hr};return s?(V0(l,e),i&128&&r.normalize(l)):e&&(l.shapeFlag|=Be(e)?8:16),Yu>0&&!o&&Wr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Wr.push(l),l}const L=VR;function VR(r,t=null,e=null,a=0,n=null,i=!1){if((!r||r===uR)&&(r=Ho),Fv(r)){const s=Ks(r,t,!0);return e&&V0(s,e),Yu>0&&!i&&Wr&&(s.shapeFlag&6?Wr[Wr.indexOf(r)]=s:Wr.push(s)),s.patchFlag=-2,s}if(KR(r)&&(r=r.__vccOpts),t){t=GR(t);let{class:s,style:l}=t;s&&!Be(s)&&(t.class=ie(s)),Ae(l)&&(E0(l)&&!Ot(l)&&(l=lr({},l)),t.style=Ac(l))}const o=Be(r)?1:YT(r)?128:q4(r)?64:Ae(r)?4:jt(r)?2:0;return p(r,t,e,a,n,o,i,!0)}function GR(r){return r?E0(r)||ET(r)?lr({},r):r:null}function Ks(r,t,e=!1,a=!1){const{props:n,ref:i,patchFlag:o,children:s,transition:l}=r,u=t?FR(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:r.type,props:u,key:u&&jT(u),ref:t&&t.ref?e&&i?Ot(i)?i.concat(fv(t)):[i,fv(t)]:fv(t):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:s,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==Ft?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:l,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Ks(r.ssContent),ssFallback:r.ssFallback&&Ks(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return l&&a&&O0(c,l.clone(c)),c}function vo(r=" ",t=0){return L(Xd,null,r,t)}function zt(r,t){const e=L(cv,null,r);return e.staticCount=t,e}function ct(r="",t=!1){return t?(H(),Gv(Ho,null,r)):L(Ho,null,r)}function Xa(r){return r==null||typeof r=="boolean"?L(Ho):Ot(r)?L(Ft,null,r.slice()):Fv(r)?li(r):L(Xd,null,String(r))}function li(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Ks(r)}function V0(r,t){let e=0;const{shapeFlag:a}=r;if(t==null)t=null;else if(Ot(t))e=16;else if(typeof t=="object")if(a&65){const n=t.default;n&&(n._c&&(n._d=!1),V0(r,n()),n._c&&(n._d=!0));return}else{e=32;const n=t._;!n&&!ET(t)?t._ctx=Hr:n===3&&Hr&&(Hr.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else jt(t)?(t={default:t,_ctx:Hr},e=32):(t=String(t),a&64?(e=16,t=[vo(t)]):e=8);r.children=t,r.shapeFlag|=e}function FR(...r){const t={};for(let e=0;e<r.length;e++){const a=r[e];for(const n in a)if(n==="class")t.class!==a.class&&(t.class=ie([t.class,a.class]));else if(n==="style")t.style=Ac([t.style,a.style]);else if(Vd(n)){const i=t[n],o=a[n];o&&i!==o&&!(Ot(i)&&i.includes(o))&&(t[n]=i?[].concat(i,o):o)}else n!==""&&(t[n]=a[n])}return t}function Oa(r,t,e,a=null){ln(r,t,7,[e,a])}const HR=kT();let WR=0;function ZR(r,t,e){const a=r.type,n=(t?t.appContext:r.appContext)||HR,i={uid:WR++,vnode:r,type:a,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new y4(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:$T(a,n),emitsOptions:ZT(a,n),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:a.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,setupContext:null,suspense:e,suspenseId:e?e.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=RR.bind(null,i),r.ce&&r.ce(i),i}let or=null,Hv,Am;{const r=Hd(),t=(e,a)=>{let n;return(n=r[e])||(n=r[e]=[]),n.push(a),i=>{n.length>1?n.forEach(o=>o(i)):n[0](i)}};Hv=t("__VUE_INSTANCE_SETTERS__",e=>or=e),Am=t("__VUE_SSR_SETTERS__",e=>Uu=e)}const kc=r=>{const t=or;return Hv(r),r.scope.on(),()=>{r.scope.off(),Hv(t)}},db=()=>{or&&or.scope.off(),Hv(null)};function XT(r){return r.vnode.shapeFlag&4}let Uu=!1;function YR(r,t=!1,e=!1){t&&Am(t);const{props:a,children:n}=r.vnode,i=XT(r);_R(r,a,i,t),SR(r,n,e);const o=i?UR(r,t):void 0;return t&&Am(!1),o}function UR(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,fR);const{setup:a}=e;if(a){Ni();const n=r.setupContext=a.length>1?XR(r):null,i=kc(r),o=Lc(a,r,0,[r.props,n]),s=YI(o);if($i(),i(),(s||r.sp)&&!Mu(r)&&MT(r),s){if(o.then(db,db),t)return o.then(l=>{hb(r,l)}).catch(l=>{Yd(l,r,0)});r.asyncDep=o}else hb(r,o)}else qT(r)}function hb(r,t,e){jt(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:Ae(t)&&(r.setupState=gT(t)),qT(r)}function qT(r,t,e){const a=r.type;r.render||(r.render=a.render||rn);{const n=kc(r);Ni();try{vR(r)}finally{$i(),n()}}}const jR={get(r,t){return nr(r,"get",""),r[t]}};function XR(r){const t=e=>{r.exposed=e||{}};return{attrs:new Proxy(r.attrs,jR),slots:r.slots,emit:r.emit,expose:t}}function qd(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(gT(z4(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in Cu)return Cu[e](r)},has(t,e){return e in t||e in Cu}})):r.proxy}function qR(r,t=!0){return jt(r)?r.displayName||r.name:r.name||t&&r.__name}function KR(r){return jt(r)&&"__vccOpts"in r}const Rr=(r,t)=>H4(r,t,Uu);function ju(r,t,e){const a=arguments.length;return a===2?Ae(t)&&!Ot(t)?Fv(t)?L(r,null,[t]):L(r,t):L(r,null,t):(a>3?e=Array.prototype.slice.call(arguments,2):a===3&&Fv(e)&&(e=[e]),L(r,t,e))}const JR="3.5.13";/**
  14. * @vue/runtime-dom v3.5.13
  15. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  16. * @license MIT
  17. **/let Dm;const pb=typeof window<"u"&&window.trustedTypes;if(pb)try{Dm=pb.createPolicy("vue",{createHTML:r=>r})}catch{}const KT=Dm?r=>Dm.createHTML(r):r=>r,QR="http://www.w3.org/2000/svg",tE="http://www.w3.org/1998/Math/MathML",Sn=typeof document<"u"?document:null,gb=Sn&&Sn.createElement("template"),eE={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,a)=>{const n=t==="svg"?Sn.createElementNS(QR,r):t==="mathml"?Sn.createElementNS(tE,r):e?Sn.createElement(r,{is:e}):Sn.createElement(r);return r==="select"&&a&&a.multiple!=null&&n.setAttribute("multiple",a.multiple),n},createText:r=>Sn.createTextNode(r),createComment:r=>Sn.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Sn.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,a,n,i){const o=e?e.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),e),!(n===i||!(n=n.nextSibling)););else{gb.innerHTML=KT(a==="svg"?`<svg>${r}</svg>`:a==="mathml"?`<math>${r}</math>`:r);const s=gb.content;if(a==="svg"||a==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},rE=Symbol("_vtc");function aE(r,t,e){const a=r[rE];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const mb=Symbol("_vod"),nE=Symbol("_vsh"),iE=Symbol(""),oE=/(^|;)\s*display\s*:/;function sE(r,t,e){const a=r.style,n=Be(e);let i=!1;if(e&&!n){if(t)if(Be(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();e[s]==null&&vv(a,s,"")}else for(const o in t)e[o]==null&&vv(a,o,"");for(const o in e)o==="display"&&(i=!0),vv(a,o,e[o])}else if(n){if(t!==e){const o=a[iE];o&&(e+=";"+o),a.cssText=e,i=oE.test(e)}}else t&&r.removeAttribute("style");mb in r&&(r[mb]=i?a.display:"",r[nE]&&(a.display="none"))}const yb=/\s*!important$/;function vv(r,t,e){if(Ot(e))e.forEach(a=>vv(r,t,a));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const a=lE(r,t);yb.test(e)?r.setProperty(Ko(a),e.replace(yb,""),"important"):r[a]=e}}const _b=["Webkit","Moz","ms"],Yh={};function lE(r,t){const e=Yh[t];if(e)return e;let a=fa(t);if(a!=="filter"&&a in r)return Yh[t]=a;a=Fd(a);for(let n=0;n<_b.length;n++){const i=_b[n]+a;if(i in r)return Yh[t]=i}return t}const bb="http://www.w3.org/1999/xlink";function xb(r,t,e,a,n,i=g4(t)){a&&t.startsWith("xlink:")?e==null?r.removeAttributeNS(bb,t.slice(6,t.length)):r.setAttributeNS(bb,t,e):e==null||i&&!qI(e)?r.removeAttribute(t):r.setAttribute(t,i?"":sn(e)?String(e):e)}function wb(r,t,e,a,n){if(t==="innerHTML"||t==="textContent"){e!=null&&(r[t]=t==="innerHTML"?KT(e):e);return}const i=r.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const s=i==="OPTION"?r.getAttribute("value")||"":r.value,l=e==null?r.type==="checkbox"?"on":"":String(e);(s!==l||!("_value"in r))&&(r.value=l),e==null&&r.removeAttribute(t),r._value=e;return}let o=!1;if(e===""||e==null){const s=typeof r[t];s==="boolean"?e=qI(e):e==null&&s==="string"?(e="",o=!0):s==="number"&&(e=0,o=!0)}try{r[t]=e}catch{}o&&r.removeAttribute(n||t)}function vi(r,t,e,a){r.addEventListener(t,e,a)}function uE(r,t,e,a){r.removeEventListener(t,e,a)}const Sb=Symbol("_vei");function cE(r,t,e,a,n=null){const i=r[Sb]||(r[Sb]={}),o=i[t];if(a&&o)o.value=a;else{const[s,l]=fE(t);if(a){const u=i[t]=hE(a,n);vi(r,s,u,l)}else o&&(uE(r,s,o,l),i[t]=void 0)}}const Mb=/(?:Once|Passive|Capture)$/;function fE(r){let t;if(Mb.test(r)){t={};let a;for(;a=r.match(Mb);)r=r.slice(0,r.length-a[0].length),t[a[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):Ko(r.slice(2)),t]}let Uh=0;const vE=Promise.resolve(),dE=()=>Uh||(vE.then(()=>Uh=0),Uh=Date.now());function hE(r,t){const e=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=e.attached)return;ln(pE(a,e.value),t,5,[a])};return e.value=r,e.attached=dE(),e}function pE(r,t){if(Ot(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(a=>n=>!n._stopped&&a&&a(n))}else return t}const Cb=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,gE=(r,t,e,a,n,i)=>{const o=n==="svg";t==="class"?aE(r,a,o):t==="style"?sE(r,e,a):Vd(t)?M0(t)||cE(r,t,e,a,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mE(r,t,a,o))?(wb(r,t,a),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&xb(r,t,a,o,i,t!=="value")):r._isVueCE&&(/[A-Z]/.test(t)||!Be(a))?wb(r,fa(t),a,i,t):(t==="true-value"?r._trueValue=a:t==="false-value"&&(r._falseValue=a),xb(r,t,a,o))};function mE(r,t,e,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in r&&Cb(t)&&jt(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 n=r.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Cb(t)&&Be(e)?!1:t in r}const Js=r=>{const t=r.props["onUpdate:modelValue"]||!1;return Ot(t)?e=>sv(t,e):t};function yE(r){r.target.composing=!0}function Ib(r){const t=r.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const kn=Symbol("_assign"),za={created(r,{modifiers:{lazy:t,trim:e,number:a}},n){r[kn]=Js(n);const i=a||n.props&&n.props.type==="number";vi(r,t?"change":"input",o=>{if(o.target.composing)return;let s=r.value;e&&(s=s.trim()),i&&(s=Nv(s)),r[kn](s)}),e&&vi(r,"change",()=>{r.value=r.value.trim()}),t||(vi(r,"compositionstart",yE),vi(r,"compositionend",Ib),vi(r,"change",Ib))},mounted(r,{value:t}){r.value=t??""},beforeUpdate(r,{value:t,oldValue:e,modifiers:{lazy:a,trim:n,number:i}},o){if(r[kn]=Js(o),r.composing)return;const s=(i||r.type==="number")&&!/^0\d/.test(r.value)?Nv(r.value):r.value,l=t??"";s!==l&&(document.activeElement===r&&r.type!=="range"&&(a&&t===e||n&&r.value.trim()===l)||(r.value=l))}},Wv={deep:!0,created(r,t,e){r[kn]=Js(e),vi(r,"change",()=>{const a=r._modelValue,n=Xu(r),i=r.checked,o=r[kn];if(Ot(a)){const s=T0(a,n),l=s!==-1;if(i&&!l)o(a.concat(n));else if(!i&&l){const u=[...a];u.splice(s,1),o(u)}}else if(vl(a)){const s=new Set(a);i?s.add(n):s.delete(n),o(s)}else o(JT(r,i))})},mounted:Tb,beforeUpdate(r,t,e){r[kn]=Js(e),Tb(r,t,e)}};function Tb(r,{value:t,oldValue:e},a){r._modelValue=t;let n;if(Ot(t))n=T0(t,a.props.value)>-1;else if(vl(t))n=t.has(a.props.value);else{if(t===e)return;n=Dc(t,JT(r,!0))}r.checked!==n&&(r.checked=n)}const _E={deep:!0,created(r,{value:t,modifiers:{number:e}},a){const n=vl(t);vi(r,"change",()=>{const i=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>e?Nv(Xu(o)):Xu(o));r[kn](r.multiple?n?new Set(i):i:i[0]),r._assigning=!0,N0(()=>{r._assigning=!1})}),r[kn]=Js(a)},mounted(r,{value:t}){Ab(r,t)},beforeUpdate(r,t,e){r[kn]=Js(e)},updated(r,{value:t}){r._assigning||Ab(r,t)}};function Ab(r,t){const e=r.multiple,a=Ot(t);if(!(e&&!a&&!vl(t))){for(let n=0,i=r.options.length;n<i;n++){const o=r.options[n],s=Xu(o);if(e)if(a){const l=typeof s;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(s)):o.selected=T0(t,s)>-1}else o.selected=t.has(s);else if(Dc(Xu(o),t)){r.selectedIndex!==n&&(r.selectedIndex=n);return}}!e&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Xu(r){return"_value"in r?r._value:r.value}function JT(r,t){const e=t?"_trueValue":"_falseValue";return e in r?r[e]:t}const bE=["ctrl","shift","alt","meta"],xE={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,t)=>bE.some(e=>r[`${e}Key`]&&!t.includes(e))},wE=(r,t)=>{const e=r._withMods||(r._withMods={}),a=t.join(".");return e[a]||(e[a]=(n,...i)=>{for(let o=0;o<t.length;o++){const s=xE[t[o]];if(s&&s(n,t))return}return r(n,...i)})},SE=lr({patchProp:gE},eE);let Db;function ME(){return Db||(Db=CR(SE))}const CE=(...r)=>{const t=ME().createApp(...r),{mount:e}=t;return t.mount=a=>{const n=TE(a);if(!n)return;const i=t._component;!jt(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=e(n,!1,IE(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},t};function IE(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function TE(r){return Be(r)?document.querySelector(r):r}const Ce=(r,t)=>{const e=r.__vccOpts||r;for(const[a,n]of t)e[a]=n;return e},AE={};function DE(r,t){const e=AT("router-view");return H(),Gv(e)}const LE=Ce(AE,[["render",DE]]);/*!
  18. * vue-router v4.5.0
  19. * (c) 2024 Eduardo San Martin Morote
  20. * @license MIT
  21. */const ks=typeof document<"u";function QT(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function kE(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&QT(r.default)}const ve=Object.assign;function jh(r,t){const e={};for(const a in t){const n=t[a];e[a]=Ia(n)?n.map(r):r(n)}return e}const Tu=()=>{},Ia=Array.isArray,tA=/#/g,PE=/&/g,RE=/\//g,EE=/=/g,NE=/\?/g,eA=/\+/g,$E=/%5B/g,OE=/%5D/g,rA=/%5E/g,zE=/%60/g,aA=/%7B/g,BE=/%7C/g,nA=/%7D/g,VE=/%20/g;function G0(r){return encodeURI(""+r).replace(BE,"|").replace($E,"[").replace(OE,"]")}function GE(r){return G0(r).replace(aA,"{").replace(nA,"}").replace(rA,"^")}function Lm(r){return G0(r).replace(eA,"%2B").replace(VE,"+").replace(tA,"%23").replace(PE,"%26").replace(zE,"`").replace(aA,"{").replace(nA,"}").replace(rA,"^")}function FE(r){return Lm(r).replace(EE,"%3D")}function HE(r){return G0(r).replace(tA,"%23").replace(NE,"%3F")}function WE(r){return r==null?"":HE(r).replace(RE,"%2F")}function qu(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const ZE=/\/$/,YE=r=>r.replace(ZE,"");function Xh(r,t,e="/"){let a,n={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(a=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),n=r(i)),s>-1&&(a=a||t.slice(0,s),o=t.slice(s,t.length)),a=qE(a??t,e),{fullPath:a+(i&&"?")+i+o,path:a,query:n,hash:qu(o)}}function UE(r,t){const e=t.query?r(t.query):"";return t.path+(e&&"?")+e+(t.hash||"")}function Lb(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function jE(r,t,e){const a=t.matched.length-1,n=e.matched.length-1;return a>-1&&a===n&&Qs(t.matched[a],e.matched[n])&&iA(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 iA(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(!XE(r[e],t[e]))return!1;return!0}function XE(r,t){return Ia(r)?kb(r,t):Ia(t)?kb(t,r):r===t}function kb(r,t){return Ia(t)?r.length===t.length&&r.every((e,a)=>e===t[a]):r.length===1&&r[0]===t}function qE(r,t){if(r.startsWith("/"))return r;if(!r)return t;const e=t.split("/"),a=r.split("/"),n=a[a.length-1];(n===".."||n===".")&&a.push("");let i=e.length-1,o,s;for(o=0;o<a.length;o++)if(s=a[o],s!==".")if(s==="..")i>1&&i--;else break;return e.slice(0,i).join("/")+"/"+a.slice(o).join("/")}const Xn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ku;(function(r){r.pop="pop",r.push="push"})(Ku||(Ku={}));var Au;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Au||(Au={}));function KE(r){if(!r)if(ks){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),YE(r)}const JE=/^[^#]+#/;function QE(r,t){return r.replace(JE,"#")+t}function tN(r,t){const e=document.documentElement.getBoundingClientRect(),a=r.getBoundingClientRect();return{behavior:t.behavior,left:a.left-e.left-(t.left||0),top:a.top-e.top-(t.top||0)}}const Kd=()=>({left:window.scrollX,top:window.scrollY});function eN(r){let t;if("el"in r){const e=r.el,a=typeof e=="string"&&e.startsWith("#"),n=typeof e=="string"?a?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!n)return;t=tN(n,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 Pb(r,t){return(history.state?history.state.position-t:-1)+r}const km=new Map;function rN(r,t){km.set(r,t)}function aN(r){const t=km.get(r);return km.delete(r),t}let nN=()=>location.protocol+"//"+location.host;function oA(r,t){const{pathname:e,search:a,hash:n}=t,i=r.indexOf("#");if(i>-1){let s=n.includes(r.slice(i))?r.slice(i).length:1,l=n.slice(s);return l[0]!=="/"&&(l="/"+l),Lb(l,"")}return Lb(e,r)+a+n}function iN(r,t,e,a){let n=[],i=[],o=null;const s=({state:v})=>{const d=oA(r,location),h=e.value,g=t.value;let m=0;if(v){if(e.value=d,t.value=v,o&&o===h){o=null;return}m=g?v.position-g.position:0}else a(d);n.forEach(y=>{y(e.value,h,{delta:m,type:Ku.pop,direction:m?m>0?Au.forward:Au.back:Au.unknown})})};function l(){o=e.value}function u(v){n.push(v);const d=()=>{const h=n.indexOf(v);h>-1&&n.splice(h,1)};return i.push(d),d}function c(){const{history:v}=window;v.state&&v.replaceState(ve({},v.state,{scroll:Kd()}),"")}function f(){for(const v of i)v();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Rb(r,t,e,a=!1,n=!1){return{back:r,current:t,forward:e,replaced:a,position:window.history.length,scroll:n?Kd():null}}function oN(r){const{history:t,location:e}=window,a={value:oA(r,e)},n={value:t.state};n.value||i(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=r.indexOf("#"),v=f>-1?(e.host&&document.querySelector("base")?r:r.slice(f))+l:nN()+r+l;try{t[c?"replaceState":"pushState"](u,"",v),n.value=u}catch(d){console.error(d),e[c?"replace":"assign"](v)}}function o(l,u){const c=ve({},t.state,Rb(n.value.back,l,n.value.forward,!0),u,{position:n.value.position});i(l,c,!0),a.value=l}function s(l,u){const c=ve({},n.value,t.state,{forward:l,scroll:Kd()});i(c.current,c,!0);const f=ve({},Rb(a.value,l,null),{position:c.position+1},u);i(l,f,!1),a.value=l}return{location:a,state:n,push:s,replace:o}}function sN(r){r=KE(r);const t=oN(r),e=iN(r,t.state,t.location,t.replace);function a(i,o=!0){o||e.pauseListeners(),history.go(i)}const n=ve({location:"",base:r,go:a,createHref:QE.bind(null,r)},t,e);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function lN(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),sN(r)}function uN(r){return typeof r=="string"||r&&typeof r=="object"}function sA(r){return typeof r=="string"||typeof r=="symbol"}const lA=Symbol("");var Eb;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(Eb||(Eb={}));function tl(r,t){return ve(new Error,{type:r,[lA]:!0},t)}function _n(r,t){return r instanceof Error&&lA in r&&(t==null||!!(r.type&t))}const Nb="[^/]+?",cN={sensitive:!1,strict:!1,start:!0,end:!0},fN=/[.+*?^${}()[\]/\\]/g;function vN(r,t){const e=ve({},cN,t),a=[];let n=e.start?"^":"";const i=[];for(const u of r){const c=u.length?[]:[90];e.strict&&!u.length&&(n+="/");for(let f=0;f<u.length;f++){const v=u[f];let d=40+(e.sensitive?.25:0);if(v.type===0)f||(n+="/"),n+=v.value.replace(fN,"\\$&"),d+=40;else if(v.type===1){const{value:h,repeatable:g,optional:m,regexp:y}=v;i.push({name:h,repeatable:g,optional:m});const _=y||Nb;if(_!==Nb){d+=10;try{new RegExp(`(${_})`)}catch(x){throw new Error(`Invalid custom RegExp for param "${h}" (${_}): `+x.message)}}let b=g?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;f||(b=m&&u.length<2?`(?:/${b})`:"/"+b),m&&(b+="?"),n+=b,d+=20,m&&(d+=-8),g&&(d+=-20),_===".*"&&(d+=-50)}c.push(d)}a.push(c)}if(e.strict&&e.end){const u=a.length-1;a[u][a[u].length-1]+=.7000000000000001}e.strict||(n+="/?"),e.end?n+="$":e.strict&&!n.endsWith("/")&&(n+="(?:/|$)");const o=new RegExp(n,e.sensitive?"":"i");function s(u){const c=u.match(o),f={};if(!c)return null;for(let v=1;v<c.length;v++){const d=c[v]||"",h=i[v-1];f[h.name]=d&&h.repeatable?d.split("/"):d}return f}function l(u){let c="",f=!1;for(const v of r){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const d of v)if(d.type===0)c+=d.value;else if(d.type===1){const{value:h,repeatable:g,optional:m}=d,y=h in u?u[h]:"";if(Ia(y)&&!g)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const _=Ia(y)?y.join("/"):y;if(!_)if(m)v.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);c+=_}}return c||"/"}return{re:o,score:a,keys:i,parse:s,stringify:l}}function dN(r,t){let e=0;for(;e<r.length&&e<t.length;){const a=t[e]-r[e];if(a)return a;e++}return r.length<t.length?r.length===1&&r[0]===80?-1:1:r.length>t.length?t.length===1&&t[0]===80?1:-1:0}function uA(r,t){let e=0;const a=r.score,n=t.score;for(;e<a.length&&e<n.length;){const i=dN(a[e],n[e]);if(i)return i;e++}if(Math.abs(n.length-a.length)===1){if($b(a))return 1;if($b(n))return-1}return n.length-a.length}function $b(r){const t=r[r.length-1];return r.length>0&&t[t.length-1]<0}const hN={type:0,value:""},pN=/[a-zA-Z0-9_]/;function gN(r){if(!r)return[[]];if(r==="/")return[[hN]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(d){throw new Error(`ERR (${e})/"${u}": ${d}`)}let e=0,a=e;const n=[];let i;function o(){i&&n.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(e===0?i.push({type:0,value:u}):e===1||e===2||e===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=l}for(;s<r.length;){if(l=r[s++],l==="\\"&&e!==2){a=e,e=4;continue}switch(e){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),e=1):v();break;case 4:v(),e=a;break;case 1:l==="("?e=2:pN.test(l)?v():(f(),e=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:e=3:c+=l;break;case 3:f(),e=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return e===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),n}function mN(r,t,e){const a=vN(gN(r.path),e),n=ve(a,{record:r,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function yN(r,t){const e=[],a=new Map;t=Vb({strict:!1,end:!0,sensitive:!1},t);function n(f){return a.get(f)}function i(f,v,d){const h=!d,g=zb(f);g.aliasOf=d&&d.record;const m=Vb(t,f),y=[g];if("alias"in f){const x=typeof f.alias=="string"?[f.alias]:f.alias;for(const w of x)y.push(zb(ve({},g,{components:d?d.record.components:g.components,path:w,aliasOf:d?d.record:g})))}let _,b;for(const x of y){const{path:w}=x;if(v&&w[0]!=="/"){const S=v.record.path,M=S[S.length-1]==="/"?"":"/";x.path=v.record.path+(w&&M+w)}if(_=mN(x,v,m),d?d.alias.push(_):(b=b||_,b!==_&&b.alias.push(_),h&&f.name&&!Bb(_)&&o(f.name)),cA(_)&&l(_),g.children){const S=g.children;for(let M=0;M<S.length;M++)i(S[M],_,d&&d.children[M])}d=d||_}return b?()=>{o(b)}:Tu}function o(f){if(sA(f)){const v=a.get(f);v&&(a.delete(f),e.splice(e.indexOf(v),1),v.children.forEach(o),v.alias.forEach(o))}else{const v=e.indexOf(f);v>-1&&(e.splice(v,1),f.record.name&&a.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return e}function l(f){const v=xN(f,e);e.splice(v,0,f),f.record.name&&!Bb(f)&&a.set(f.record.name,f)}function u(f,v){let d,h={},g,m;if("name"in f&&f.name){if(d=a.get(f.name),!d)throw tl(1,{location:f});m=d.record.name,h=ve(Ob(v.params,d.keys.filter(b=>!b.optional).concat(d.parent?d.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&Ob(f.params,d.keys.map(b=>b.name))),g=d.stringify(h)}else if(f.path!=null)g=f.path,d=e.find(b=>b.re.test(g)),d&&(h=d.parse(g),m=d.record.name);else{if(d=v.name?a.get(v.name):e.find(b=>b.re.test(v.path)),!d)throw tl(1,{location:f,currentLocation:v});m=d.record.name,h=ve({},v.params,f.params),g=d.stringify(h)}const y=[];let _=d;for(;_;)y.unshift(_.record),_=_.parent;return{name:m,path:g,params:h,matched:y,meta:bN(y)}}r.forEach(f=>i(f));function c(){e.length=0,a.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:s,getRecordMatcher:n}}function Ob(r,t){const e={};for(const a of t)a in r&&(e[a]=r[a]);return e}function zb(r){const t={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:_N(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 _N(r){const t={},e=r.props||!1;if("component"in r)t.default=e;else for(const a in r.components)t[a]=typeof e=="object"?e[a]:e;return t}function Bb(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function bN(r){return r.reduce((t,e)=>ve(t,e.meta),{})}function Vb(r,t){const e={};for(const a in r)e[a]=a in t?t[a]:r[a];return e}function xN(r,t){let e=0,a=t.length;for(;e!==a;){const i=e+a>>1;uA(r,t[i])<0?a=i:e=i+1}const n=wN(r);return n&&(a=t.lastIndexOf(n,a-1)),a}function wN(r){let t=r;for(;t=t.parent;)if(cA(t)&&uA(r,t)===0)return t}function cA({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function SN(r){const t={};if(r===""||r==="?")return t;const a=(r[0]==="?"?r.slice(1):r).split("&");for(let n=0;n<a.length;++n){const i=a[n].replace(eA," "),o=i.indexOf("="),s=qu(o<0?i:i.slice(0,o)),l=o<0?null:qu(i.slice(o+1));if(s in t){let u=t[s];Ia(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function Gb(r){let t="";for(let e in r){const a=r[e];if(e=FE(e),a==null){a!==void 0&&(t+=(t.length?"&":"")+e);continue}(Ia(a)?a.map(i=>i&&Lm(i)):[a&&Lm(a)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+e,i!=null&&(t+="="+i))})}return t}function MN(r){const t={};for(const e in r){const a=r[e];a!==void 0&&(t[e]=Ia(a)?a.map(n=>n==null?null:""+n):a==null?a:""+a)}return t}const CN=Symbol(""),Fb=Symbol(""),F0=Symbol(""),fA=Symbol(""),Pm=Symbol("");function Pl(){let r=[];function t(a){return r.push(a),()=>{const n=r.indexOf(a);n>-1&&r.splice(n,1)}}function e(){r=[]}return{add:t,list:()=>r.slice(),reset:e}}function ui(r,t,e,a,n,i=o=>o()){const o=a&&(a.enterCallbacks[n]=a.enterCallbacks[n]||[]);return()=>new Promise((s,l)=>{const u=v=>{v===!1?l(tl(4,{from:e,to:t})):v instanceof Error?l(v):uN(v)?l(tl(2,{from:t,to:v})):(o&&a.enterCallbacks[n]===o&&typeof v=="function"&&o.push(v),s())},c=i(()=>r.call(a&&a.instances[n],t,e,u));let f=Promise.resolve(c);r.length<3&&(f=f.then(u)),f.catch(v=>l(v))})}function qh(r,t,e,a,n=i=>i()){const i=[];for(const o of r)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(QT(l)){const c=(l.__vccOpts||l)[t];c&&i.push(ui(c,e,a,o,s,n))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const f=kE(c)?c.default:c;o.mods[s]=c,o.components[s]=f;const d=(f.__vccOpts||f)[t];return d&&ui(d,e,a,o,s,n)()}))}}return i}function Hb(r){const t=Ln(F0),e=Ln(fA),a=Rr(()=>{const l=P(r.to);return t.resolve(l)}),n=Rr(()=>{const{matched:l}=a.value,{length:u}=l,c=l[u-1],f=e.matched;if(!c||!f.length)return-1;const v=f.findIndex(Qs.bind(null,c));if(v>-1)return v;const d=Wb(l[u-2]);return u>1&&Wb(c)===d&&f[f.length-1].path!==d?f.findIndex(Qs.bind(null,l[u-2])):v}),i=Rr(()=>n.value>-1&&LN(e.params,a.value.params)),o=Rr(()=>n.value>-1&&n.value===e.matched.length-1&&iA(e.params,a.value.params));function s(l={}){if(DN(l)){const u=t[P(r.replace)?"replace":"push"](P(r.to)).catch(Tu);return r.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:a,href:Rr(()=>a.value.href),isActive:i,isExactActive:o,navigate:s}}function IN(r){return r.length===1?r[0]:r}const TN=ST({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:Hb,setup(r,{slots:t}){const e=Zd(Hb(r)),{options:a}=Ln(F0),n=Rr(()=>({[Zb(r.activeClass,a.linkActiveClass,"router-link-active")]:e.isActive,[Zb(r.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const i=t.default&&IN(t.default(e));return r.custom?i:ju("a",{"aria-current":e.isExactActive?r.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:n.value},i)}}}),AN=TN;function DN(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 LN(r,t){for(const e in t){const a=t[e],n=r[e];if(typeof a=="string"){if(a!==n)return!1}else if(!Ia(n)||n.length!==a.length||a.some((i,o)=>i!==n[o]))return!1}return!0}function Wb(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const Zb=(r,t,e)=>r??t??e,kN=ST({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:e}){const a=Ln(Pm),n=Rr(()=>r.route||a.value),i=Ln(Fb,0),o=Rr(()=>{let u=P(i);const{matched:c}=n.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=Rr(()=>n.value.matched[o.value]);lv(Fb,Rr(()=>o.value+1)),lv(CN,s),lv(Pm,n);const l=nt();return uv(()=>[l.value,s.value,r.name],([u,c,f],[v,d,h])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===v&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Qs(c,d)||!v)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=n.value,c=r.name,f=s.value,v=f&&f.components[c];if(!v)return Yb(e.default,{Component:v,route:u});const d=f.props[c],h=d?d===!0?u.params:typeof d=="function"?d(u):d:null,m=ju(v,ve({},h,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Yb(e.default,{Component:m,route:u})||m}}});function Yb(r,t){if(!r)return null;const e=r(t);return e.length===1?e[0]:e}const PN=kN;function RN(r){const t=yN(r.routes,r),e=r.parseQuery||SN,a=r.stringifyQuery||Gb,n=r.history,i=Pl(),o=Pl(),s=Pl(),l=B4(Xn);let u=Xn;ks&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=jh.bind(null,q=>""+q),f=jh.bind(null,WE),v=jh.bind(null,qu);function d(q,rt){let j,ot;return sA(q)?(j=t.getRecordMatcher(q),ot=rt):ot=q,t.addRoute(ot,j)}function h(q){const rt=t.getRecordMatcher(q);rt&&t.removeRoute(rt)}function g(){return t.getRoutes().map(q=>q.record)}function m(q){return!!t.getRecordMatcher(q)}function y(q,rt){if(rt=ve({},rt||l.value),typeof q=="string"){const F=Xh(e,q,rt.path),U=t.resolve({path:F.path},rt),J=n.createHref(F.fullPath);return ve(F,U,{params:v(U.params),hash:qu(F.hash),redirectedFrom:void 0,href:J})}let j;if(q.path!=null)j=ve({},q,{path:Xh(e,q.path,rt.path).path});else{const F=ve({},q.params);for(const U in F)F[U]==null&&delete F[U];j=ve({},q,{params:f(F)}),rt.params=f(rt.params)}const ot=t.resolve(j,rt),st=q.hash||"";ot.params=c(v(ot.params));const $=UE(a,ve({},q,{hash:GE(st),path:ot.path})),z=n.createHref($);return ve({fullPath:$,hash:st,query:a===Gb?MN(q.query):q.query||{}},ot,{redirectedFrom:void 0,href:z})}function _(q){return typeof q=="string"?Xh(e,q,l.value.path):ve({},q)}function b(q,rt){if(u!==q)return tl(8,{from:rt,to:q})}function x(q){return M(q)}function w(q){return x(ve(_(q),{replace:!0}))}function S(q){const rt=q.matched[q.matched.length-1];if(rt&&rt.redirect){const{redirect:j}=rt;let ot=typeof j=="function"?j(q):j;return typeof ot=="string"&&(ot=ot.includes("?")||ot.includes("#")?ot=_(ot):{path:ot},ot.params={}),ve({query:q.query,hash:q.hash,params:ot.path!=null?{}:q.params},ot)}}function M(q,rt){const j=u=y(q),ot=l.value,st=q.state,$=q.force,z=q.replace===!0,F=S(j);if(F)return M(ve(_(F),{state:typeof F=="object"?ve({},st,F.state):st,force:$,replace:z}),rt||j);const U=j;U.redirectedFrom=rt;let J;return!$&&jE(a,ot,j)&&(J=tl(16,{to:U,from:ot}),et(ot,ot,!0,!1)),(J?Promise.resolve(J):T(U,ot)).catch(tt=>_n(tt)?_n(tt,2)?tt:X(tt):B(tt,U,ot)).then(tt=>{if(tt){if(_n(tt,2))return M(ve({replace:z},_(tt.to),{state:typeof tt.to=="object"?ve({},st,tt.to.state):st,force:$}),rt||U)}else tt=E(U,ot,!0,z,st);return D(U,ot,tt),tt})}function C(q,rt){const j=b(q,rt);return j?Promise.reject(j):Promise.resolve()}function I(q){const rt=_t.values().next().value;return rt&&typeof rt.runWithContext=="function"?rt.runWithContext(q):q()}function T(q,rt){let j;const[ot,st,$]=EN(q,rt);j=qh(ot.reverse(),"beforeRouteLeave",q,rt);for(const F of ot)F.leaveGuards.forEach(U=>{j.push(ui(U,q,rt))});const z=C.bind(null,q,rt);return j.push(z),Wt(j).then(()=>{j=[];for(const F of i.list())j.push(ui(F,q,rt));return j.push(z),Wt(j)}).then(()=>{j=qh(st,"beforeRouteUpdate",q,rt);for(const F of st)F.updateGuards.forEach(U=>{j.push(ui(U,q,rt))});return j.push(z),Wt(j)}).then(()=>{j=[];for(const F of $)if(F.beforeEnter)if(Ia(F.beforeEnter))for(const U of F.beforeEnter)j.push(ui(U,q,rt));else j.push(ui(F.beforeEnter,q,rt));return j.push(z),Wt(j)}).then(()=>(q.matched.forEach(F=>F.enterCallbacks={}),j=qh($,"beforeRouteEnter",q,rt,I),j.push(z),Wt(j))).then(()=>{j=[];for(const F of o.list())j.push(ui(F,q,rt));return j.push(z),Wt(j)}).catch(F=>_n(F,8)?F:Promise.reject(F))}function D(q,rt,j){s.list().forEach(ot=>I(()=>ot(q,rt,j)))}function E(q,rt,j,ot,st){const $=b(q,rt);if($)return $;const z=rt===Xn,F=ks?history.state:{};j&&(ot||z?n.replace(q.fullPath,ve({scroll:z&&F&&F.scroll},st)):n.push(q.fullPath,st)),l.value=q,et(q,rt,j,z),X()}let R;function k(){R||(R=n.listen((q,rt,j)=>{if(!Ct.listening)return;const ot=y(q),st=S(ot);if(st){M(ve(st,{replace:!0,force:!0}),ot).catch(Tu);return}u=ot;const $=l.value;ks&&rN(Pb($.fullPath,j.delta),Kd()),T(ot,$).catch(z=>_n(z,12)?z:_n(z,2)?(M(ve(_(z.to),{force:!0}),ot).then(F=>{_n(F,20)&&!j.delta&&j.type===Ku.pop&&n.go(-1,!1)}).catch(Tu),Promise.reject()):(j.delta&&n.go(-j.delta,!1),B(z,ot,$))).then(z=>{z=z||E(ot,$,!1),z&&(j.delta&&!_n(z,8)?n.go(-j.delta,!1):j.type===Ku.pop&&_n(z,20)&&n.go(-1,!1)),D(ot,$,z)}).catch(Tu)}))}let N=Pl(),O=Pl(),V;function B(q,rt,j){X(q);const ot=O.list();return ot.length?ot.forEach(st=>st(q,rt,j)):console.error(q),Promise.reject(q)}function Z(){return V&&l.value!==Xn?Promise.resolve():new Promise((q,rt)=>{N.add([q,rt])})}function X(q){return V||(V=!q,k(),N.list().forEach(([rt,j])=>q?j(q):rt()),N.reset()),q}function et(q,rt,j,ot){const{scrollBehavior:st}=r;if(!ks||!st)return Promise.resolve();const $=!j&&aN(Pb(q.fullPath,0))||(ot||!j)&&history.state&&history.state.scroll||null;return N0().then(()=>st(q,rt,$)).then(z=>z&&eN(z)).catch(z=>B(z,q,rt))}const it=q=>n.go(q);let yt;const _t=new Set,Ct={currentRoute:l,listening:!0,addRoute:d,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:y,options:r,push:x,replace:w,go:it,back:()=>it(-1),forward:()=>it(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:Z,install(q){const rt=this;q.component("RouterLink",AN),q.component("RouterView",PN),q.config.globalProperties.$router=rt,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>P(l)}),ks&&!yt&&l.value===Xn&&(yt=!0,x(n.location).catch(st=>{}));const j={};for(const st in Xn)Object.defineProperty(j,st,{get:()=>l.value[st],enumerable:!0});q.provide(F0,rt),q.provide(fA,dT(j)),q.provide(Pm,l);const ot=q.unmount;_t.add(q),q.unmount=function(){_t.delete(q),_t.size<1&&(u=Xn,R&&R(),R=null,l.value=Xn,yt=!1,V=!1),ot()}}};function Wt(q){return q.reduce((rt,j)=>rt.then(()=>I(j)),Promise.resolve())}return Ct}function EN(r,t){const e=[],a=[],n=[],i=Math.max(t.matched.length,r.matched.length);for(let o=0;o<i;o++){const s=t.matched[o];s&&(r.matched.find(u=>Qs(u,s))?a.push(s):e.push(s));const l=r.matched[o];l&&(t.matched.find(u=>Qs(u,l))||n.push(l))}return[e,a,n]}const NN={class:"home-container min-h-screen bg-gray-100 p-4 md:p-8"},$N={class:"max-w-7xl mx-auto"},ON={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6"},zN={class:"card-content"},BN={__name:"HomeView",setup(r){const t=[{path:"/fluent",name:"Fluent Design",description:"微软流畅设计系统",cardClass:"fluent-card",titleClass:"text-white",descriptionClass:"text-blue-100"},{path:"/ios",name:"iOS Design",description:"苹果设计风格",cardClass:"ios-card",titleClass:"text-gray-900",descriptionClass:"text-gray-600"},{path:"/element",name:"Element UI",description:"饿了么设计系统",cardClass:"element-card",titleClass:"text-white",descriptionClass:"text-green-100"},{path:"/ant",name:"Ant Design",description:"蚂蚁设计系统",cardClass:"ant-card",titleClass:"text-white",descriptionClass:"text-blue-100"},{path:"/morphism",name:"Morphism",description:"变形设计风格",cardClass:"morphism-card",titleClass:"text-purple-900",descriptionClass:"text-purple-700"},{path:"/holographic",name:"Holographic",description:"全息设计风格",cardClass:"holographic-card",titleClass:"text-white",descriptionClass:"text-blue-100"},{path:"/gradient",name:"Gradient",description:"渐变设计风格",cardClass:"gradient-card",titleClass:"text-white",descriptionClass:"text-pink-100"},{path:"/neon",name:"Neon",description:"霓虹设计风格",cardClass:"neon-card",titleClass:"text-pink-400",descriptionClass:"text-pink-300"},{path:"/organic",name:"Organic",description:"有机设计风格",cardClass:"organic-card",titleClass:"text-green-900",descriptionClass:"text-green-700"},{path:"/pixel",name:"Pixel Art",description:"像素艺术风格",cardClass:"pixel-card",titleClass:"text-yellow-900",descriptionClass:"text-yellow-700"},{path:"/brutalism",name:"Brutalism",description:"粗野主义风格",cardClass:"brutalism-card",titleClass:"text-black",descriptionClass:"text-gray-800"},{path:"/3d",name:"3D Design",description:"3D设计风格",cardClass:"three-d-card",titleClass:"text-white",descriptionClass:"text-blue-200"},{path:"/skeuomorphic",name:"Skeuomorphic",description:"拟物设计风格",cardClass:"skeuomorphic-card",titleClass:"text-amber-900",descriptionClass:"text-amber-700"},{path:"/neumorphism",name:"Neumorphism",description:"新拟物设计风格",cardClass:"neumorphism-card",titleClass:"text-gray-800",descriptionClass:"text-gray-600"},{path:"/flat",name:"Flat",description:"扁平设计风格",cardClass:"flat-card",titleClass:"text-white",descriptionClass:"text-red-100"},{path:"/material",name:"Material",description:"材料设计风格",cardClass:"material-card",titleClass:"text-white",descriptionClass:"text-blue-100"},{path:"/nordic",name:"Nordic",description:"北欧设计风格",cardClass:"nordic-card",titleClass:"text-gray-900",descriptionClass:"text-gray-600"},{path:"/futuristic",name:"Futuristic",description:"未来主义风格",cardClass:"futuristic-card",titleClass:"text-white",descriptionClass:"text-cyan-100"},{path:"/retro",name:"Retro",description:"复古设计风格",cardClass:"retro-card",titleClass:"text-orange-900",descriptionClass:"text-orange-700"},{path:"/cyberpunk",name:"Cyberpunk",description:"赛博朋克风格",cardClass:"cyberpunk-card",titleClass:"text-pink-400",descriptionClass:"text-purple-300"},{path:"/steampunk",name:"Steampunk",description:"蒸汽朋克风格",cardClass:"steampunk-card",titleClass:"text-amber-100",descriptionClass:"text-amber-200"},{path:"/aurora",name:"Aurora",description:"极光设计风格",cardClass:"aurora-card",titleClass:"text-white",descriptionClass:"text-green-100"},{path:"/minimalist",name:"Minimalist",description:"极简设计风格",cardClass:"minimalist-card",titleClass:"text-gray-900",descriptionClass:"text-gray-600"},{path:"/dark-mode",name:"Dark Mode",description:"暗黑模式风格",cardClass:"dark-mode-card",titleClass:"text-white",descriptionClass:"text-gray-300"},{path:"/glassmorphism",name:"Glassmorphism",description:"玻璃态设计风格",cardClass:"glassmorphism-card",titleClass:"text-gray-900",descriptionClass:"text-gray-700"}];return(e,a)=>{const n=AT("router-link");return H(),W("div",NN,[p("div",$N,[a[0]||(a[0]=p("h1",{class:"text-4xl font-bold text-gray-900 mb-8"},"设计风格",-1)),a[1]||(a[1]=p("p",{class:"text-gray-900 mb-8"},"请选择您的设计风格偏好来创建您的原型",-1)),p("div",ON,[(H(),W(Ft,null,re(t,i=>L(n,{key:i.path,to:i.path,class:ie(i.cardClass)},{default:wT(()=>[p("div",zN,[p("h3",{class:ie(["text-xl font-semibold",i.titleClass])},at(i.name),3),p("p",{class:ie(["text-sm",i.descriptionClass])},at(i.description),3)])]),_:2},1032,["to","class"])),64))])])])}}},VN=Ce(BN,[["__scopeId","data-v-d6c43755"]]);/*! *****************************************************************************
  22. Copyright (c) Microsoft Corporation.
  23. Permission to use, copy, modify, and/or distribute this software for any
  24. purpose with or without fee is hereby granted.
  25. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  26. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  27. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  28. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  29. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  30. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  31. PERFORMANCE OF THIS SOFTWARE.
  32. ***************************************************************************** */var Rm=function(r,t){return Rm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},Rm(r,t)};function G(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Rm(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var GN=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),FN=function(){function r(){this.browser=new GN,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}(),Gt=new FN;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Gt.wxa=!0,Gt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Gt.worker=!0:!Gt.hasGlobalWindow||"Deno"in window?(Gt.node=!0,Gt.svgSupported=!0):HN(navigator.userAgent,Gt);function HN(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(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 s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var H0=12,vA="sans-serif",Ti=H0+"px "+vA,WN=20,ZN=100,YN="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function UN(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var a=String.fromCharCode(e+32),n=(r.charCodeAt(e)-WN)/ZN;t[a]=n}return t}var jN=UN(YN),Ai={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,a){if(!r){var n=Ai.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==a&&(t=r.font=a||Ti),r.measureText(e);e=e||"",a=a||Ti;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||H0,s=0;if(a.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=jN[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var a=new Image;return a.onload=t,a.onerror=e,a.src=r,a}},dA=un(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),hA=un(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),dl=Object.prototype.toString,Jd=Array.prototype,XN=Jd.forEach,qN=Jd.filter,W0=Jd.slice,KN=Jd.map,Ub=(function(){}).constructor,af=Ub?Ub.prototype:null,Z0="__proto__",JN=2311;function pA(){return JN++}function Y0(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function Mt(r){if(r==null||typeof r!="object")return r;var t=r,e=dl.call(r);if(e==="[object Array]"){if(!Du(r)){t=[];for(var a=0,n=r.length;a<n;a++)t[a]=Mt(r[a])}}else if(hA[e]){if(!Du(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var a=0,n=r.length;a<n;a++)t[a]=r[a]}}}else if(!dA[e]&&!Du(r)&&!el(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Z0&&(t[o]=Mt(r[o]))}return t}function Lt(r,t,e){if(!St(t)||!St(r))return e?Mt(t):r;for(var a in t)if(t.hasOwnProperty(a)&&a!==Z0){var n=r[a],i=t[a];St(i)&&St(n)&&!K(i)&&!K(n)&&!el(i)&&!el(n)&&!jb(i)&&!jb(n)&&!Du(i)&&!Du(n)?Lt(n,i,e):(e||!(a in r))&&(r[a]=Mt(t[a]))}return r}function U0(r,t){for(var e=r[0],a=1,n=r.length;a<n;a++)e=Lt(e,r[a],t);return e}function Y(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Z0&&(r[e]=t[e]);return r}function wt(r,t,e){for(var a=Ut(t),n=0,i=a.length;n<i;n++){var o=a[n];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}function Nt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,a=r.length;e<a;e++)if(r[e]===t)return e}return-1}function QN(r,t){var e=r.prototype;function a(){}a.prototype=t.prototype,r.prototype=new a;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Oe(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(t),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else wt(r,t,e)}function ur(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,t,e){if(r&&t)if(r.forEach&&r.forEach===XN)r.forEach(t,e);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)t.call(e,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function Q(r,t,e){if(!r)return[];if(!t)return j0(r);if(r.map&&r.map===KN)return r.map(t,e);for(var a=[],n=0,i=r.length;n<i;n++)a.push(t.call(e,r[n],n,r));return a}function un(r,t,e,a){if(r&&t){for(var n=0,i=r.length;n<i;n++)e=t.call(a,e,r[n],n,r);return e}}function ne(r,t,e){if(!r)return[];if(!t)return j0(r);if(r.filter&&r.filter===qN)return r.filter(t,e);for(var a=[],n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r)&&a.push(r[n]);return a}function t6(r,t,e){if(r&&t){for(var a=0,n=r.length;a<n;a++)if(t.call(e,r[a],a,r))return r[a]}}function Ut(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function e6(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return function(){return r.apply(t,e.concat(W0.call(arguments)))}}var dt=af&&xt(af.bind)?af.call.bind(af.bind):e6;function Dt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(W0.call(arguments)))}}function K(r){return Array.isArray?Array.isArray(r):dl.call(r)==="[object Array]"}function xt(r){return typeof r=="function"}function ft(r){return typeof r=="string"}function Em(r){return dl.call(r)==="[object String]"}function Qt(r){return typeof r=="number"}function St(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function jb(r){return!!dA[dl.call(r)]}function Nr(r){return!!hA[dl.call(r)]}function el(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Qd(r){return r.colorStops!=null}function r6(r){return r.image!=null}function a6(r){return dl.call(r)==="[object RegExp]"}function Ju(r){return r!==r}function je(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,a=r.length;e<a;e++)if(r[e]!=null)return r[e]}function At(r,t){return r??t}function an(r,t,e){return r??t??e}function j0(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return W0.apply(r,t)}function X0(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function wr(r,t){if(!r)throw new Error(t)}function xa(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var gA="__ec_primitive__";function Zv(r){r[gA]=!0}function Du(r){return r[gA]}var n6=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Ut(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var a in e)e.hasOwnProperty(a)&&t(e[a],a)},r}(),mA=typeof Map=="function";function i6(){return mA?new Map:new n6}var o6=function(){function r(t){var e=K(t);this.data=i6();var a=this;t instanceof r?t.each(n):t&&A(t,n);function n(i,o){e?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(a,n){t.call(e,a,n)})},r.prototype.keys=function(){var t=this.data.keys();return mA?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function mt(r){return new o6(r)}function Qu(r,t){for(var e=new r.constructor(r.length+t.length),a=0;a<r.length;a++)e[a]=r[a];for(var n=r.length,a=0;a<t.length;a++)e[a+n]=t[a];return e}function th(r,t){var e;if(Object.create)e=Object.create(r);else{var a=function(){};a.prototype=r,e=new a}return t&&Y(e,t),e}function yA(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function gt(r,t){return r.hasOwnProperty(t)}function Re(){}var dv=180/Math.PI;function Jo(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function pr(r,t){return r[0]=t[0],r[1]=t[1],r}function Pn(r){return[r[0],r[1]]}function s6(r,t,e){return r[0]=t,r[1]=e,r}function Xb(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Nm(r,t,e,a){return r[0]=t[0]+e[0]*a,r[1]=t[1]+e[1]*a,r}function Mo(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function $m(r){return Math.sqrt(l6(r))}function l6(r){return r[0]*r[0]+r[1]*r[1]}function hv(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function hl(r,t){var e=$m(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Om(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var di=Om;function u6(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Ro=u6;function pv(r,t,e,a){return r[0]=t[0]+a*(e[0]-t[0]),r[1]=t[1]+a*(e[1]-t[1]),r}function Ke(r,t,e){var a=t[0],n=t[1];return r[0]=e[0]*a+e[2]*n+e[4],r[1]=e[1]*a+e[3]*n+e[5],r}function hi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function pi(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var ls=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),c6=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ls(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var a=t.offsetX,n=t.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,e.drift(i,o,t),this.handler.dispatchToElement(new ls(e,t),"drag",t.event);var s=this.handler.findHover(a,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ls(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new ls(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ls(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ls(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),da=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(n=a,a=e,e=null),!a||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===a)return this;var l={h:a,query:e,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var a=this._$handlers;if(!a)return this;if(!t)return this._$handlers={},this;if(e){if(a[t]){for(var n=[],i=0,o=a[t].length;i<o;i++)a[t][i].h!==e&&n.push(a[t][i]);a[t]=n}a[t]&&a[t].length===0&&delete a[t]}else delete a[t];return this},r.prototype.trigger=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var c=n[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,e[0]);break;case 2:c.h.call(s,e[0],e[1]);break;default:c.h.apply(s,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r}(),f6=Math.log(2);function zm(r,t,e,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/f6);return r[e][l]}for(var u=a|1<<e,c=e+1;a&1<<c;)c++;for(var f=0,v=0,d=0;v<s;v++){var h=1<<v;h&n||(f+=(d%2?-1:1)*r[e][v]*zm(r,t-1,c,u,n|h,i),d++)}return i[o]=f,f}function qb(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],a={},n=zm(e,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*zm(e,7,o===0?1:0,1<<o,1<<s,a)/n*t[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var Kb="___zrEVENTSAVED",Kh=[];function v6(r,t,e,a,n){return Bm(Kh,t,a,n,!0)&&Bm(r,e,Kh[0],Kh[1])}function Bm(r,t,e,a,n){if(t.getBoundingClientRect&&Gt.domSupported&&!_A(t)){var i=t[Kb]||(t[Kb]={}),o=d6(t,i),s=h6(o,i,n);if(s)return s(r,e,a),!0}return!1}function d6(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function h6(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,v=c.left,d=c.top;o.push(v,d),l=l&&i&&v===i[f]&&d===i[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=e?qb(s,o):qb(o,s))}function _A(r){return r.nodeName.toUpperCase()==="CANVAS"}var p6=/([&<>"'])/g,g6={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function _r(r){return r==null?"":(r+"").replace(p6,function(t,e){return g6[e]})}var m6=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jh=[],y6=Gt.browser.firefox&&+Gt.browser.version.split(".")[0]<39;function Vm(r,t,e,a){return e=e||{},a?Jb(r,t,e):y6&&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):Jb(r,t,e),e}function Jb(r,t,e){if(Gt.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(_A(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(Bm(Jh,r,a,n)){e.zrX=Jh[0],e.zrY=Jh[1];return}}e.zrX=e.zrY=0}function q0(r){return r||window.event}function ta(r,t,e){if(t=q0(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Vm(r,o,t,e)}else{Vm(r,t,t,e);var i=_6(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&m6.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function _6(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function Gm(r,t,e,a){r.addEventListener(t,e,a)}function b6(r,t,e,a){r.removeEventListener(t,e,a)}var On=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Qb(r){return r.which===2||r.which===3}var x6=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=Vm(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in Qh)if(Qh.hasOwnProperty(e)){var a=Qh[e](this._track,t);if(a)return a}},r}();function tx(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function w6(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Qh={pinch:function(r,t){var e=r.length;if(e){var a=(r[e-1]||{}).points,n=(r[e-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=tx(a)/tx(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=w6(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Yr(){return[1,0,0,1,0,0]}function eh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function K0(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 Rn(r,t,e){var a=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function cn(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 Qo(r,t,e,a){a===void 0&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(e),f=Math.cos(e);return r[0]=n*f+s*c,r[1]=-n*c+s*f,r[2]=i*f+l*c,r[3]=-i*c+f*l,r[4]=f*(o-a[0])+c*(u-a[1])+a[0],r[5]=f*(u-a[1])-c*(o-a[0])+a[1],r}function J0(r,t,e){var a=e[0],n=e[1];return r[0]=t[0]*a,r[1]=t[1]*n,r[2]=t[2]*a,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*n,r}function pl(r,t){var e=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-e*s)*l,r):null}function S6(r){var t=Yr();return K0(t,r),t}var kt=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,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},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,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+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,a){t.x=e,t.y=a},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,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,n){t.x=e.x+a.x*n,t.y=e.y+a.y*n},r.lerp=function(t,e,a,n){var i=1-n;t.x=i*e.x+n*a.x,t.y=i*e.y+n*a.y},r}(),nf=Math.min,of=Math.max,Gi=new kt,Fi=new kt,Hi=new kt,Wi=new kt,Rl=new kt,El=new kt,Pt=function(){function r(t,e,a,n){a<0&&(t=t+a,a=-a),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=a,this.height=n}return r.prototype.union=function(t){var e=nf(t.x,this.x),a=nf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=of(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=of(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,n=t.height/e.height,i=Yr();return cn(i,i,[-e.x,-e.y]),J0(i,i,[a,n]),cn(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 a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,v=!(i<l||u<n||s<c||f<o);if(e){var d=1/0,h=0,g=Math.abs(i-l),m=Math.abs(u-n),y=Math.abs(s-c),_=Math.abs(f-o),b=Math.min(g,m),x=Math.min(y,_);i<l||u<n?b>h&&(h=b,g<m?kt.set(El,-g,0):kt.set(El,m,0)):b<d&&(d=b,g<m?kt.set(Rl,g,0):kt.set(Rl,-m,0)),s<c||f<o?x>h&&(h=x,y<_?kt.set(El,0,-y):kt.set(El,0,_)):b<d&&(d=b,y<_?kt.set(Rl,0,y):kt.set(Rl,0,-_))}return e&&kt.copy(e,v?Rl:El),v},r.prototype.contain=function(t,e){var a=this;return t>=a.x&&t<=a.x+a.width&&e>=a.y&&e<=a.y+a.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,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];t.x=e.x*n+o,t.y=e.y*i+s,t.width=e.width*n,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}Gi.x=Hi.x=e.x,Gi.y=Wi.y=e.y,Fi.x=Wi.x=e.x+e.width,Fi.y=Hi.y=e.y+e.height,Gi.transform(a),Wi.transform(a),Fi.transform(a),Hi.transform(a),t.x=nf(Gi.x,Fi.x,Hi.x,Wi.x),t.y=nf(Gi.y,Fi.y,Hi.y,Wi.y);var l=of(Gi.x,Fi.x,Hi.x,Wi.x),u=of(Gi.y,Fi.y,Hi.y,Wi.y);t.width=l-t.x,t.height=u-t.y},r}(),bA="silent";function M6(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:C6}}function C6(){On(this.event)}var I6=function(r){G(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}(da),Nl=function(){function r(t,e){this.x=t,this.y=e}return r}(),T6=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tp=new Pt(0,0,0,0),xA=function(r){G(t,r);function t(e,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Nl(0,0),s.storage=e,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new I6,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new c6(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(T6,function(a){e.on&&e.on(a,this[a],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var a=e.zrX,n=e.zrY,i=wA(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Nl(a,n):this.findHover(a,n),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var a=e.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Nl(0,0)},t.prototype.dispatch=function(e,a){var n=this[e];n&&n.call(this,a)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var a=this.proxy;a.setCursor&&a.setCursor(e)},t.prototype.dispatchToElement=function(e,a,n){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+a,s=M6(a,e,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},t.prototype.findHover=function(e,a,n){var i=this.storage.getDisplayList(),o=new Nl(e,a);if(ex(i,o,e,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Pt(e-u,a-u,l,l),f=i.length-1;f>=0;f--){var v=i[f];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(tp.copy(v.getBoundingRect()),v.transform&&tp.applyTransform(v.transform),tp.intersect(c)&&s.push(v))}if(s.length)for(var d=4,h=Math.PI/12,g=Math.PI*2,m=0;m<u;m+=d)for(var y=0;y<g;y+=h){var _=e+m*Math.cos(y),b=a+m*Math.sin(y);if(ex(s,o,_,b,n),o.target)return o}}return o},t.prototype.processGesture=function(e,a){this._gestureMgr||(this._gestureMgr=new x6);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;e.gestureEvent=o;var s=new Nl;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(da);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){xA.prototype[r]=function(t){var e=t.zrX,a=t.zrY,n=wA(this,e,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(e,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||di(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function A6(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?bA:!0}return!1}function ex(r,t,e,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=A6(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==bA)){t.target=o;break}}}function wA(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var SA=32,$l=7;function D6(r){for(var t=0;r>=SA;)t|=r&1,r>>=1;return r+t}function rx(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n<e&&a(r[n],r[n-1])<0;)n++;L6(r,t,n)}else for(;n<e&&a(r[n],r[n-1])>=0;)n++;return n-t}function L6(r,t,e){for(e--;t<e;){var a=r[t];r[t++]=r[e],r[e--]=a}}function ax(r,t,e,a,n){for(a===t&&a++;a<e;a++){for(var i=r[a],o=t,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function ep(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])>0){for(s=a-n;l<s&&i(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var c=o+(l-o>>>1);i(r,t[e+c])>0?o=c+1:l=c}return l}function rp(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])<0){for(s=n+1;l<s&&i(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var c=o+(l-o>>>1);i(r,t[e+c])<0?l=c:o=c+1}return l}function k6(r,t){var e=$l,a,n,i=0,o=[];a=[],n=[];function s(d,h){a[i]=d,n[i]=h,i+=1}function l(){for(;i>1;){var d=i-2;if(d>=1&&n[d-1]<=n[d]+n[d+1]||d>=2&&n[d-2]<=n[d]+n[d-1])n[d-1]<n[d+1]&&d--;else if(n[d]>n[d+1])break;c(d)}}function u(){for(;i>1;){var d=i-2;d>0&&n[d-1]<n[d+1]&&d--,c(d)}}function c(d){var h=a[d],g=n[d],m=a[d+1],y=n[d+1];n[d]=g+y,d===i-3&&(a[d+1]=a[d+2],n[d+1]=n[d+2]),i--;var _=rp(r[m],r,h,g,0,t);h+=_,g-=_,g!==0&&(y=ep(r[h+g-1],r,m,y,y-1,t),y!==0&&(g<=y?f(h,g,m,y):v(h,g,m,y)))}function f(d,h,g,m){var y=0;for(y=0;y<h;y++)o[y]=r[d+y];var _=0,b=g,x=d;if(r[x++]=r[b++],--m===0){for(y=0;y<h;y++)r[x+y]=o[_+y];return}if(h===1){for(y=0;y<m;y++)r[x+y]=r[b+y];r[x+m]=o[_];return}for(var w=e,S,M,C;;){S=0,M=0,C=!1;do if(t(r[b],o[_])<0){if(r[x++]=r[b++],M++,S=0,--m===0){C=!0;break}}else if(r[x++]=o[_++],S++,M=0,--h===1){C=!0;break}while((S|M)<w);if(C)break;do{if(S=rp(r[b],o,_,h,0,t),S!==0){for(y=0;y<S;y++)r[x+y]=o[_+y];if(x+=S,_+=S,h-=S,h<=1){C=!0;break}}if(r[x++]=r[b++],--m===0){C=!0;break}if(M=ep(o[_],r,b,m,0,t),M!==0){for(y=0;y<M;y++)r[x+y]=r[b+y];if(x+=M,b+=M,m-=M,m===0){C=!0;break}}if(r[x++]=o[_++],--h===1){C=!0;break}w--}while(S>=$l||M>=$l);if(C)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),h===1){for(y=0;y<m;y++)r[x+y]=r[b+y];r[x+m]=o[_]}else{if(h===0)throw new Error;for(y=0;y<h;y++)r[x+y]=o[_+y]}}function v(d,h,g,m){var y=0;for(y=0;y<m;y++)o[y]=r[g+y];var _=d+h-1,b=m-1,x=g+m-1,w=0,S=0;if(r[x--]=r[_--],--h===0){for(w=x-(m-1),y=0;y<m;y++)r[w+y]=o[y];return}if(m===1){for(x-=h,_-=h,S=x+1,w=_+1,y=h-1;y>=0;y--)r[S+y]=r[w+y];r[x]=o[b];return}for(var M=e;;){var C=0,I=0,T=!1;do if(t(o[b],r[_])<0){if(r[x--]=r[_--],C++,I=0,--h===0){T=!0;break}}else if(r[x--]=o[b--],I++,C=0,--m===1){T=!0;break}while((C|I)<M);if(T)break;do{if(C=h-rp(o[b],r,d,h,h-1,t),C!==0){for(x-=C,_-=C,h-=C,S=x+1,w=_+1,y=C-1;y>=0;y--)r[S+y]=r[w+y];if(h===0){T=!0;break}}if(r[x--]=o[b--],--m===1){T=!0;break}if(I=m-ep(r[_],o,0,m,m-1,t),I!==0){for(x-=I,b-=I,m-=I,S=x+1,w=b+1,y=0;y<I;y++)r[S+y]=o[w+y];if(m<=1){T=!0;break}}if(r[x--]=r[_--],--h===0){T=!0;break}M--}while(C>=$l||I>=$l);if(T)break;M<0&&(M=0),M+=2}if(e=M,e<1&&(e=1),m===1){for(x-=h,_-=h,S=x+1,w=_+1,y=h-1;y>=0;y--)r[S+y]=r[w+y];r[x]=o[b]}else{if(m===0)throw new Error;for(w=x-(m-1),y=0;y<m;y++)r[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function gv(r,t,e,a){e||(e=0),a||(a=r.length);var n=a-e;if(!(n<2)){var i=0;if(n<SA){i=rx(r,e,a,t),ax(r,e,a,e+i,t);return}var o=k6(r,t),s=D6(n);do{if(i=rx(r,e,a,t),i<s){var l=n;l>s&&(l=s),ax(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var nn=1,mv=2,uu=4,nx=!1;function ap(){nx||(nx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ix(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var P6=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ix}return r.prototype.traverse=function(t,e){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var a=this._displayList;return(t||!a.length)&&this.updateDisplayList(e),a},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,a=this._displayList,n=0,i=e.length;n<i;n++)this._updateAndAddDisplayable(e[n],null,t);a.length=this._displayListLen,gv(a,ix)},r.prototype._updateAndAddDisplayable=function(t,e,a){if(!(t.ignore&&!a)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e?e=e.slice():e=[];for(var i=n,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=nn),this._updateAndAddDisplayable(u,e,a)}t.__dirty=0}else{var c=t;e&&e.length?c.__clipPaths=e:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(ap(),c.z=0),isNaN(c.z2)&&(ap(),c.z2=0),isNaN(c.zlevel)&&(ap(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,e,a);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,a);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,a)}},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,a=t.length;e<a;e++)this.delRoot(t[e]);return}var n=Nt(this._roots,t);n>=0&&this._roots.splice(n,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}(),Yv;Yv=Gt.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,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*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)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.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}},sf=Math.pow,Si=Math.sqrt,MA=1e-8,CA=1e-4,ox=Si(3),lf=1/3,qa=Jo(),na=Jo(),Zs=Jo();function gi(r){return r>-1e-8&&r<MA}function IA(r){return r>MA||r<-1e-8}function Ge(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function sx(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Uv(r,t,e,a,n,i){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,c=s*s-3*o*l,f=s*l-9*o*u,v=l*l-3*s*u,d=0;if(gi(c)&&gi(f))if(gi(s))i[0]=0;else{var h=-l/s;h>=0&&h<=1&&(i[d++]=h)}else{var g=f*f-4*c*v;if(gi(g)){var m=f/c,h=-s/o+m,y=-m/2;h>=0&&h<=1&&(i[d++]=h),y>=0&&y<=1&&(i[d++]=y)}else if(g>0){var _=Si(g),b=c*s+1.5*o*(-f+_),x=c*s+1.5*o*(-f-_);b<0?b=-sf(-b,lf):b=sf(b,lf),x<0?x=-sf(-x,lf):x=sf(x,lf);var h=(-s-(b+x))/(3*o);h>=0&&h<=1&&(i[d++]=h)}else{var w=(2*c*s-3*o*f)/(2*Si(c*c*c)),S=Math.acos(w)/3,M=Si(c),C=Math.cos(S),h=(-s-2*M*C)/(3*o),y=(-s+M*(C+ox*Math.sin(S)))/(3*o),I=(-s+M*(C-ox*Math.sin(S)))/(3*o);h>=0&&h<=1&&(i[d++]=h),y>=0&&y<=1&&(i[d++]=y),I>=0&&I<=1&&(i[d++]=I)}}return d}function TA(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(gi(o)){if(IA(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var c=i*i-4*o*s;if(gi(c))n[0]=-i/(2*o);else if(c>0){var f=Si(c),u=(-i+f)/(2*o),v=(-i-f)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Di(r,t,e,a,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(a-e)*n+e,u=(s-o)*n+o,c=(l-s)*n+s,f=(c-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=a}function AA(r,t,e,a,n,i,o,s,l,u,c){var f,v=.005,d=1/0,h,g,m,y;qa[0]=l,qa[1]=u;for(var _=0;_<1;_+=.05)na[0]=Ge(r,e,n,o,_),na[1]=Ge(t,a,i,s,_),m=Ro(qa,na),m<d&&(f=_,d=m);d=1/0;for(var b=0;b<32&&!(v<CA);b++)h=f-v,g=f+v,na[0]=Ge(r,e,n,o,h),na[1]=Ge(t,a,i,s,h),m=Ro(na,qa),h>=0&&m<d?(f=h,d=m):(Zs[0]=Ge(r,e,n,o,g),Zs[1]=Ge(t,a,i,s,g),y=Ro(Zs,qa),g<=1&&y<d?(f=g,d=y):v*=.5);return c&&(c[0]=Ge(r,e,n,o,f),c[1]=Ge(t,a,i,s,f)),Si(d)}function R6(r,t,e,a,n,i,o,s,l){for(var u=r,c=t,f=0,v=1/l,d=1;d<=l;d++){var h=d*v,g=Ge(r,e,n,o,h),m=Ge(t,a,i,s,h),y=g-u,_=m-c;f+=Math.sqrt(y*y+_*_),u=g,c=m}return f}function Ue(r,t,e,a){var n=1-a;return n*(n*r+2*a*t)+a*a*e}function Fm(r,t,e,a){return 2*((1-a)*(t-r)+a*(e-t))}function E6(r,t,e,a,n){var i=r-2*t+e,o=2*(t-r),s=r-a,l=0;if(gi(i)){if(IA(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var c=o*o-4*i*s;if(gi(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(c>0){var f=Si(c),u=(-o+f)/(2*i),v=(-o-f)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function DA(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function tc(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function LA(r,t,e,a,n,i,o,s,l){var u,c=.005,f=1/0;qa[0]=o,qa[1]=s;for(var v=0;v<1;v+=.05){na[0]=Ue(r,e,n,v),na[1]=Ue(t,a,i,v);var d=Ro(qa,na);d<f&&(u=v,f=d)}f=1/0;for(var h=0;h<32&&!(c<CA);h++){var g=u-c,m=u+c;na[0]=Ue(r,e,n,g),na[1]=Ue(t,a,i,g);var d=Ro(na,qa);if(g>=0&&d<f)u=g,f=d;else{Zs[0]=Ue(r,e,n,m),Zs[1]=Ue(t,a,i,m);var y=Ro(Zs,qa);m<=1&&y<f?(u=m,f=y):c*=.5}}return l&&(l[0]=Ue(r,e,n,u),l[1]=Ue(t,a,i,u)),Si(f)}function N6(r,t,e,a,n,i,o){for(var s=r,l=t,u=0,c=1/o,f=1;f<=o;f++){var v=f*c,d=Ue(r,e,n,v),h=Ue(t,a,i,v),g=d-s,m=h-l;u+=Math.sqrt(g*g+m*m),s=d,l=h}return u}var $6=/cubic-bezier\(([0-9,\.e ]+)\)/;function Q0(r){var t=r&&$6.exec(r);if(t){var e=t[1].split(","),a=+xa(e[0]),n=+xa(e[1]),i=+xa(e[2]),o=+xa(e[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Uv(0,a,i,1,l,s)&&Ge(0,n,o,1,s[0])}}}var O6=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||Re,this.ondestroy=t.ondestroy||Re,this.onrestart=t.onrestart||Re,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 a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=xt(t)?t:Lu[t]||Q0(t)},r}(),kA=function(){function r(t){this.value=t}return r}(),z6=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new kA(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,a=t.next;e?e.next=a:this.head=a,a?a.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}(),Pc=function(){function r(t){this._list=new z6,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new kA(e),s.key=t,a.insertEntry(s),n[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),lx={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 Ma(r){return r=Math.round(r),r<0?0:r>255?255:r}function B6(r){return r=Math.round(r),r<0?0:r>360?360:r}function ec(r){return r<0?0:r>1?1:r}function np(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ma(parseFloat(t)/100*255):Ma(parseInt(t,10))}function Eo(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?ec(parseFloat(t)/100):ec(parseFloat(t))}function ip(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 mi(r,t,e){return r+(t-r)*e}function Qr(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function Hm(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var PA=new Pc(20),uf=null;function us(r,t){uf&&Hm(uf,t),uf=PA.put(r,uf||t.slice())}function Ur(r,t){if(r){t=t||[];var e=PA.get(r);if(e)return Hm(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in lx)return Hm(t,lx[a]),us(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Qr(t,0,0,0,1);return}return Qr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),us(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Qr(t,0,0,0,1);return}return Qr(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),us(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Qr(t,+u[0],+u[1],+u[2],1):Qr(t,0,0,0,1);c=Eo(u.pop());case"rgb":if(u.length>=3)return Qr(t,np(u[0]),np(u[1]),np(u[2]),u.length===3?c:Eo(u[3])),us(r,t),t;Qr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Qr(t,0,0,0,1);return}return u[3]=Eo(u[3]),Wm(u,t),us(r,t),t;case"hsl":if(u.length!==3){Qr(t,0,0,0,1);return}return Wm(u,t),us(r,t),t;default:return}}Qr(t,0,0,0,1)}}function Wm(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Eo(r[1]),n=Eo(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],Qr(t,Ma(ip(o,i,e+1/3)*255),Ma(ip(o,i,e)*255),Ma(ip(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function V6(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var c=((i-t)/6+o/2)/o,f=((i-e)/6+o/2)/o,v=((i-a)/6+o/2)/o;t===i?l=v-f:e===i?l=1/3+c-v:a===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return r[3]!=null&&d.push(r[3]),d}}function Zm(r,t){var e=Ur(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return En(e,e.length===4?"rgba":"rgb")}}function op(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],s=t[i],l=a-n;return e[0]=Ma(mi(o[0],s[0],l)),e[1]=Ma(mi(o[1],s[1],l)),e[2]=Ma(mi(o[2],s[2],l)),e[3]=ec(mi(o[3],s[3],l)),e}}function G6(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=Ur(t[n]),s=Ur(t[i]),l=a-n,u=En([Ma(mi(o[0],s[0],l)),Ma(mi(o[1],s[1],l)),Ma(mi(o[2],s[2],l)),ec(mi(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function ku(r,t,e,a){var n=Ur(r);if(r)return n=V6(n),t!=null&&(n[0]=B6(t)),e!=null&&(n[1]=Eo(e)),a!=null&&(n[2]=Eo(a)),En(Wm(n),"rgba")}function jv(r,t){var e=Ur(r);if(e&&t!=null)return e[3]=ec(t),En(e,"rgba")}function En(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 Xv(r,t){var e=Ur(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var ux=new Pc(100);function Ym(r){if(ft(r)){var t=ux.get(r);return t||(t=Zm(r,-.1),ux.put(r,t)),t}else if(Qd(r)){var e=Y({},r);return e.colorStops=Q(r.colorStops,function(a){return{offset:a.offset,color:Zm(a.color,-.1)}}),e}return r}var qv=Math.round;function rc(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Ur(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var F6=1e-4;function yi(r){return r<F6&&r>-1e-4}function cf(r){return qv(r*1e3)/1e3}function Um(r){return qv(r*1e4)/1e4}function H6(r){return"matrix("+cf(r[0])+","+cf(r[1])+","+cf(r[2])+","+cf(r[3])+","+Um(r[4])+","+Um(r[5])+")"}var W6={left:"start",right:"end",center:"middle",middle:"middle"};function Z6(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function Y6(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function U6(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 RA(r){return r&&!!r.image}function j6(r){return r&&!!r.svgElement}function t1(r){return RA(r)||j6(r)}function EA(r){return r.type==="linear"}function NA(r){return r.type==="radial"}function $A(r){return r&&(r.type==="linear"||r.type==="radial")}function rh(r){return"url(#"+r+")"}function OA(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 zA(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*dv,n=At(r.scaleX,1),i=At(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+qv(o*dv)+"deg, "+qv(s*dv)+"deg)"),l.join(" ")}var X6=function(){return Gt.hasGlobalWindow&&xt(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}}(),jm=Array.prototype.slice;function Mn(r,t,e){return(t-r)*e+r}function sp(r,t,e,a){for(var n=t.length,i=0;i<n;i++)r[i]=Mn(t[i],e[i],a);return r}function q6(r,t,e,a){for(var n=t.length,i=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Mn(t[o][s],e[o][s],a)}return r}function ff(r,t,e,a){for(var n=t.length,i=0;i<n;i++)r[i]=t[i]+e[i]*a;return r}function cx(r,t,e,a){for(var n=t.length,i=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*a}return r}function K6(r,t){for(var e=r.length,a=t.length,n=e>a?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function J6(r,t,e){var a=r,n=t;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(e===1?n[l]:jm.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(e===1)isNaN(a[l])&&(a[l]=n[l]);else for(var c=0;c<u;c++)isNaN(a[l][c])&&(a[l][c]=n[l][c])}}function Pu(r){if(ur(r)){var t=r.length;if(ur(r[0])){for(var e=[],a=0;a<t;a++)e.push(jm.call(r[a]));return e}return jm.call(r)}return r}function yv(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Q6(r){return ur(r&&r[0])?2:1}var vf=0,_v=1,BA=2,cu=3,Xm=4,qm=5,fx=6;function vx(r){return r===Xm||r===qm}function df(r){return r===_v||r===BA}var Ol=[0,0,0,0],t9=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=fx,l=e;if(ur(e)){var u=Q6(e);s=u,(u===1&&!Qt(e[0])||u===2&&!Qt(e[0][0]))&&(o=!0)}else if(Qt(e)&&!Ju(e))s=vf;else if(ft(e))if(!isNaN(+e))s=vf;else{var c=Ur(e);c&&(l=c,s=cu)}else if(Qd(e)){var f=Y({},l);f.colorStops=Q(e.colorStops,function(d){return{offset:d.offset,color:Ur(d.color)}}),EA(e)?s=Xm:NA(e)&&(s=qm),l=f}i===0?this.valType=s:(s!==this.valType||s===fx)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return a&&(v.easing=a,v.easingFunc=xt(a)?a:Lu[a]||Q0(a)),n.push(v),v},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(g,m){return g.time-m.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=df(n),u=vx(n),c=0;c<i;c++){var f=a[c],v=f.value,d=o.value;f.percent=f.time/t,s||(l&&c!==i-1?J6(v,d,n):u&&K6(v.colorStops,d.colorStops))}if(!s&&n!==qm&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var h=a[0].value,c=0;c<i;c++)n===vf?a[c].additiveValue=a[c].value-h:n===cu?a[c].additiveValue=ff([],a[c].value,h,-1):df(n)&&(a[c].additiveValue=n===_v?ff([],a[c].value,h,-1):cx([],a[c].value,h,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===cu,c,f=this._lastFr,v=Math.min,d,h;if(s===1)d=h=o[0];else{if(e<0)c=0;else if(e<this._lastFrP){var g=v(f+1,s-1);for(c=g;c>=0&&!(o[c].percent<=e);c--);c=v(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>e);c++);c=v(c-1,s-2)}h=o[c+1],d=o[c]}if(d&&h){this._lastFr=c,this._lastFrP=e;var m=h.percent-d.percent,y=m===0?1:v((e-d.percent)/m,1);h.easingFunc&&(y=h.easingFunc(y));var _=a?this._additiveValue:u?Ol:t[l];if((df(i)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)t[l]=y<1?d.rawValue:h.rawValue;else if(df(i))i===_v?sp(_,d[n],h[n],y):q6(_,d[n],h[n],y);else if(vx(i)){var b=d[n],x=h[n],w=i===Xm;t[l]={type:w?"linear":"radial",x:Mn(b.x,x.x,y),y:Mn(b.y,x.y,y),colorStops:Q(b.colorStops,function(M,C){var I=x.colorStops[C];return{offset:Mn(M.offset,I.offset,y),color:yv(sp([],M.color,I.color,y))}}),global:x.global},w?(t[l].x2=Mn(b.x2,x.x2,y),t[l].y2=Mn(b.y2,x.y2,y)):t[l].r=Mn(b.r,x.r,y)}else if(u)sp(_,d[n],h[n],y),a||(t[l]=yv(_));else{var S=Mn(d[n],h[n],y);a?this._additiveValue=S:t[l]=S}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===vf?t[a]=t[a]+n:e===cu?(Ur(t[a],Ol),ff(Ol,Ol,n,1),t[a]=yv(Ol)):e===_v?ff(t[a],t[a],n,1):e===BA&&cx(t[a],t[a],n,1)},r}(),e1=function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Y0("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}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,a){return this.whenWithKeys(t,e,Ut(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new t9(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,v=f[f.length-1];u=v&&v.value,c.valType===cu&&u&&(u=yv(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Pu(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Pu(e[s]),n)}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,a=0;a<e;a++)t[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var a=0;a<e.length;a++)e[a].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,a=0;a<e.length;a++)t[e[a]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(e._target[s.propName]=f.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var v=new O6({life:n,loop:this._loop,delay:this._delay||0,onframe:function(d){e._started=2;var h=e._additiveAnimators;if(h){for(var g=!1,m=0;m<h.length;m++)if(h[m]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var m=0;m<a.length;m++)a[m].step(e._target,d);var y=e._onframeCbs;if(y)for(var m=0;m<y.length;m++)y[m](e._target,d)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return Q(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<t.length;i++){var o=a[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,a){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i=e[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(t[i]=Pu(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Ut(t);for(var a=0;a<e.length;a++){var n=e[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function $s(){return new Date().getTime()}var e9=function(r){G(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}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 a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=$s()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(Yv(a),!e._paused&&e.update())}Yv(a)},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 a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new e1(e,a.loop);return this.addAnimator(n),n},t}(da),r9=300,lp=Gt.domSupported,up=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},a=Q(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}}(),dx={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},hx=!1;function Km(r){var t=r.pointerType;return t==="pen"||t==="touch"}function a9(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 cp(r){r&&(r.zrByTouch=!0)}function n9(r,t){return ta(r.dom,new i9(r,t),!0)}function VA(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var i9=function(){function r(t,e){this.stopPropagation=Re,this.stopImmediatePropagation=Re,this.preventDefault=Re,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),_a={mousedown:function(r){r=ta(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ta(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=ta(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ta(this.dom,r);var t=r.toElement||r.relatedTarget;VA(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){hx=!0,r=ta(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){hx||(r=ta(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ta(this.dom,r),cp(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),_a.mousemove.call(this,r),_a.mousedown.call(this,r)},touchmove:function(r){r=ta(this.dom,r),cp(r),this.handler.processGesture(r,"change"),_a.mousemove.call(this,r)},touchend:function(r){r=ta(this.dom,r),cp(r),this.handler.processGesture(r,"end"),_a.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<r9&&_a.click.call(this,r)},pointerdown:function(r){_a.mousedown.call(this,r)},pointermove:function(r){Km(r)||_a.mousemove.call(this,r)},pointerup:function(r){_a.mouseup.call(this,r)},pointerout:function(r){Km(r)||_a.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){_a[r]=function(t){t=ta(this.dom,t),this.trigger(r,t)}});var Jm={pointermove:function(r){Km(r)||Jm.mousemove.call(this,r)},pointerup:function(r){Jm.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function o9(r,t){var e=t.domHandlers;Gt.pointerEventsSupported?A(up.pointer,function(a){bv(t,a,function(n){e[a].call(r,n)})}):(Gt.touchEventsSupported&&A(up.touch,function(a){bv(t,a,function(n){e[a].call(r,n),a9(t)})}),A(up.mouse,function(a){bv(t,a,function(n){n=q0(n),t.touching||e[a].call(r,n)})}))}function s9(r,t){Gt.pointerEventsSupported?A(dx.pointer,e):Gt.touchEventsSupported||A(dx.mouse,e);function e(a){function n(i){i=q0(i),VA(r,i.target)||(i=n9(r,i),t.domHandlers[a].call(r,i))}bv(t,a,n,{capture:!0})}}function bv(r,t,e,a){r.mounted[t]=e,r.listenerOpts[t]=a,Gm(r.domTarget,t,e,a)}function fp(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&b6(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var px=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),l9=function(r){G(t,r);function t(e,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=a,n._localHandlerScope=new px(e,_a),lp&&(n._globalHandlerScope=new px(document,Jm)),o9(n,n._localHandlerScope),n}return t.prototype.dispose=function(){fp(this._localHandlerScope),lp&&fp(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,lp&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var a=this._globalHandlerScope;e?s9(this,a):fp(a)}},t}(da),GA=1;Gt.hasGlobalWindow&&(GA=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Kv=GA,Qm=.4,ty="#333",ey="#ccc",u9="#eee",gx=eh,c9=5e-5;function Zi(r){return r>c9||r<-5e-5}var Yi=[],cs=[],vp=Yr(),dp=Math.abs,An=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 Zi(this.rotation)||Zi(this.x)||Zi(this.y)||Zi(this.scaleX-1)||Zi(this.scaleY-1)||Zi(this.skewX)||Zi(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(gx(a),this.invTransform=null);return}a=a||Yr(),e?this.getLocalTransform(a):gx(a),t&&(e?Rn(a,t,a):K0(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Yi);var a=Yi[0]<0?-1:1,n=Yi[1]<0?-1:1,i=((Yi[0]-a)*e+a)/Yi[0]||0,o=((Yi[1]-n)*e+n)/Yi[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Yr(),pl(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],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,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(),Rn(cs,t.invTransform,e),e=cs);var a=this.originX,n=this.originY;(a||n)&&(vp[4]=a,vp[5]=n,Rn(cs,e,vp),cs[4]-=a,cs[5]-=n,e=cs),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 a=[t,e],n=this.invTransform;return n&&Ke(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&Ke(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&dp(t[0]-1)>1e-10&&dp(t[3]-1)>1e-10?Math.sqrt(dp(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){FA(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,v=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(a||n||s||l){var h=a+s,g=n+l;e[4]=-h*i-v*g*o,e[5]=-g*o-d*h*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=v*o,u&&Qo(e,e,u),e[4]+=a+c,e[5]+=n+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}(),fn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function FA(r,t){for(var e=0;e<fn.length;e++){var a=fn[e];r[a]=t[a]}}var mx={};function jr(r,t){t=t||Ti;var e=mx[t];e||(e=mx[t]=new Pc(500));var a=e.get(r);return a==null&&(a=Ai.measureText(r,t).width,e.put(r,a)),a}function yx(r,t,e,a){var n=jr(r,t),i=ah(t),o=fu(0,n,e),s=Ps(0,i,a),l=new Pt(o,s,n,i);return l}function Rc(r,t,e,a){var n=((r||"")+"").split(`
  33. `),i=n.length;if(i===1)return yx(n[0],t,e,a);for(var o=new Pt(0,0,0,0),s=0;s<n.length;s++){var l=yx(n[s],t,e,a);s===0?o.copy(l):o.union(l)}return o}function fu(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Ps(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function ah(r){return jr("国",r)}function Ta(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Jv(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,c="left",f="top";if(a instanceof Array)l+=Ta(a[0],e.width),u+=Ta(a[1],e.height),c=null,f=null;else switch(a){case"left":l-=n,u+=s,c="right",f="middle";break;case"right":l+=n+o,u+=s,f="middle";break;case"top":l+=o/2,u-=n,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+n,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=n,u+=s,f="middle";break;case"insideRight":l+=o-n,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=n,c="center";break;case"insideBottom":l+=o/2,u+=i-n,c="center",f="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=i-n,f="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var hp="__zr_normal__",pp=fn.concat(["ignore"]),f9=un(fn,function(r,t){return r[t]=!0,r},{ignore:!1}),fs={},v9=new Pt(0,0,0,0),nh=function(){function r(t){this.id=pA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[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 a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(e),a.position!=null){var c=v9;a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(fs,a,c):Jv(fs,a,c),i.x=fs.x,i.y=fs.y,o=fs.align,s=fs.verticalAlign;var f=a.origin;if(f&&a.rotation!=null){var v=void 0,d=void 0;f==="center"?(v=c.width*.5,d=c.height*.5):(v=Ta(f[0],c.width),d=Ta(f[1],c.height)),u=!0,i.originX=-i.x+v+(n?0:c.x),i.originY=-i.y+d+(n?0:c.y)}}a.rotation!=null&&(i.rotation=a.rotation);var h=a.offset;h&&(i.x+=h[0],i.y+=h[1],u||(i.originX=-h[0],i.originY=-h[1]));var g=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,_=void 0,b=void 0;g&&this.canBeInsideText()?(y=a.insideFill,_=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(y),b=!0)):(y=a.outsideFill,_=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(y),b=!0)),y=y||"#000",(y!==m.fill||_!==m.stroke||b!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=_,m.autoStroke=b,m.align=o,m.verticalAlign=s,e.setDefaultTextStyle(m)),e.__dirty|=nn,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ey:ty},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&Ur(e);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,En(a,"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||{},Y(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(St(t))for(var a=t,n=Ut(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==hp)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,pp)},r.prototype._savePrimaryToNormal=function(t,e,a){for(var n=0;n<a.length;n++){var i=a[n];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},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(hp,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===hp,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Nt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){Y0("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,v=this._textGuide;return f&&f.useState(t,e,a,c),v&&v.useState(t,e,a,c),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&n.push(c)}var f=n[o-1],v=!!(f&&f.hoverLayer||a);v&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(n),h=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&h&&h.duration>0,h);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,e,v),m&&m.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},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<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=Nt(this.currentStates,t);if(e>=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=Nt(n,t),o=Nt(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,n=0;n<t.length;n++){var i=t[n];Y(e,i),i.textConfig&&(a=a||{},Y(a,i.textConfig))}return a&&(e.textConfig=a),e},r.prototype._applyStateObj=function(t,e,a,n,i,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=Y({},n?this.textConfig:a.textConfig),Y(this.textConfig,e.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,c=0;c<pp.length;c++){var f=pp[c],v=i&&f9[f];e&&e[f]!=null?v?(u=!0,l[f]=e[f]):this[f]=e[f]:s&&a[f]!=null&&(v?(u=!0,l[f]=a[f]):this[f]=a[f])}if(!i)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],h=d.targetName;d.getLoop()||d.__changeFinalValue(h?(e||a)[h]:e||a)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new An,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Y(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=nn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,a=this._textGuide;e&&(e.__inHover=t),a&&(a.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var a=0;a<e.length;a++)t.animation.addAnimator(e[a]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var a=0;a<e.length;a++)t.animation.removeAnimator(e[a]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,a){var n=t?this[t]:this,i=new e1(n,e,a);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var a=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var i=n.animators,o=Nt(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,a){gp(this,t,e,a)},r.prototype.animateFrom=function(t,e,a){gp(this,t,e,a,!0)},r.prototype._transitionState=function(t,e,a,n){for(var i=gp(this,e,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=nn;function e(a,n,i,o){Object.defineProperty(t,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();Oe(nh,da);Oe(nh,An);function gp(r,t,e,a,n){e=e||{};var i=[];HA(r,"",r,t,e,a,i,n);var o=i.length,s=!1,l=e.done,u=e.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&e.during&&i[0].during(function(h,g){e.during(g)});for(var v=0;v<i.length;v++){var d=i[v];c&&d.done(c),f&&d.aborted(f),e.force&&d.duration(e.duration),d.start(e.easing)}return i}function mp(r,t,e){for(var a=0;a<e;a++)r[a]=t[a]}function d9(r){return ur(r[0])}function h9(r,t,e){if(ur(t[e]))if(ur(r[e])||(r[e]=[]),Nr(t[e])){var a=t[e].length;r[e].length!==a&&(r[e]=new t[e].constructor(a),mp(r[e],t[e],a))}else{var n=t[e],i=r[e],o=n.length;if(d9(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?mp(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else mp(i,n,o);i.length=n.length}else r[e]=t[e]}function p9(r,t){return r===t||ur(r)&&ur(t)&&g9(r,t)}function g9(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++)if(r[a]!==t[a])return!1;return!0}function HA(r,t,e,a,n,i,o,s){for(var l=Ut(a),u=n.duration,c=n.delay,f=n.additive,v=n.setToFinal,d=!St(i),h=r.animators,g=[],m=0;m<l.length;m++){var y=l[m],_=a[y];if(_!=null&&e[y]!=null&&(d||i[y]))if(St(_)&&!ur(_)&&!Qd(_)){if(t){s||(e[y]=_,r.updateDuringAnimation(t));continue}HA(r,y,e[y],_,n,i&&i[y],o,s)}else g.push(y);else s||(e[y]=_,r.updateDuringAnimation(t),g.push(y))}var b=g.length;if(!f&&b)for(var x=0;x<h.length;x++){var w=h[x];if(w.targetName===t){var S=w.stopTracks(g);if(S){var M=Nt(h,w);h.splice(M,1)}}}if(n.force||(g=ne(g,function(D){return!p9(a[D],e[D])}),b=g.length),b>0||n.force&&!o.length){var C=void 0,I=void 0,T=void 0;if(s){I={},v&&(C={});for(var x=0;x<b;x++){var y=g[x];I[y]=e[y],v?C[y]=a[y]:e[y]=a[y]}}else if(v){T={};for(var x=0;x<b;x++){var y=g[x];T[y]=Pu(e[y]),h9(e,a,y)}}var w=new e1(e,!1,!1,f?ne(h,function(E){return E.targetName===t}):null);w.targetName=t,n.scope&&(w.scope=n.scope),v&&C&&w.whenWithKeys(0,C,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(u??500,s?I:a,g).delay(c||0),r.addAnimator(w,t),o.push(w)}}var It=function(r){G(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===e)return a[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,a){if(e&&e!==this&&e.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=Nt(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=Nt(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n<e.length;n++){var i=e[n];a&&i.removeSelfFromZr(a),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];e.call(a,o,i)}return this},t.prototype.traverse=function(e,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=e.call(a,i);i.isGroup&&!o&&i.traverse(e,a)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var a=new Pt(0,0,0,0),n=e||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(Pt.applyTransform(a,u,c),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},t}(nh);It.prototype.type="group";/*!
  34. * ZRender, a high performance 2d drawing library.
  35. *
  36. * Copyright (c) 2013, Baidu Inc.
  37. * All rights reserved.
  38. *
  39. * LICENSE
  40. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  41. */var xv={},WA={};function m9(r){delete WA[r]}function y9(r){if(!r)return!1;if(typeof r=="string")return Xv(r,1)<Qm;if(r.colorStops){for(var t=r.colorStops,e=0,a=t.length,n=0;n<a;n++)e+=Xv(t[n].color,1);return e/=a,e<Qm}return!1}var _9=function(){function r(t,e,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=e,this.id=t;var i=new P6,o=a.renderer||"canvas";xv[o]||(o=Ut(xv)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new xv[o](e,i,a,t),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Gt.node&&!Gt.worker&&!l?new l9(s.getViewportRoot(),s.root):null,c=a.useCoarsePointer,f=c==null||c==="auto"?Gt.touchEventsSupported:!!c,v=44,d;f&&(d=At(a.pointerSize,v)),this.handler=new xA(i,s,u,s.root,d),this.animation=new e9({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=y9(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,a=$s();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=$s();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(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,a){return this._disposed||this.handler.on(t,e,a),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;e<t.length;e++)t[e]instanceof It&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,m9(this.id))},r}();function _x(r,t){var e=new _9(pA(),r,t);return WA[e.id]=e,e}function b9(r,t){xv[r]=t}var ry;function x9(r){if(typeof ry=="function")return ry(r)}function w9(r){ry=r}var S9=1e-4,ZA=20;function M9(r){return r.replace(/^\s+|\s+$/g,"")}function oe(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function lt(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 ft(r)?M9(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ke(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),ZA),r=(+r).toFixed(t),e?r:+r}function la(r){return r.sort(function(t,e){return t-e}),r}function Ja(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 C9(r)}function C9(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function YA(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function I9(r,t){var e=un(r,function(d,h){return d+(isNaN(h)?0:h)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=Q(r,function(d){return(isNaN(d)?0:d)/e*a*100}),i=a*100,o=Q(n,function(d){return Math.floor(d)}),s=un(o,function(d,h){return d+h},0),l=Q(n,function(d,h){return d-o[h]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,v=l.length;f<v;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Q(o,function(d){return d/a})}function T9(r,t){var e=Math.max(Ja(r),Ja(t)),a=r+t;return e>ZA?a:ke(a,e)}var bx=9007199254740991;function UA(r){var t=Math.PI*2;return(r%t+t)%t}function ac(r){return r>-1e-4&&r<S9}var A9=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function vn(r){if(r instanceof Date)return r;if(ft(r)){var t=A9.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function D9(r){return Math.pow(10,r1(r))}function r1(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function jA(r,t){var e=r1(r),a=Math.pow(10,e),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function yp(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function xx(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function zn(r){var t=parseFloat(r);return t==r&&(t!==0||!ft(r)||r.indexOf("x")<=0)?t:NaN}function XA(r){return!isNaN(zn(r))}function qA(){return Math.round(Math.random()*9)}function KA(r,t){return t===0?r:KA(t,r%t)}function Sx(r,t){return r==null?t:t==null?r:r*t/KA(r,t)}function ae(r){throw new Error(r)}function Mx(r,t,e){return(t-r)*e+r}var JA="series\0",QA="\0_ec_\0";function ue(r){return r instanceof Array?r:r==null?[]:[r]}function Wo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var Cx=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function gl(r){return St(r)&&!K(r)&&!(r instanceof Date)?r.value:r}function L9(r){return St(r)&&!(r instanceof Array)}function tD(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=mt();A(t,function(l,u){if(!St(l)){t[u]=null;return}});var s=k9(r,o,e);return(a||n)&&P9(s,r,o,t),a&&R9(s,t),a||n?E9(s,t,n):i&&N9(s,t),$9(s),s}function k9(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||nc(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function P9(r,t,e,a){A(a,function(n,i){if(!(!n||n.id==null)){var o=Ru(n.id),s=e.get(o);if(s!=null){var l=r[s];wr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function R9(r,t){A(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!nc(e)&&!nc(i)&&eD("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function E9(r,t,e){A(t,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||nc(n.existing)||n.existing&&a.id!=null&&!eD("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function N9(r,t){A(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function $9(r){var t=mt();A(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),A(r,function(e){var a=e.newOption;wr(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),A(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(St(i)){if(o.name=i.name!=null?Ru(i.name):n?n.name:JA+a,n)o.id=Ru(n.id);else if(i.id!=null)o.id=Ru(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function eD(r,t,e){var a=ze(t[r],null),n=ze(e[r],null);return a!=null&&n!=null&&a===n}function Ru(r){return ze(r,"")}function ze(r,t){return r==null?t:ft(r)?r:Qt(r)||Em(r)?r+"":t}function a1(r){var t=r.name;return!!(t&&t.indexOf(JA))}function nc(r){return r&&r.id!=null&&Ru(r.id).indexOf(QA)===0}function O9(r){return QA+r}function z9(r,t,e){A(r,function(a){var n=a.newOption;St(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=B9(t,n,a.existing,e))})}function B9(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function V9(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=ze(o[u].seriesId,null);if(f==null)return;for(var v=ue(o[u].dataIndex),d=l&&l[f],h=0,g=v.length;h<g;h++){var m=v[h];d&&d[m]?d[m]=null:(s[f]||(s[f]={}))[m]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Zo(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return K(t.dataIndex)?Q(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return K(t.name)?Q(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function qt(){var r="__ec_inner_"+G9++;return function(t){return t[r]||(t[r]={})}}var G9=qA();function Eu(r,t,e){var a=n1(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var f=Ec(r,c,u,{useDefault:l===c,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function n1(r,t){var e;if(ft(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=mt(),i={},o=!1;return A(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&Nt(t.includeMainTypes,c)<0)){o=o||!!c;var v=n.get(c)||n.set(c,{});v[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Ne={useDefault:!0,enableAll:!1,enableNone:!1},F9={useDefault:!1,enableAll:!0,enableNone:!0};function Ec(r,t,e,a){a=a||Ne;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(wr(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(wr(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s)}function H9(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function W9(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function Z9(r){return r==="auto"?Gt.domSupported?"html":"richText":r||"html"}function ay(r,t){var e=mt(),a=[];return A(r,function(n){var i=t(n);(e.get(i)||(a.push(i),e.set(i,[]))).push(n)}),{keys:a,buckets:e}}function rD(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(Qt(a)){var o=Mx(e||0,a,n);return ke(o,i?Math.max(Ja(e||0),Ja(a)):t)}else{if(ft(a))return n<1?e:a;for(var s=[],l=e,u=a,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var v=r.getDimensionInfo(f);if(v&&v.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var d=l&&l[f]?l[f]:0,h=u[f],o=Mx(d,h,n);s[f]=ke(o,i?Math.max(Ja(d),Ja(h)):t)}}return s}}var Y9=".",Ui="___EC__COMPONENT__CONTAINER___",aD="___EC__EXTENDED_CLASS___";function Qa(r){var t={main:"",sub:""};if(r){var e=r.split(Y9);t.main=e[0]||"",t.sub=e[1]||""}return t}function U9(r){wr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function j9(r){return!!(r&&r[aD])}function i1(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return X9(a)?n=function(i){G(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},QN(n,this)),Y(n.prototype,e),n[aD]=!0,n.extend=this.extend,n.superCall=J9,n.superApply=Q9,n.superClass=a,n}}function X9(r){return xt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function nD(r,t){r.extend=t.extend}var q9=Math.round(Math.random()*10);function K9(r){var t=["__\0is_clz",q9++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function J9(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function Q9(r,t,e){return this.superClass.prototype[t].apply(r,e)}function ih(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){U9(n),a.prototype.type=n;var i=Qa(n);if(!i.sub)t[i.main]=a;else if(i.sub!==Ui){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[Ui]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Qa(a),i=[],o=t[n.main];return o&&o[Ui]?A(o,function(s,l){l!==Ui&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Qa(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return A(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Qa(a),i=t[n.main];return i&&i[Ui]};function e(a){var n=t[a.main];return(!n||!n[Ui])&&(n=t[a.main]={},n[Ui]=!0),n}}function Yo(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&Nt(n,l)>=0||i&&Nt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var t$=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],e$=Yo(t$),r$=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return e$(this,t,e)},r}(),ny=new Pc(50);function a$(r){if(typeof r=="string"){var t=ny.get(r);return t&&t.image}else return r}function o1(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=ny.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!oh(t)&&i.pending.push(o)):(t=Ai.loadImage(r,Ix,Ix),t.__zrImageSrc=r,ny.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Ix(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],a=e.cb;a&&a(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function oh(r){return r&&r.width&&r.height}var _p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function n$(r,t,e,a,n,i){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
  42. `);i=iD(e,a,n,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)oD(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
  43. `),r.isTruncated=s}function iD(r,t,e,a){a=a||{};var n=Y({},a);n.font=t,e=At(e,"..."),n.maxIterations=At(a.maxIterations,2);var i=n.minChar=At(a.minChar,0);n.cnCharWidth=jr("国",t);var o=n.ascCharWidth=jr("a",t);n.placeholder=At(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=jr(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function oD(r,t,e){var a=e.containerWidth,n=e.font,i=e.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=jr(t,n);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?i$(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=jr(t,n)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function i$(r,t,e,a){for(var n=0,i=0,o=r.length;i<o&&n<t;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?e:a}return i}function o$(r,t){r!=null&&(r+="");var e=t.overflow,a=t.padding,n=t.font,i=e==="truncate",o=ah(n),s=At(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=!1,f=t.width,v;f!=null&&(e==="break"||e==="breakAll")?v=r?sD(r,t.font,f,e==="breakAll",0).lines:[]:v=r?r.split(`
  44. `):[];var d=v.length*s,h=At(t.height,d);if(d>h&&u){var g=Math.floor(h/s);c=c||v.length>g,v=v.slice(0,g)}if(r&&i&&f!=null)for(var m=iD(f,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},_=0;_<v.length;_++)oD(y,v[_],m),v[_]=y.textLine,c=c||y.isTruncated;for(var b=h,x=0,_=0;_<v.length;_++)x=Math.max(jr(v[_],n),x);f==null&&(f=x);var w=x;return a&&(b+=a[0]+a[2],w+=a[1]+a[3],f+=a[1]+a[3]),l&&(w=f),{lines:v,height:h,outerWidth:w,outerHeight:b,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:d,width:f,isTruncated:c}}var s$=function(){function r(){}return r}(),Tx=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),l$=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function u$(r,t){var e=new l$;if(r!=null&&(r+=""),!r)return e;for(var a=t.width,n=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=_p.lastIndex=0,l;(l=_p.exec(r))!=null;){var u=l.index;u>s&&bp(e,r.substring(s,u),t,o),bp(e,l[2],t,o,l[1]),s=_p.lastIndex}s<r.length&&bp(e,r.substring(s,r.length),t,o);var c=[],f=0,v=0,d=t.padding,h=i==="truncate",g=t.lineOverflow==="truncate",m={};function y(X,et,it){X.width=et,X.lineHeight=it,f+=it,v=Math.max(v,et)}t:for(var _=0;_<e.lines.length;_++){for(var b=e.lines[_],x=0,w=0,S=0;S<b.tokens.length;S++){var M=b.tokens[S],C=M.styleName&&t.rich[M.styleName]||{},I=M.textPadding=C.padding,T=I?I[1]+I[3]:0,D=M.font=C.font||t.font;M.contentHeight=ah(D);var E=At(C.height,M.contentHeight);if(M.innerHeight=E,I&&(E+=I[0]+I[2]),M.height=E,M.lineHeight=an(C.lineHeight,t.lineHeight,E),M.align=C&&C.align||t.align,M.verticalAlign=C&&C.verticalAlign||"middle",g&&n!=null&&f+M.lineHeight>n){var R=e.lines.length;S>0?(b.tokens=b.tokens.slice(0,S),y(b,w,x),e.lines=e.lines.slice(0,_+1)):e.lines=e.lines.slice(0,_),e.isTruncated=e.isTruncated||e.lines.length<R;break t}var k=C.width,N=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")M.percentWidth=k,c.push(M),M.contentWidth=jr(M.text,D);else{if(N){var O=C.backgroundColor,V=O&&O.image;V&&(V=a$(V),oh(V)&&(M.width=Math.max(M.width,V.width*E/V.height)))}var B=h&&a!=null?a-w:null;B!=null&&B<M.width?!N||B<T?(M.text="",M.width=M.contentWidth=0):(n$(m,M.text,B-T,D,t.ellipsis,{minChar:t.truncateMinChar}),M.text=m.text,e.isTruncated=e.isTruncated||m.isTruncated,M.width=M.contentWidth=jr(M.text,D)):M.contentWidth=jr(M.text,D)}M.width+=T,w+=M.width,C&&(x=Math.max(x,M.lineHeight))}y(b,w,x)}e.outerWidth=e.width=At(a,v),e.outerHeight=e.height=At(n,f),e.contentHeight=f,e.contentWidth=v,d&&(e.outerWidth+=d[1]+d[3],e.outerHeight+=d[0]+d[2]);for(var _=0;_<c.length;_++){var M=c[_],Z=M.percentWidth;M.width=parseInt(Z,10)/100*e.width}return e}function bp(r,t,e,a,n){var i=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,c,f;if(a){var v=o.padding,d=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var h=Ta(o.width,a.width)+d;s.length>0&&h+a.accumWidth>a.width&&(c=t.split(`
  45. `),u=!0),a.accumWidth=h}else{var g=sD(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=g.accumWidth+d,f=g.linesWidths,c=g.lines}}else c=t.split(`
  46. `);for(var m=0;m<c.length;m++){var y=c[m],_=new s$;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!i,typeof o.width=="number"?_.width=o.width:_.width=f?f[m]:jr(y,l),!m&&!u){var b=(s[s.length-1]||(s[0]=new Tx)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=_:(y||!x||i)&&b.push(_)}else s.push(new Tx([_]))}}function c$(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var f$=un(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function v$(r){return c$(r)?!!f$[r]:!0}function sD(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<r.length;f++){var v=r.charAt(f);if(v===`
  47. `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var d=jr(v,t),h=a?!1:!v$(v);if(i.length?c+d>e:n+c+d>e){c?(s||l)&&(h?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=v,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=v,c=d)):h?(i.push(l),o.push(u),l=v,u=d):(i.push(v),o.push(d));continue}c+=d,h?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=n),{accumWidth:c,lines:i,linesWidths:o}}var iy="__zr_style_"+Math.round(Math.random()*10),No={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},sh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};No[iy]=!0;var Ax=["z","z2","invisible"],d$=["invisible"],va=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=Ut(e),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&h$(this,e,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,a){return this.rectContain(e,a)},t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.rectContain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Pt(0,0,0,0)),a?Pt.applyTransform(e,n,a):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Pt(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,a){e!=="style"?r.prototype.attrKV.call(this,e,a):this.style?this.setStyle(a):this.useStyle(a)},t.prototype.setStyle=function(e,a){return typeof e=="string"?this.style[e]=a:Y(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=mv,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&mv)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return th(No,e)},t.prototype.useStyle=function(e){e[iy]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[iy]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,a,Ax)},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Ut(c),v=0;v<f.length;v++){var d=f[v];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var h=Ut(u),v=0;v<h.length;v++){var d=h[v];this.style[d]=this.style[d]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?d$:Ax,v=0;v<g.length;v++){var d=g[v];a&&a[d]!=null?this[d]=a[d]:l&&n[d]!=null&&(this[d]=n[d])}},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),n,i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},t.prototype._mergeStyle=function(e,a){return Y(e,a),e},t.prototype.getAnimationStyleProps=function(){return sh},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=nn|mv}(),t}(nh),xp=new Pt(0,0,0,0),wp=new Pt(0,0,0,0);function h$(r,t,e){return xp.copy(r.getBoundingRect()),r.transform&&xp.applyTransform(r.transform),wp.width=t,wp.height=e,!xp.intersect(wp)}var kr=Math.min,Pr=Math.max,Sp=Math.sin,Mp=Math.cos,ji=Math.PI*2,hf=Jo(),pf=Jo(),gf=Jo();function lh(r,t,e){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],n=kr(n,a[0]),i=Pr(i,a[0]),o=kr(o,a[1]),s=Pr(s,a[1]);t[0]=n,t[1]=o,e[0]=i,e[1]=s}}function Dx(r,t,e,a,n,i){n[0]=kr(r,e),n[1]=kr(t,a),i[0]=Pr(r,e),i[1]=Pr(t,a)}var Lx=[],kx=[];function p$(r,t,e,a,n,i,o,s,l,u){var c=TA,f=Ge,v=c(r,e,n,o,Lx);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<v;d++){var h=f(r,e,n,o,Lx[d]);l[0]=kr(h,l[0]),u[0]=Pr(h,u[0])}v=c(t,a,i,s,kx);for(var d=0;d<v;d++){var g=f(t,a,i,s,kx[d]);l[1]=kr(g,l[1]),u[1]=Pr(g,u[1])}l[0]=kr(r,l[0]),u[0]=Pr(r,u[0]),l[0]=kr(o,l[0]),u[0]=Pr(o,u[0]),l[1]=kr(t,l[1]),u[1]=Pr(t,u[1]),l[1]=kr(s,l[1]),u[1]=Pr(s,u[1])}function g$(r,t,e,a,n,i,o,s){var l=DA,u=Ue,c=Pr(kr(l(r,e,n),1),0),f=Pr(kr(l(t,a,i),1),0),v=u(r,e,n,c),d=u(t,a,i,f);o[0]=kr(r,n,v),o[1]=kr(t,i,d),s[0]=Pr(r,n,v),s[1]=Pr(t,i,d)}function m$(r,t,e,a,n,i,o,s,l){var u=hi,c=pi,f=Math.abs(n-i);if(f%ji<1e-4&&f>1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(hf[0]=Mp(n)*e+r,hf[1]=Sp(n)*a+t,pf[0]=Mp(i)*e+r,pf[1]=Sp(i)*a+t,u(s,hf,pf),c(l,hf,pf),n=n%ji,n<0&&(n=n+ji),i=i%ji,i<0&&(i=i+ji),n>i&&!o?i+=ji:n<i&&o&&(n+=ji),o){var v=i;i=n,n=v}for(var d=0;d<i;d+=Math.PI/2)d>n&&(gf[0]=Mp(d)*e+r,gf[1]=Sp(d)*a+t,u(s,gf,s),c(l,gf,l))}var fe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Xi=[],qi=[],Ba=[],qn=[],Va=[],Ga=[],Cp=Math.min,Ip=Math.max,Ki=Math.cos,Ji=Math.sin,bn=Math.abs,oy=Math.PI,ii=oy*2,Tp=typeof Float32Array<"u",zl=[];function Ap(r){var t=Math.round(r/oy*1e8)/1e8;return t%2*oy}function s1(r,t){var e=Ap(r[0]);e<0&&(e+=ii);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=ii?n=e+ii:t&&e-n>=ii?n=e-ii:!t&&e>n?n=e+(ii-Ap(e-n)):t&&e<n&&(n=e-(ii-Ap(n-e))),r[0]=e,r[1]=n}var dn=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,a){a=a||0,a>0&&(this._ux=bn(a/Kv/t)||0,this._uy=bn(a/Kv/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(fe.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 a=bn(t-this._xi),n=bn(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(fe.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(fe.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(fe.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),zl[0]=n,zl[1]=i,s1(zl,o),n=zl[0],i=zl[1];var s=i-n;return this.addData(fe.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=Ki(i)*a+t,this._yi=Ji(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(fe.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(fe.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&Tp&&(this.data=new Float32Array(e));for(var a=0;a<e;a++)this.data[a]=t[a];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,a=0,n=this._len,i=0;i<e;i++)a+=t[i].len();Tp&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+a));for(var i=0;i<e;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(t,e,a,n,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(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;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Tp&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ba[0]=Ba[1]=Va[0]=Va[1]=Number.MAX_VALUE,qn[0]=qn[1]=Ga[0]=Ga[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],a=t[o+1],n=e,i=a),s){case fe.M:e=n=t[o++],a=i=t[o++],Va[0]=n,Va[1]=i,Ga[0]=n,Ga[1]=i;break;case fe.L:Dx(e,a,t[o],t[o+1],Va,Ga),e=t[o++],a=t[o++];break;case fe.C:p$(e,a,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Va,Ga),e=t[o++],a=t[o++];break;case fe.Q:g$(e,a,t[o++],t[o++],t[o],t[o+1],Va,Ga),e=t[o++],a=t[o++];break;case fe.A:var u=t[o++],c=t[o++],f=t[o++],v=t[o++],d=t[o++],h=t[o++]+d;o+=1;var g=!t[o++];l&&(n=Ki(d)*f+u,i=Ji(d)*v+c),m$(u,c,f,v,d,h,g,Va,Ga),e=Ki(h)*f+u,a=Ji(h)*v+c;break;case fe.R:n=e=t[o++],i=a=t[o++];var m=t[o++],y=t[o++];Dx(n,i,n+m,i+y,Va,Ga);break;case fe.Z:e=n,a=i;break}hi(Ba,Ba,Va),pi(qn,qn,Ga)}return o===0&&(Ba[0]=Ba[1]=qn[0]=qn[1]=0),new Pt(Ba[0],Ba[1],qn[0]-Ba[0],qn[1]-Ba[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,v=0;v<e;){var d=t[v++],h=v===1;h&&(i=t[v],o=t[v+1],s=i,l=o);var g=-1;switch(d){case fe.M:i=s=t[v++],o=l=t[v++];break;case fe.L:{var m=t[v++],y=t[v++],_=m-i,b=y-o;(bn(_)>a||bn(b)>n||v===e-1)&&(g=Math.sqrt(_*_+b*b),i=m,o=y);break}case fe.C:{var x=t[v++],w=t[v++],m=t[v++],y=t[v++],S=t[v++],M=t[v++];g=R6(i,o,x,w,m,y,S,M,10),i=S,o=M;break}case fe.Q:{var x=t[v++],w=t[v++],m=t[v++],y=t[v++];g=N6(i,o,x,w,m,y,10),i=m,o=y;break}case fe.A:var C=t[v++],I=t[v++],T=t[v++],D=t[v++],E=t[v++],R=t[v++],k=R+E;v+=1,h&&(s=Ki(E)*T+C,l=Ji(E)*D+I),g=Ip(T,D)*Cp(ii,Math.abs(R)),i=Ki(k)*T+C,o=Ji(k)*D+I;break;case fe.R:{s=i=t[v++],l=o=t[v++];var N=t[v++],O=t[v++];g=N*2+O*2;break}case fe.Z:{var _=s-i,b=l-o;g=Math.sqrt(_*_+b*b),i=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,c,f,v,d=e<1,h,g,m=0,y=0,_,b=0,x,w;if(!(d&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,g=this._pathLen,_=e*g,!_)))t:for(var S=0;S<o;){var M=a[S++],C=S===1;switch(C&&(u=a[S],c=a[S+1],s=u,l=c),M!==fe.L&&b>0&&(t.lineTo(x,w),b=0),M){case fe.M:s=u=a[S++],l=c=a[S++],t.moveTo(u,c);break;case fe.L:{f=a[S++],v=a[S++];var I=bn(f-u),T=bn(v-c);if(I>n||T>i){if(d){var D=h[y++];if(m+D>_){var E=(_-m)/D;t.lineTo(u*(1-E)+f*E,c*(1-E)+v*E);break t}m+=D}t.lineTo(f,v),u=f,c=v,b=0}else{var R=I*I+T*T;R>b&&(x=f,w=v,b=R)}break}case fe.C:{var k=a[S++],N=a[S++],O=a[S++],V=a[S++],B=a[S++],Z=a[S++];if(d){var D=h[y++];if(m+D>_){var E=(_-m)/D;Di(u,k,O,B,E,Xi),Di(c,N,V,Z,E,qi),t.bezierCurveTo(Xi[1],qi[1],Xi[2],qi[2],Xi[3],qi[3]);break t}m+=D}t.bezierCurveTo(k,N,O,V,B,Z),u=B,c=Z;break}case fe.Q:{var k=a[S++],N=a[S++],O=a[S++],V=a[S++];if(d){var D=h[y++];if(m+D>_){var E=(_-m)/D;tc(u,k,O,E,Xi),tc(c,N,V,E,qi),t.quadraticCurveTo(Xi[1],qi[1],Xi[2],qi[2]);break t}m+=D}t.quadraticCurveTo(k,N,O,V),u=O,c=V;break}case fe.A:var X=a[S++],et=a[S++],it=a[S++],yt=a[S++],_t=a[S++],Ct=a[S++],Wt=a[S++],q=!a[S++],rt=it>yt?it:yt,j=bn(it-yt)>.001,ot=_t+Ct,st=!1;if(d){var D=h[y++];m+D>_&&(ot=_t+Ct*(_-m)/D,st=!0),m+=D}if(j&&t.ellipse?t.ellipse(X,et,it,yt,Wt,_t,ot,q):t.arc(X,et,rt,_t,ot,q),st)break t;C&&(s=Ki(_t)*it+X,l=Ji(_t)*yt+et),u=Ki(ot)*it+X,c=Ji(ot)*yt+et;break;case fe.R:s=u=a[S],l=c=a[S+1],f=a[S++],v=a[S++];var $=a[S++],z=a[S++];if(d){var D=h[y++];if(m+D>_){var F=_-m;t.moveTo(f,v),t.lineTo(f+Cp(F,$),v),F-=$,F>0&&t.lineTo(f+$,v+Cp(F,z)),F-=z,F>0&&t.lineTo(f+Ip($-F,0),v+z),F-=$,F>0&&t.lineTo(f,v+Ip(z-F,0));break t}m+=D}t.rect(f,v,$,z);break;case fe.Z:if(d){var D=h[y++];if(m+D>_){var E=(_-m)/D;t.lineTo(u*(1-E)+s*E,c*(1-E)+l*E);break t}m+=D}t.closePath(),u=s,c=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=fe,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function ci(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||o<t-s&&o<a-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-a)/(r-e),u=(r*a-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function y$(r,t,e,a,n,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>a+f&&c>i+f&&c>s+f||c<t-f&&c<a-f&&c<i-f&&c<s-f||u>r+f&&u>e+f&&u>n+f&&u>o+f||u<r-f&&u<e-f&&u<n-f&&u<o-f)return!1;var v=AA(r,t,e,a,n,i,o,s,u,c,null);return v<=f/2}function lD(r,t,e,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>a+u&&l>i+u||l<t-u&&l<a-u&&l<i-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var c=LA(r,t,e,a,n,i,s,l,null);return c<=u/2}var Px=Math.PI*2;function Zr(r){return r%=Px,r<0&&(r+=Px),r}var Bl=Math.PI*2;function _$(r,t,e,a,n,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>e||c+u<e)return!1;if(Math.abs(a-n)%Bl<1e-4)return!0;if(i){var f=a;a=Zr(n),n=Zr(f)}else a=Zr(a),n=Zr(n);a>n&&(n+=Bl);var v=Math.atan2(l,s);return v<0&&(v+=Bl),v>=a&&v<=n||v+Bl>=a&&v+Bl<=n}function Cn(r,t,e,a,n,i){if(i>t&&i>a||i<t&&i<a||a===t)return 0;var o=(i-t)/(a-t),s=a<t?1:-1;(o===1||o===0)&&(s=a<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var Kn=dn.CMD,Qi=Math.PI*2,b$=1e-4;function x$(r,t){return Math.abs(r-t)<b$}var gr=[-1,-1,-1],ra=[-1,-1];function w$(){var r=ra[0];ra[0]=ra[1],ra[1]=r}function S$(r,t,e,a,n,i,o,s,l,u){if(u>t&&u>a&&u>i&&u>s||u<t&&u<a&&u<i&&u<s)return 0;var c=Uv(t,a,i,s,u,gr);if(c===0)return 0;for(var f=0,v=-1,d=void 0,h=void 0,g=0;g<c;g++){var m=gr[g],y=m===0||m===1?.5:1,_=Ge(r,e,n,o,m);_<l||(v<0&&(v=TA(t,a,i,s,ra),ra[1]<ra[0]&&v>1&&w$(),d=Ge(t,a,i,s,ra[0]),v>1&&(h=Ge(t,a,i,s,ra[1]))),v===2?m<ra[0]?f+=d<t?y:-y:m<ra[1]?f+=h<d?y:-y:f+=s<h?y:-y:m<ra[0]?f+=d<t?y:-y:f+=s<d?y:-y)}return f}function M$(r,t,e,a,n,i,o,s){if(s>t&&s>a&&s>i||s<t&&s<a&&s<i)return 0;var l=E6(t,a,i,s,gr);if(l===0)return 0;var u=DA(t,a,i);if(u>=0&&u<=1){for(var c=0,f=Ue(t,a,i,u),v=0;v<l;v++){var d=gr[v]===0||gr[v]===1?.5:1,h=Ue(r,e,n,gr[v]);h<o||(gr[v]<u?c+=f<t?d:-d:c+=i<f?d:-d)}return c}else{var d=gr[0]===0||gr[0]===1?.5:1,h=Ue(r,e,n,gr[0]);return h<o?0:i<t?d:-d}}function C$(r,t,e,a,n,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);gr[0]=-l,gr[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Qi-1e-4){a=0,n=Qi;var c=i?1:-1;return o>=gr[0]+r&&o<=gr[1]+r?c:0}if(a>n){var f=a;a=n,n=f}a<0&&(a+=Qi,n+=Qi);for(var v=0,d=0;d<2;d++){var h=gr[d];if(h+r>o){var g=Math.atan2(s,h),c=i?1:-1;g<0&&(g=Qi+g),(g>=a&&g<=n||g+Qi>=a&&g+Qi<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),v+=c)}}return v}function uD(r,t,e,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,c=0,f=0,v,d,h=0;h<o;){var g=i[h++],m=h===1;switch(g===Kn.M&&h>1&&(e||(s+=Cn(l,u,c,f,a,n))),m&&(l=i[h],u=i[h+1],c=l,f=u),g){case Kn.M:c=i[h++],f=i[h++],l=c,u=f;break;case Kn.L:if(e){if(ci(l,u,i[h],i[h+1],t,a,n))return!0}else s+=Cn(l,u,i[h],i[h+1],a,n)||0;l=i[h++],u=i[h++];break;case Kn.C:if(e){if(y$(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],t,a,n))return!0}else s+=S$(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],a,n)||0;l=i[h++],u=i[h++];break;case Kn.Q:if(e){if(lD(l,u,i[h++],i[h++],i[h],i[h+1],t,a,n))return!0}else s+=M$(l,u,i[h++],i[h++],i[h],i[h+1],a,n)||0;l=i[h++],u=i[h++];break;case Kn.A:var y=i[h++],_=i[h++],b=i[h++],x=i[h++],w=i[h++],S=i[h++];h+=1;var M=!!(1-i[h++]);v=Math.cos(w)*b+y,d=Math.sin(w)*x+_,m?(c=v,f=d):s+=Cn(l,u,v,d,a,n);var C=(a-y)*x/b+y;if(e){if(_$(y,_,x,w,w+S,M,t,C,n))return!0}else s+=C$(y,_,x,w,w+S,M,C,n);l=Math.cos(w+S)*b+y,u=Math.sin(w+S)*x+_;break;case Kn.R:c=l=i[h++],f=u=i[h++];var I=i[h++],T=i[h++];if(v=c+I,d=f+T,e){if(ci(c,f,v,f,t,a,n)||ci(v,f,v,d,t,a,n)||ci(v,d,c,d,t,a,n)||ci(c,d,c,f,t,a,n))return!0}else s+=Cn(v,f,v,d,a,n),s+=Cn(c,d,c,f,a,n);break;case Kn.Z:if(e){if(ci(l,u,c,f,t,a,n))return!0}else s+=Cn(l,u,c,f,a,n);l=c,u=f;break}}return!e&&!x$(u,f)&&(s+=Cn(l,u,c,f,a,n)||0),s!==0}function I$(r,t,e){return uD(r,0,!1,t,e)}function T$(r,t,e,a){return uD(r,t,!0,e,a)}var Qv=wt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},No),A$={style:wt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},sh.style)},Dp=fn.concat(["invisible","culling","z","z2","zlevel","parent"]),Vt=function(r){G(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 a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<Dp.length;++s)n[Dp[s]]=this[Dp[s]];n.__dirty|=nn}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var a=Ut(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=e[o];o==="style"?this.style?Y(this.style,s):this.useStyle(s):o==="shape"?Y(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(ft(e)){var a=Xv(e,0);return a>.5?ty:a>.2?u9:ey}else if(e)return ey}return ty},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(ft(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Xv(e,0)<Qm;if(i===o)return a}},t.prototype.buildPath=function(e,a,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new dn(!1)},t.prototype.hasStroke=function(){var e=this.style,a=e.stroke;return!(a==null||a==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&uu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),T$(s,l/u,e,a)))return!0}if(this.hasFill())return I$(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=uu,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,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:Y(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&uu)},t.prototype.createStyle=function(e){return th(Qv,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=Y({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=Y({},n.shape),Y(u,a.shape)):(u=Y({},i?this.shape:n.shape),Y(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=Y({},this.shape);for(var c={},f=Ut(u),v=0;v<f.length;v++){var d=f[v];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(e,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),n,i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},t.prototype.getAnimationStyleProps=function(){return A$},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var a=function(i){G(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Mt(e.style)},o.prototype.getDefaultShape=function(){return Mt(e.shape)},o}(t);for(var n in e)typeof e[n]=="function"&&(a.prototype[n]=e[n]);return a},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=nn|mv|uu}(),t}(va),D$=wt({strokeFirst:!0,font:Ti,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Qv),rl=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,a=e.stroke;return a!=null&&a!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(e){return th(D$,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var a=e.text;a!=null?a+="":a="";var n=Rc(a,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(va);rl.prototype.type="tspan";var L$=wt({x:0,y:0},No),k$={style:wt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},sh.style)};function P$(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Xe=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return th(L$,e)},t.prototype._getSize=function(e){var a=this.style,n=a[e];if(n!=null)return n;var i=P$(a.image)?a.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=a[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return k$},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Pt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(va);Xe.prototype.type="image";function R$(r,t){var e=t.x,a=t.y,n=t.width,i=t.height,o=t.r,s,l,u,c;n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>n&&(f=s+l,s*=n/f,l*=n/f),u+c>n&&(f=u+c,u*=n/f,c*=n/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),r.moveTo(e+s,a),r.lineTo(e+n-l,a),l!==0&&r.arc(e+n-l,a+l,l,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+c,a+i),c!==0&&r.arc(e+c,a+i-c,c,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var Os=Math.round;function cD(r,t,e){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(Os(a*2)===Os(n*2)&&(r.x1=r.x2=Co(a,s,!0)),Os(i*2)===Os(o*2)&&(r.y1=r.y2=Co(i,s,!0))),r}}function fD(r,t,e){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Co(a,s,!0),r.y=Co(n,s,!0),r.width=Math.max(Co(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Co(n+o,s,!1)-r.y,o===0?0:1)),r}}function Co(r,t,e){if(!t)return r;var a=Os(r*2);return(a+Os(t))%2===0?a/2:(a+(e?1:-1))/2}var E$=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),N$={},Xt=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new E$},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=fD(N$,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?R$(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Vt);Xt.prototype.type="rect";var Rx={fill:"#000"},Ex=2,$$={style:wt({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},sh.style)},Kt=function(r){G(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Rx,a.attr(e),a}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;e<this._children.length;e++){var a=this._children[e];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var a=this.innerTransformable;return a?a.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,B$(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var a=0;a<this._children.length;a++)this._children[a].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Pt(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Rx},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,a){if(!a)return e;var n=a.rich,i=e.rich||n&&{};return Y(e,a),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,a){for(var n=Ut(a),i=0;i<n.length;i++){var o=n[i];e[o]=e[o]||{},Y(e[o],a[o])}},t.prototype.getAnimationStyleProps=function(){return $$},t.prototype._getOrCreateChild=function(e){var a=this._children[this._childCursor];return(!a||!(a instanceof e))&&(a=new e),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},t.prototype._updatePlainTexts=function(){var e=this.style,a=e.font||Ti,n=e.padding,i=Gx(e),o=o$(i,e),s=Lp(e),l=!!e.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,v=o.lines,d=o.lineHeight,h=this._defaultStyle;this.isTruncated=!!o.isTruncated;var g=e.x||0,m=e.y||0,y=e.align||h.align||"left",_=e.verticalAlign||h.verticalAlign||"top",b=g,x=Ps(m,o.contentHeight,_);if(s||n){var w=fu(g,c,y),S=Ps(m,u,_);s&&this._renderBackground(e,e,w,S,c,u)}x+=d/2,n&&(b=Vx(g,y,n),_==="top"?x+=n[0]:_==="bottom"&&(x-=n[2]));for(var M=0,C=!1,I=Bx("fill"in e?e.fill:(C=!0,h.fill)),T=zx("stroke"in e?e.stroke:!l&&(!h.autoStroke||C)?(M=Ex,h.stroke):null),D=e.textShadowBlur>0,E=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),R=o.calculatedLineHeight,k=0;k<v.length;k++){var N=this._getOrCreateChild(rl),O=N.createStyle();N.useStyle(O),O.text=v[k],O.x=b,O.y=x,O.textAlign=y,O.textBaseline="middle",O.opacity=e.opacity,O.strokeFirst=!0,D&&(O.shadowBlur=e.textShadowBlur||0,O.shadowColor=e.textShadowColor||"transparent",O.shadowOffsetX=e.textShadowOffsetX||0,O.shadowOffsetY=e.textShadowOffsetY||0),O.stroke=T,O.fill=I,T&&(O.lineWidth=e.lineWidth||M,O.lineDash=e.lineDash,O.lineDashOffset=e.lineDashOffset||0),O.font=a,$x(O,e),x+=d,E&&N.setBoundingRect(new Pt(fu(O.x,f,O.textAlign),Ps(O.y,R,O.textBaseline),f,R))}},t.prototype._updateRichTexts=function(){var e=this.style,a=Gx(e),n=u$(a,e),i=n.width,o=n.outerWidth,s=n.outerHeight,l=e.padding,u=e.x||0,c=e.y||0,f=this._defaultStyle,v=e.align||f.align,d=e.verticalAlign||f.verticalAlign;this.isTruncated=!!n.isTruncated;var h=fu(u,o,v),g=Ps(c,s,d),m=h,y=g;l&&(m+=l[3],y+=l[0]);var _=m+i;Lp(e)&&this._renderBackground(e,e,h,g,o,s);for(var b=!!e.backgroundColor,x=0;x<n.lines.length;x++){for(var w=n.lines[x],S=w.tokens,M=S.length,C=w.lineHeight,I=w.width,T=0,D=m,E=_,R=M-1,k=void 0;T<M&&(k=S[T],!k.align||k.align==="left");)this._placeToken(k,e,C,y,D,"left",b),I-=k.width,D+=k.width,T++;for(;R>=0&&(k=S[R],k.align==="right");)this._placeToken(k,e,C,y,E,"right",b),I-=k.width,E-=k.width,R--;for(D+=(i-(D-m)-(_-E)-I)/2;T<=R;)k=S[T],this._placeToken(k,e,C,y,D+k.width/2,"center",b),D+=k.width,T++;y+=C}},t.prototype._placeToken=function(e,a,n,i,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var c=e.verticalAlign,f=i+n/2;c==="top"?f=i+e.height/2:c==="bottom"&&(f=i+n-e.height/2);var v=!e.isLineHolder&&Lp(u);v&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,f-e.height/2,e.width,e.height);var d=!!u.backgroundColor,h=e.textPadding;h&&(o=Vx(o,s,h),f-=e.height/2-h[0]-e.innerHeight/2);var g=this._getOrCreateChild(rl),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,_=!1,b=0,x=Bx("fill"in u?u.fill:"fill"in a?a.fill:(_=!0,y.fill)),w=zx("stroke"in u?u.stroke:"stroke"in a?a.stroke:!d&&!l&&(!y.autoStroke||_)?(b=Ex,y.stroke):null),S=u.textShadowBlur>0||a.textShadowBlur>0;m.text=e.text,m.x=o,m.y=f,S&&(m.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,m.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=e.font||Ti,m.opacity=an(u.opacity,a.opacity,1),$x(m,u),w&&(m.lineWidth=an(u.lineWidth,a.lineWidth,b),m.lineDash=At(u.lineDash,a.lineDash),m.lineDashOffset=a.lineDashOffset||0,m.stroke=w),x&&(m.fill=x);var M=e.contentWidth,C=e.contentHeight;g.setBoundingRect(new Pt(fu(m.x,M,m.textAlign),Ps(m.y,C,m.textBaseline),M,C))},t.prototype._renderBackground=function(e,a,n,i,o,s){var l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,f=l&&l.image,v=l&&!f,d=e.borderRadius,h=this,g,m;if(v||e.lineHeight||u&&c){g=this._getOrCreateChild(Xt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=d,g.dirtyShape()}if(v){var _=g.style;_.fill=l||null,_.fillOpacity=At(e.fillOpacity,1)}else if(f){m=this._getOrCreateChild(Xe),m.onload=function(){h.dirtyStyle()};var b=m.style;b.image=l.image,b.x=n,b.y=i,b.width=o,b.height=s}if(u&&c){var _=g.style;_.lineWidth=u,_.stroke=c,_.strokeOpacity=At(e.strokeOpacity,1),_.lineDash=e.borderDash,_.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var x=(g||m).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=an(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return dD(e)&&(a=[e.fontStyle,e.fontWeight,vD(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&xa(a)||e.textFont||e.font},t}(va),O$={left:!0,right:1,center:1},z$={top:1,bottom:1,middle:1},Nx=["fontStyle","fontWeight","fontSize","fontFamily"];function vD(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?H0+"px":r+"px"}function $x(r,t){for(var e=0;e<Nx.length;e++){var a=Nx[e],n=t[a];n!=null&&(r[a]=n)}}function dD(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function B$(r){return Ox(r),A(r.rich,Ox),r}function Ox(r){if(r){r.font=Kt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||O$[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||z$[e]?e:"top";var a=r.padding;a&&(r.padding=X0(r.padding))}}function zx(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Bx(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Vx(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Gx(r){var t=r.text;return t!=null&&(t+=""),t}function Lp(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Tt=qt(),sy=function(r,t,e,a){if(a){var n=Tt(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=Tt(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Fx=1,Hx={},hD=qt(),l1=qt(),u1=0,Nc=1,uh=2,Sr=["emphasis","blur","select"],ic=["normal","emphasis","blur","select"],ml=10,V$=9,$o="highlight",wv="downplay",Nu="select",Sv="unselect",$u="toggleSelect";function vs(r){return r!=null&&r!=="none"}function ch(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function pD(r){ch(r,"emphasis",uh)}function gD(r){r.hoverState===uh&&ch(r,"normal",u1)}function c1(r){ch(r,"blur",Nc)}function mD(r){r.hoverState===Nc&&ch(r,"normal",u1)}function G$(r){r.selected=!0}function F$(r){r.selected=!1}function Wx(r,t,e){t(r,e)}function Yn(r,t,e){Wx(r,t,e),r.isGroup&&r.traverse(function(a){Wx(a,t,e)})}function td(r,t){switch(t){case"emphasis":r.hoverState=uh;break;case"normal":r.hoverState=u1;break;case"blur":r.hoverState=Nc;break;case"select":r.selected=!0}}function H$(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function W$(r,t,e,a){var n=e&&Nt(e,"select")>=0,i=!1;if(r instanceof Vt){var o=hD(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(vs(s)||vs(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=Y({},a),u=Y({},u),u.fill=s):!vs(u.fill)&&vs(s)?(i=!0,a=Y({},a),u=Y({},u),u.fill=Ym(s)):!vs(u.stroke)&&vs(l)&&(i||(a=Y({},a),u=Y({},u)),u.stroke=Ym(l)),a.style=u}}if(a&&a.z2==null){i||(a=Y({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??ml)}return a}function Z$(r,t,e){if(e&&e.z2==null){e=Y({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??V$)}return e}function Y$(r,t,e){var a=Nt(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:H$(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=Y({},e),o=Y({opacity:a?n:i.opacity*.1},o),e.style=o),e}function kp(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return W$(this,r,t,e);if(r==="blur")return Y$(this,r,e);if(r==="select")return Z$(this,r,e)}return e}function Uo(r){r.stateProxy=kp;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=kp),e&&(e.stateProxy=kp)}function Zx(r,t){!xD(r,t)&&!r.__highByOuter&&Yn(r,pD)}function Yx(r,t){!xD(r,t)&&!r.__highByOuter&&Yn(r,gD)}function Bn(r,t){r.__highByOuter|=1<<(t||0),Yn(r,pD)}function Vn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Yn(r,gD)}function yD(r){Yn(r,c1)}function f1(r){Yn(r,mD)}function _D(r){Yn(r,G$)}function bD(r){Yn(r,F$)}function xD(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function wD(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=l1(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){mD(u)}),s&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function ly(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var v=u.getItemGraphicEl(c[f]);v&&f1(v)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var v=f&&s?f===s:c;if(!(e==="series"&&!c||e==="coordinateSystem"&&!v||t==="series"&&c)){var d=a.getViewOfSeriesModel(u);if(d.group.traverse(function(m){m.__highByOuter&&c&&t==="self"||c1(m)}),ur(t))i(u.getData(),t);else if(St(t))for(var h=Ut(t),g=0;g<h.length;g++)i(u.getData(h[g]),t[h[g]]);l.push(u),l1(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var f=a.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,n)}})}}function uy(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){l1(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){c1(i)})}}}function U$(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(n){var i=Zo(n,t);i=(K(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=Tt(o);ly(a,u.focus,u.blurScope,e)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&ly(a,c,f,e)}}}function v1(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(Tt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function j$(r,t,e){var a=Tt(r),n=v1(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&uy(a.componentMainType,a.componentIndex,e),A(i,function(s){return Zx(s,t)})):(ly(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&uy(a.componentMainType,a.componentIndex,e),Zx(r,t))}function X$(r,t,e){wD(e);var a=Tt(r),n=v1(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?A(n,function(i){return Yx(i,t)}):Yx(r,t)}function q$(r,t,e){if(fy(t)){var a=t.dataType,n=r.getData(a),i=Zo(n,t);K(i)||(i=[i]),r[t.type===$u?"toggleSelect":t.type===Nu?"select":"unselect"](i,a)}}function Ux(r){var t=r.getAllData();A(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?_D(i):bD(i)})})}function K$(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();A(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Oo(r,t,e){Io(r,!0),Yn(r,Uo),cy(r,t,e)}function J$(r){Io(r,!1)}function Le(r,t,e,a){a?J$(r):Oo(r,t,e)}function cy(r,t,e){var a=Tt(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var jx=["emphasis","blur","select"],Q$={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Je(r,t,e,a){e=e||"itemStyle";for(var n=0;n<jx.length;n++){var i=jx[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[Q$[e]]()}}function Io(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function oc(r){return!!(r&&r.__highDownDispatcher)}function tO(r,t,e){var a=Tt(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function eO(r){var t=Hx[r];return t==null&&Fx<=32&&(t=Hx[r]=Fx++),t}function fy(r){var t=r.type;return t===Nu||t===Sv||t===$u}function Xx(r){var t=r.type;return t===$o||t===wv}function rO(r){var t=hD(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var ds=dn.CMD,aO=[[],[],[]],qx=Math.sqrt,nO=Math.atan2;function SD(r,t){if(t){var e=r.data,a=r.len(),n,i,o,s,l,u,c=ds.M,f=ds.C,v=ds.L,d=ds.R,h=ds.A,g=ds.Q;for(o=0,s=0;o<a;){switch(n=e[o++],s=o,i=0,n){case c:i=1;break;case v:i=1;break;case f:i=3;break;case g:i=2;break;case h:var m=t[4],y=t[5],_=qx(t[0]*t[0]+t[1]*t[1]),b=qx(t[2]*t[2]+t[3]*t[3]),x=nO(-t[1]/b,t[0]/_);e[o]*=_,e[o++]+=m,e[o]*=b,e[o++]+=y,e[o++]*=_,e[o++]*=b,e[o++]+=x,e[o++]+=x,o+=2,s=o;break;case d:u[0]=e[o++],u[1]=e[o++],Ke(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Ke(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var w=aO[l];w[0]=e[o++],w[1]=e[o++],Ke(w,w,t),e[s++]=w[0],e[s++]=w[1]}}r.increaseVersion()}}var Pp=Math.sqrt,mf=Math.sin,yf=Math.cos,Vl=Math.PI;function Kx(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function vy(r,t){return(r[0]*t[0]+r[1]*t[1])/(Kx(r)*Kx(t))}function Jx(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(vy(r,t))}function Qx(r,t,e,a,n,i,o,s,l,u,c){var f=l*(Vl/180),v=yf(f)*(r-e)/2+mf(f)*(t-a)/2,d=-1*mf(f)*(r-e)/2+yf(f)*(t-a)/2,h=v*v/(o*o)+d*d/(s*s);h>1&&(o*=Pp(h),s*=Pp(h));var g=(n===i?-1:1)*Pp((o*o*(s*s)-o*o*(d*d)-s*s*(v*v))/(o*o*(d*d)+s*s*(v*v)))||0,m=g*o*d/s,y=g*-s*v/o,_=(r+e)/2+yf(f)*m-mf(f)*y,b=(t+a)/2+mf(f)*m+yf(f)*y,x=Jx([1,0],[(v-m)/o,(d-y)/s]),w=[(v-m)/o,(d-y)/s],S=[(-1*v-m)/o,(-1*d-y)/s],M=Jx(w,S);if(vy(w,S)<=-1&&(M=Vl),vy(w,S)>=1&&(M=0),M<0){var C=Math.round(M/Vl*1e6)/1e6;M=Vl*2+C%2*Vl}c.addData(u,_,b,o,s,x,M,f,i)}var iO=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,oO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function sO(r){var t=new dn;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=dn.CMD,l=r.match(iO);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),v=void 0,d=c.match(oO)||[],h=d.length,g=0;g<h;g++)d[g]=parseFloat(d[g]);for(var m=0;m<h;){var y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,M=void 0,C=e,I=a,T=void 0,D=void 0;switch(f){case"l":e+=d[m++],a+=d[m++],v=s.L,t.addData(v,e,a);break;case"L":e=d[m++],a=d[m++],v=s.L,t.addData(v,e,a);break;case"m":e+=d[m++],a+=d[m++],v=s.M,t.addData(v,e,a),n=e,i=a,f="l";break;case"M":e=d[m++],a=d[m++],v=s.M,t.addData(v,e,a),n=e,i=a,f="L";break;case"h":e+=d[m++],v=s.L,t.addData(v,e,a);break;case"H":e=d[m++],v=s.L,t.addData(v,e,a);break;case"v":a+=d[m++],v=s.L,t.addData(v,e,a);break;case"V":a=d[m++],v=s.L,t.addData(v,e,a);break;case"C":v=s.C,t.addData(v,d[m++],d[m++],d[m++],d[m++],d[m++],d[m++]),e=d[m-2],a=d[m-1];break;case"c":v=s.C,t.addData(v,d[m++]+e,d[m++]+a,d[m++]+e,d[m++]+a,d[m++]+e,d[m++]+a),e+=d[m-2],a+=d[m-1];break;case"S":y=e,_=a,T=t.len(),D=t.data,o===s.C&&(y+=e-D[T-4],_+=a-D[T-3]),v=s.C,C=d[m++],I=d[m++],e=d[m++],a=d[m++],t.addData(v,y,_,C,I,e,a);break;case"s":y=e,_=a,T=t.len(),D=t.data,o===s.C&&(y+=e-D[T-4],_+=a-D[T-3]),v=s.C,C=e+d[m++],I=a+d[m++],e+=d[m++],a+=d[m++],t.addData(v,y,_,C,I,e,a);break;case"Q":C=d[m++],I=d[m++],e=d[m++],a=d[m++],v=s.Q,t.addData(v,C,I,e,a);break;case"q":C=d[m++]+e,I=d[m++]+a,e+=d[m++],a+=d[m++],v=s.Q,t.addData(v,C,I,e,a);break;case"T":y=e,_=a,T=t.len(),D=t.data,o===s.Q&&(y+=e-D[T-4],_+=a-D[T-3]),e=d[m++],a=d[m++],v=s.Q,t.addData(v,y,_,e,a);break;case"t":y=e,_=a,T=t.len(),D=t.data,o===s.Q&&(y+=e-D[T-4],_+=a-D[T-3]),e+=d[m++],a+=d[m++],v=s.Q,t.addData(v,y,_,e,a);break;case"A":b=d[m++],x=d[m++],w=d[m++],S=d[m++],M=d[m++],C=e,I=a,e=d[m++],a=d[m++],v=s.A,Qx(C,I,e,a,S,M,b,x,w,v,t);break;case"a":b=d[m++],x=d[m++],w=d[m++],S=d[m++],M=d[m++],C=e,I=a,e+=d[m++],a+=d[m++],v=s.A,Qx(C,I,e,a,S,M,b,x,w,v,t);break}}(f==="z"||f==="Z")&&(v=s.Z,t.addData(v),e=n,a=i),o=v}return t.toStatic(),t}var MD=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Vt);function CD(r){return r.setData!=null}function ID(r,t){var e=sO(r),a=Y({},t);return a.buildPath=function(n){if(CD(n)){n.setData(e.data);var i=n.getContext();i&&n.rebuildPath(i,1)}else{var i=n;e.rebuildPath(i,1)}},a.applyTransform=function(n){SD(e,n),this.dirtyShape()},a}function TD(r,t){return new MD(ID(r,t))}function lO(r,t){var e=ID(r,t),a=function(n){G(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i}(MD);return a}function uO(r,t){for(var e=[],a=r.length,n=0;n<a;n++){var i=r[n];e.push(i.getUpdatedPathProxy(!0))}var o=new Vt(t);return o.createPathProxy(),o.buildPath=function(s){if(CD(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function d1(r,t){t=t||{};var e=new Vt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?SD(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var cO=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),Un=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new cO},t.prototype.buildPath=function(e,a){e.moveTo(a.cx+a.r,a.cy),e.arc(a.cx,a.cy,a.r,0,Math.PI*2)},t}(Vt);Un.prototype.type="circle";var fO=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),fh=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new fO},t.prototype.buildPath=function(e,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,c=l*n;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),e.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),e.closePath()},t}(Vt);fh.prototype.type="ellipse";var AD=Math.PI,Rp=AD*2,to=Math.sin,hs=Math.cos,vO=Math.acos,tr=Math.atan2,tw=Math.abs,Ou=Math.sqrt,vu=Math.max,Fa=Math.min,ya=1e-4;function dO(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,f=s-i,v=f*l-c*u;if(!(v*v<ya))return v=(c*(t-i)-f*(r-n))/v,[r+v*l,t+v*u]}function _f(r,t,e,a,n,i,o){var s=r-e,l=t-a,u=(o?i:-i)/Ou(s*s+l*l),c=u*l,f=-u*s,v=r+c,d=t+f,h=e+c,g=a+f,m=(v+h)/2,y=(d+g)/2,_=h-v,b=g-d,x=_*_+b*b,w=n-i,S=v*g-h*d,M=(b<0?-1:1)*Ou(vu(0,w*w*x-S*S)),C=(S*b-_*M)/x,I=(-S*_-b*M)/x,T=(S*b+_*M)/x,D=(-S*_+b*M)/x,E=C-m,R=I-y,k=T-m,N=D-y;return E*E+R*R>k*k+N*N&&(C=T,I=D),{cx:C,cy:I,x0:-c,y0:-f,x1:C*(n/w-1),y1:I*(n/w-1)}}function hO(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 pO(r,t){var e,a=vu(t.r,0),n=vu(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,v=!!t.clockwise,d=tw(u-l),h=d>Rp&&d%Rp;if(h>ya&&(d=h),!(a>ya))r.moveTo(c,f);else if(d>Rp-ya)r.moveTo(c+a*hs(l),f+a*to(l)),r.arc(c,f,a,l,u,!v),n>ya&&(r.moveTo(c+n*hs(u),f+n*to(u)),r.arc(c,f,n,u,l,v));else{var g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,M=void 0,C=void 0,I=void 0,T=void 0,D=void 0,E=void 0,R=void 0,k=void 0,N=a*hs(l),O=a*to(l),V=n*hs(u),B=n*to(u),Z=d>ya;if(Z){var X=t.cornerRadius;X&&(e=hO(X),g=e[0],m=e[1],y=e[2],_=e[3]);var et=tw(a-n)/2;if(b=Fa(et,y),x=Fa(et,_),w=Fa(et,g),S=Fa(et,m),I=M=vu(b,x),T=C=vu(w,S),(M>ya||C>ya)&&(D=a*hs(u),E=a*to(u),R=n*hs(l),k=n*to(l),d<AD)){var it=dO(N,O,R,k,D,E,V,B);if(it){var yt=N-it[0],_t=O-it[1],Ct=D-it[0],Wt=E-it[1],q=1/to(vO((yt*Ct+_t*Wt)/(Ou(yt*yt+_t*_t)*Ou(Ct*Ct+Wt*Wt)))/2),rt=Ou(it[0]*it[0]+it[1]*it[1]);I=Fa(M,(a-rt)/(q+1)),T=Fa(C,(n-rt)/(q-1))}}}if(!Z)r.moveTo(c+N,f+O);else if(I>ya){var j=Fa(y,I),ot=Fa(_,I),st=_f(R,k,N,O,a,j,v),$=_f(D,E,V,B,a,ot,v);r.moveTo(c+st.cx+st.x0,f+st.cy+st.y0),I<M&&j===ot?r.arc(c+st.cx,f+st.cy,I,tr(st.y0,st.x0),tr($.y0,$.x0),!v):(j>0&&r.arc(c+st.cx,f+st.cy,j,tr(st.y0,st.x0),tr(st.y1,st.x1),!v),r.arc(c,f,a,tr(st.cy+st.y1,st.cx+st.x1),tr($.cy+$.y1,$.cx+$.x1),!v),ot>0&&r.arc(c+$.cx,f+$.cy,ot,tr($.y1,$.x1),tr($.y0,$.x0),!v))}else r.moveTo(c+N,f+O),r.arc(c,f,a,l,u,!v);if(!(n>ya)||!Z)r.lineTo(c+V,f+B);else if(T>ya){var j=Fa(g,T),ot=Fa(m,T),st=_f(V,B,D,E,n,-ot,v),$=_f(N,O,R,k,n,-j,v);r.lineTo(c+st.cx+st.x0,f+st.cy+st.y0),T<C&&j===ot?r.arc(c+st.cx,f+st.cy,T,tr(st.y0,st.x0),tr($.y0,$.x0),!v):(ot>0&&r.arc(c+st.cx,f+st.cy,ot,tr(st.y0,st.x0),tr(st.y1,st.x1),!v),r.arc(c,f,n,tr(st.cy+st.y1,st.cx+st.x1),tr($.cy+$.y1,$.cx+$.x1),v),j>0&&r.arc(c+$.cx,f+$.cy,j,tr($.y1,$.x1),tr($.y0,$.x0),!v))}else r.lineTo(c+V,f+B),r.arc(c,f,n,u,l,v)}r.closePath()}}}var gO=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}(),Mr=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new gO},t.prototype.buildPath=function(e,a){pO(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Vt);Mr.prototype.type="sector";var mO=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),$c=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new mO},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t}(Vt);$c.prototype.type="ring";function yO(r,t,e,a){var n=[],i=[],o=[],s=[],l,u,c,f;if(a){c=[1/0,1/0],f=[-1/0,-1/0];for(var v=0,d=r.length;v<d;v++)hi(c,c,r[v]),pi(f,f,r[v]);hi(c,c,a[0]),pi(f,f,a[1])}for(var v=0,d=r.length;v<d;v++){var h=r[v];if(e)l=r[v?v-1:d-1],u=r[(v+1)%d];else if(v===0||v===d-1){n.push(Pn(r[v]));continue}else l=r[v-1],u=r[v+1];Mo(i,u,l),hv(i,i,t);var g=Om(h,l),m=Om(h,u),y=g+m;y!==0&&(g/=y,m/=y),hv(o,i,-g),hv(s,i,m);var _=Xb([],h,o),b=Xb([],h,s);a&&(pi(_,_,c),hi(_,_,f),pi(b,b,c),hi(b,b,f)),n.push(_),n.push(b)}return e&&n.push(n.shift()),n}function DD(r,t,e){var a=t.smooth,n=t.points;if(n&&n.length>=2){if(a){var i=yO(n,a,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,f=n.length;s<f;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var _O=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),Cr=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new _O},t.prototype.buildPath=function(e,a){DD(e,a,!0)},t}(Vt);Cr.prototype.type="polygon";var bO=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),Ir=function(r){G(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 bO},t.prototype.buildPath=function(e,a){DD(e,a,!1)},t}(Vt);Ir.prototype.type="polyline";var xO={},wO=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),Fe=function(r){G(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 wO},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=cD(xO,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(e.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var a=this.shape;return[a.x1*(1-e)+a.x2*e,a.y1*(1-e)+a.y2*e]},t}(Vt);Fe.prototype.type="line";var Dr=[],SO=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function ew(r,t,e){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(e?sx:Ge)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?sx:Ge)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Fm:Ue)(r.x1,r.cpx1,r.x2,t),(e?Fm:Ue)(r.y1,r.cpy1,r.y2,t)]}var Oc=function(r){G(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 SO},t.prototype.buildPath=function(e,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,c=a.cpx2,f=a.cpy2,v=a.percent;v!==0&&(e.moveTo(n,i),c==null||f==null?(v<1&&(tc(n,l,o,v,Dr),l=Dr[1],o=Dr[2],tc(i,u,s,v,Dr),u=Dr[1],s=Dr[2]),e.quadraticCurveTo(l,u,o,s)):(v<1&&(Di(n,l,c,o,v,Dr),l=Dr[1],c=Dr[2],o=Dr[3],Di(i,u,f,s,v,Dr),u=Dr[1],f=Dr[2],s=Dr[3]),e.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(e){return ew(this.shape,e,!1)},t.prototype.tangentAt=function(e){var a=ew(this.shape,e,!0);return hl(a,a)},t}(Vt);Oc.prototype.type="bezier-curve";var MO=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),vh=function(r){G(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 MO},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,c=Math.cos(s),f=Math.sin(s);e.moveTo(c*o+n,f*o+i),e.arc(n,i,o,s,l,!u)},t}(Vt);vh.prototype.type="arc";var h1=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,a=this.shapeChanged(),n=0;n<e.length;n++)a=a||e[n].shapeChanged();a&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(a[0],a[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],a=0;a<e.length;a++)e[a].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Vt.prototype.getBoundingRect.call(this)},t}(Vt),LD=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),zc=function(r){G(t,r);function t(e,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(LD),kD=function(r){G(t,r);function t(e,a,n,i,o){var s=r.call(this,i)||this;return s.x=e??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t}(LD),eo=[0,0],ro=[0,0],bf=new kt,xf=new kt,ed=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new kt;for(var a=0;a<2;a++)this._axes[a]=new kt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var a=this._corners,n=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),e)for(var u=0;u<4;u++)a[u].transform(e);kt.sub(n[0],a[1],a[0]),kt.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(t,e){var a=!0,n=!e;return bf.set(1/0,1/0),xf.set(0,0),!this._intersectCheckOneSide(this,t,bf,xf,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(t,this,bf,xf,n,-1)&&(a=!1,n)||n||kt.copy(e,a?bf:xf),a},r.prototype._intersectCheckOneSide=function(t,e,a,n,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,eo),this._getProjMinMaxOnAxis(l,e._corners,ro),eo[1]<ro[0]||eo[0]>ro[1]){if(s=!1,i)return s;var c=Math.abs(ro[0]-eo[1]),f=Math.abs(eo[0]-ro[1]);Math.min(c,f)>n.len()&&(c<f?kt.scale(n,u,-c*o):kt.scale(n,u,f*o))}else if(a){var c=Math.abs(ro[0]-eo[1]),f=Math.abs(eo[0]-ro[1]);Math.min(c,f)<a.len()&&(c<f?kt.scale(a,u,c*o):kt.scale(a,u,-f*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var n=this._axes[t],i=this._origin,o=e[0].dot(n)+i[t],s=o,l=o,u=1;u<e.length;u++){var c=e[u].dot(n)+i[t];s=Math.min(c,s),l=Math.max(c,l)}a[0]=s,a[1]=l},r}(),CO=[],IO=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,a){a?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,a){a=a||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],a)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var a=this._cursor;a<this._displayables.length;a++)e&&e(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)e&&e(this._temporaryDisplayables[a])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var a=this._displayables[e];a.parent=this,a.update(),a.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var a=this._temporaryDisplayables[e];a.parent=this,a.update(),a.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Pt(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(CO)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,a))return!0}return!1},t}(va),PD=qt();function yl(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;a?(u=At(a.duration,200),c=At(a.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),xt(f)&&(f=f(e,n)),xt(u)&&(u=u(e));var v={duration:u||0,delay:f,easing:c};return v}else return null}function p1(r,t,e,a,n,i,o){var s=!1,l;xt(n)?(o=i,i=n,n=null):St(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var c=yl(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(c&&c.duration>0){var f=c.duration,v=c.delay,d=c.easing,h={duration:f,delay:v||0,easing:d,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,h):t.animateTo(e,h)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function ee(r,t,e,a,n,i){p1("update",r,t,e,a,n,i)}function Me(r,t,e,a,n,i){p1("enter",r,t,e,a,n,i)}function Ys(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Li(r,t,e,a,n,i){Ys(r)||p1("leave",r,t,e,a,n,i)}function rw(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),Li(r,{style:{opacity:0}},t,e,a)}function sc(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||rw(n,t,e,a)}):rw(r,t,e,a)}function Aa(r){PD(r).oldStyle=r.style}function TO(r){return PD(r).oldStyle}var rd=Math.max,ad=Math.min,dy={};function AO(r){return Vt.extend(r)}var DO=lO;function LO(r,t){return DO(r,t)}function Da(r,t){dy[r]=t}function g1(r){if(dy.hasOwnProperty(r))return dy[r]}function dh(r,t,e,a){var n=TD(r,t);return e&&(a==="center"&&(e=ED(e,n.getBoundingRect())),ND(n,e)),n}function RD(r,t,e){var a=new Xe({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(ED(t,i))}}});return a}function ED(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var oa=uO;function ND(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function al(r,t){return cD(r,r,{lineWidth:t}),r}function kO(r){return fD(r.shape,r.shape,r.style),r}var Mv=Co;function zo(r,t){for(var e=eh([]);r&&r!==t;)Rn(e,r.getLocalTransform(),e),r=r.parent;return e}function Ca(r,t,e){return t&&!ur(t)&&(t=An.getLocalTransform(t)),e&&(t=pl([],t)),Ke([],r,t)}function hh(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=Ca(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function aw(r){return!r.isGroup}function PO(r){return r.shape!=null}function Bc(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){aw(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return PO(o)&&(s.shape=Y({},o.shape)),s}var i=a(r);t.traverse(function(o){if(aw(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),ee(o,l,e,Tt(o).dataIndex)}}})}function $D(r,t){return Q(r,function(e){var a=e[0];a=rd(a,t.x),a=ad(a,t.x+t.width);var n=e[1];return n=rd(n,t.y),n=ad(n,t.y+t.height),[a,n]})}function RO(r,t){var e=rd(r.x,t.x),a=ad(r.x+r.width,t.x+t.width),n=rd(r.y,t.y),i=ad(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Vc(r,t,e){var a=Y({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),wt(n,e),new Xe(a)):dh(r.replace("path://",""),a,e,"center")}function du(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(OD(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function OD(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,f=s-i,v=Ep(c,f,l,u);if(EO(v))return!1;var d=r-n,h=t-i,g=Ep(d,h,l,u)/v;if(g<0||g>1)return!1;var m=Ep(d,h,c,f)/v;return!(m<0||m>1)}function Ep(r,t,e,a){return r*a-e*t}function EO(r){return r<=1e-6&&r>=-1e-6}function ts(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=ft(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(Ut(l),function(c){gt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Tt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:wt({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function nw(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Oi(r,t){if(r)if(K(r))for(var e=0;e<r.length;e++)nw(r[e],t);else nw(r,t)}Da("circle",Un);Da("ellipse",fh);Da("sector",Mr);Da("ring",$c);Da("polygon",Cr);Da("polyline",Ir);Da("rect",Xt);Da("line",Fe);Da("bezierCurve",Oc);Da("arc",vh);const es=Object.freeze(Object.defineProperty({__proto__:null,Arc:vh,BezierCurve:Oc,BoundingRect:Pt,Circle:Un,CompoundPath:h1,Ellipse:fh,Group:It,Image:Xe,IncrementalDisplayable:IO,Line:Fe,LinearGradient:zc,OrientedBoundingRect:ed,Path:Vt,Point:kt,Polygon:Cr,Polyline:Ir,RadialGradient:kD,Rect:Xt,Ring:$c,Sector:Mr,Text:Kt,applyTransform:Ca,clipPointsByRect:$D,clipRectByRect:RO,createIcon:Vc,extendPath:LO,extendShape:AO,getShapeClass:g1,getTransform:zo,groupTransition:Bc,initProps:Me,isElementRemoved:Ys,lineLineIntersect:OD,linePolygonIntersect:du,makeImage:RD,makePath:dh,mergePath:oa,registerShape:Da,removeElement:Li,removeElementWithFadeOut:sc,resizePath:ND,setTooltipConfig:ts,subPixelOptimize:Mv,subPixelOptimizeLine:al,subPixelOptimizeRect:kO,transformDirection:hh,traverseElements:Oi,updateProps:ee},Symbol.toStringTag,{value:"Module"}));var ph={};function zD(r,t){for(var e=0;e<Sr.length;e++){var a=Sr[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function hy(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=xt(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<Sr.length;u++){var c=Sr[u],f=t[c];l[c]=At(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Qe(r,t,e,a){e=e||ph;for(var n=r instanceof Kt,i=!1,o=0;o<ic.length;o++){var s=t[ic[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new Kt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=hy(e,t),c=t.normal,f=!!c.getShallow("show"),v=be(c,a&&a.normal,e,!1,!n);v.text=u.normal,n||r.setTextConfig(nd(c,e,!1));for(var o=0;o<Sr.length;o++){var d=Sr[o],s=t[d];if(s){var h=l.ensureState(d),g=!!At(s.getShallow("show"),f);if(g!==f&&(h.ignore=!g),h.style=be(s,a&&a[d],e,!0,!n),h.style.text=u[d],!n){var m=r.ensureState(d);m.textConfig=nd(s,e,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!f,l.useStyle(v),l.dirty(),e.enableTextSetter&&(_l(l).setLabelText=function(y){var _=hy(e,t,y);zD(l,_)})}else l&&(l.ignore=!0);r.dirty()}function Ze(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<Sr.length;a++){var n=Sr[a];e[n]=r.getModel([n,t])}return e}function be(r,t,e,a,n){var i={};return NO(i,r,e,a,n),t&&Y(i,t),i}function nd(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=At(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",a}function NO(r,t,e,a,n){e=e||ph;var i=t.ecModel,o=i&&i.option.textStyle,s=$O(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);lw(l[u]={},c,o,e,a,n,!1,!0)}}l&&(r.rich=l);var f=t.get("overflow");f&&(r.overflow=f);var v=t.get("minMargin");v!=null&&(r.margin=v),lw(r,t,o,e,a,n,!0,!1)}function $O(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||ph).rich;if(e){t=t||{};for(var a=Ut(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var iw=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ow=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],sw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function lw(r,t,e,a,n,i,o,s){e=!n&&e||ph;var l=a&&a.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=At(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||e.color,c=c||e.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var v=At(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var d=At(t.getShallow("textBorderType"),e.textBorderType);d!=null&&(r.lineDash=d);var h=At(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);h!=null&&(r.lineDashOffset=h),!n&&f==null&&!s&&(f=a&&a.defaultOpacity),f!=null&&(r.opacity=f),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var g=0;g<iw.length;g++){var m=iw[g],y=At(t.getShallow(m),e[m]);y!=null&&(r[m]=y)}for(var g=0;g<ow.length;g++){var m=ow[g],y=t.getShallow(m);y!=null&&(r[m]=y)}if(r.verticalAlign==null){var _=t.getShallow("baseline");_!=null&&(r.verticalAlign=_)}if(!o||!a.disableBox){for(var g=0;g<sw.length;g++){var m=sw[g],y=t.getShallow(m);y!=null&&(r[m]=y)}var b=t.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function m1(r,t){var e=t&&t.getModel("textStyle");return xa([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var _l=qt();function BD(r,t,e,a){if(r){var n=_l(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function VD(r,t,e,a,n){var i=_l(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=At(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=rD(e,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var v=hy({labelDataIndex:t,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);zD(r,v)}r.percent=0,(i.prevValue==null?Me:ee)(r,{percent:1},a,t,null,u)}var OO=["textStyle","color"],Np=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],$p=new Kt,zO=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(OO):null)},r.prototype.getFont=function(){return m1({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<Np.length;a++)e[Np[a]]=this.getShallow(Np[a]);return $p.useStyle(e),$p.update(),$p.getBoundingRect()},r}(),GD=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],BO=Yo(GD),VO=function(){function r(){}return r.prototype.getLineStyle=function(t){return BO(this,t)},r}(),FD=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],GO=Yo(FD),FO=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return GO(this,t,e)},r}(),se=function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){Lt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(Mt(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!Gt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r}();i1(se);K9(se);Oe(se,VO);Oe(se,FO);Oe(se,r$);Oe(se,zO);var HO=Math.round(Math.random()*10);function bl(r){return[r||"",HO++].join("_")}function WO(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=Qa(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=Qa(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function ZO(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),c=u.graph,f=u.noEntryList,v={};for(A(i,function(_){v[_]=!0});f.length;){var d=f.pop(),h=c[d],g=!!v[d];g&&(s.call(l,d,h.originalDeps.slice()),delete v[d]),A(h.successor,g?y:m)}A(v,function(){var _="";throw new Error(_)});function m(_){c[_].entryCount--,c[_].entryCount===0&&f.push(_)}function y(_){v[_]=!0,m(_)}};function e(i){var o={},s=[];return A(i,function(l){var u=a(o,l),c=u.originalDeps=t(l),f=n(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),A(f,function(v){Nt(u.predecessor,v)<0&&u.predecessor.push(v);var d=a(o,v);Nt(d.successor,v)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return A(i,function(l){Nt(o,l)>=0&&s.push(l)}),s}}function zi(r,t){return Lt(Lt({},r,!0),t,!0)}const YO={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:". "}}}},UO={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 id="ZH",y1="EN",Us=y1,Cv={},_1={},HD=Gt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Us).toUpperCase();return r.indexOf(id)>-1?id:Us}():Us;function WD(r,t){r=r.toUpperCase(),_1[r]=new se(t),Cv[r]=t}function jO(r){if(ft(r)){var t=Cv[r.toUpperCase()]||{};return r===id||r===y1?Mt(t):Lt(Mt(t),Mt(Cv[Us]),!1)}else return Lt(Mt(r),Mt(Cv[Us]),!1)}function py(r){return _1[r]}function XO(){return _1[Us]}WD(y1,YO);WD(id,UO);var b1=1e3,x1=b1*60,zu=x1*60,sa=zu*24,uw=sa*365,hu={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}"},wf="{yyyy}-{MM}-{dd}",cw={year:"{yyyy}",month:"{yyyy}-{MM}",day:wf,hour:wf+" "+hu.hour,minute:wf+" "+hu.minute,second:wf+" "+hu.second,millisecond:hu.none},Op=["year","month","day","hour","minute","second","millisecond"],ZD=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Jn(r,t){return r+="","0000".substr(0,t-r.length)+r}function js(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 qO(r){return r===js(r)}function KO(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gh(r,t,e,a){var n=vn(r),i=n[w1(e)](),o=n[Xs(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[mh(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[lc(e)](),f=(c-1)%12+1,v=n[yh(e)](),d=n[_h(e)](),h=n[bh(e)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=a instanceof se?a:py(a||HD)||XO(),_=y.getModel("time"),b=_.get("month"),x=_.get("monthAbbr"),w=_.get("dayOfWeek"),S=_.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Jn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Jn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Jn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Jn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Jn(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Jn(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Jn(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Jn(h,3)).replace(/{S}/g,h+"")}function JO(r,t,e,a,n){var i=null;if(ft(e))i=e;else if(xt(e))i=e(r.value,t,{level:r.level});else{var o=Y({},hu);if(r.level>0)for(var s=0;s<Op.length;++s)o[Op[s]]="{primary|"+o[Op[s]]+"}";var l=e?e.inherit===!1?e:wt(e,o):o,u=YD(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=ZD.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.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 gh(new Date(r.value),i,n,a)}function YD(r,t){var e=vn(r),a=e[Xs(t)]()+1,n=e[mh(t)](),i=e[lc(t)](),o=e[yh(t)](),s=e[_h(t)](),l=e[bh(t)](),u=l===0,c=u&&s===0,f=c&&o===0,v=f&&i===0,d=v&&n===1,h=d&&a===1;return h?"year":d?"month":v?"day":f?"hour":c?"minute":u?"second":"millisecond"}function fw(r,t,e){var a=Qt(r)?vn(r):r;switch(t=t||YD(r,e),t){case"year":return a[w1(e)]();case"half-year":return a[Xs(e)]()>=6?1:0;case"quarter":return Math.floor((a[Xs(e)]()+1)/4);case"month":return a[Xs(e)]();case"day":return a[mh(e)]();case"half-day":return a[lc(e)]()/24;case"hour":return a[lc(e)]();case"minute":return a[yh(e)]();case"second":return a[_h(e)]();case"millisecond":return a[bh(e)]()}}function w1(r){return r?"getUTCFullYear":"getFullYear"}function Xs(r){return r?"getUTCMonth":"getMonth"}function mh(r){return r?"getUTCDate":"getDate"}function lc(r){return r?"getUTCHours":"getHours"}function yh(r){return r?"getUTCMinutes":"getMinutes"}function _h(r){return r?"getUTCSeconds":"getSeconds"}function bh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function QO(r){return r?"setUTCFullYear":"setFullYear"}function UD(r){return r?"setUTCMonth":"setMonth"}function jD(r){return r?"setUTCDate":"setDate"}function XD(r){return r?"setUTCHours":"setHours"}function qD(r){return r?"setUTCMinutes":"setMinutes"}function KD(r){return r?"setUTCSeconds":"setSeconds"}function JD(r){return r?"setUTCMilliseconds":"setMilliseconds"}function QD(r){if(!XA(r))return ft(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function t5(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var xl=X0;function gy(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&xa(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?vn(r):r;if(isNaN(+l)){if(s)return"-"}else return gh(l,a,e)}if(t==="ordinal")return Em(r)?n(r):Qt(r)&&i(r)?r+"":"-";var u=zn(r);return i(u)?QD(u):Em(r)?n(r):typeof r=="boolean"?r+"":"-"}var vw=["a","b","c","d","e","f","g"],zp=function(r,t){return"{"+r+(t??"")+"}"};function e5(r,t,e){K(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=vw[i];r=r.replace(zp(o),zp(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(zp(vw[l],s),e?_r(u):u)}return r}function tz(r,t,e){return A(t,function(a,n){r=r.replace("{"+n+"}",a)}),r}function ez(r,t){var e=ft(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+_r(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+_r(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function jo(r,t){return t=t||"transparent",ft(r)?r:St(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function od(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Iv=A,r5=["left","right","top","bottom","width","height"],To=[["width","left","right"],["height","top","bottom"]];function S1(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),v=f&&f.getBoundingRect(),d,h;if(r==="horizontal"){var g=c.width+(v?-v.x+c.x:0);d=i+g,d>a||l.newline?(i=0,d=g,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(v?-v.y+c.y:0);h=o+m,h>n||l.newline?(i+=s+e,o=0,h=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=d+e:o=h+e)})}var Bo=S1;Dt(S1,"vertical");Dt(S1,"horizontal");function rz(r,t,e){var a=t.width,n=t.height,i=lt(r.left,a),o=lt(r.top,n),s=lt(r.right,a),l=lt(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),e=xl(e||0),{width:Math.max(s-i-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function Ve(r,t,e){e=xl(e||0);var a=t.width,n=t.height,i=lt(r.left,a),o=lt(r.top,n),s=lt(r.right,a),l=lt(r.bottom,n),u=lt(r.width,a),c=lt(r.height,n),f=e[2]+e[0],v=e[1]+e[3],d=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(c)&&(c=n-l-f-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-c-f),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[0];break;case"bottom":o=n-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(c)&&(c=n-f-o-(l||0));var h=new Pt(i+e[3],o+e[0],u,c);return h.margin=e,h}function xh(r,t,e,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Pt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Ve(wt({width:u.width,height:u.height},t),e,a),v=o?f.x-u.x:0,d=s?f.y-u.y:0;return l==="raw"?(i.x=v,i.y=d):(i.x+=v,i.y+=d),i===r&&r.markRedraw(),!0}function az(r,t){return r[To[t][0]]!=null||r[To[t][1]]!=null&&r[To[t][2]]!=null}function uc(r){var t=r.layoutMode||r.constructor.layoutMode;return St(t)?t:t?{type:t}:null}function ki(r,t,e){var a=e&&e.ignoreSize;!K(a)&&(a=[a,a]);var n=o(To[0],0),i=o(To[1],1);u(To[0],r,n),u(To[1],r,i);function o(c,f){var v={},d=0,h={},g=0,m=2;if(Iv(c,function(b){h[b]=r[b]}),Iv(c,function(b){s(t,b)&&(v[b]=h[b]=t[b]),l(v,b)&&d++,l(h,b)&&g++}),a[f])return l(t,c[1])?h[c[2]]=null:l(t,c[2])&&(h[c[1]]=null),h;if(g===m||!d)return h;if(d>=m)return v;for(var y=0;y<c.length;y++){var _=c[y];if(!s(v,_)&&s(r,_)){v[_]=r[_];break}}return v}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,v){Iv(c,function(d){f[d]=v[d]})}}function wl(r){return a5({},r)}function a5(r,t){return t&&r&&Iv(r5,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var nz=qt(),Yt=function(r){G(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=bl("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=uc(this),i=n?wl(e):{},o=a.getTheme();Lt(e,o.get(this.mainType)),Lt(e,this.getDefaultOption()),n&&ki(e,i,n)},t.prototype.mergeOption=function(e,a){Lt(this.option,e,!0);var n=uc(this);n&&ki(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!j9(e))return e.defaultOption;var a=nz(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=Lt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Ec(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},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}(se);nD(Yt,se);ih(Yt);WO(Yt);ZO(Yt,iz);function iz(r){var t=[];return A(Yt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Q(t,function(e){return Qa(e).main}),r!=="dataset"&&Nt(t,"dataset")<=0&&t.unshift("dataset"),t}var n5="";typeof navigator<"u"&&(n5=navigator.platform||"");var ps="rgba(0, 0, 0, 0.2)";const oz={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ps,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ps,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ps,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ps,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ps,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ps,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:n5.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 i5=mt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ha="original",cr="arrayRows",pa="objectRows",hn="keyedColumns",Mi="typedArray",o5="unknown",on="column",Sl="row",qe={Must:1,Might:2,Not:3},s5=qt();function sz(r){s5(r).datasetMap=mt()}function l5(r,t,e){var a={},n=C1(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=s5(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),A(r,function(g,m){var y=St(g)?g:r[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,f=h(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});A(r,function(g,m){var y=g.name,_=h(g);if(c==null){var b=v.valueWayDim;d(a[y],b,_),d(o,b,_),v.valueWayDim+=_}else if(c===m)d(a[y],0,_),d(i,0,_);else{var b=v.categoryWayDim;d(a[y],b,_),d(o,b,_),v.categoryWayDim+=_}});function d(g,m,y){for(var _=0;_<y;_++)g.push(m+_)}function h(g){var m=g.dimsDef;return m?m.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function M1(r,t,e){var a={},n=C1(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===pa||i===hn)&&A(o,function(c,f){(St(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},v=[],d=0,h=Math.min(5,e);d<h;d++){var g=c5(t.data,i,t.seriesLayoutBy,o,t.startIndex,d);v.push(g);var m=g===qe.Not;if(m&&c.v==null&&d!==s&&(c.v=d),(c.n==null||c.n===c.v||!m&&v[c.n]===qe.Not)&&(c.n=d),y(c)&&v[c.n]!==qe.Not)return c;m||(g===qe.Might&&f.v==null&&d!==s&&(f.v=d),(f.n==null||f.n===f.v)&&(f.n=d))}function y(_){return _.v!=null&&_.n!=null}return y(c)?c:y(f)?f:null}();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function C1(r){var t=r.get("data",!0);if(!t)return Ec(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ne).models[0]}function lz(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Ec(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ne).models}function u5(r,t){return c5(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function c5(r,t,e,a,n,i){var o,s=5;if(Nr(r))return qe.Not;var l,u;if(a){var c=a[i];St(c)?(l=c.name,u=c.type):ft(c)&&(l=c)}if(u!=null)return u==="ordinal"?qe.Must:qe.Not;if(t===cr){var f=r;if(e===Sl){for(var v=f[i],d=0;d<(v||[]).length&&d<s;d++)if((o=x(v[n+d]))!=null)return o}else for(var d=0;d<f.length&&d<s;d++){var h=f[n+d];if(h&&(o=x(h[i]))!=null)return o}}else if(t===pa){var g=r;if(!l)return qe.Not;for(var d=0;d<g.length&&d<s;d++){var m=g[d];if(m&&(o=x(m[l]))!=null)return o}}else if(t===hn){var y=r;if(!l)return qe.Not;var v=y[l];if(!v||Nr(v))return qe.Not;for(var d=0;d<v.length&&d<s;d++)if((o=x(v[d]))!=null)return o}else if(t===ha)for(var _=r,d=0;d<_.length&&d<s;d++){var m=_[d],b=gl(m);if(!K(b))return qe.Not;if((o=x(b[i]))!=null)return o}function x(w){var S=ft(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?qe.Might:qe.Not;if(S&&w!=="-")return qe.Must}return qe.Not}var my=mt();function uz(r,t){wr(my.get(r)==null&&t),my.set(r,t)}function cz(r,t,e){var a=my.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var dw=qt(),fz=qt(),I1=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=ue(this.get("color",!0)),i=this.get("colorLayer",!0);return f5(this,dw,n,i,t,e,a)},r.prototype.clearColorPalette=function(){dz(this,dw)},r}();function yy(r,t,e,a){var n=ue(r.get(["aria","decal","decals"]));return f5(r,fz,n,null,t,e,a)}function vz(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function f5(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?e:vz(a,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%c.length,f}}function dz(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Sf,Gl,hw,pw="\0_ec_inner",hz=1,T1=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new se(i),this._locale=new se(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=yw(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,yw(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?hw(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=mt(),u=a&&a.replaceMergeMainTypeMap;sz(this),A(e,function(f,v){f!=null&&(Yt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?Mt(f):Lt(n[v],f,!0))}),u&&u.each(function(f,v){Yt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Yt.topologicalTravel(s,Yt.getAllClassMainTypes(),c,this);function c(f){var v=cz(this,f,ue(e[f])),d=i.get(f),h=d?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=tD(d,v,h);z9(g,f,Yt),n[f]=null,i.set(f,null),o.set(f,0);var m=[],y=[],_=0,b;A(g,function(x,w){var S=x.existing,M=x.newOption;if(!M)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=f==="series",I=Yt.getClass(f,x.keyInfo.subType,!C);if(!I)return;if(f==="tooltip"){if(b)return;b=!0}if(S&&S.constructor===I)S.name=x.keyInfo.name,S.mergeOption(M,this),S.optionUpdated(M,!1);else{var T=Y({componentIndex:w},x.keyInfo);S=new I(M,this,this,T),Y(S,T),x.brandNew&&(S.__requireNewView=!0),S.init(M,this,this),S.optionUpdated(null,!0)}}S?(m.push(S.option),y.push(S),_++):(m.push(void 0),y.push(void 0))},this),n[f]=m,i.set(f,y),o.set(f,_),f==="series"&&Sf(this)}this._seriesIndices||Sf(this)},t.prototype.getOption=function(){var e=Mt(this.option);return A(e,function(a,n){if(Yt.hasClass(n)){for(var i=ue(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!nc(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[pw],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,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],A(ue(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=gw("id",i,s):o!=null?l=gw("name",o,s):l=ne(s,function(u){return!!u}),mw(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):ne(this._componentsMap.get(n),function(u){return!!u});return l(mw(o,e));function s(u){var c=n+"Index",f=n+"Id",v=n+"Name";return u&&(u[c]!=null||u[f]!=null||u[v]!=null)?{mainType:n,index:u[c],id:u[f],name:u[v]}:null}function l(u){return e.filter?ne(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(xt(e)){var o=a,s=e;i.each(function(f,v){for(var d=0;f&&d<f.length;d++){var h=f[d];h&&s.call(o,v,h,h.componentIndex)}})}else for(var l=ft(e)?i.get(e):St(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=ze(e,null);return ne(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return ne(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return ne(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){Gl(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){A(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){Gl(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return A(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return Gl(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){Gl(this);var n=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=mt(n)},t.prototype.restoreData=function(e){Sf(this);var a=this._componentsMap,n=[];a.each(function(i,o){Yt.hasClass(o)&&n.push(o)}),Yt.topologicalTravel(n,Yt.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&(i!=="series"||!pz(o,e))&&o.restoreData()})})},t.internalField=function(){Sf=function(e){var a=e._seriesIndices=[];A(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=mt(a)},Gl=function(e){},hw=function(e,a){e.option={},e.option[pw]=hz,e._componentsMap=mt({series:[]}),e._componentsCount=mt();var n=a.aria;St(n)&&n.enabled==null&&(n.enabled=!0),gz(a,e._theme.option),Lt(a,oz,!1),e._mergeOption(a,null)}}(),t}(se);function pz(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function gz(r,t){var e=r.color&&!r.colorLayer;A(t,function(a,n){n==="colorLayer"&&e||Yt.hasClass(n)||(typeof a=="object"?r[n]=r[n]?Lt(r[n],a,!1):Mt(a):r[n]==null&&(r[n]=a))})}function gw(r,t,e){if(K(t)){var a=mt();return A(t,function(i){if(i!=null){var o=ze(i,null);o!=null&&a.set(i,!0)}}),ne(e,function(i){return i&&a.get(i[r])})}else{var n=ze(t,null);return ne(e,function(i){return i&&n!=null&&i[r]===n})}}function mw(r,t){return t.hasOwnProperty("subType")?ne(r,function(e){return e&&e.subType===t.subType}):r}function yw(r){var t=mt();return r&&A(ue(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Oe(T1,I1);var mz=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],v5=function(){function r(t){A(mz,function(e){this[e]=dt(t[e],t)},this)}return r}(),Bp={},Gc=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var a=[];A(Bp,function(n,i){var o=n.create(t,e);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(t,e){A(this._coordinateSystems,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Bp[t]=e},r.get=function(t){return Bp[t]},r}(),yz=/^(min|max)?(.+)$/,_z=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(A(ue(t.series),function(o){o&&o.data&&Nr(o.data)&&Zv(o.data)}),A(ue(t.dataset),function(o){o&&o.source&&Nr(o.source)&&Zv(o.source)})),t=Mt(t);var n=this._optionBackup,i=bz(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Mt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=Mt(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)xz(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Sz(o,this._currentMediaIndices)&&(s=Q(o,function(c){return Mt(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r}();function bz(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(r.options=r.media=null),i=r),c&&K(u)&&A(u,function(d){d&&d.option&&(d.query?a.push(d):n||(n=d))}),v(i),A(l,function(d){return v(d)}),A(a,function(d){return v(d.option)});function v(d){A(t,function(h){h(d,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function xz(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return A(r,function(i,o){var s=o.match(yz);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();wz(a[u],i,l)||(n=!1)}}),n}function wz(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function Sz(r,t){return r.join(",")===t.join(",")}var ga=A,cc=St,_w=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Vp(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=_w.length;e<a;e++){var n=_w[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?Lt(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?Lt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function ar(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,wt(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function pu(r){ar(r,"itemStyle"),ar(r,"lineStyle"),ar(r,"areaStyle"),ar(r,"label"),ar(r,"labelLine"),ar(r,"upperLabel"),ar(r,"edgeLabel")}function Ee(r,t){var e=cc(r)&&r[t],a=cc(e)&&e.textStyle;if(a)for(var n=0,i=Cx.length;n<i;n++){var o=Cx[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function ea(r){r&&(pu(r),Ee(r,"label"),r.emphasis&&Ee(r.emphasis,"label"))}function Mz(r){if(cc(r)){Vp(r),pu(r),Ee(r,"label"),Ee(r,"upperLabel"),Ee(r,"edgeLabel"),r.emphasis&&(Ee(r.emphasis,"label"),Ee(r.emphasis,"upperLabel"),Ee(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Vp(t),ea(t));var e=r.markLine;e&&(Vp(e),ea(e));var a=r.markArea;a&&ea(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Nr(i))for(var o=0;o<i.length;o++)ea(i[o]);A(r.categories,function(u){pu(u)})}if(n&&!Nr(n))for(var o=0;o<n.length;o++)ea(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ea(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)K(l[o])?(ea(l[o][0]),ea(l[o][1])):ea(l[o]);r.type==="gauge"?(Ee(r,"axisLabel"),Ee(r,"title"),Ee(r,"detail")):r.type==="treemap"?(ar(r.breadcrumb,"itemStyle"),A(r.levels,function(u){pu(u)})):r.type==="tree"&&pu(r.leaves)}}function xn(r){return K(r)?r:r?[r]:[]}function bw(r){return(K(r)?r[0]:r)||{}}function Cz(r,t){ga(xn(r.series),function(a){cc(a)&&Mz(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ga(e,function(a){ga(xn(r[a]),function(n){n&&(Ee(n,"axisLabel"),Ee(n.axisPointer,"label"))})}),ga(xn(r.parallel),function(a){var n=a&&a.parallelAxisDefault;Ee(n,"axisLabel"),Ee(n&&n.axisPointer,"label")}),ga(xn(r.calendar),function(a){ar(a,"itemStyle"),Ee(a,"dayLabel"),Ee(a,"monthLabel"),Ee(a,"yearLabel")}),ga(xn(r.radar),function(a){Ee(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),ga(xn(r.geo),function(a){cc(a)&&(ea(a),ga(xn(a.regions),function(n){ea(n)}))}),ga(xn(r.timeline),function(a){ea(a),ar(a,"label"),ar(a,"itemStyle"),ar(a,"controlStyle",!0);var n=a.data;K(n)&&A(n,function(i){St(i)&&(ar(i,"label"),ar(i,"itemStyle"))})}),ga(xn(r.toolbox),function(a){ar(a,"iconStyle"),ga(a.feature,function(n){ar(n,"iconStyle")})}),Ee(bw(r.axisPointer),"label"),Ee(bw(r.tooltip).axisPointer,"label")}function Iz(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function Tz(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=e)}function xw(r){r&&A(Az,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var Az=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Dz=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Gp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Fl(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Gp.length;e++){var a=Gp[e][1],n=Gp[e][0];t[a]!=null&&(t[n]=t[a])}}function ww(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Sw(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function Lz(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function d5(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&d5(r[e].children,t)}function h5(r,t){Cz(r,t),r.series=ue(r.series),A(r.series,function(e){if(St(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),ww(e.label);var n=e.data;if(n&&!Nr(n))for(var i=0;i<n.length;i++)ww(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=Iz(e,"pointer.color");o!=null&&Tz(e,"itemStyle.color",o)}else if(a==="bar"){Fl(e),Fl(e.backgroundStyle),Fl(e.emphasis);var n=e.data;if(n&&!Nr(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Fl(n[i]),Fl(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Sw(e),d5(e.data,Sw)}else a==="graph"||a==="sankey"?Lz(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&wt(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),xw(e)}}),r.dataRange&&(r.visualMap=r.dataRange),A(Dz,function(e){var a=r[e];a&&(K(a)||(a=[a]),A(a,function(n){xw(n)}))})}function kz(r){var t=mt();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(Pz)}function Pz(r){A(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var v=o.get(t.stackedDimension,f);if(isNaN(v))return n;var d,h;s?h=o.getRawIndex(f):d=o.get(t.stackedByDimension,f);for(var g=NaN,m=e-1;m>=0;m--){var y=r[m];if(s||(h=y.data.rawIndexOf(y.stackedByDimension,d)),h>=0){var _=y.data.getByRawIndex(y.stackResultDimension,h);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&v>=0&&_>0||l==="samesign"&&v<=0&&_<0){v=T9(v,_),g=_;break}}}return a[0]=v,a[1]=g,a})})}var wh=function(){function r(t){this.data=t.data||(t.sourceFormat===hn?{}:[]),this.sourceFormat=t.sourceFormat||o5,this.seriesLayoutBy=t.seriesLayoutBy||on,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&u5(this,a)===qe.Must&&(n.type="ordinal")}}return r}();function A1(r){return r instanceof wh}function _y(r,t,e){e=e||p5(r);var a=t.seriesLayoutBy,n=Ez(r,e,a,t.sourceHeader,t.dimensions),i=new wh({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:Mt(t)});return i}function D1(r){return new wh({data:r,sourceFormat:Nr(r)?Mi:ha})}function Rz(r){return new wh({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Mt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function p5(r){var t=o5;if(Nr(r))t=Mi;else if(K(r)){r.length===0&&(t=cr);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(K(n)||Nr(n)){t=cr;break}else if(St(n)){t=pa;break}}}}else if(St(r)){for(var i in r)if(gt(r,i)&&ur(r[i])){t=hn;break}}return t}function Ez(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:Mw(n),startIndex:o,dimensionsDetectedCount:i};if(t===cr){var s=r;a==="auto"||a==null?Cw(function(u){u!=null&&u!=="-"&&(ft(u)?o==null&&(o=1):o=0)},e,s,10):o=Qt(a)?a:a?1:0,!n&&o===1&&(n=[],Cw(function(u,c){n[c]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===Sl?s.length:s[0]?s[0].length:null}else if(t===pa)n||(n=Nz(r));else if(t===hn)n||(n=[],A(r,function(u,c){n.push(c)}));else if(t===ha){var l=gl(r[0]);i=K(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Mw(n),dimensionsDetectedCount:i}}function Nz(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Ut(e)}function Mw(r){if(r){var t=mt();return Q(r,function(e,a){e=St(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function Cw(r,t,e,a){if(t===Sl)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function g5(r){var t=r.sourceFormat;return t===pa||t===hn}var ao,no,io,Iw,Tw,m5=function(){function r(t,e){var a=A1(t)?t:D1(t);this._source=a;var n=this._data=a.data;a.sourceFormat===Mi&&(this._offset=0,this._dimSize=e,this._data=n),Tw(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Tw=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,v=l.dimensionsDefine,d=Iw[L1(u,c)];if(Y(o,d),u===Mi)o.getItem=e,o.count=n,o.fillStorage=a;else{var h=y5(u,c);o.getItem=dt(h,null,s,f,v);var g=_5(u,c);o.count=dt(g,null,s,f,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},a=function(o,s,l,u){for(var c=this._data,f=this._dimSize,v=0;v<f;v++){for(var d=u[v],h=d[0]==null?1/0:d[0],g=d[1]==null?-1/0:d[1],m=s-o,y=l[v],_=0;_<m;_++){var b=c[_*f+v];y[o+_]=b,b<h&&(h=b),b>g&&(g=b)}d[0]=h,d[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};Iw=(t={},t[cr+"_"+on]={pure:!0,appendData:i},t[cr+"_"+Sl]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[pa]={pure:!0,appendData:i},t[hn]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[ha]={appendData:i},t[Mi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Aw=function(r,t,e,a){return r[a]},$z=(ao={},ao[cr+"_"+on]=function(r,t,e,a){return r[a+t]},ao[cr+"_"+Sl]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},ao[pa]=Aw,ao[hn]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];i[o]=l?l[a]:null}return i},ao[ha]=Aw,ao);function y5(r,t){var e=$z[L1(r,t)];return e}var Dw=function(r,t,e){return r.length},Oz=(no={},no[cr+"_"+on]=function(r,t,e){return Math.max(0,r.length-t)},no[cr+"_"+Sl]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},no[pa]=Dw,no[hn]=function(r,t,e){var a=e[0].name,n=r[a];return n?n.length:0},no[ha]=Dw,no);function _5(r,t){var e=Oz[L1(r,t)];return e}var Fp=function(r,t,e){return r[t]},zz=(io={},io[cr]=Fp,io[pa]=function(r,t,e){return r[e]},io[hn]=Fp,io[ha]=function(r,t,e){var a=gl(r);return a instanceof Array?a[t]:a},io[Mi]=Fp,io);function b5(r){var t=zz[r];return t}function L1(r,t){return r===cr?r+"_"+t:r}function nl(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return b5(i)(a,o,s)}else{var l=a;return i===ha&&(l=gl(a)),l}}}}var Bz=/\{@(.+?)\}/g,Sh=function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,v=f==="series",d=a.userOutput&&a.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:n,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&K(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(xt(i))return l.status=e,l.dimensionIndex=n,i(l);if(ft(i)){var c=e5(i,l);return c.replace(Bz,function(f,v){var d=v.length,h=v;h.charAt(0)==="["&&h.charAt(d-1)==="]"&&(h=+h.slice(1,d-1));var g=nl(s,t,h);if(o&&K(o.interpolatedValue)){var m=s.getDimensionIndex(h);m>=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return nl(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function Lw(r){var t,e;return St(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Bu(r){return new Vz(r)}var Vz=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,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(_){return!(_>=1)&&(_=1),_}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,h=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(f||d<h)){var g=this._progress;if(K(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],d,h,l,u);else this._doProgress(g,d,h,l,u)}this._dueIndex=h;var y=this._settedOutputEnd!=null?this._settedOutputEnd:h;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){kw.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:kw.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),K(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),kw=function(){var r,t,e,a,n,i={reset:function(l,u,c,f){t=l,r=u,e=c,a=f,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}}();function Ci(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Qt(r)&&r!=null&&r!=="-"&&(r=+vn(r)),r==null||r===""?NaN:Number(r))}var Gz=mt({number:function(r){return parseFloat(r)},time:function(r){return+vn(r)},trim:function(r){return ft(r)?xa(r):r}});function x5(r){return Gz.get(r)}var w5={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},Fz=function(){function r(t,e){if(!Qt(e)){var a="";ae(a)}this._opFn=w5[t],this._rvalFloat=zn(e)}return r.prototype.evaluate=function(t){return Qt(t)?this._opFn(t,this._rvalFloat):this._opFn(zn(t),this._rvalFloat)},r}(),S5=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=Qt(t)?t:zn(t),n=Qt(e)?e:zn(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=ft(t),l=ft(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),Hz=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=zn(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=zn(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function Wz(r,t){return r==="eq"||r==="ne"?new Hz(r==="eq",t):gt(w5,r)?new Fz(r,t):null}var Zz=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 Ci(t,e)},r}();function Yz(r,t){var e=new Zz,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==on&&ae(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(g,m){var y=g.name,_={index:m,name:y,displayName:g.displayName};if(s.push(_),y!=null){var b="";gt(l,y)&&ae(b),l[y]=_}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=y5(n,on);t.__isBuiltIn&&(e.getRawDataItem=function(g){return f(a,i,s,g)},e.getRawData=dt(Uz,null,r)),e.cloneRawData=dt(jz,null,r);var v=_5(n,on);e.count=dt(v,null,a,i,s);var d=b5(n);e.retrieveValue=function(g,m){var y=f(a,i,s,g);return h(y,m)};var h=e.retrieveValueFromItem=function(g,m){if(g!=null){var y=s[m];if(y)return d(g,m,y.name)}};return e.getDimensionInfo=dt(Xz,null,s,l),e.cloneAllDimensionInfo=dt(qz,null,s),e}function Uz(r){var t=r.sourceFormat;if(!k1(t)){var e="";ae(e)}return r.data}function jz(r){var t=r.sourceFormat,e=r.data;if(!k1(t)){var a="";ae(a)}if(t===cr){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===pa){for(var n=[],i=0,o=e.length;i<o;i++)n.push(Y({},e[i]));return n}}function Xz(r,t,e){if(e!=null){if(Qt(e)||!isNaN(e)&&!gt(t,e))return r[e];if(gt(t,e))return t[e]}}function qz(r){return Mt(r)}var M5=mt();function Kz(r){r=Mt(r);var t=r.type,e="";t||ae(e);var a=t.split(":");a.length!==2&&ae(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,M5.set(t,r)}function Jz(r,t,e){var a=ue(r),n=a.length,i="";n||ae(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=Qz(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Qz(r,t,e,a){var n="";t.length||ae(n),St(r)||ae(n);var i=r.type,o=M5.get(i);o||ae(n);var s=Q(t,function(u){return Yz(u,o)}),l=ue(o.transform({upstream:s[0],upstreamList:s,config:Mt(r.config)}));return Q(l,function(u,c){var f="";St(u)||ae(f),u.data||ae(f);var v=p5(u.data);k1(v)||ae(f);var d,h=t[0];if(h&&c===0&&!u.dimensions){var g=h.startIndex;g&&(u.data=h.data.slice(0,g).concat(u.data)),d={seriesLayoutBy:on,sourceHeader:g,dimensions:h.metaRawOption.dimensions}}else d={seriesLayoutBy:on,sourceHeader:0,dimensions:u.dimensions};return _y(u.data,d,null)})}function k1(r){return r===cr||r===pa}var Mh="undefined",tB=typeof Uint32Array===Mh?Array:Uint32Array,eB=typeof Uint16Array===Mh?Array:Uint16Array,C5=typeof Int32Array===Mh?Array:Int32Array,Pw=typeof Float64Array===Mh?Array:Float64Array,I5={float:Pw,int:C5,ordinal:Array,number:Array,time:Pw},Hp;function gs(r){return r>65535?tB:eB}function ms(){return[1/0,-1/0]}function rB(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Rw(r,t,e,a,n){var i=I5[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var by=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=mt()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=Hp[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],g5(n),this._dimensions=Q(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new I5[e||"float"](this._rawCount),this._rawExtent[i]=ms(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=ms());for(var l=i[t],u=o;u<s;u++){var c=a[u]=e.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var c=n[u];Rw(a,u,c.type,l,!0)}for(var f=[],v=s;v<l;v++)for(var d=v-s,h=0;h<i;h++){var c=n[h],g=Hp.arrayRows.call(this,t[d]||f,c.property,d,h);a[h][v]=g;var m=o[h];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Q(o,function(_){return _.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=ms()),Rw(i,c,f.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var v=[],d=t;d<e;d++){v=n.getItem(d,v);for(var h=0;h<s;h++){var g=i[h],m=this._dimValueGetter(v,u[h],d,h);g[d]=m;var y=l[h];m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}!n.persistent&&n.clean&&n.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<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var n=this._chunks,i=n[t],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var v=this.getRawIndex(c),d=e-i[v],h=Math.abs(d);h<=a&&((h<s||h===s&&d>=0&&l<0)&&(s=h,l=d,u=0),d===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=gs(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=gs(a._rawCount),o=new i(n),s=[],l=t.length,u=0,c=t[0],f=a._chunks,v=0;v<n;v++){var d=void 0,h=a.getRawIndex(v);if(l===0)d=e(v);else if(l===1){var g=f[c][h];d=e(g,v)}else{for(var m=0;m<l;m++)s[m]=f[t[m]][h];s[m]=v,d=e.apply(null,s)}d&&(o[u++]=h)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Ut(t),i=n.length;if(!i)return this;var o=e.count(),s=gs(e._rawCount),l=new s(o),u=0,c=n[0],f=t[c][0],v=t[c][1],d=e._chunks,h=!1;if(!e._indices){var g=0;if(i===1){for(var m=d[n[0]],y=0;y<a;y++){var _=m[y];(_>=f&&_<=v||isNaN(_))&&(l[u++]=g),g++}h=!0}else if(i===2){for(var m=d[n[0]],b=d[n[1]],x=t[n[1]][0],w=t[n[1]][1],y=0;y<a;y++){var _=m[y],S=b[y];(_>=f&&_<=v||isNaN(_))&&(S>=x&&S<=w||isNaN(S))&&(l[u++]=g),g++}h=!0}}if(!h)if(i===1)for(var y=0;y<o;y++){var M=e.getRawIndex(y),_=d[n[0]][M];(_>=f&&_<=v||isNaN(_))&&(l[u++]=M)}else for(var y=0;y<o;y++){for(var C=!0,M=e.getRawIndex(y),I=0;I<i;I++){var T=n[I],_=d[T][M];(_<t[T][0]||_>t[T][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=ms();for(var f=0;f<s;f++){for(var v=t.getRawIndex(f),d=0;d<o;d++)l[d]=n[e[d]][v];l[o]=f;var h=a&&a.apply(null,l);if(h!=null){typeof h!="object"&&(i[0]=h,h=i);for(var c=0;c<h.length;c++){var g=e[c],m=h[c],y=u[g],_=n[g];_&&(_[v]=m),m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,v,d=new(gs(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var h=1;h<o-1;h+=l){for(var g=Math.min(h+l,o-1),m=Math.min(h+l*2,o),y=(m+g)/2,_=0,b=g;b<m;b++){var x=this.getRawIndex(b),w=i[x];isNaN(w)||(_+=w)}_/=m-g;var S=h,M=Math.min(h+l,o),C=h-1,I=i[u];c=-1,v=S;for(var T=-1,D=0,b=S;b<M;b++){var x=this.getRawIndex(b),w=i[x];if(isNaN(w)){D++,T<0&&(T=x);continue}f=Math.abs((C-y)*(w-I)-(C-b)*(_-I)),f>c&&(c=f,v=x)}D>0&&D<M-S&&(d[s++]=Math.min(T,v),v=Math.max(T,v)),d[s++]=v,u=v}return d[s++]=this.getRawIndex(o-1),a._count=s,a._indices=d,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(t,e){for(var a=this.clone([t],!0),n=a._chunks,i=Math.floor(1/e),o=n[t],s=this.count(),l=new(gs(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var f=c,v=o[this.getRawIndex(f)],d=c,h=o[this.getRawIndex(d)],g=i;c+i>s&&(g=s-c);for(var m=0;m<g;m++){var y=this.getRawIndex(c+m),_=o[y];_<v&&(v=_,f=c+m),_>h&&(h=_,d=c+m)}var b=this.getRawIndex(f),x=this.getRawIndex(d);f<d?(l[u++]=b,l[u++]=x):(l[u++]=x,l[u++]=b)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],c=this.count(),f=i._rawExtent[t]=ms(),v=new(gs(this._rawCount))(Math.ceil(c/l)),d=0,h=0;h<c;h+=l){l>c-h&&(l=c-h,s.length=l);for(var g=0;g<l;g++){var m=this.getRawIndex(h+g);s[g]=u[m]}var y=a(s),_=this.getRawIndex(Math.min(h+n(s,y)||0,c-1));u[_]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),v[d++]=_}return i._count=d,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=ms();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),f=e[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&un(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?rB(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Mt(this._extent),t._rawExtent=Mt(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return Ci(e[i],this._dimensions[i])}Hp={arrayRows:t,objectRows:function(e,a,n,i){return Ci(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Ci(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),T5=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(),a=!!e.length,n,i;if(Mf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Nr(s)?Mi:ha,i=[];var f=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},d=At(f.seriesLayoutBy,v.seriesLayoutBy)||null,h=At(f.sourceHeader,v.sourceHeader),g=At(f.dimensions,v.dimensions),m=d!==v.seriesLayoutBy||!!h!=!!v.sourceHeader||g;n=m?[_y(s,{seriesLayoutBy:d,sourceHeader:h,dimensions:g},l)]:[]}else{var y=t;if(a){var _=this._applyTransform(e);n=_.sourceList,i=_.upstreamSignList}else{var b=y.get("source",!0);n=[_y(b,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&Nw(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&Nw(f),s.push(c),l.push(u._getVersionSign())}),a?o=Jz(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[Rz(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];Mf(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new by,s.initData(new m5(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Mf(t)){var e=C1(t);return e?[e.getSourceManager()]:[]}else return Q(lz(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(Mf(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r}();function Ew(r){var t=r.option.transform;t&&Zv(r.option.transform)}function Mf(r){return r.mainType==="series"}function Nw(r){throw new Error(r)}var aB="line-height:1";function A5(r){var t=r.lineHeight;return t==null?aB:"line-height:"+_r(t+"")+"px"}function D5(r,t){var e=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+_r(a+"")+"px;color:"+_r(e)+";font-weight:"+_r(n+""),valueStyle:"font-size:"+_r(o+"")+"px;color:"+_r(i)+";font-weight:"+_r(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var nB=[0,10,20,30],iB=["",`
  48. `,`
  49. `,`
  50. `];function Ye(r,t){return t.type=r,t}function xy(r){return r.type==="section"}function L5(r){return xy(r)?oB:sB}function k5(r){if(xy(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return A(r.blocks,function(n){var i=k5(n);i>=t&&(t=i+ +(a&&(!i||xy(n)&&!n.noHeader)))}),t}return 0}function oB(r,t,e,a){var n=t.noHeader,i=lB(k5(t)),o=[],s=t.blocks||[];wr(!s||K(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(gt(u,l)){var c=new S5(u[l],null);s.sort(function(g,m){return c.evaluate(g.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(g,m){var y=t.valueFormatter,_=L5(g)(y?Y(Y({},r),{valueFormatter:y}):r,g,m>0?i.html:0,a);_!=null&&o.push(_)});var f=r.renderMode==="richText"?o.join(i.richText):wy(a,o.join(""),n?e:i.html);if(n)return f;var v=gy(t.header,"ordinal",r.useUTC),d=D5(a,r.renderMode).nameStyle,h=A5(a);return r.renderMode==="richText"?P5(r,v,d)+i.richText+f:wy(a,'<div style="'+d+";"+h+';">'+_r(v)+"</div>"+f,e)}function sB(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(x){return x=K(x)?x:[x],Q(x,function(w,S){return gy(w,K(d)?d[S]:d,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=i?"":gy(l,"ordinal",u),d=t.valueType,h=o?[]:c(t.value,t.dataIndex),g=!s||!i,m=!s&&i,y=D5(a,n),_=y.nameStyle,b=y.valueStyle;return n==="richText"?(s?"":f)+(i?"":P5(r,v,_))+(o?"":fB(r,h,g,m,b)):wy(a,(s?"":f)+(i?"":uB(v,!s,_))+(o?"":cB(h,g,m,b)),e)}}function $w(r,t,e,a,n,i){if(r){var o=L5(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function lB(r){return{html:nB[r],richText:iB[r]}}function wy(r,t,e){var a='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",i=A5(r);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function uB(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+_r(r)+"</span>"}function cB(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=K(r)?r:[r],'<span style="'+i+";"+a+'">'+Q(r,function(o){return _r(o)}).join("&nbsp;&nbsp;")+"</span>"}function P5(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function fB(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(K(t)?t.join(" "):t,i)}function R5(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return jo(a)}function E5(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Wp=function(){function r(){this.richTextStyles={},this._nextStyleNameId=qA()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=ez({color:e,type:t,renderMode:a,markerId:n});return ft(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};K(e)?A(e,function(i){return Y(a,i)}):Y(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function N5(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=K(s),u=R5(t,e),c,f,v,d;if(o>1||l&&!o){var h=vB(s,t,e,i,u);c=h.inlineValues,f=h.inlineValueTypes,v=h.blocks,d=h.inlineValues[0]}else if(o){var g=n.getDimensionInfo(i[0]);d=c=nl(n,e,i[0]),f=g.type}else d=c=l?s[0]:s;var m=a1(t),y=m&&t.name||"",_=n.getName(e),b=a?y:_;return Ye("section",{header:y,noHeader:a||!m,sortParam:d,blocks:[Ye("nameValue",{markerType:"item",markerColor:u,name:b,noName:!xa(b),value:c,valueType:f,dataIndex:e})].concat(v||[])})}function vB(r,t,e,a,n){var i=t.getData(),o=un(r,function(f,v,d){var h=i.getDimensionInfo(d);return f=f||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(f){c(nl(i,e,f),f)}):A(r,c);function c(f,v){var d=i.getDimensionInfo(v);!d||d.otherDims.tooltip===!1||(o?u.push(Ye("nameValue",{markerType:"subItem",markerColor:n,name:d.displayName,value:f,valueType:d.type})):(s.push(f),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Qn=qt();function Cf(r,t){return r.getName(t)||r.getId(t)}var Tv="__universalTransitionEnabled",xe=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Bu({count:hB,reset:pB}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Qn(this).sourceManager=new T5(this);i.prepareSource();var o=this.getInitialData(e,n);zw(o,this),this.dataTask.context.data=o,Qn(this).dataBeforeProcessed=o,Ow(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=uc(this),i=n?wl(e):{},o=this.subType;Yt.hasClass(o)&&(o+="Series"),Lt(e,a.getTheme().get(this.subType)),Lt(e,this.getDefaultOption()),Wo(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&ki(e,i,n)},t.prototype.mergeOption=function(e,a){e=Lt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=uc(this);n&&ki(this.option,e,n);var i=Qn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);zw(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Qn(this).dataBeforeProcessed=o,Ow(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Nr(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Wo(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=Sy(this);if(a){var n=a.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Qn(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=Sy(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Qn(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return mt(e)},t.prototype.getSourceManager=function(){return Qn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Qn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,a,n){return N5({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Gt.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=I1.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Cf(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=Ut(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Cf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Tv])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){St(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=a[c],v=Cf(e,f);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(f)}}else if(s==="single"||s===!0){var d=a[l-1],v=Cf(e,d);o.selectedMap=(n={},n[v]=!0,n),this._selectedDataIndicesMap=(i={},i[v]=e.getRawIndex(d),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return Yt.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}(Yt);Oe(xe,Sh);Oe(xe,I1);nD(xe,Yt);function Ow(r){var t=r.name;a1(r)||(r.name=dB(r)||t)}function dB(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return A(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function hB(r){return r.model.getRawData().count()}function pB(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),gB}function gB(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zw(r,t){A(Qu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Dt(mB,t))})}function mB(r,t){var e=Sy(r);return e&&e.setOutputEnd((t||this).count()),t}function Sy(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var De=function(){function r(){this.group=new It,this.uid=bl("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();i1(De);ih(De);function Ml(){var r=qt();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var $5=qt(),yB=Ml(),ce=function(){function r(){this.group=new It,this.uid=bl("viewChart"),this.renderTask=Bu({plan:_B,reset:bB}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&Vw(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&Vw(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){Oi(this.group,t)},r.markUpdateMethod=function(t,e){$5(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Bw(r,t,e){r&&oc(r)&&(t==="emphasis"?Bn:Vn)(r,e)}function Vw(r,t,e){var a=Zo(r,t),n=t&&t.highlightKey!=null?eO(t.highlightKey):null;a!=null?A(ue(a),function(i){Bw(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){Bw(i,e,n)})}i1(ce);ih(ce);function _B(r){return yB(r.model)}function bB(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&$5(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),xB[l]}var xB={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)}}},sd="\0__throttleOriginMethod",Gw="\0__throttleRate",Fw="\0__throttleType";function P1(r,t,e){var a,n=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];a=new Date().getTime(),l=this,u=d;var g=c||t,m=c||e;c=null,s=a-(m?n:i)-g,clearTimeout(o),m?o=setTimeout(f,g):s>=0?f():o=setTimeout(f,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(d){c=d},v}function Cl(r,t,e,a){var n=r[t];if(n){var i=n[sd]||n,o=n[Fw],s=n[Gw];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=P1(i,e,a==="debounce"),n[sd]=i,n[Fw]=a,n[Gw]=e}return n}}function fc(r,t){var e=r[t];e&&e[sd]&&(e.clear&&e.clear(),r[t]=e[sd])}var Hw=qt(),Ww={itemStyle:Yo(FD,!0),lineStyle:Yo(GD,!0)},wB={lineStyle:"stroke",itemStyle:"fill"};function O5(r,t){var e=r.visualStyleMapper||Ww[t];return e||(console.warn("Unknown style type '"+t+"'."),Ww.itemStyle)}function z5(r,t){var e=r.visualDrawType||wB[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var SB={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=O5(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=z5(r,a),u=o[l],c=xt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||xt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||xt(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(d,h){var g=r.getDataParams(h),m=Y({},o);m[l]=c(g),d.setItemVisual(h,"style",m)}}}},Hl=new se,MB={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=O5(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Hl.option=l[a];var u=n(Hl),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Hl.option.decal&&(o.setItemVisual(s,"decal",Hl.option.decal),Hl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},CB={performRawSeries:!0,overallReset:function(r){var t=mt();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),Hw(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=Hw(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=z5(e,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var v=i.ensureUniqueItemVisual(c,"style"),d=a.getName(u)||u+"",h=a.count();v[l]=e.getColorFromPalette(d,o,h)}})}})}},If=Math.PI;function IB(r,t){t=t||{},wt(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 It,a=new Xt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new Kt({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 Xt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new vh({shape:{startAngle:-If/2,endAngle:-If/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:If*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:If*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var B5=function(){function r(t,e,a,n){this._stageTaskMap=mt(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=mt();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";wr(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,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,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;A(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,v=c.overallTask;if(v){var d,h=v.agentStubMap;h.each(function(m){s(n,m)&&(m.dirty(),d=!0)}),d&&v.dirty(),o.updatePayload(v,a);var g=o.getPerformArgs(v,n.block);h.each(function(m){m.perform(g)}),v.perform(g)&&(i=!0)}else f&&f.each(function(m,y){s(n,m)&&m.dirty();var _=o.getPerformArgs(m,n.block);_.skip=!l.performRawSeries&&e.isSeriesFiltered(m.context.model),o.updatePayload(m,a),m.perform(_)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.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,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=mt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(f){var v=f.uid,d=s.set(v,o&&o.get(v)||Bu({plan:kB,reset:PB,count:EB}));d.context={model:f,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,d)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Bu({reset:TB});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=mt(),u=t.seriesType,c=t.getTargetSeries,f=!0,v=!1,d="";wr(!t.createOnAllSeries,d),u?a.eachRawSeriesByType(u,h):c?c(a,n).each(h):(f=!1,A(a.getSeries(),h));function h(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(v=!0,Bu({reset:AB,onDirty:LB})));y.context={model:g,overallProgress:f},y.agent=o,y.__block=f,i._pipe(g,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return xt(t)&&(t={overallReset:t,seriesType:NB(t)}),t.uid=bl("stageHandler"),e&&(t.visualType=e),t},r}();function TB(r){r.overallReset(r.ecModel,r.api,r.payload)}function AB(r){return r.overallProgress&&DB}function DB(){this.agent.dirty(),this.getDownstream().dirty()}function LB(){this.agent&&this.agent.dirty()}function kB(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function PB(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ue(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Q(t,function(e,a){return V5(a)}):RB}var RB=V5(0);function V5(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function EB(r){return r.data.count()}function NB(r){ld=null;try{r(vc,G5)}catch{}return ld}var vc={},G5={},ld;F5(vc,T1);F5(G5,v5);vc.eachSeriesByType=vc.eachRawSeriesByType=function(r){ld=r};vc.eachComponent=function(r){r.mainType==="series"&&r.subType&&(ld=r.subType)};function F5(r,t){for(var e in t.prototype)r[e]=Re}var Zw=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const $B={color:Zw,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Zw]};var rr="#B9B8CE",Yw="#100C2A",Tf=function(){return{axisLine:{lineStyle:{color:rr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Uw=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],H5={darkMode:!0,color:Uw,backgroundColor:Yw,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:rr},pageTextStyle:{color:rr}},textStyle:{color:rr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:rr}},dataZoom:{borderColor:"#71708A",textStyle:{color:rr},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:rr}},timeline:{lineStyle:{color:rr},label:{color:rr},controlStyle:{color:rr,borderColor:rr}},calendar:{itemStyle:{color:Yw},dayLabel:{color:rr},monthLabel:{color:rr},yearLabel:{color:rr}},timeAxis:Tf(),logAxis:Tf(),valueAxis:Tf(),categoryAxis:Tf(),line:{symbol:"circle"},graph:{color:Uw},gauge:{title:{color:rr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:rr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};H5.categoryAxis.splitLine.show=!1;var OB=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(ft(t)){var i=Qa(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var v=o[f],d=u.lastIndexOf(v);if(d>0&&d===u.length-v.length){var h=u.slice(0,d);h!=="data"&&(e.mainType=h,e[v.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function c(f,v,d,h){return f[d]==null||v[h||d]===f[d]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),My=["symbol","symbolSize","symbolRotate","symbolOffset"],jw=My.concat(["symbolKeepAspect"]),zB={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 a={},n={},i=!1,o=0;o<My.length;o++){var s=My[o],l=r.get(s);xt(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(Y({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Ut(n);function c(f,v){for(var d=r.getRawValue(v),h=r.getDataParams(v),g=0;g<u.length;g++){var m=u[g];f.setItemVisual(v,m,n[m](d,h))}}return{dataEach:i?c:null}}},BB={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<jw.length;s++){var l=jw[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function R1(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Fc(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function W5(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function Z5(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=Y({},n),o.dispatchAction(Y(n,{type:a[1],seriesIndex:e(i,n)}))})})}function ys(r,t,e,a,n){var i=r+t;e.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),v=Zo(f,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:K(v)?f.getName(v[0]):f.getName(v),selected:ft(l)?l:Y({},l)})}})}function VB(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(ys("map","selectchanged",t,n,a),ys("pie","selectchanged",t,n,a)):a.fromAction==="select"?(ys("map","selected",t,n,a),ys("pie","selected",t,n,a)):a.fromAction==="unselect"&&(ys("map","unselected",t,n,a),ys("pie","unselected",t,n,a))})}function Ao(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var GB=Math.round(Math.random()*9),FB=typeof Object.defineProperty=="function",HB=function(){function r(){this._id="__ec_inner_"+GB++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var a=this._guard(t);return FB?Object.defineProperty(a,this._id,{value:e,enumerable:!1,configurable:!0}):a[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}(),WB=Vt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),ZB=Vt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),YB=Vt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),v=Math.cos(u),d=o*.6,h=o*.7;r.moveTo(e-c,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+c-f*d,l+s+v*d,e,a-h,e,a),r.bezierCurveTo(e,a-h,e-c+f*d,l+s+v*d,e-c,l+s),r.closePath()}}),UB=Vt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),jB={line:Fe,rect:Xt,roundRect:Xt,square:Xt,circle:Un,diamond:ZB,pin:YB,arrow:UB,triangle:WB},XB={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},ud={};A(jB,function(r,t){ud[t]=new r});var qB=Vt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=Jv(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=ud[a];n||(a="rect",n=ud[a]),XB[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function KB(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function $e(r,t,e,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=RD(r.slice(8),new Pt(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=dh(r.slice(7),{},new Pt(t,e,a,n),o?"center":"cover"):l=new qB({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=KB,i&&l.setColor(i),l}function Il(r){return K(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function rs(r,t){if(r!=null)return K(r)||(r=[r,r]),[lt(r[0],t[0])||0,lt(At(r[1],r[0]),t[1])||0]}function Do(r){return isFinite(r)}function JB(r,t,e){var a=t.x==null?0:t.x,n=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(a=a*e.width+e.x,n=n*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),a=Do(a)?a:0,n=Do(n)?n:1,i=Do(i)?i:0,o=Do(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function QB(r,t,e){var a=e.width,n=e.height,i=Math.min(a,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*a+e.x,s=s*n+e.y,l=l*i),o=Do(o)?o:.5,s=Do(s)?s:.5,l=l>=0&&Do(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Cy(r,t,e){for(var a=t.type==="radial"?QB(r,t,e):JB(r,t,e),n=t.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function tV(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Af(r){return parseInt(r,10)}function zs(r,t,e){var a=["width","height"][t],n=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[a]!=null&&e[a]!=="auto")return parseFloat(e[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Af(s[a])||Af(r.style[a]))-(Af(s[i])||0)-(Af(s[o])||0)|0}function eV(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Qt(r)?[r]:K(r)?r:null}function E1(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&eV(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Q(e,function(i){return i/n}),a/=n)}return[e,a]}var rV=new dn(!0);function cd(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Xw(r){return typeof r=="string"&&r!=="none"}function fd(r){var t=r.fill;return t!=null&&t!=="none"}function qw(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 Kw(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 Iy(r,t,e){var a=o1(t.image,t.__image,e);if(oh(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*dv),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function aV(r,t,e,a){var n,i=cd(e),o=fd(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||rV,f=t.__dirty;if(!a){var v=e.fill,d=e.stroke,h=o&&!!v.colorStops,g=i&&!!d.colorStops,m=o&&!!v.image,y=i&&!!d.image,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0;(h||g)&&(S=t.getBoundingRect()),h&&(_=f?Cy(r,v,S):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(b=f?Cy(r,d,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(x=f||!t.__canvasFillPattern?Iy(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(w=f||!t.__canvasStrokePattern?Iy(r,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),h?r.fillStyle=_:m&&(x?r.fillStyle=x:o=!1),g?r.strokeStyle=b:y&&(w?r.strokeStyle=w:i=!1)}var M=t.getGlobalScale();c.setScale(M[0],M[1],t.segmentIgnoreThreshold);var C,I;r.setLineDash&&e.lineDash&&(n=E1(t),C=n[0],I=n[1]);var T=!0;(u||f&uu)&&(c.setDPR(r.dpr),l?c.setContext(null):(c.setContext(r),T=!1),c.reset(),t.buildPath(c,t.shape,a),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=I),a||(e.strokeFirst?(i&&Kw(r,e),o&&qw(r,e)):(o&&qw(r,e),i&&Kw(r,e))),C&&r.setLineDash([])}function nV(r,t,e){var a=t.__image=o1(e.image,t.__image,t,t.onload);if(!(!a||!oh(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,c=e.sy||0;r.drawImage(a,u,c,e.sWidth,e.sHeight,n,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,c=e.sy,f=o-u,v=s-c;r.drawImage(a,u,c,f,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function iV(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Ti,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=E1(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(cd(e)&&r.strokeText(n,e.x,e.y),fd(e)&&r.fillText(n,e.x,e.y)):(fd(e)&&r.fillText(n,e.x,e.y),cd(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var Jw=["shadowBlur","shadowOffsetX","shadowOffsetY"],Qw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Y5(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){Er(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?No.opacity:o}(a||t.blend!==e.blend)&&(i||(Er(r,n),i=!0),r.globalCompositeOperation=t.blend||No.blend);for(var s=0;s<Jw.length;s++){var l=Jw[s];(a||t[l]!==e[l])&&(i||(Er(r,n),i=!0),r[l]=r.dpr*(t[l]||0))}return(a||t.shadowColor!==e.shadowColor)&&(i||(Er(r,n),i=!0),r.shadowColor=t.shadowColor||No.shadowColor),i}function tS(r,t,e,a,n){var i=dc(t,n.inHover),o=a?null:e&&dc(e,n.inHover)||{};if(i===o)return!1;var s=Y5(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(Er(r,n),s=!0),Xw(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(Er(r,n),s=!0),Xw(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(Er(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(Er(r,n),s=!0),r.lineWidth=u)}for(var c=0;c<Qw.length;c++){var f=Qw[c],v=f[0];(a||i[v]!==o[v])&&(s||(Er(r,n),s=!0),r[v]=i[v]||f[1])}return s}function oV(r,t,e,a,n){return Y5(r,dc(t,n.inHover),e&&dc(e,n.inHover),a,n)}function U5(r,t){var e=t.transform,a=r.dpr||1;e?r.setTransform(a*e[0],a*e[1],a*e[2],a*e[3],a*e[4],a*e[5]):r.setTransform(a,0,0,a,0,0)}function sV(r,t,e){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),U5(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=a}function lV(r,t){return r&&t?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&&!t)}var eS=1,rS=2,aS=3,nS=4;function uV(r){var t=fd(r),e=cd(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Er(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function dc(r,t){return t&&r.__hoverStyle||r.style}function j5(r,t){Lo(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Lo(r,t,e,a){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||tV(i,o))&&(o&&o.length&&(Er(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),i&&i.length&&(Er(r,e),r.save(),sV(i,r,e),s=!0),e.prevElClipPaths=i),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var c=t instanceof Vt&&t.autoBatch&&uV(t.style);s||lV(n,u.transform)?(Er(r,e),U5(r,t)):c||Er(r,e);var f=dc(t,e.inHover);t instanceof Vt?(e.lastDrawType!==eS&&(l=!0,e.lastDrawType=eS),tS(r,t,u,l,e),(!c||!e.batchFill&&!e.batchStroke)&&r.beginPath(),aV(r,t,f,c),c&&(e.batchFill=f.fill||"",e.batchStroke=f.stroke||"")):t instanceof rl?(e.lastDrawType!==aS&&(l=!0,e.lastDrawType=aS),tS(r,t,u,l,e),iV(r,t,f)):t instanceof Xe?(e.lastDrawType!==rS&&(l=!0,e.lastDrawType=rS),oV(r,t,u,l,e),nV(r,t,f)):t.getTemporalDisplayables&&(e.lastDrawType!==nS&&(l=!0,e.lastDrawType=nS),cV(r,t,e)),c&&a&&Er(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function cV(r,t,e){var a=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Lo(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=n.length;u<c;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Lo(r,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Zp=new HB,iS=new Pc(100),oS=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function il(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&Zp.delete(r);var i=Zp.get(r);if(i)return i;var o=wt(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,Zp.set(r,s),r.dirty=!1,s;function l(u){for(var c=[e],f=!0,v=0;v<oS.length;++v){var d=o[oS[v]];if(d!=null&&!K(d)&&!ft(d)&&!Qt(d)&&typeof d!="boolean"){f=!1;break}c.push(d)}var h;if(f){h=c.join(",")+(n?"-svg":"");var g=iS.get(h);g&&(n?u.svgElement=g:u.image=g)}var m=q5(o.dashArrayX),y=fV(o.dashArrayY),_=X5(o.symbol),b=vV(m),x=K5(y),w=!n&&Ai.createCanvas(),S=n&&{tag:"g",attrs:{},key:"dcl",children:[]},M=I(),C;w&&(w.width=M.width*e,w.height=M.height*e,C=w.getContext("2d")),T(),f&&iS.put(h,w||S),u.image=w,u.svgElement=S,u.svgWidth=M.width,u.svgHeight=M.height;function I(){for(var D=1,E=0,R=b.length;E<R;++E)D=Sx(D,b[E]);for(var k=1,E=0,R=_.length;E<R;++E)k=Sx(k,_[E].length);D*=k;var N=x*b.length*_.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function T(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var D=0,E=0;E<y.length;++E)D+=y[E];if(D<=0)return;for(var R=-x,k=0,N=0,O=0;R<M.height;){if(k%2===0){for(var V=N/2%_.length,B=0,Z=0,X=0;B<M.width*2;){for(var et=0,E=0;E<m[O].length;++E)et+=m[O][E];if(et<=0)break;if(Z%2===0){var it=(1-o.symbolSize)*.5,yt=B+m[O][Z]*it,_t=R+y[k]*it,Ct=m[O][Z]*o.symbolSize,Wt=y[k]*o.symbolSize,q=X/2%_[V].length;rt(yt,_t,Ct,Wt,_[V][q])}B+=m[O][Z],++X,++Z,Z===m[O].length&&(Z=0)}++O,O===m.length&&(O=0)}R+=y[k],++N,++k,k===y.length&&(k=0)}function rt(j,ot,st,$,z){var F=n?1:e,U=$e(z,j*F,ot*F,st*F,$*F,o.color,o.symbolKeepAspect);if(n){var J=a.painter.renderOneToVNode(U);J&&S.children.push(J)}else j5(C,U)}}}}function X5(r){if(!r||r.length===0)return[["rect"]];if(ft(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!ft(r[e])){t=!1;break}if(t)return X5([r]);for(var a=[],e=0;e<r.length;++e)ft(r[e])?a.push([r[e]]):a.push(r[e]);return a}function q5(r){if(!r||r.length===0)return[[0,0]];if(Qt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!Qt(r[a])){e=!1;break}if(e)return q5([r]);for(var n=[],a=0;a<r.length;++a)if(Qt(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=Q(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function fV(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Qt(r)){var t=Math.ceil(r);return[t,t]}var e=Q(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function vV(r){return Q(r,function(t){return K5(t)})}function K5(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function dV(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=il(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=il(n,t)}}})}var Wa=new da,J5={};function hV(r,t){J5[r]=t}function pV(r){return J5[r]}var gV=1,mV=800,yV=900,_V=1e3,bV=2e3,xV=5e3,Q5=1e3,wV=1100,N1=2e3,tL=3e3,SV=4e3,Ch=4500,MV=4600,CV=5e3,IV=6e3,eL=7e3,TV={PROCESSOR:{FILTER:_V,SERIES_FILTER:mV,STATISTIC:xV},VISUAL:{LAYOUT:Q5,PROGRESSIVE_LAYOUT:wV,GLOBAL:N1,CHART:tL,POST_CHART_LAYOUT:MV,COMPONENT:SV,BRUSH:CV,CHART_ITEM:Ch,ARIA:IV,DECAL:eL}},er="__flagInMainProcess",Lr="__pendingUpdate",Yp="__needsUpdateStatus",sS=/^[a-zA-Z0-9_]+$/;function rL(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return nL(this,r,t)}}function aL(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return nL(this,r,t)}}function nL(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),da.prototype[t].apply(r,e)}var iL=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(da),oL=iL.prototype;oL.on=aL("on");oL.off=aL("off");var _s,Up,Df,ti,jp,Xp,qp,Wl,Zl,lS,uS,Kp,cS,Lf,fS,Xr,vS,Ty=function(r){G(t,r);function t(e,a,n){var i=r.call(this,new OB)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},ft(a)&&(a=sL[a]),i._dom=e;var o="canvas",s="auto",l=!1;n.ssr&&w9(function(v){var d=Tt(v),h=d.dataIndex;if(h!=null){var g=mt();return g.set("series_index",d.seriesIndex),g.set("data_index",h),d.ssrType&&g.set("ssr_type",d.ssrType),g}});var u=i._zr=_x(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:At(n.useDirtyRect,l),useCoarsePointer:At(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=P1(dt(u.flush,u),17),a=Mt(a),a&&h5(a,!0),i._theme=a,i._locale=jO(n.locale||HD),i._coordSysMgr=new Gc;var c=i._api=fS(i);function f(v,d){return v.__prio-d.__prio}return gv(hd,f),gv(Ay,f),i._scheduler=new B5(i,c,Ay,hd),i._messageCenter=new iL,i._initEvents(),i.resize=dt(i.resize,i),u.animation.on("frame",i._onframe,i),lS(u,i),uS(u,i),Zv(i),i}return t.prototype._onframe=function(){if(!this._disposed){vS(this);var e=this._scheduler;if(this[Lr]){var a=this[Lr].silent;this[er]=!0;try{_s(this),ti.update.call(this,null,this[Lr].updateParams)}catch(l){throw this[er]=!1,this[Lr]=null,l}this._zr.flush(),this[er]=!1,this[Lr]=null,Wl.call(this,a),Zl.call(this,a)}else if(e.unfinished){var n=gV,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Xp(this,i),e.performVisualTasks(i),Lf(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&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,a,n){if(!this[er]){if(this._disposed){this.id;return}var i,o,s;if(St(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[er]=!0,!this._model||a){var l=new _z(this._api),u=this._theme,c=this._model=new T1;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Dy);var f={seriesTransition:s,optionChanged:!0};if(n)this[Lr]={silent:i,updateParams:f},this[er]=!1,this.getZr().wakeUp();else{try{_s(this),ti.update.call(this,null,f)}catch(v){throw this[Lr]=null,this[er]=!1,v}this._ssr||this._zr.flush(),this[Lr]=null,this[er]=!1,Wl.call(this,i),Zl.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||Gt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Gt.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(DV[n]){var l=s,u=s,c=-s,f=-s,v=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();A(pd,function(b,x){if(b.group===n){var w=a?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(Mt(e)),S=b.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),v.push({dom:w,left:S.left,top:S.top})}}),l*=d,u*=d,c*=d,f*=d;var h=c-l,g=f-u,m=Ai.createCanvas(),y=_x(m,{renderer:a?"svg":"canvas"});if(y.resize({width:h,height:g}),a){var _="";return A(v,function(b){var x=b.left-l,w=b.top-u;_+='<g transform="translate('+x+","+w+')">'+b.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Xt({shape:{x:0,y:0,width:h,height:g},style:{fill:e.connectedBackgroundColor}})),A(v,function(b){var x=new Xe({style:{x:b.left*d-l,y:b.top*d-u,image:b.dom}});y.add(x)}),y.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return jp(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return jp(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=Eu(n,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=Eu(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?R1(s,l,a):Fc(s,a)},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;A(AV,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Ao(s,function(h){var g=Tt(h);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=Y({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var v=c&&f!=null&&o.getComponent(c,f),d=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:d},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),A(dd,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),A(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),VB(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&&H9(this.getDom(),lL,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete pd[a.id]},t.prototype.resize=function(e){if(!this[er]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Lr]&&(i==null&&(i=this[Lr].silent),n=!0,this[Lr]=null),this[er]=!0;try{n&&_s(this),ti.update.call(this,{type:"resize",animation:Y({duration:0},e&&e.animation)})}catch(o){throw this[er]=!1,o}this[er]=!1,Wl.call(this,i),Zl.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(St(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!Ly[e]){var n=Ly[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},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 a=Y({},e);return a.type=dd[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(St(a)||(a={silent:!!a}),!!vd[e.type]&&this._model){if(this[er]){this._pendingActions.push(e);return}var n=a.silent;qp.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Gt.browser.weChat&&this._throttledZrFlush(),Wl.call(this,n),Zl.call(this,n)}},t.prototype.updateLabelLayout=function(){Wa.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){_s=function(f){var v=f._scheduler;v.restorePipelines(f._model),v.prepareStageTasks(),Up(f,!0),Up(f,!1),v.plan()},Up=function(f,v){for(var d=f._model,h=f._scheduler,g=v?f._componentsViews:f._chartsViews,m=v?f._componentsMap:f._chartsMap,y=f._zr,_=f._api,b=0;b<g.length;b++)g[b].__alive=!1;v?d.eachComponent(function(S,M){S!=="series"&&x(M)}):d.eachSeries(x);function x(S){var M=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,I=!M&&m[C];if(!I){var T=Qa(S.type),D=v?De.getClass(T.main,T.sub):ce.getClass(T.sub);I=new D,I.init(d,_),m[C]=I,g.push(I),y.add(I.group)}S.__viewId=I.__id=C,I.__alive=!0,I.__model=S,I.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!v&&h.prepareView(I,S,d,_)}for(var b=0;b<g.length;){var w=g[b];w.__alive?b++:(!v&&w.renderTask.dispose(),y.remove(w.group),w.dispose(d,_),g.splice(b,1),m[w.__id]===w&&delete m[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Df=function(f,v,d,h,g){var m=f._model;if(m.setUpdatePayload(d),!h){A([].concat(f._componentsViews).concat(f._chartsViews),w);return}var y={};y[h+"Id"]=d[h+"Id"],y[h+"Index"]=d[h+"Index"],y[h+"Name"]=d[h+"Name"];var _={mainType:h,query:y};g&&(_.subType=g);var b=d.excludeSeriesId,x;b!=null&&(x=mt(),A(ue(b),function(S){var M=ze(S,null);M!=null&&x.set(M,!0)})),m&&m.eachComponent(_,function(S){var M=x&&x.get(S.id)!=null;if(!M)if(Xx(d))if(S instanceof xe)d.type===$o&&!d.notBlur&&!S.get(["emphasis","disabled"])&&U$(S,d,f._api);else{var C=v1(S.mainType,S.componentIndex,d.name,f._api),I=C.focusSelf,T=C.dispatchers;d.type===$o&&I&&!d.notBlur&&uy(S.mainType,S.componentIndex,f._api),T&&A(T,function(D){d.type===$o?Bn(D):Vn(D)})}else fy(d)&&S instanceof xe&&(q$(S,d,f._api),Ux(S),Xr(f))},f),m&&m.eachComponent(_,function(S){var M=x&&x.get(S.id)!=null;M||w(f[h==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function w(S){S&&S.__alive&&S[v]&&S[v](S.__model,m,f._api,d)}},ti={prepareAndUpdate:function(f){_s(this),ti.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,v){var d=this._model,h=this._api,g=this._zr,m=this._coordSysMgr,y=this._scheduler;if(d){d.setUpdatePayload(f),y.restoreData(d,f),y.performSeriesTasks(d),m.create(d,h),y.performDataProcessorTasks(d,f),Xp(this,d),m.update(d,h),e(d),y.performVisualTasks(d,f),Kp(this,d,h,f,v);var _=d.get("backgroundColor")||"transparent",b=d.get("darkMode");g.setBackgroundColor(_),b!=null&&b!=="auto"&&g.setDarkMode(b),Wa.trigger("afterupdate",d,h)}},updateTransform:function(f){var v=this,d=this._model,h=this._api;if(d){d.setUpdatePayload(f);var g=[];d.eachComponent(function(y,_){if(y!=="series"){var b=v.getViewOfComponentModel(_);if(b&&b.__alive)if(b.updateTransform){var x=b.updateTransform(_,d,h,f);x&&x.update&&g.push(b)}else g.push(b)}});var m=mt();d.eachSeries(function(y){var _=v._chartsMap[y.__viewId];if(_.updateTransform){var b=_.updateTransform(y,d,h,f);b&&b.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),e(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0,dirtyMap:m}),Lf(this,d,h,f,{},m),Wa.trigger("afterupdate",d,h)}},updateView:function(f){var v=this._model;v&&(v.setUpdatePayload(f),ce.markUpdateMethod(f,"updateView"),e(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0}),Kp(this,v,this._api,f,{}),Wa.trigger("afterupdate",v,this._api))},updateVisual:function(f){var v=this,d=this._model;d&&(d.setUpdatePayload(f),d.eachSeries(function(h){h.getData().clearAllVisual()}),ce.markUpdateMethod(f,"updateVisual"),e(d),this._scheduler.performVisualTasks(d,f,{visualType:"visual",setDirty:!0}),d.eachComponent(function(h,g){if(h!=="series"){var m=v.getViewOfComponentModel(g);m&&m.__alive&&m.updateVisual(g,d,v._api,f)}}),d.eachSeries(function(h){var g=v._chartsMap[h.__viewId];g.updateVisual(h,d,v._api,f)}),Wa.trigger("afterupdate",d,this._api))},updateLayout:function(f){ti.update.call(this,f)}},jp=function(f,v,d,h){if(f._disposed){f.id;return}for(var g=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,_=Eu(g,d),b=0;b<m.length;b++){var x=m[b];if(x[v]&&(y=x[v](g,_,h))!=null)return y}},Xp=function(f,v){var d=f._chartsMap,h=f._scheduler;v.eachSeries(function(g){h.updateStreamModes(g,d[g.__viewId])})},qp=function(f,v){var d=this,h=this.getModel(),g=f.type,m=f.escapeConnect,y=vd[g],_=y.actionInfo,b=(_.update||"update").split(":"),x=b.pop(),w=b[0]!=null&&Qa(b[0]);this[er]=!0;var S=[f],M=!1;f.batch&&(M=!0,S=Q(f.batch,function(k){return k=wt(Y({},k),f),k.batch=null,k}));var C=[],I,T=fy(f),D=Xx(f);if(D&&wD(this._api),A(S,function(k){if(I=y.action(k,d._model,d._api),I=I||Y({},k),I.type=_.event||I.type,C.push(I),D){var N=n1(f),O=N.queryOptionMap,V=N.mainTypeSpecified,B=V?O.keys()[0]:"series";Df(d,x,k,B),Xr(d)}else T?(Df(d,x,k,"series"),Xr(d)):w&&Df(d,x,k,w.main,w.sub)}),x!=="none"&&!D&&!T&&!w)try{this[Lr]?(_s(this),ti.update.call(this,f),this[Lr]=null):ti[x].call(this,f)}catch(k){throw this[er]=!1,k}if(M?I={type:_.event||g,escapeConnect:m,batch:C}:I=C[0],this[er]=!1,!v){var E=this._messageCenter;if(E.trigger(I.type,I),T){var R={type:"selectchanged",escapeConnect:m,selected:K$(h),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};E.trigger(R.type,R)}}},Wl=function(f){for(var v=this._pendingActions;v.length;){var d=v.shift();qp.call(this,d,f)}},Zl=function(f){!f&&this.trigger("updated")},lS=function(f,v){f.on("rendered",function(d){v.trigger("rendered",d),f.animation.isFinished()&&!v[Lr]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},uS=function(f,v){f.on("mouseover",function(d){var h=d.target,g=Ao(h,oc);g&&(j$(g,d,v._api),Xr(v))}).on("mouseout",function(d){var h=d.target,g=Ao(h,oc);g&&(X$(g,d,v._api),Xr(v))}).on("click",function(d){var h=d.target,g=Ao(h,function(_){return Tt(_).dataIndex!=null},!0);if(g){var m=g.selected?"unselect":"select",y=Tt(g);v._api.dispatchAction({type:m,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(f){f.clearColorPalette(),f.eachSeries(function(v){v.clearColorPalette()})}function a(f){var v=[],d=[],h=!1;if(f.eachComponent(function(_,b){var x=b.get("zlevel")||0,w=b.get("z")||0,S=b.getZLevelKey();h=h||!!S,(_==="series"?d:v).push({zlevel:x,z:w,idx:b.componentIndex,type:_,key:S})}),h){var g=v.concat(d),m,y;gv(g,function(_,b){return _.zlevel===b.zlevel?_.z-b.z:_.zlevel-b.zlevel}),A(g,function(_){var b=f.getComponent(_.type,_.idx),x=_.zlevel,w=_.key;m!=null&&(x=Math.max(m,x)),w?(x===m&&w!==y&&x++,y=w):y&&(x===m&&x++,y=""),m=x,b.setZLevel(x)})}}Kp=function(f,v,d,h,g){a(v),cS(f,v,d,h,g),A(f._chartsViews,function(m){m.__alive=!1}),Lf(f,v,d,h,g),A(f._chartsViews,function(m){m.__alive||m.remove(v,d)})},cS=function(f,v,d,h,g,m){A(m||f._componentsViews,function(y){var _=y.__model;u(_,y),y.render(_,v,d,h),s(_,y),c(_,y)})},Lf=function(f,v,d,h,g,m){var y=f._scheduler;g=Y(g||{},{updatedSeries:v.getSeries()}),Wa.trigger("series:beforeupdate",v,d,g);var _=!1;v.eachSeries(function(b){var x=f._chartsMap[b.__viewId];x.__alive=!0;var w=x.renderTask;y.updatePayload(w,h),u(b,x),m&&m.get(b.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(_=!0),x.group.silent=!!b.get("silent"),o(b,x),Ux(b)}),y.unfinished=_||y.unfinished,Wa.trigger("series:layoutlabels",v,d,g),Wa.trigger("series:transition",v,d,g),v.eachSeries(function(b){var x=f._chartsMap[b.__viewId];s(b,x),c(b,x)}),i(f,v),Wa.trigger("series:afterupdate",v,d,g)},Xr=function(f){f[Yp]=!0,f.getZr().wakeUp()},vS=function(f){f[Yp]&&(f.getZr().storage.traverse(function(v){Ys(v)||n(v)}),f[Yp]=!1)};function n(f){for(var v=[],d=f.currentStates,h=0;h<d.length;h++){var g=d[h];g==="emphasis"||g==="blur"||g==="select"||v.push(g)}f.selected&&f.states.select&&v.push("select"),f.hoverState===uh&&f.states.emphasis?v.push("emphasis"):f.hoverState===Nc&&f.states.blur&&v.push("blur"),f.useStates(v)}function i(f,v){var d=f._zr,h=d.storage,g=0;h.traverse(function(m){m.isGroup||g++}),g>v.get("hoverLayerThreshold")&&!Gt.node&&!Gt.worker&&v.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(f,v){var d=f.get("blendMode")||null;v.eachRendered(function(h){h.isGroup||(h.style.blend=d)})}function s(f,v){if(!f.preventAutoZ){var d=f.get("z")||0,h=f.get("zlevel")||0;v.eachRendered(function(g){return l(g,d,h,-1/0),!0})}}function l(f,v,d,h){var g=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var _=f.childrenRef(),b=0;b<_.length;b++)h=Math.max(l(_[b],v,d,h),h);else f.z=v,f.zlevel=d,h=Math.max(f.z2,h);if(g&&(g.z=v,g.zlevel=d,isFinite(h)&&(g.z2=h+2)),m){var x=f.textGuideLineConfig;m.z=v,m.zlevel=d,isFinite(h)&&(m.z2=h+(x&&x.showAbove?1:-1))}return h}function u(f,v){v.eachRendered(function(d){if(!Ys(d)){var h=d.getTextContent(),g=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(f,v){var d=f.getModel("stateAnimation"),h=f.isAnimationEnabled(),g=d.get("duration"),m=g>0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Ys(y))return;if(y instanceof Vt&&rO(y),y.__dirty){var _=y.prevStates;_&&y.useStates(_)}if(h){y.stateTransition=m;var b=y.getTextContent(),x=y.getTextGuideLine();b&&(b.stateTransition=m),x&&(x.stateTransition=m)}y.__dirty&&n(y)}})}fS=function(f){return new(function(v){G(d,v);function d(){return v!==null&&v.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(h){for(;h;){var g=h.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);h=h.parent}},d.prototype.enterEmphasis=function(h,g){Bn(h,g),Xr(f)},d.prototype.leaveEmphasis=function(h,g){Vn(h,g),Xr(f)},d.prototype.enterBlur=function(h){yD(h),Xr(f)},d.prototype.leaveBlur=function(h){f1(h),Xr(f)},d.prototype.enterSelect=function(h){_D(h),Xr(f)},d.prototype.leaveSelect=function(h){bD(h),Xr(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(h){return f.getViewOfComponentModel(h)},d.prototype.getViewOfSeriesModel=function(h){return f.getViewOfSeriesModel(h)},d}(v5))(f)}}(),t}(da),$1=Ty.prototype;$1.on=rL("on");$1.off=rL("off");$1.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var AV=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var vd={},dd={},Ay=[],Dy=[],hd=[],sL={},Ly={},pd={},DV={},lL="_echarts_instance_";function LV(r){ft(r)?r=pd[r]:r instanceof Ty||(r=kV(r)),r instanceof Ty&&!r.isDisposed()&&r.dispose()}function kV(r){return pd[W9(r,lL)]}function uL(r,t){sL[r]=t}function cL(r){Nt(Dy,r)<0&&Dy.push(r)}function fL(r,t){z1(Ay,r,t,bV)}function PV(r){O1("afterinit",r)}function RV(r){O1("afterupdate",r)}function O1(r,t){Wa.on(r,t)}function pn(r,t,e){xt(t)&&(e=t,t="");var a=St(r)?r.type:[r,r={event:t}][0];r.event=(r.event||a).toLowerCase(),t=r.event,!dd[t]&&(wr(sS.test(a)&&sS.test(t)),vd[a]||(vd[a]={action:e,actionInfo:r}),dd[t]=a)}function EV(r,t){Gc.register(r,t)}function NV(r,t){z1(hd,r,t,Q5,"layout")}function as(r,t){z1(hd,r,t,tL,"visual")}var dS=[];function z1(r,t,e,a,n){if((xt(t)||St(t))&&(e=t,t=a),!(Nt(dS,e)>=0)){dS.push(e);var i=B5.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function vL(r,t){Ly[r]=t}function $V(r,t,e){var a=pV("registerMap");a&&a(r,t,e)}var OV=Kz;as(N1,SB);as(Ch,MB);as(Ch,CB);as(N1,zB);as(Ch,BB);as(eL,dV);cL(h5);fL(yV,kz);vL("default",IB);pn({type:$o,event:$o,update:$o},Re);pn({type:wv,event:wv,update:wv},Re);pn({type:Nu,event:Nu,update:Nu},Re);pn({type:Sv,event:Sv,update:Sv},Re);pn({type:$u,event:$u,update:$u},Re);uL("light",$B);uL("dark",H5);var hS=[],zV={registerPreprocessor:cL,registerProcessor:fL,registerPostInit:PV,registerPostUpdate:RV,registerUpdateLifecycle:O1,registerAction:pn,registerCoordinateSystem:EV,registerLayout:NV,registerVisual:as,registerTransform:OV,registerLoading:vL,registerMap:$V,registerImpl:hV,PRIORITY:TV,ComponentModel:Yt,ComponentView:De,SeriesModel:xe,ChartView:ce,registerComponentModel:function(r){Yt.registerClass(r)},registerComponentView:function(r){De.registerClass(r)},registerSeriesModel:function(r){xe.registerClass(r)},registerChartView:function(r){ce.registerClass(r)},registerSubTypeDefaulter:function(r,t){Yt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){b9(r,t)}};function Bt(r){if(K(r)){A(r,function(t){Bt(t)});return}Nt(hS,r)>=0||(hS.push(r),xt(r)&&(r={install:r}),r.install(zV))}function Yl(r){return r==null?0:r.length||1}function pS(r){return r}var Gn=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||pS,this._newKeyGetter=n||pS,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=Yl(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],f=Yl(u),v=Yl(c);if(f>1&&v===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&v>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&v===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&v>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var d=0;d<f;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=Yl(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=Yl(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),BV=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function VV(r,t){var e={},a=e.encode={},n=mt(),i=[],o=[],s={};A(r.dimensions,function(v){var d=r.getDimensionInfo(v),h=d.coordDim;if(h){var g=d.coordDimIndex;Jp(a,h)[g]=v,d.isExtraCoord||(n.set(h,1),GV(d.type)&&(i[0]=v),Jp(s,h)[g]=r.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(v)}i5.each(function(m,y){var _=Jp(a,y),b=d.otherDims[y];b!=null&&b!==!1&&(_[b]=d.name)})});var l=[],u={};n.each(function(v,d){var h=a[d];u[d]=h[0],l=l.concat(h)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=Q(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var f=a.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new BV(s,t),e}function Jp(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function gd(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function GV(r){return!(r==="ordinal"||r==="time")}var Av=function(){function r(t){this.otherDims={},t!=null&&Y(this,t)}return r}(),FV=qt(),HV={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},dL=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=gL(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return At(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=g5(this.source),a=!mL(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=e?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!f||!f.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=HV[u]||"f",c&&(n+=c.uid),n+="$"}var d=this.source,h=[d.seriesLayoutBy,d.startIndex,n].join("$$");return{dimensions:i,hash:h}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function hL(r){return r instanceof dL}function pL(r){for(var t=mt(),e=0;e<(r||[]).length;e++){var a=r[e],n=St(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function gL(r){var t=FV(r);return t.dimNameMap||(t.dimNameMap=pL(r.dimensionsDefine))}function mL(r){return r>30}var Ul=St,ei=Q,WV=typeof Int32Array>"u"?Array:Int32Array,ZV="e\0\0",gS=-1,YV=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],UV=["_approximateExtent"],mS,kf,jl,Xl,Qp,ql,tg,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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;hL(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var f=a[c],v=ft(f)?new Av({name:f}):f instanceof Av?f:new Av(f),d=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=d,v.coordDimIndex=0);var h=v.otherDims=v.otherDims||{};o.push(d),i[d]=v,u[d]!=null&&(l=!0),v.createInvertedIndices&&(s[d]=[]),h.itemName===0&&(this._nameDimIdx=c),h.itemId===0&&(this._idDimIdx=c),n&&(v.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=mt();A(o,function(m){g.set(i[m].storeDimIndex,m)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(Qt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof by&&(i=t),!i){var o=this.dimensions,s=A1(t)||ur(t)?new m5(t,o.length):t;i=new by;var l=ei(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=VV(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e&&e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&tg(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Mi&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===ha;if(l&&!n.pure)for(var u=[],c=t;c<e;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&L9(f)&&(this.hasItemOption=!0),f){var v=f.name;i[c]==null&&v!=null&&(i[c]=ze(v,null));var d=f.id;o[c]==null&&d!=null&&(o[c]=ze(d,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)tg(this,c);mS(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Ul(t)?Y(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=jl(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return kf(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,n=this._store;return K(t)?n.getValues(ei(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],n=a&&a[e];return n==null||isNaN(n)?gS:n},r.prototype.indicesOfNearest=function(t,e,a){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,a)},r.prototype.each=function(t,e,a){xt(t)&&(a=e,e=t,t=[]);var n=a||this,i=ei(Xl(t),this._getStoreDimIndex,this);this._store.each(i,n?dt(e,n):e)},r.prototype.filterSelf=function(t,e,a){xt(t)&&(a=e,e=t,t=[]);var n=a||this,i=ei(Xl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?dt(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Ut(t);return A(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){xt(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=ei(Xl(t),this._getStoreDimIndex,this),s=ql(this);return s._store=this._store.map(o,i?dt(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=ei(Xl(t),this._getStoreDimIndex,this);this._store.modify(o,i?dt(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=ql(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.minmaxDownSample=function(t,e){var a=ql(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=ql(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new se(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Gn(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return kf(t,a)},function(a){return kf(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Ul(t)?Y(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),K(i)?i=i.slice():Ul(i)&&(i=Y({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Ul(e)?Y(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Ul(t)?Y(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,a){this._itemLayouts[t]=a?Y(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;sy(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ei(this.dimensions,this._getDimInfo,this),this.hostModel)),Qp(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];xt(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(j0(arguments)))})},r.internalField=function(){mS=function(t){var e=t._invertedIndicesMap;A(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new WV(o.categories.length);for(var l=0;l<a.length;l++)a[l]=gS;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},jl=function(t,e,a){return ze(t._getCategory(e,a),null)},kf=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=jl(t,t._idDimIdx,e)),a==null&&(a=ZV+e),a},Xl=function(t){return K(t)||(t=t!=null?[t]:[]),t},ql=function(t){var e=new r(t._schema?t._schema:ei(t.dimensions,t._getDimInfo,t),t.hostModel);return Qp(e,t),e},Qp=function(t,e){A(YV.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,A(UV,function(a){t[a]=Mt(e[a])}),t._calculationInfo=Y({},e._calculationInfo)},tg=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=jl(t,i,e)),l==null&&o!=null&&(n[e]=l=jl(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[e]=l}}}(),r}();function Hc(r,t){A1(r)||(r=D1(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=mt(),i=[],o=XV(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&mL(o),l=a===r.dimensionsDefine,u=l?gL(r):pL(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=mt(c),v=new C5(o),d=0;d<v.length;d++)v[d]=-1;function h(I){var T=v[I];if(T<0){var D=a[I],E=St(D)?D:{name:D},R=new Av,k=E.name;k!=null&&u.get(k)!=null&&(R.name=R.displayName=k),E.type!=null&&(R.type=E.type),E.displayName!=null&&(R.displayName=E.displayName);var N=i.length;return v[I]=N,R.storeDimIndex=I,i.push(R),R}return i[T]}if(!s)for(var d=0;d<o;d++)h(d);f.each(function(I,T){var D=ue(I).slice();if(D.length===1&&!ft(D[0])&&D[0]<0){f.set(T,!1);return}var E=f.set(T,[]);A(D,function(R,k){var N=ft(R)?u.get(R):R;N!=null&&N<o&&(E[k]=N,m(h(N),T,k))})});var g=0;A(e,function(I){var T,D,E,R;if(ft(I))T=I,R={};else{R=I,T=R.name;var k=R.ordinalMeta;R.ordinalMeta=null,R=Y({},R),R.ordinalMeta=k,D=R.dimsDef,E=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var N=f.get(T);if(N!==!1){if(N=ue(N),!N.length)for(var O=0;O<(D&&D.length||1);O++){for(;g<o&&h(g).coordDim!=null;)g++;g<o&&N.push(g++)}A(N,function(V,B){var Z=h(V);if(l&&R.type!=null&&(Z.type=R.type),m(wt(Z,R),T,B),Z.name==null&&D){var X=D[B];!St(X)&&(X={name:X}),Z.name=Z.displayName=X.name,Z.defaultTooltip=X.defaultTooltip}E&&wt(Z.otherDims,E)})}});function m(I,T,D){i5.get(T)!=null?I.otherDims[T]=D:(I.coordDim=T,I.coordDimIndex=D,n.set(T,!0))}var y=t.generateCoord,_=t.generateCoordCount,b=_!=null;_=y?_||1:0;var x=y||"value";function w(I){I.name==null&&(I.name=I.coordDim)}if(s)A(i,function(I){w(I)}),i.sort(function(I,T){return I.storeDimIndex-T.storeDimIndex});else for(var S=0;S<o;S++){var M=h(S),C=M.coordDim;C==null&&(M.coordDim=qV(x,n,b),M.coordDimIndex=0,(!y||_<=0)&&(M.isExtraCoord=!0),_--),w(M),M.type==null&&(u5(r,S)===qe.Must||M.isExtraCoord&&(M.otherDims.itemName!=null||M.otherDims.seriesName!=null))&&(M.type="ordinal")}return jV(i),new dL({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function jV(r){for(var t=mt(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function XV(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;St(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function qV(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var KV=function(){function r(t){this.coordSysDims=[],this.axisMap=mt(),this.categoryAxisMap=mt(),this.coordSysName=t}return r}();function JV(r){var t=r.get("coordinateSystem"),e=new KV(t),a=QV[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var QV={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Ne).models[0],i=r.getReferringComponents("yAxis",Ne).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),bs(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),bs(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Ne).models[0];t.coordSysDims=["single"],e.set("single",n),bs(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Ne).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),bs(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),bs(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];e.set(c,u),bs(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function bs(r){return r.get("type")==="category"}function t8(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;e8(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,v;if(A(i,function(_,b){ft(_)&&(i[b]=_={name:_}),l&&!_.isExtraCoord&&(!a&&!u&&_.ordinalMeta&&(u=_),!c&&_.type!=="ordinal"&&_.type!=="time"&&(!n||n===_.coordDim)&&(c=_))}),c&&!a&&!u&&(a=!0),c){f="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,h=c.type,g=0;A(i,function(_){_.coordDim===d&&g++});var m={name:f,coordDim:d,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:g+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(v,h),y.storeDimIndex=s.ensureCalculationDimension(f,h)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:f}}function e8(r){return!hL(r.schema)}function Pi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function yL(r,t){return Pi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function r8(r,t){var e=r.get("coordinateSystem"),a=Gc.get(e),n;return t&&t.coordSysDims&&(n=Q(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=gd(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function a8(r,t,e){var a,n;return e&&A(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function jn(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=D1(r)):(n=a.getSource(),i=n.sourceFormat===ha);var o=JV(t),s=r8(t,o),l=e.useEncodeDefaulter,u=xt(l)?l:l?Dt(l5,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Hc(n,c),v=a8(f.dimensions,e.createInvertedIndices,o),d=i?null:a.getSharedDataStore(f),h=t8(t,{schema:f,store:d}),g=new br(f,t);g.setCalculationInfo(h);var m=v!=null&&n8(n)?function(y,_,b,x){return x===v?b:this.defaultDimValueGetter(y,_,b,x)}:null;return g.hasItemOption=!1,g.initData(i?n:d,null,m),g}function n8(r){if(r.sourceFormat===ha){var t=i8(r.data||[]);return!K(gl(t))}}function i8(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var gn=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[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 a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[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}();ih(gn);var o8=0,ky=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++o8}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&Q(a,s8);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!ft(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=mt(this.categories))},r}();function s8(r){return St(r)&&r.value!=null?r.value:r+""}function Py(r){return r.type==="interval"||r.type==="log"}function l8(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=jA(i/t);e!=null&&o<e&&(o=n.interval=e),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=_L(o),l=n.niceTickExtent=[ke(Math.ceil(r[0]/o)*o,s),ke(Math.floor(r[1]/o)*o,s)];return u8(l,r),n}function eg(r){var t=Math.pow(10,r1(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ke(e*t)}function _L(r){return Ja(r)+2}function yS(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function u8(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),yS(r,0,t),yS(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ih(r,t){return r>=t[0]&&r<=t[1]}function Th(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Ah(r,t){return r*(t[1]-t[0])+t[0]}var Dh=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new ky({})),K(n)&&(n=new ky({categories:Q(n,function(i){return St(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:ft(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ih(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Th(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Ah(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;n.push(c),i[c]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(gn);gn.registerClass(Dh);var oo=ke,Fn=function(r){G(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 Ih(e,this._extent)},t.prototype.normalize=function(e){return Th(e,this._extent)},t.prototype.scale=function(e){return Ah(e,this._extent)},t.prototype.setExtent=function(e,a){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(a)||(n[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]<a[0]&&(a[0]=e[0]),e[1]>a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=_L(e)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(e?s.push({value:oo(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=oo(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return n[1]>c&&(e?s.push({value:oo(c+a,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,c=[],f=s.value-l.value,v=f/e;u<e-1;){var d=oo(l.value+(u+1)*v);d>i[0]&&d<i[1]&&c.push(d),u++}n.push(c)}return n},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=Ja(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=oo(e.value,n,!0);return QD(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=l8(i,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(a[0]=oo(Math.floor(a[0]/o)*o)),e.fixMax||(a[1]=oo(Math.ceil(a[1]/o)*o))},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t}(gn);gn.registerClass(Fn);var bL=typeof Float32Array<"u",c8=bL?Float32Array:Array;function tn(r){return K(r)?bL?new Float32Array(r):r:new c8(r)}var Ry="__ec_stack_";function xL(r){return r.get("stack")||Ry+r.seriesIndex}function B1(r){return r.dim+r.index}function f8(r){var t=[],e=r.axis,a="axis0";if(e.type==="category"){for(var n=e.getBandWidth(),i=0;i<r.count;i++)t.push(wt({bandWidth:n,axisKey:a,stackId:Ry+i},r));for(var o=ML(t),s=[],i=0;i<r.count;i++){var l=o[a][Ry+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function wL(r,t){var e=[];return t.eachSeriesByType(r,function(a){TL(a)&&e.push(a)}),e}function v8(r){var t={};A(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),v=c.dim+"_"+c.index,d=f.getDimensionIndex(f.mapDimension(c.dim)),h=f.getStore(),g=0,m=h.count();g<m;++g){var y=h.get(d,g);t[v]?t[v].push(y):t[v]=[y]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function SL(r){var t=v8(r),e=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),v=Math.abs(f[1]-f[0]);s=u?c/v*u:c}else{var d=a.getData();s=Math.abs(o[1]-o[0])/d.count()}var h=lt(a.get("barWidth"),s),g=lt(a.get("barMaxWidth"),s),m=lt(a.get("barMinWidth")||(AL(a)?.5:1),s),y=a.get("barGap"),_=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:h,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:_,axisKey:B1(i),stackId:xL(a)})}),ML(e)}function ML(r){var t={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var v=a.barMinWidth;v&&(l[u].minWidth=v);var d=a.barGap;d!=null&&(s.gap=d);var h=a.barCategoryGap;h!=null&&(s.categoryGap=h)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Ut(i).length;s=Math.max(35-l*4,15)+"%"}var u=lt(s,o),c=lt(a.gap,1),f=a.remainedWidth,v=a.autoWidthCount,d=(f-u)/(v+(v-1)*c);d=Math.max(d,0),A(i,function(y){var _=y.maxWidth,b=y.minWidth;if(y.width){var x=y.width;_&&(x=Math.min(x,_)),b&&(x=Math.max(x,b)),y.width=x,f-=x+c*x,v--}else{var x=d;_&&_<x&&(x=Math.min(_,f)),b&&b>x&&(x=b),x!==d&&(y.width=x,f-=x+c*x,v--)}}),d=(f-u)/(v+(v-1)*c),d=Math.max(d,0);var h=0,g;A(i,function(y,_){y.width||(y.width=d),g=y,h+=y.width*(1+c)}),g&&(h-=g.width*c);var m=-h/2;A(i,function(y,_){e[n][_]=e[n][_]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),e}function d8(r,t,e){if(r&&t){var a=r[B1(t)];return a}}function CL(r,t){var e=wL(r,t),a=SL(e);A(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=xL(n),u=a[B1(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function IL(r){return{seriesType:r,plan:Ml(),reset:function(t){if(TL(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=Pi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),d=h8(n,i),h=AL(t),g=t.get("barMinHeight")||0,m=c&&e.getDimensionIndex(c),y=e.getLayout("size"),_=e.getLayout("offset");return{progress:function(b,x){for(var w=b.count,S=h&&tn(w*3),M=h&&l&&tn(w*3),C=h&&tn(w),I=a.master.getRect(),T=v?I.width:I.height,D,E=x.getStore(),R=0;(D=b.next())!=null;){var k=E.get(f?m:o,D),N=E.get(s,D),O=d,V=void 0;f&&(V=+k-E.get(o,D));var B=void 0,Z=void 0,X=void 0,et=void 0;if(v){var it=a.dataToPoint([k,N]);if(f){var yt=a.dataToPoint([V,N]);O=yt[0]}B=O,Z=it[1]+_,X=it[0]-O,et=y,Math.abs(X)<g&&(X=(X<0?-1:1)*g)}else{var it=a.dataToPoint([N,k]);if(f){var yt=a.dataToPoint([N,V]);O=yt[1]}B=it[0]+_,Z=O,X=y,et=it[1]-O,Math.abs(et)<g&&(et=(et<=0?-1:1)*g)}h?(S[R]=B,S[R+1]=Z,S[R+2]=v?X:et,M&&(M[R]=v?I.x:B,M[R+1]=v?Z:I.y,M[R+2]=T),C[D]=D):x.setItemLayout(D,{x:B,y:Z,width:X,height:et}),R+=3}h&&x.setLayout({largePoints:S,largeDataIndices:C,largeBackgroundPoints:M,valueAxisHorizontal:v})}}}}}}function TL(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function AL(r){return r.pipelineContext&&r.pipelineContext.large}function h8(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var p8=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},V1=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return gh(e.value,cw[KO(js(this._minLevelUnit))]||cw.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return JO(e,a,n,o,i)},t.prototype.getTicks=function(){var e=this._interval,a=this._extent,n=[];if(!e)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=w8(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1]&&(a[0]-=sa,a[1]+=sa),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-sa}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=Pf.length,l=Math.min(p8(Pf,this._approxInterval,0,s),s-1);this._interval=Pf[l][1],this._minLevelUnit=Pf[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Qt(e)?e:+vn(e)},t.prototype.contain=function(e){return Ih(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Th(this.parse(e),this._extent)},t.prototype.scale=function(e){return Ah(e,this._extent)},t.type="time",t}(Fn),Pf=[["second",b1],["minute",x1],["hour",zu],["quarter-day",zu*6],["half-day",zu*12],["day",sa*1.2],["half-week",sa*3.5],["week",sa*7],["month",sa*31],["quarter",sa*95],["half-year",uw/2],["year",uw]];function g8(r,t,e,a){var n=vn(t),i=vn(e),o=function(h){return fw(n,h,a)===fw(i,h,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},v=function(){return f()&&o("second")},d=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return v();case"millisecond":return d()}}function m8(r,t){return r/=sa,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function y8(r){var t=30*sa;return r/=t,r>6?6:r>3?3:r>2?2:1}function _8(r){return r/=zu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function _S(r,t){return r/=t?x1:b1,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function b8(r){return jA(r)}function x8(r,t,e){var a=new Date(r);switch(js(t)){case"year":case"month":a[UD(e)](0);case"day":a[jD(e)](1);case"hour":a[XD(e)](0);case"minute":a[qD(e)](0);case"second":a[KD(e)](0),a[JD(e)](0)}return a.getTime()}function w8(r,t,e,a){var n=1e4,i=ZD,o=0;function s(T,D,E,R,k,N,O){for(var V=new Date(D),B=D,Z=V[R]();B<E&&B<=a[1];)O.push({value:B}),Z+=T,V[k](Z),B=V.getTime();O.push({value:B,notAdd:!0})}function l(T,D,E){var R=[],k=!D.length;if(!g8(js(T),a[0],a[1],e)){k&&(D=[{value:x8(new Date(a[0]),T,e)},{value:a[1]}]);for(var N=0;N<D.length-1;N++){var O=D[N].value,V=D[N+1].value;if(O!==V){var B=void 0,Z=void 0,X=void 0,et=!1;switch(T){case"year":B=Math.max(1,Math.round(t/sa/365)),Z=w1(e),X=QO(e);break;case"half-year":case"quarter":case"month":B=y8(t),Z=Xs(e),X=UD(e);break;case"week":case"half-week":case"day":B=m8(t),Z=mh(e),X=jD(e),et=!0;break;case"half-day":case"quarter-day":case"hour":B=_8(t),Z=lc(e),X=XD(e);break;case"minute":B=_S(t,!0),Z=yh(e),X=qD(e);break;case"second":B=_S(t,!1),Z=_h(e),X=KD(e);break;case"millisecond":B=b8(t),Z=bh(e),X=JD(e);break}s(B,O,V,Z,X,et,R),T==="year"&&E.length>1&&N===0&&E.unshift({value:E[0].value-B})}}for(var N=0;N<R.length;N++)E.push(R[N]);return R}}for(var u=[],c=[],f=0,v=0,d=0;d<i.length&&o++<n;++d){var h=js(i[d]);if(qO(i[d])){l(i[d],u[u.length-1]||[],c);var g=i[d+1]?js(i[d+1]):null;if(h!==g){if(c.length){v=f,c.sort(function(T,D){return T.value-D.value});for(var m=[],y=0;y<c.length;++y){var _=c[y].value;(y===0||c[y-1].value!==_)&&(m.push(c[y]),_>=a[0]&&_<=a[1]&&f++)}var b=(a[1]-a[0])/t;if(f>b*1.5&&v>b/1.5||(u.push(m),f>b||r===i[d]))break}c=[]}}}for(var x=ne(Q(u,function(T){return ne(T,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(T){return T.length>0}),w=[],S=x.length-1,d=0;d<x.length;++d)for(var M=x[d],C=0;C<M.length;++C)w.push({value:M[C].value,level:S-d});w.sort(function(T,D){return T.value-D.value});for(var I=[],d=0;d<w.length;++d)(d===0||w[d].value!==w[d-1].value)&&I.push(w[d]);return I}gn.registerClass(V1);var bS=gn.prototype,Vu=Fn.prototype,S8=ke,M8=Math.floor,C8=Math.ceil,Rf=Math.pow,ma=Math.log,G1=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Fn,e._interval=0,e}return t.prototype.getTicks=function(e){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=Vu.getTicks.call(this,e);return Q(o,function(s){var l=s.value,u=ke(Rf(this.base,l));return u=l===n[0]&&this._fixMin?Ef(u,i[0]):u,u=l===n[1]&&this._fixMax?Ef(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,a){var n=ma(this.base);e=ma(Math.max(0,e))/n,a=ma(Math.max(0,a))/n,Vu.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=bS.getExtent.call(this);a[0]=Rf(e,a[0]),a[1]=Rf(e,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=Ef(a[0],i[0])),this._fixMax&&(a[1]=Ef(a[1],i[1])),a},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var a=this.base;e[0]=ma(e[0])/ma(a),e[1]=ma(e[1])/ma(a),bS.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=D9(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[ke(C8(a[0]/i)*i),ke(M8(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Vu.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=ma(e)/ma(this.base),Ih(e,this._extent)},t.prototype.normalize=function(e){return e=ma(e)/ma(this.base),Th(e,this._extent)},t.prototype.scale=function(e){return e=Ah(e,this._extent),Rf(this.base,e)},t.type="log",t}(gn),DL=G1.prototype;DL.getMinorTicks=Vu.getMinorTicks;DL.getLabel=Vu.getLabel;function Ef(r,t){return S8(r,Ja(t))}gn.registerClass(G1);var I8=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;xt(o)?this._modelMinNum=Nf(t,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=Nf(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(xt(s)?this._modelMaxNum=Nf(t,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=Nf(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=K(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ta(u[0],1),Ta(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Ju(s)||Ju(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var v=this._determinedMin,d=this._determinedMax;return v!=null&&(s=v,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[A8[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=T8[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),T8={min:"_determinedMin",max:"_determinedMax"},A8={min:"_dataMin",max:"_dataMax"};function LL(r,t,e){var a=r.rawExtentInfo;return a||(a=new I8(r,t,e),r.rawExtentInfo=a,a)}function Nf(r,t){return t==null?null:Ju(t)?NaN:r.parse(t)}function kL(r,t){var e=r.type,a=LL(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=wL("bar",o),l=!1;if(A(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=SL(s),c=D8(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function D8(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=d8(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;A(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,v=c/f-c;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function ol(r,t){var e=t,a=kL(r,e),n=a.extent,i=e.get("splitNumber");r instanceof G1&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Lh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Dh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new V1({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(gn.getClass(t)||Fn)}}function L8(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Tl(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(t):ft(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}}(t):xt(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(F1(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function F1(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function k8(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof Dh?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Tl(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var f=a?a[c]:{value:i[0]+c},v=s(f,c),d=o.getTextRect(v),h=P8(d,o.get("rotate")||0);l?l.union(h):l=h}return l}}function P8(r,t){var e=t*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=a*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new Pt(r.x,r.y,i,o);return s}function H1(r){var t=r.get("interval");return t??"auto"}function PL(r){return r.type==="category"&&H1(r.getLabelModel())===0}function md(r,t){var e={};return A(r.mapDimensionsAll(t),function(a){e[yL(r,a)]=!0}),Ut(e)}function R8(r,t,e){t&&A(md(t,e),function(a){var n=t.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var Wc=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),E8=1e-8;function xS(r,t){return Math.abs(r-t)<E8}function bo(r,t,e){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=Cn(n[0],n[1],o[0],o[1],t,e),n=o}var s=r[0];return(!xS(n[0],s[0])||!xS(n[1],s[1]))&&(a+=Cn(n[0],n[1],s[0],s[1],t,e)),a!==0}var N8=[];function rg(r,t){for(var e=0;e<r.length;e++)Ke(r[e],r[e],t)}function wS(r,t,e,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(hi(t,t,i),pi(e,e,i))}}function $8(r){for(var t=0,e=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;t+=c,e+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var RL=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),SS=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),MS=function(){function r(t){this.type="linestring",this.points=t}return r}(),EL=function(r){G(t,r);function t(e,a,n){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,n=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return $8(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?wS(s.exterior,n,i,e):A(s.points,function(l){wS(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new Pt(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(bo(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(bo(u[c],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new Pt(e,a,n,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var v=c[f];v.type==="polygon"?(rg(v.exterior,u),A(v.interiors,function(d){rg(d,u)})):A(v.points,function(d){rg(d,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t}(RL),O8=function(r){G(t,r);function t(e,a){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,a=e.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=eh(N8),o=e;o&&!o.isGeoSVGGraphicRoot;)Rn(i,o.getLocalTransform(),i),o=o.parent;return pl(i,i),Ke(n,n,i),n},t}(RL);function z8(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return A(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=NL(s,o,e);break;case"Polygon":ag(s,o,e);break;case"MultiLineString":ag(s,o,e);break;case"MultiPolygon":A(s,function(l,u){return ag(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function ag(r,t,e){for(var a=0;a<r.length;a++)r[a]=NL(r[a],t[a],e)}function NL(r,t,e){for(var a=[],n=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function B8(r,t){return r=z8(r),Q(ne(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new SS(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new SS(l[0],l.slice(1)))});break;case"LineString":i.push(new MS([n.coordinates]));break;case"MultiLineString":i.push(new MS(n.coordinates))}var s=new EL(a[t||"name"],i,a.cp);return s.properties=a,s})}var hc=qt();function $L(r,t){var e=Q(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function V8(r){var t=r.getLabelModel().get("customValues");if(t){var e=Tl(r),a=r.scale.getExtent(),n=$L(r,t),i=ne(n,function(o){return o>=a[0]&&o<=a[1]});return{labels:Q(i,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?F8(r):W8(r)}function G8(r,t){var e=r.getTickModel().get("customValues");if(e){var a=r.scale.getExtent(),n=$L(r,e);return{ticks:ne(n,function(i){return i>=a[0]&&i<=a[1]})}}return r.type==="category"?H8(r,t):{ticks:Q(r.scale.getTicks(),function(i){return i.value})}}function F8(r){var t=r.getLabelModel(),e=OL(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function OL(r,t){var e=zL(r,"labels"),a=H1(t),n=BL(e,a);if(n)return n;var i,o;return xt(a)?i=FL(r,a):(o=a==="auto"?Z8(r):a,i=GL(r,o)),VL(e,a,{labels:i,labelCategoryInterval:o})}function H8(r,t){var e=zL(r,"ticks"),a=H1(t),n=BL(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),xt(a))i=FL(r,a,!0);else if(a==="auto"){var s=OL(r,r.getLabelModel());o=s.labelCategoryInterval,i=Q(s.labels,function(l){return l.tickValue})}else o=a,i=GL(r,o,!0);return VL(e,a,{ticks:i,tickCategoryInterval:o})}function W8(r){var t=r.scale.getTicks(),e=Tl(r);return{labels:Q(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function zL(r,t){return hc(r)[t]||(hc(r)[t]=[])}function BL(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function VL(r,t,e){return r.push({key:t,value:e}),e}function Z8(r){var t=hc(r).autoInterval;return t??(hc(r).autoInterval=r.calculateCategoryInterval())}function Y8(r){var t=U8(r),e=Tl(r),a=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(a)),f=Math.abs(u*Math.sin(a)),v=0,d=0;l<=i[1];l+=s){var h=0,g=0,m=Rc(e({value:l}),t.font,"center","top");h=m.width*1.3,g=m.height*1.3,v=Math.max(v,h,7),d=Math.max(d,g,7)}var y=v/c,_=d/f;isNaN(y)&&(y=1/0),isNaN(_)&&(_=1/0);var b=Math.max(0,Math.floor(Math.min(y,_))),x=hc(r.model),w=r.getExtent(),S=x.lastAutoInterval,M=x.lastTickCount;return S!=null&&M!=null&&Math.abs(S-b)<=1&&Math.abs(M-o)<=1&&S>b&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?b=S:(x.lastTickCount=o,x.lastAutoInterval=b,x.axisExtent0=w[0],x.axisExtent1=w[1]),b}function U8(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 GL(r,t,e){var a=Tl(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=PL(r),v=o.get("showMinLabel")||f,d=o.get("showMaxLabel")||f;v&&u!==i[0]&&g(i[0]);for(var h=u;h<=i[1];h+=l)g(h);d&&h-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(e?m:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:m})}return s}function FL(r,t,e){var a=r.scale,n=Tl(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var CS=[0,1],La=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return YA(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(a=a.slice(),IS(a,n.count())),oe(t,CS,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),IS(a,n.count()));var i=oe(t,a,CS,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(),a=G8(this,e),n=a.ticks,i=Q(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return j8(this,i,o,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 a=this.scale.getMinorTicks(e),n=Q(a,function(i){return Q(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return V8(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(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return Y8(this)},r}();function IS(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function j8(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;A(t,function(d){d.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:c[1]+1},t.push(o)}var f=i[0]>i[1];v(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&v(i[0],t[0].coord)&&t.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&v(o.coord,i[1])&&t.push({coord:i[1]});function v(d,h){return d=ke(d),h=ke(h),f?d>h:d<h}}var Kl=Math.PI*2,so=dn.CMD,X8=["top","right","bottom","left"];function q8(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function K8(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*e+r,f=s*e+t;if(Math.abs(a-n)%Kl<1e-4)return l[0]=c,l[1]=f,u-e;if(i){var v=a;a=Zr(n),n=Zr(v)}else a=Zr(a),n=Zr(n);a>n&&(n+=Kl);var d=Math.atan2(s,o);if(d<0&&(d+=Kl),d>=a&&d<=n||d+Kl>=a&&d+Kl<=n)return l[0]=c,l[1]=f,u-e;var h=e*Math.cos(a)+r,g=e*Math.sin(a)+t,m=e*Math.cos(n)+r,y=e*Math.sin(n)+t,_=(h-o)*(h-o)+(g-s)*(g-s),b=(m-o)*(m-o)+(y-s)*(y-s);return _<b?(l[0]=h,l[1]=g,Math.sqrt(_)):(l[0]=m,l[1]=y,Math.sqrt(b))}function yd(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,c=e-r,f=a-t,v=Math.sqrt(c*c+f*f);c/=v,f/=v;var d=l*c+u*f,h=d/v;s&&(h=Math.min(Math.max(h,0),1)),h*=v;var g=o[0]=r+h*c,m=o[1]=t+h*f;return Math.sqrt((g-n)*(g-n)+(m-i)*(m-i))}function HL(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var ba=[];function J8(r,t,e){var a=HL(t.x,t.y,t.width,t.height,r.x,r.y,ba);return e.set(ba[0],ba[1]),a}function Q8(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,v=r.y,d=0;d<c.length;){var h=c[d++];d===1&&(a=c[d],n=c[d+1],i=a,o=n);var g=u;switch(h){case so.M:i=c[d++],o=c[d++],a=i,n=o;break;case so.L:g=yd(a,n,c[d],c[d+1],f,v,ba,!0),a=c[d++],n=c[d++];break;case so.C:g=AA(a,n,c[d++],c[d++],c[d++],c[d++],c[d],c[d+1],f,v,ba),a=c[d++],n=c[d++];break;case so.Q:g=LA(a,n,c[d++],c[d++],c[d],c[d+1],f,v,ba),a=c[d++],n=c[d++];break;case so.A:var m=c[d++],y=c[d++],_=c[d++],b=c[d++],x=c[d++],w=c[d++];d+=1;var S=!!(1-c[d++]);s=Math.cos(x)*_+m,l=Math.sin(x)*b+y,d<=1&&(i=s,o=l);var M=(f-m)*b/_+m;g=K8(m,y,b,x,x+w,S,M,v,ba),a=Math.cos(x+w)*_+m,n=Math.sin(x+w)*b+y;break;case so.R:i=a=c[d++],o=n=c[d++];var C=c[d++],I=c[d++];g=HL(i,o,C,I,f,v,ba);break;case so.Z:g=yd(a,n,i,o,f,v,ba,!0),a=i,n=o;break}g<u&&(u=g,e.set(ba[0],ba[1]))}return u}var wa=new kt,_e=new kt,Pe=new kt,en=new kt,Ka=new kt;function TS(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||X8,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&pl([],c),v=t.get("length2")||0;u&&Pe.copy(u);for(var d=0;d<o.length;d++){var h=o[d];q8(h,0,s,wa,en),kt.scaleAndAdd(_e,wa,en,v),_e.transform(f);var g=r.getBoundingRect(),m=u?u.distance(_e):r instanceof Vt?Q8(_e,r.path,Pe):J8(_e,g,Pe);m<l&&(l=m,_e.transform(c),Pe.transform(c),Pe.toArray(i[0]),_e.toArray(i[1]),wa.toArray(i[2]))}WL(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var _d=[],mr=new kt;function WL(r,t){if(t<=180&&t>0){t=t/180*Math.PI,wa.fromArray(r[0]),_e.fromArray(r[1]),Pe.fromArray(r[2]),kt.sub(en,wa,_e),kt.sub(Ka,Pe,_e);var e=en.len(),a=Ka.len();if(!(e<.001||a<.001)){en.scale(1/e),Ka.scale(1/a);var n=en.dot(Ka),i=Math.cos(t);if(i<n){var o=yd(_e.x,_e.y,Pe.x,Pe.y,wa.x,wa.y,_d,!1);mr.fromArray(_d),mr.scaleAndAdd(Ka,o/Math.tan(Math.PI-t));var s=Pe.x!==_e.x?(mr.x-_e.x)/(Pe.x-_e.x):(mr.y-_e.y)/(Pe.y-_e.y);if(isNaN(s))return;s<0?kt.copy(mr,_e):s>1&&kt.copy(mr,Pe),mr.toArray(r[1])}}}}function tG(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,wa.fromArray(r[0]),_e.fromArray(r[1]),Pe.fromArray(r[2]),kt.sub(en,_e,wa),kt.sub(Ka,Pe,_e);var a=en.len(),n=Ka.len();if(!(a<.001||n<.001)){en.scale(1/a),Ka.scale(1/n);var i=en.dot(t),o=Math.cos(e);if(i<o){var s=yd(_e.x,_e.y,Pe.x,Pe.y,wa.x,wa.y,_d,!1);mr.fromArray(_d);var l=Math.PI/2,u=Math.acos(Ka.dot(t)),c=l+u-e;if(c>=l)kt.copy(mr,Pe);else{mr.scaleAndAdd(Ka,s/Math.tan(Math.PI/2-c));var f=Pe.x!==_e.x?(mr.x-_e.x)/(Pe.x-_e.x):(mr.y-_e.y)/(Pe.y-_e.y);if(isNaN(f))return;f<0?kt.copy(mr,_e):f>1&&kt.copy(mr,Pe)}mr.toArray(r[1])}}}}function ng(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function eG(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=di(a[0],a[1]),i=di(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=pv([],a[1],a[0],o/n),l=pv([],a[1],a[2],o/i),u=pv([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var c=1;c<a.length;c++)r.lineTo(a[c][0],a[c][1])}function W1(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<ic.length;l++){var u=ic[l],c=t[u],f=u==="normal";if(c){var v=c.get("show"),d=f?s:At(n.states[u]&&n.states[u].ignore,s);if(d||!At(v,o)){var h=f?a:a&&a.states[u];h&&(h.ignore=!0),a&&ng(a,!0,u,c);continue}a||(a=new Ir,r.setTextGuideLine(a),!f&&(s||!o)&&ng(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),ng(a,!1,u,c)}}if(a){wt(a.style,e),a.style.fill=null;var g=i.get("showAbove"),m=r.textGuideLineConfig=r.textGuideLineConfig||{};m.showAbove=g||!1,a.buildPath=eG}}function Z1(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<Sr.length;a++){var n=Sr[a];e[n]=r.getModel([n,t])}return e}function ZL(r){for(var t=[],e=0;e<r.length;e++){var a=r[e];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new ed(o,i):null;t.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:c,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return t}function YL(r,t,e,a,n,i){var o=r.length;if(o<2)return;r.sort(function(S,M){return S.rect[t]-M.rect[t]});for(var s=0,l,u=!1,c=0;c<o;c++){var f=r[c],v=f.rect;l=v[t]-s,l<0&&(v[t]-=l,f.label[t]-=l,u=!0),s=v[t]+v[e]}var d=r[0],h=r[o-1],g,m;y(),g<0&&x(-g,.8),m<0&&x(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&w(-g),m<0&&w(m);function y(){g=d.rect[t]-a,m=n-h.rect[t]-h.rect[e]}function _(S,M,C){if(S<0){var I=Math.min(M,-S);if(I>0){b(I*C,0,o);var T=I+S;T<0&&x(-T*C,1)}else x(-S*C,1)}}function b(S,M,C){S!==0&&(u=!0);for(var I=M;I<C;I++){var T=r[I],D=T.rect;D[t]+=S,T.label[t]+=S}}function x(S,M){for(var C=[],I=0,T=1;T<o;T++){var D=r[T-1].rect,E=Math.max(r[T].rect[t]-D[t]-D[e],0);C.push(E),I+=E}if(I){var R=Math.min(Math.abs(S)/I,M);if(S>0)for(var T=0;T<o-1;T++){var k=C[T]*R;b(k,0,T+1)}else for(var T=o-1;T>0;T--){var k=C[T-1]*R;b(-k,T,o)}}}function w(S){var M=S<0?-1:1;S=Math.abs(S);for(var C=Math.ceil(S/(o-1)),I=0;I<o-1;I++)if(M>0?b(C,0,I+1):b(-C,o-I-1,o),S-=C,S<=0)return}return u}function rG(r,t,e,a){return YL(r,"x","width",t,e)}function UL(r,t,e,a){return YL(r,"y","height",t,e)}function jL(r){var t=[];r.sort(function(g,m){return m.priority-g.priority});var e=new Pt(0,0,0,0);function a(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var f=i.obb,v=!1,d=0;d<t.length;d++){var h=t[d];if(e.intersect(h.rect)){if(o&&h.axisAligned){v=!0;break}if(h.obb||(h.obb=new ed(h.localRect,h.transform)),f||(f=new ed(s,l)),f.intersect(h.obb)){v=!0;break}}}v?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function aG(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function nG(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:aG(a&&a.shape.points)}}var AS=["align","verticalAlign","width","height","fontSize"],vr=new An,ig=qt(),iG=qt();function $f(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var Of=["x","y","rotation"],oG=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();Pt.applyTransform(c,c,u),u?vr.setLocalTransform(u):(vr.x=vr.y=vr.rotation=vr.originX=vr.originY=0,vr.scaleX=vr.scaleY=1),vr.rotation=Zr(vr.rotation);var f=n.__hostTarget,v;if(f){v=f.getBoundingRect().plain();var d=f.getComputedTransform();Pt.applyTransform(v,v,d)}var h=v&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:h,seriesModel:a,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:h&&h.ignore,x:vr.x,y:vr.y,scaleX:vr.scaleX,scaleY:vr.scaleY,rotation:vr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");(xt(n)||Ut(n).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Tt(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(b,x){return function(){TS(b,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;xt(o.layoutOption)?c=o.layoutOption(nG(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var v=!1;if(c.x!=null?(s.x=lt(c.x,e),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=lt(c.y,a),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),v=!1)}var h=ig(s);h.needsUpdateLabelLine=v,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<AS.length;g++){var m=AS[g];s.setStyle(m,c[m]!=null?c[m]:u.style[m])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var _=o.seriesModel.getData(o.dataType);y=_.getItemModel(o.dataIndex)}s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=ZL(this._labelList),i=ne(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ne(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});rG(i,0,e),UL(o,0,a);var s=ne(n,function(l){return l.layoutOption.hideOverlap});jL(s)},r.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=ig(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=Tt(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");W1(t,Z1(s),l),TS(t,f)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!Ys(t))){var i=ig(a),o=i.oldLayout,s=Tt(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=e.getData(s.dataType);if(o){a.attr(o);var v=t.prevStates;v&&(Nt(v,"select")>=0&&a.attr(i.oldLayoutSelect),Nt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),ee(a,u,e,l)}else if(a.attr(u),!_l(a).valueAnimation){var f=At(a.style.opacity,1);a.style.opacity=0,Me(a,{style:{opacity:f}},e,l)}if(i.oldLayout=u,a.states.select){var d=i.oldLayoutSelect={};$f(d,u,Of),$f(d,a.states.select,Of)}if(a.states.emphasis){var h=i.oldLayoutEmphasis={};$f(h,u,Of),$f(h,a.states.emphasis,Of)}VD(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=iG(n),o=i.oldLayout,g={points:n.shape.points};o?(n.attr({shape:o}),ee(n,{shape:g},e)):(n.setShape(g),n.style.strokePercent=0,Me(n,{style:{strokePercent:1}},e)),i.oldLayout=g}},r}(),og=qt();function sG(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=og(e).labelManager;n||(n=og(e).labelManager=new oG),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=og(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var sg=Math.sin,lg=Math.cos,XL=Math.PI,lo=Math.PI*2,lG=180/XL,qL=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,a,n,i,o){this._add("C",t,e,a,n,i,o)},r.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},r.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},r.prototype.ellipse=function(t,e,a,n,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),v=yi(f-lo)||(c?u>=lo:-u>=lo),d=u>0?u%lo:u%lo+lo,h=!1;v?h=!0:yi(f)?h=!1:h=d>=XL==!!c;var g=t+a*lg(o),m=e+n*sg(o);this._start&&this._add("M",g,m);var y=Math.round(i*lG);if(v){var _=1/this._p,b=(c?1:-1)*(lo-_);this._add("A",a,n,y,1,+c,t+a*lg(o+b),e+n*sg(o+b)),_>.01&&this._add("A",a,n,y,0,+c,g,m)}else{var x=t+a*lg(s),w=e+n*sg(s);this._add("A",a,n,y,+h,+c,x,w)}},r.prototype.rect=function(t,e,a,n){this._add("M",t,e),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,n,i,o,s,l,u){for(var c=[],f=this._p,v=1;v<arguments.length;v++){var d=arguments[v];if(isNaN(d)){this._invalid=!0;return}c.push(Math.round(d*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),Y1="none",uG=Math.round;function cG(r){var t=r.fill;return t!=null&&t!==Y1}function fG(r){var t=r.stroke;return t!=null&&t!==Y1}var Ey=["lineCap","miterLimit","lineJoin"],vG=Q(Ey,function(r){return"stroke-"+r.toLowerCase()});function dG(r,t,e,a){var n=t.opacity==null?1:t.opacity;if(e instanceof Xe){r("opacity",n);return}if(cG(t)){var i=rc(t.fill);r("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*n:i.opacity*n;o<1&&r("fill-opacity",o)}else r("fill",Y1);if(fG(t)){var s=rc(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*n:s.opacity*n,f=t.strokeFirst;if(u!==1&&r("stroke-width",u),f&&r("paint-order",f?"stroke":"fill"),c<1&&r("stroke-opacity",c),t.lineDash){var v=E1(e),d=v[0],h=v[1];d&&(h=uG(h||0),r("stroke-dasharray",d.join(",")),(h||a)&&r("stroke-dashoffset",h))}for(var g=0;g<Ey.length;g++){var m=Ey[g];if(t[m]!==Qv[m]){var y=t[m]||Qv[m];y&&r(vG[g],y)}}}}var KL="http://www.w3.org/2000/svg",JL="http://www.w3.org/1999/xlink",hG="http://www.w3.org/2000/xmlns/",pG="http://www.w3.org/XML/1998/namespace",DS="ecmeta_";function QL(r){return document.createElementNS(KL,r)}function He(r,t,e,a,n){return{tag:r,attrs:e||{},children:a,text:n,key:t}}function gG(r,t){var e=[];if(t)for(var a in t){var n=t[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),e.push(i))}return"<"+r+" "+e.join(" ")+">"}function mG(r){return"</"+r+">"}function U1(r,t){t=t||{};var e=t.newline?`
  51. `:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return gG(o,s)+(o!=="style"?_r(l):l||"")+(i?""+e+Q(i,function(u){return a(u)}).join(e)+e:"")+mG(o)}return a(r)}function yG(r,t,e){e=e||{};var a=e.newline?`
  52. `:"",n=" {"+a,i=a+"}",o=Q(Ut(r),function(l){return l+n+Q(Ut(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=Q(Ut(t),function(l){return"@keyframes "+l+n+Q(Ut(t[l]),function(u){return u+n+Q(Ut(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function Ny(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function LS(r,t,e,a){return He("svg","root",{width:r,height:t,xmlns:KL,"xmlns:xlink":JL,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var _G=0;function tk(){return _G++}var kS={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"},ho="transform-origin";function bG(r,t,e){var a=Y({},r.shape);Y(a,t),r.buildPath(e,a);var n=new qL;return n.reset(OA(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function xG(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[ho]=e+"px "+a+"px")}var wG={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ek(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function SG(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=Ny(e.zrId);u.animation=!0,kh(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,v=Ut(c),d=v.length;if(d){o=v[d-1];var h=c[o];for(var g in h){var m=h[g];n[g]=n[g]||{d:""},n[g].d+=m.d||""}for(var y in f){var _=f[y].animation;_.indexOf(o)>=0&&(i=_)}}}),!!i){t.d=!1;var s=ek(n,e);return i.replace(o,s)}}function PS(r){return ft(r)?kS[r]?"cubic-bezier("+kS[r]+")":Q0(r)?r:"":""}function kh(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof h1){var s=SG(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=n[u],f=[c.getMaxTime()/1e3+"s"],v=PS(c.getClip().easing),d=c.getDelay();v?f.push(v):f.push("linear"),d&&f.push(d/1e3+"s"),c.getLoop()&&f.push("infinite");var h=f.join(" ");l[h]=l[h]||[h,[]],l[h][1].push(c)}function g(_){var b=_[1],x=b.length,w={},S={},M={},C="animation-timing-function";function I(rt,j,ot){for(var st=rt.getTracks(),$=rt.getMaxTime(),z=0;z<st.length;z++){var F=st[z];if(F.needsAnimate()){var U=F.keyframes,J=F.propName;if(ot&&(J=ot(J)),J)for(var tt=0;tt<U.length;tt++){var pt=U[tt],vt=Math.round(pt.time/$*100)+"%",ht=PS(pt.easing),ut=pt.rawValue;(ft(ut)||Qt(ut))&&(j[vt]=j[vt]||{},j[vt][J]=pt.rawValue,ht&&(j[vt][C]=ht))}}}}for(var T=0;T<x;T++){var D=b[T],E=D.targetName;E?E==="shape"&&I(D,S):!a&&I(D,w)}for(var R in w){var k={};FA(k,r),Y(k,w[R]);var N=zA(k),O=w[R][C];M[R]=N?{transform:N}:{},xG(M[R],k),O&&(M[R][C]=O)}var V,B=!0;for(var R in S){M[R]=M[R]||{};var Z=!V,O=S[R][C];Z&&(V=new dn);var X=V.len();V.reset(),M[R].d=bG(r,S[R],V);var et=V.len();if(!Z&&X!==et){B=!1;break}O&&(M[R][C]=O)}if(!B)for(var R in M)delete M[R].d;if(!a)for(var T=0;T<x;T++){var D=b[T],E=D.targetName;E==="style"&&I(D,M,function(st){return wG[st]})}for(var it=Ut(M),yt=!0,_t,T=1;T<it.length;T++){var Ct=it[T-1],Wt=it[T];if(M[Ct][ho]!==M[Wt][ho]){yt=!1;break}_t=M[Ct][ho]}if(yt&&_t){for(var R in M)M[R][ho]&&delete M[R][ho];t[ho]=_t}if(ne(it,function(rt){return Ut(M[rt]).length>0}).length){var q=ek(M,e);return q+" "+_[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+tk();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function MG(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};RS(a,t,e)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=Ym(l))}var u=n.lineWidth;if(u){var c=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),RS(a,t,e)}}function RS(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+tk(),e.cssStyleCache[n]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var pc=Math.round;function rk(r){return r&&ft(r.src)}function ak(r){return r&&xt(r.toDataURL)}function j1(r,t,e,a){dG(function(n,i){var o=n==="fill"||n==="stroke";o&&$A(i)?ik(t,r,n,a):o&&t1(i)?ok(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),kG(e,r,a)}function X1(r,t){var e=x9(t);e&&(e.each(function(a,n){a!=null&&(r[(DS+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[DS+"silent"]="true"))}function ES(r){return yi(r[0]-1)&&yi(r[1])&&yi(r[2])&&yi(r[3]-1)}function CG(r){return yi(r[4])&&yi(r[5])}function q1(r,t,e){if(t&&!(CG(t)&&ES(t))){var a=1e4;r.transform=ES(t)?"translate("+pc(t[4]*a)/a+" "+pc(t[5]*a)/a+")":H6(t)}}function NS(r,t,e){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(pc(a[i][0]*e)/e),n.push(pc(a[i][1]*e)/e);t.points=n.join(" ")}function $S(r){return!r.smooth}function IG(r){var t=Q(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,a,n){for(var i=0;i<t.length;i++){var o=t[i],s=e[o[0]];s!=null&&(a[o[1]]=pc(s*n)/n)}}}var TG={circle:[IG(["cx","cy","r"])],polyline:[NS,$S],polygon:[NS,$S]};function AG(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function nk(r,t){var e=r.style,a=r.shape,n=TG[r.type],i={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&OA(r)||4;if(n&&!t.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&AG(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);n[0](a,i,c)}else{var f=!r.path||r.shapeChanged();r.path||r.createPathProxy();var v=r.path;f&&(v.beginPath(),r.buildPath(v,r.shape),r.pathUpdated());var d=v.getVersion(),h=r,g=h.__svgPathBuilder;(h.__svgPathVersion!==d||!g||l!==h.__svgPathStrokePercent)&&(g||(g=h.__svgPathBuilder=new qL),g.reset(u),v.rebuildPath(g,l),g.generateStr(),h.__svgPathVersion=d,h.__svgPathStrokePercent=l),i.d=g.getStr()}return q1(i,r.transform),j1(i,e,r,t),X1(i,r),t.animation&&kh(r,i,t),t.emphasis&&MG(r,i,t),He(s,r.id+"",i)}function DG(r,t){var e=r.style,a=e.image;if(a&&!ft(a)&&(rk(a)?a=a.src:ak(a)&&(a=a.toDataURL())),!!a){var n=e.x||0,i=e.y||0,o=e.width,s=e.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),q1(l,r.transform),j1(l,e,r,t),X1(l,r),t.animation&&kh(r,l,t),He("image",r.id+"",l)}}function LG(r,t){var e=r.style,a=e.text;if(a!=null&&(a+=""),!(!a||isNaN(e.x)||isNaN(e.y))){var n=e.font||Ti,i=e.x||0,o=Z6(e.y||0,ah(n),e.textBaseline),s=W6[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(dD(e)){var u="",c=e.fontStyle,f=vD(e.fontSize);if(!parseFloat(f))return;var v=e.fontFamily||vA,d=e.fontWeight;u+="font-size:"+f+";font-family:"+v+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),d&&d!=="normal"&&(u+="font-weight:"+d+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),q1(l,r.transform),j1(l,e,r,t),X1(l,r),t.animation&&kh(r,l,t),He("text",r.id+"",l,void 0,a)}}function OS(r,t){if(r instanceof Vt)return nk(r,t);if(r instanceof Xe)return DG(r,t);if(r instanceof rl)return LG(r,t)}function kG(r,t,e){var a=r.style;if(Y6(a)){var n=U6(r),i=e.shadowCache,o=i[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=a.shadowOffsetX||0,f=a.shadowOffsetY||0,v=a.shadowBlur,d=rc(a.shadowColor),h=d.opacity,g=d.color,m=v/2/l,y=v/2/u,_=m+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=He("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[He("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:_,"flood-color":g,"flood-opacity":h})]),i[n]=o}t.filter=rh(o)}}function ik(r,t,e,a){var n=r[e],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(EA(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(NA(n))i="radialGradient",o.cx=At(n.x,.5),o.cy=At(n.y,.5),o.r=At(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Um(s[u].offset)*100+"%",v=s[u].color,d=rc(v),h=d.color,g=d.opacity,m={offset:f};m["stop-color"]=h,g<1&&(m["stop-opacity"]=g),l.push(He("stop",u+"",m))}var y=He(i,"",o,l),_=U1(y),b=a.gradientCache,x=b[_];x||(x=a.zrId+"-g"+a.gradientIdx++,b[_]=x,o.id=x,a.defs[x]=He(i,x,o,l)),t[e]=rh(x)}function ok(r,t,e,a){var n=r.style[e],i=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(RA(n)){var v=n.imageWidth,d=n.imageHeight,h=void 0,g=n.image;if(ft(g)?h=g:rk(g)?h=g.src:ak(g)&&(h=g.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";wr(v,m),wr(d,m)}else if(v==null||d==null){var y=function(T,D){if(T){var E=T.elm,R=v||D.width,k=d||D.height;T.tag==="pattern"&&(u?(k=1,R/=i.width):c&&(R=1,k/=i.height)),T.attrs.width=R,T.attrs.height=k,E&&(E.setAttribute("width",R),E.setAttribute("height",k))}},_=o1(h,null,r,function(T){l||y(S,T),y(f,T)});_&&_.width&&_.height&&(v=v||_.width,d=d||_.height)}f=He("image","img",{href:h,width:v,height:d}),o.width=v,o.height=d}else n.svgElement&&(f=Mt(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(f){var b,x;l?b=x=1:u?(x=1,b=o.width/i.width):c?(b=1,x=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),x!=null&&!isNaN(x)&&(o.height=x);var w=zA(n);w&&(o.patternTransform=w);var S=He("pattern","",o,[f]),M=U1(S),C=a.patternCache,I=C[M];I||(I=a.zrId+"-p"+a.patternIdx++,C[M]=I,o.id=I,S=a.defs[I]=He("pattern",I,o,[f])),t[e]=rh(I)}}function PG(r,t,e){var a=e.clipPathCache,n=e.defs,i=a[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=He("clipPath",i,o,[nk(r,e)])}t["clip-path"]=rh(i)}function zS(r){return document.createTextNode(r)}function xo(r,t,e){r.insertBefore(t,e)}function BS(r,t){r.removeChild(t)}function VS(r,t){r.appendChild(t)}function sk(r){return r.parentNode}function lk(r){return r.nextSibling}function ug(r,t){r.textContent=t}var GS=58,RG=120,EG=He("","");function $y(r){return r===void 0}function ja(r){return r!==void 0}function NG(r,t,e){for(var a={},n=t;n<=e;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function gu(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function gc(r){var t,e=r.children,a=r.tag;if(ja(a)){var n=r.elm=QL(a);if(K1(EG,r),K(e))for(t=0;t<e.length;++t){var i=e[t];i!=null&&VS(n,gc(i))}else ja(r.text)&&!St(r.text)&&VS(n,zS(r.text))}else r.elm=zS(r.text);return r.elm}function uk(r,t,e,a,n){for(;a<=n;++a){var i=e[a];i!=null&&xo(r,gc(i),t)}}function bd(r,t,e,a){for(;e<=a;++e){var n=t[e];if(n!=null)if(ja(n.tag)){var i=sk(n.elm);BS(i,n.elm)}else BS(r,n.elm)}}function K1(r,t){var e,a=t.elm,n=r&&r.attrs||{},i=t.attrs||{};if(n!==i){for(e in i){var o=i[e],s=n[e];s!==o&&(o===!0?a.setAttribute(e,""):o===!1?a.removeAttribute(e):e==="style"?a.style.cssText=o:e.charCodeAt(0)!==RG?a.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?a.setAttributeNS(hG,e,o):e.charCodeAt(3)===GS?a.setAttributeNS(pG,e,o):e.charCodeAt(5)===GS?a.setAttributeNS(JL,e,o):a.setAttribute(e,o))}for(e in n)e in i||a.removeAttribute(e)}}function $G(r,t,e){for(var a=0,n=0,i=t.length-1,o=t[0],s=t[i],l=e.length-1,u=e[0],c=e[l],f,v,d,h;a<=i&&n<=l;)o==null?o=t[++a]:s==null?s=t[--i]:u==null?u=e[++n]:c==null?c=e[--l]:gu(o,u)?(Rs(o,u),o=t[++a],u=e[++n]):gu(s,c)?(Rs(s,c),s=t[--i],c=e[--l]):gu(o,c)?(Rs(o,c),xo(r,o.elm,lk(s.elm)),o=t[++a],c=e[--l]):gu(s,u)?(Rs(s,u),xo(r,s.elm,o.elm),s=t[--i],u=e[++n]):($y(f)&&(f=NG(t,a,i)),v=f[u.key],$y(v)?xo(r,gc(u),o.elm):(d=t[v],d.tag!==u.tag?xo(r,gc(u),o.elm):(Rs(d,u),t[v]=void 0,xo(r,d.elm,o.elm))),u=e[++n]);(a<=i||n<=l)&&(a>i?(h=e[l+1]==null?null:e[l+1].elm,uk(r,h,e,n,l)):bd(r,t,a,i))}function Rs(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(K1(r,t),$y(t.text)?ja(a)&&ja(n)?a!==n&&$G(e,a,n):ja(n)?(ja(r.text)&&ug(e,""),uk(e,null,n,0,n.length-1)):ja(a)?bd(e,a,0,a.length-1):ja(r.text)&&ug(e,""):r.text!==t.text&&(ja(a)&&bd(e,a,0,a.length-1),ug(e,t.text)))}function OG(r,t){if(gu(r,t))Rs(r,t);else{var e=r.elm,a=sk(e);gc(t),a!==null&&(xo(a,t.elm,lk(e)),bd(a,[r],0,0))}return t}var zG=0,BG=function(){function r(t,e,a){if(this.type="svg",this.refreshHover=FS(),this.configLayer=FS(),this.storage=e,this._opts=a=Y({},a),this.root=t,this._id="zr"+zG++,this._oldVNode=LS(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=QL("svg");K1(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.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",OG(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return OS(t,Ny(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=Ny(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=VG(a,n,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=He("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=Q(Ut(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(He("defs","defs",{},u)),t.animation){var c=yG(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=He("style","stl",{},[],c);o.push(f)}}return LS(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},U1(this.renderToVNode({animation:At(t.cssAnimation,!0),emphasis:At(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:At(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,a){for(var n=t.length,i=[],o=0,s,l,u=0,c=0;c<n;c++){var f=t[c];if(!f.invisible){var v=f.__clipPaths,d=v&&v.length||0,h=l&&l.length||0,g=void 0;for(g=Math.max(d-1,h-1);g>=0&&!(v&&l&&v[g]===l[g]);g--);for(var m=h-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y<d;y++){var _={};PG(v[y],_,e);var b=He("g","clip-g-"+u++,_,[]);(s?s.children:a).push(b),i[o++]=b,s=b}l=v;var x=OS(f,e);x&&(s?s.children:a).push(x)}}},r.prototype.resize=function(t,e){var a=this._opts,n=this.root,i=this._viewport;if(t!=null&&(a.width=t),e!=null&&(a.height=e),n&&i&&(i.style.display="none",t=zs(n,0,a),e=zs(n,1,a),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(t1(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),a="data:image/svg+xml;";return t?(e=X6(e),e&&a+"base64,"+e):a+"charset=UTF-8,"+encodeURIComponent(e)},r}();function FS(r){return function(){}}function VG(r,t,e,a){var n;if(e&&e!=="none")if(n=He("rect","bg",{width:r,height:t,x:"0",y:"0"}),$A(e))ik({fill:e},n.attrs,"fill",a);else if(t1(e))ok({style:{fill:e},dirty:Re,getBoundingRect:function(){return{width:r,height:t}}},n.attrs,"fill",a);else{var i=rc(e),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function GG(r){r.registerPainter("svg",BG)}function HS(r,t,e){var a=Ai.createCanvas(),n=t.getWidth(),i=t.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*e,a.height=i*e,a}var cg=function(r){G(t,r);function t(e,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||Kv,typeof e=="string"?o=HS(e,a,n):St(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(yA(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=HS("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Pt(0,0,0,0);function c(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var b=new Pt(0,0,0,0);b.copy(_),o.push(b)}else{for(var x=!1,w=1/0,S=0,M=0;M<o.length;++M){var C=o[M];if(C.intersect(_)){var I=new Pt(0,0,0,0);I.copy(C),I.union(_),o[M]=I,x=!0;break}else if(l){u.copy(_),u.union(C);var T=_.width*_.height,D=C.width*C.height,E=u.width*u.height,R=E-T-D;R<w&&(w=R,S=M)}}if(l&&(o[S].union(_),x=!0),!x){var b=new Pt(0,0,0,0);b.copy(_),o.push(b)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var v=e[f];if(v){var d=v.shouldBePainted(n,i,!0,!0),h=v.__isRendered&&(v.__dirty&nn||!d)?v.getPrevPaintRect():null;h&&c(h);var g=d&&(v.__dirty&nn||!v.__isRendered)?v.getPaintRect():null;g&&c(g)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var v=a[f],d=v&&v.shouldBePainted(n,i,!0,!0);if(v&&(!d||!v.__zr)&&v.__isRendered){var h=v.getPrevPaintRect();h&&c(h)}}var m;do{m=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(m=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=a+"px"),i.width=e*n,i.height=a*n,s&&(s.width=e*n,s.height=a*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!e,c=this.lastFrameAlpha,f=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var d=this.domBack;function h(g,m,y,_){if(o.clearRect(g,m,y,_),a&&a!=="transparent"){var b=void 0;if(Qd(a)){var x=a.global||a.__width===y&&a.__height===_;b=x&&a.__canvasGradient||Cy(o,a,{x:0,y:0,width:y,height:_}),a.__canvasGradient=b,a.__width=y,a.__height=_}else r6(a)&&(a.scaleX=a.scaleX||f,a.scaleY=a.scaleY||f,b=Iy(o,a,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=b||a,o.fillRect(g,m,y,_),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(d,g,m,y,_),o.restore())}!n||u?h(0,0,s,l):n.length&&A(n,function(g){h(g.x*f,g.y*f,g.width*f,g.height*f)})},t}(da),WS=1e5,uo=314159,zf=.01,FG=.001;function HG(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function WG(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var ZG=function(){function r(t,e,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=a=Y({},a||{}),this.dpr=a.devicePixelRatio||Kv,this._singleCanvas=i,this.root=t;var o=t.style;o&&(yA(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=t,f=c.width,v=c.height;a.width!=null&&(f=a.width),a.height!=null&&(v=a.height),this.dpr=a.devicePixelRatio||1,c.width=f*this.dpr,c.height=v*this.dpr,this._width=f,this._height=v;var d=new cg(c,this,this.dpr);d.__builtin__=!0,d.initContext(),l[uo]=d,d.zlevel=uo,s.push(uo),this._domRoot=t}else{this._width=zs(t,0,a),this._height=zs(t,1,a);var u=this._domRoot=WG(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,a,t,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,a=this._hoverlayer;if(a&&a.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<e;o++){var s=t[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(WS)),i||(i=a.ctx,i.save()),Lo(i,s,n,o===e-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(WS)},r.prototype.paintOne=function(t,e){j5(t,e)},r.prototype._paintList=function(t,e,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,a),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Yv(function(){l._paintList(t,e,a,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(uo).ctx,e=this._domRoot.width,a=this._domRoot.height;t.clearRect(0,0,e,a),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,a)})},r.prototype._doPaintList=function(t,e,a){for(var n=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||a)&&i.push(u)}for(var c=!0,f=!1,v=function(g){var m=i[g],y=m.ctx,_=o&&m.createRepaintRects(t,e,d._width,d._height),b=a?m.__startIndex:m.__drawIndex,x=!a&&m.incremental&&Date.now,w=x&&Date.now(),S=m.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,S,_);else if(b===m.__startIndex){var M=t[b];(!M.incremental||!M.notClear||a)&&m.clear(!1,S,_)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=m.__startIndex);var C,I=function(R){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=b;C<m.__endIndex;C++){var N=t[C];if(N.__inHover&&(f=!0),n._doPaintEl(N,m,o,R,k,C===m.__endIndex-1),x){var O=Date.now()-w;if(O>15)break}}k.prevElClipPaths&&y.restore()};if(_)if(_.length===0)C=m.__endIndex;else for(var T=d.dpr,D=0;D<_.length;++D){var E=_[D];y.save(),y.beginPath(),y.rect(E.x*T,E.y*T,E.width*T,E.height*T),y.clip(),I(E),y.restore()}else y.save(),I(),y.restore();m.__drawIndex=C,m.__drawIndex<m.__endIndex&&(c=!1)},d=this,h=0;h<i.length;h++)v(h);return Gt.wxa&&A(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:f}},r.prototype._doPaintEl=function(t,e,a,n,i,o){var s=e.ctx;if(a){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&(Lo(s,t,i,o),t.setPrevPaintRect(l))}else Lo(s,t,i,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=uo);var a=this._layers[t];return a||(a=new cg("zr_"+t,this,this.dpr),a.zlevel=t,a.__builtin__=!0,this._layerConfig[t]?Lt(a,this._layerConfig[t],!0):this._layerConfig[t-zf]&&Lt(a,this._layerConfig[t-zf],!0),e&&(a.virtual=e),this.insertLayer(t,a),a.initContext()),a},r.prototype.insertLayer=function(t,e){var a=this._layers,n=this._zlevelList,i=n.length,o=this._domRoot,s=null,l=-1;if(!a[t]&&HG(e)){if(i>0&&t>n[0]){for(l=0;l<i-1&&!(n[l]<t&&n[l+1]>t);l++);s=a[n[l]]}if(n.splice(l+1,0,t),a[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];t.call(e,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},r.prototype.eachOtherLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,v){f.__dirty=f.__used=!1});function e(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var a=1;a<t.length;a++){var n=t[a];if(n.zlevel!==t[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var n=t[l],u=n.zlevel,c=void 0;s!==u&&(s=u,o=0),n.incremental?(c=this.getLayer(u+FG,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?zf:0),this._needsManuallyCompositing),c.__builtin__||Y0("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,e(l),i=c),n.__dirty&nn&&!n.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(f,v){!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,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?Lt(a[t],e,!0):a[t]=e;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];if(i===t||i===t+zf){var o=this._layers[i];Lt(o,a[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,a=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],a.splice(Nt(a,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=zs(i,0,n),e=zs(i,1,n),a.style.display="",this._width!==t||e!==this._height){a.style.width=t+"px",a.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(uo).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[uo].dom;var e=new cg("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var a=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height;this.eachLayer(function(f){f.__builtin__?a.drawImage(f.dom,0,0,n,i):f.renderToCanvas&&(a.save(),f.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Lo(a,c,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function ck(r){r.registerPainter("canvas",ZG)}var YG=function(r){G(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){return jn(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new It,n=$e("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=$e(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},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}(xe);function sl(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=nl(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(nl(r,t,e[o]));return i.join(" ")}}function fk(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!K(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var Zc=function(r){G(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=$e(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=UG,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Bn(this.childAt(0))},t.prototype.downplay=function(){Vn(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,f)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):ee(v,d,s,a),Aa(v)}if(this._updateCommon(e,a,l,n,i),u){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Me(v,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,v,d,h,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,v=i.focus,d=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,h=i.emphasisDisabled),!i||e.hasItemOption){var _=i&&i.itemModel?i.itemModel:e.getItemModel(a),b=_.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=_.getModel(["select","itemStyle"]).getItemStyle(),c=_.getModel(["blur","itemStyle"]).getItemStyle(),v=b.get("focus"),d=b.get("blurScope"),h=b.get("disabled"),g=Ze(_),m=b.getShallow("scale"),y=_.getShallow("cursor")}var x=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=rs(e.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var S=e.getItemVisual(a,"style"),M=S.fill;if(s instanceof Xe){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(Y({},S)):s.useStyle(S),s.style.decal=null,s.setColor(M,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var I=e.getItemVisual(a,"liftZ"),T=this._z2;I!=null?T==null&&(this._z2=s.z2,s.z2+=I):T!=null&&(s.z2=T,this._z2=null);var D=o&&o.useNameLabel;Qe(s,g,{labelFetcher:l,labelDataIndex:a,defaultText:E,inheritColor:M,defaultOpacity:S.opacity});function E(N){return D?e.getName(N):sl(e,N)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*k,R.scaleY=this._sizeY*k,this.setSymbolScale(1),Le(this,v,d,h)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=Tt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Li(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Li(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Il(e.getItemVisual(a,"symbolSize"))},t}(It);function UG(r,t){this.parent.drift(r,t)}function fg(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function ZS(r){return r!=null&&!St(r)&&(r={isIgnore:r}),r||{}}function YS(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:Ze(t),cursorStyle:t.get("cursor")}}var Yc=function(){function r(t){this.group=new It,this._SymbolCtor=t||Zc}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=ZS(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=YS(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||a.removeAll(),t.diff(i).add(function(f){var v=c(f);if(fg(t,v,f,e)){var d=new o(t,f,l,u);d.setPosition(v),t.setItemGraphicEl(f,d),a.add(d)}}).update(function(f,v){var d=i.getItemGraphicEl(v),h=c(f);if(!fg(t,h,f,e)){a.remove(d);return}var g=t.getItemVisual(f,"symbol")||"circle",m=d&&d.getSymbolType&&d.getSymbolType();if(!d||m&&m!==g)a.remove(d),d=new o(t,f,l,u),d.setPosition(h);else{d.updateData(t,f,l,u);var y={x:h[0],y:h[1]};s?d.attr(y):ee(d,y,n)}a.add(d),t.setItemGraphicEl(f,d)}).remove(function(f){var v=i.getItemGraphicEl(f);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=YS(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=ZS(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(fg(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Oi(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r}();function vk(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=jG(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=Q(r.dimensions,function(h){return t.mapDimension(h)}),v=!1,d=t.getCalculationInfo("stackResultDimension");return Pi(t,f[0])&&(v=!0,f[0]=d),Pi(t,f[1])&&(v=!0,f[1]=d),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function jG(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:Qt(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function dk(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function XG(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function qG(r,t,e,a,n,i,o,s){for(var l=XG(r,t),u=[],c=[],f=[],v=[],d=[],h=[],g=[],m=vk(n,t,o),y=r.getLayout("points")||[],_=t.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],w=!0,S=void 0,M=void 0;switch(x.cmd){case"=":S=x.idx*2,M=x.idx1*2;var C=y[S],I=y[S+1],T=_[M],D=_[M+1];(isNaN(C)||isNaN(I))&&(C=T,I=D),u.push(C,I),c.push(T,D),f.push(e[S],e[S+1]),v.push(a[M],a[M+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var E=x.idx,R=m.dataDimsForPoint,k=n.dataToPoint([t.get(R[0],E),t.get(R[1],E)]);M=E*2,u.push(k[0],k[1]),c.push(_[M],_[M+1]);var N=dk(m,n,t,E);f.push(N[0],N[1]),v.push(a[M],a[M+1]),g.push(t.getRawIndex(E));break;case"-":w=!1}w&&(d.push(x),h.push(h.length))}h.sort(function(Ct,Wt){return g[Ct]-g[Wt]});for(var O=u.length,V=tn(O),B=tn(O),Z=tn(O),X=tn(O),et=[],b=0;b<h.length;b++){var it=h[b],yt=b*2,_t=it*2;V[yt]=u[_t],V[yt+1]=u[_t+1],B[yt]=c[_t],B[yt+1]=c[_t+1],Z[yt]=f[_t],Z[yt+1]=f[_t+1],X[yt]=v[_t],X[yt+1]=v[_t+1],et[b]=d[it]}return{current:V,next:B,stackedOnCurrent:Z,stackedOnNext:X,status:et}}var ri=Math.min,ai=Math.max;function Vo(r,t){return isNaN(r)||isNaN(t)}function Oy(r,t,e,a,n,i,o,s,l){for(var u,c,f,v,d,h,g=e,m=0;m<a;m++){var y=t[g*2],_=t[g*2+1];if(g>=n||g<0)break;if(Vo(y,_)){if(l){g+=i;continue}break}if(g===e)r[i>0?"moveTo":"lineTo"](y,_),f=y,v=_;else{var b=y-u,x=_-c;if(b*b+x*x<.5){g+=i;continue}if(o>0){for(var w=g+i,S=t[w*2],M=t[w*2+1];S===y&&M===_&&m<a;)m++,w+=i,g+=i,S=t[w*2],M=t[w*2+1],y=t[g*2],_=t[g*2+1],b=y-u,x=_-c;var C=m+1;if(l)for(;Vo(S,M)&&C<a;)C++,w+=i,S=t[w*2],M=t[w*2+1];var I=.5,T=0,D=0,E=void 0,R=void 0;if(C>=a||Vo(S,M))d=y,h=_;else{T=S-u,D=M-c;var k=y-u,N=S-y,O=_-c,V=M-_,B=void 0,Z=void 0;if(s==="x"){B=Math.abs(k),Z=Math.abs(N);var X=T>0?1:-1;d=y-X*B*o,h=_,E=y+X*Z*o,R=_}else if(s==="y"){B=Math.abs(O),Z=Math.abs(V);var et=D>0?1:-1;d=y,h=_-et*B*o,E=y,R=_+et*Z*o}else B=Math.sqrt(k*k+O*O),Z=Math.sqrt(N*N+V*V),I=Z/(Z+B),d=y-T*o*(1-I),h=_-D*o*(1-I),E=y+T*o*I,R=_+D*o*I,E=ri(E,ai(S,y)),R=ri(R,ai(M,_)),E=ai(E,ri(S,y)),R=ai(R,ri(M,_)),T=E-y,D=R-_,d=y-T*B/Z,h=_-D*B/Z,d=ri(d,ai(u,y)),h=ri(h,ai(c,_)),d=ai(d,ri(u,y)),h=ai(h,ri(c,_)),T=y-d,D=_-h,E=y+T*Z/B,R=_+D*Z/B}r.bezierCurveTo(f,v,d,h,y,_),f=E,v=R}else r.lineTo(y,_)}u=y,c=_,g+=i}return m}var hk=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),KG=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hk},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Vo(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Vo(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Oy(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=dn.CMD,s,l,u=a==="x",c=[],f=0;f<i.length;){var v=i[f++],d=void 0,h=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0;switch(v){case o.M:s=i[f++],l=i[f++];break;case o.L:if(d=i[f++],h=i[f++],b=u?(e-s)/(d-s):(e-l)/(h-l),b<=1&&b>=0){var x=u?(h-l)*b+l:(d-s)*b+s;return u?[e,x]:[x,e]}s=d,l=h;break;case o.C:d=i[f++],h=i[f++],g=i[f++],m=i[f++],y=i[f++],_=i[f++];var w=u?Uv(s,d,g,y,e,c):Uv(l,h,m,_,e,c);if(w>0)for(var S=0;S<w;S++){var M=c[S];if(M<=1&&M>=0){var x=u?Ge(l,h,m,_,M):Ge(s,d,g,y,M);return u?[e,x]:[x,e]}}s=y,l=_;break}}},t}(Vt),JG=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(hk),pk=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new JG},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Vo(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Vo(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Oy(e,n,o,s,s,1,a.smooth,l,a.connectNulls);Oy(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(Vt);function gk(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=e.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new Xt({shape:{x:o,y:s,width:l,height:u}});if(t){var v=r.getBaseAxis(),d=v.isHorizontal(),h=v.inverse;d?(h&&(f.shape.x+=l),f.shape.width=0):(h||(f.shape.y+=u),f.shape.height=0);var g=xt(n)?function(m){n(m,f)}:null;Me(f,{shape:{width:l,height:u,x:o,y:s}},e,null,a,g)}return f}function mk(r,t,e){var a=r.getArea(),n=ke(a.r0,1),i=ke(a.r,1),o=new Mr({shape:{cx:ke(r.cx,1),cy:ke(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Me(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function Uc(r,t,e,a,n){if(r){if(r.type==="polar")return mk(r,t,e);if(r.type==="cartesian2d")return gk(r,t,e,a,n)}else return null;return null}function ns(r,t){return r.type===t}function US(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function jS(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function XS(r,t){var e=jS(r),a=e[0],n=e[1],i=jS(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function qS(r){return Qt(r)?r:r?.5:0}function QG(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=tn(a*2),i=0;i<a;i++){var o=dk(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function ni(r,t,e,a,n){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],v=[];if(n){for(l=0;l<r.length;l+=2){var d=t||r;!isNaN(d[l])&&!isNaN(d[l+1])&&v.push(r[l],r[l+1])}r=v}for(l=0;l<r.length-2;l+=2)switch(f[0]=r[l+2],f[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),a){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var h=(c[o]+f[o])/2,g=[];u[o]=g[o]=h,u[1-o]=c[1-o],g[1-o]=f[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function t7(r,t){var e=[],a=r.length,n,i;function o(c,f,v){var d=c.coord,h=(v-d)/(f.coord-d),g=G6(h,[c.color,f.color]);return{coord:v,color:g}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function e7(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=Q(i.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var v=t7(u,n==="x"?e.getWidth():e.getHeight()),d=v.length;if(!d&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var h=10,g=v[0].coord-h,m=v[d-1].coord+h,y=m-g;if(y<.001)return"transparent";A(v,function(b){b.offset=(b.coord-g)/y}),v.push({offset:d?v[d-1].offset:.5,color:f[1]||"transparent"}),v.unshift({offset:d?v[0].offset:.5,color:f[0]||"transparent"});var _=new zc(0,0,0,0,v,!0);return _[n]=g,_[n+"2"]=m,_}}}function r7(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&a7(i,t))){var o=t.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function a7(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Zc.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function n7(r,t){return isNaN(r)||isNaN(t)}function i7(r){for(var t=r.length/2;t>0&&n7(r[t*2-2],r[t*2-1]);t--);return t-1}function KS(r,t){return[r[t*2],r[t*2+1]]}function o7(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function yk(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Sr.length;t++)if(r.get([Sr[t],"endLabel","show"]))return!0;return!1}function vg(r,t,e,a){if(ns(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=yk(a)?function(d,h){r._endLabelOnDuring(d,h,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),c=gk(t,e,a,function(){var d=r._endLabel;d&&e&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var f=c.shape,v=Math.max(f.width,f.height);u?(f.y-=v,f.height+=v*2):(f.x-=v,f.width+=v*2)}return l&&l(1,c),c}else return mk(t,e,a)}function s7(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var l7=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new It,a=new Yc;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=dt(this._changePolyState,this)},t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),c=s.getLayout("points")||[],f=i.type==="polar",v=this._coordSys,d=this._symbolDraw,h=this._polyline,g=this._polygon,m=this._lineGroup,y=!a.ssr&&e.get("animation"),_=!u.isEmpty(),b=u.get("origin"),x=vk(i,s,b),w=_&&QG(i,s,x),S=e.get("showSymbol"),M=e.get("connectNulls"),C=S&&!f&&r7(e,s,i),I=this._data;I&&I.eachItemGraphicEl(function(Ct,Wt){Ct.__temp&&(o.remove(Ct),I.setItemGraphicEl(Wt,null))}),S||d.remove(),o.add(m);var T=f?!1:e.get("step"),D;i&&i.getArea&&e.get("clip",!0)&&(D=i.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var E=e7(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(h&&v.type===i.type&&T===this._step))S&&d.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Ct){return[c[Ct*2],c[Ct*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,D),T&&(w&&(w=ni(w,c,i,T,M)),c=ni(c,null,i,T,M)),h=this._newPolyline(c),_?g=this._newPolygon(c,w):g&&(m.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(e,i,jo(E)),m.setClipPath(vg(this,i,!0,e));else{_&&!g?g=this._newPolygon(c,w):g&&!_&&(m.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(e,i,jo(E));var R=m.getClipPath();if(R){var k=vg(this,i,!1,e);Me(R,{shape:k.shape},e)}else m.setClipPath(vg(this,i,!0,e));S&&d.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Ct){return[c[Ct*2],c[Ct*2+1]]}}),(!US(this._stackedOnPoints,w)||!US(this._points,c))&&(y?this._doUpdateAnimation(s,w,i,n,T,b,M):(T&&(w&&(w=ni(w,c,i,T,M)),c=ni(c,null,i,T,M)),h.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:w})))}var N=e.getModel("emphasis"),O=N.get("focus"),V=N.get("blurScope"),B=N.get("disabled");if(h.useStyle(wt(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),Je(h,e,"lineStyle"),h.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Z=h.getState("emphasis").style;Z.lineWidth=+h.style.lineWidth+1}Tt(h).seriesIndex=e.seriesIndex,Le(h,O,V,B);var X=qS(e.get("smooth")),et=e.get("smoothMonotone");if(h.setShape({smooth:X,smoothMonotone:et,connectNulls:M}),g){var it=s.getCalculationInfo("stackedOnSeries"),yt=0;g.useStyle(wt(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),it&&(yt=qS(it.get("smooth"))),g.setShape({smooth:X,stackedOnSmooth:yt,smoothMonotone:et,connectNulls:M}),Je(g,e,"areaStyle"),Tt(g).seriesIndex=e.seriesIndex,Le(g,O,V,B)}var _t=this._changePolyState;s.eachItemGraphicEl(function(Ct){Ct&&(Ct.onHoverStateChange=_t)}),this._polyline.onHoverStateChange=_t,this._data=s,this._coordSys=i,this._stackedOnPoints=w,this._points=c,this._step=T,this._valueOrigin=b,e.get("triggerLineEvent")&&(this.packEventData(e,h),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,a){Tt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Zo(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var v=e.get("zlevel")||0,d=e.get("z")||0;u=new Zc(o,s),u.x=c,u.y=f,u.setZ(v,d);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=v,h.z=d,h.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ce.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Zo(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ce.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;td(this._polyline,e),a&&td(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new KG({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new pk({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");xt(c)&&(c=c(null));var f=u.get("animationDelay")||0,v=xt(f)?f(null):f;e.eachItemGraphicEl(function(d,h){var g=d;if(g){var m=[d.x,d.y],y=void 0,_=void 0,b=void 0;if(n)if(o){var x=n,w=a.pointToCoord(m);i?(y=x.startAngle,_=x.endAngle,b=-w[1]/180*Math.PI):(y=x.r0,_=x.r,b=w[0])}else{var S=n;i?(y=S.x,_=S.x+S.width,b=d.x):(y=S.y+S.height,_=S.y,b=d.y)}var M=_===y?0:(b-y)/(_-y);l&&(M=1-M);var C=xt(f)?f(h):c*M+v,I=g.getSymbolPath(),T=I.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:C}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(yk(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Kt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=i7(l);c>=0&&(Qe(s,Ze(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(f,v,d){return d!=null?fk(o,d):sl(o,f)},enableTextSetter:!0},s7(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=n.getLayout("points"),v=n.hostModel,d=v.get("connectNulls"),h=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),_=m.inverse,b=a.shape,x=_?y?b.x:b.y+b.height:y?b.x+b.width:b.y,w=(y?g:0)*(_?-1:1),S=(y?0:-g)*(_?-1:1),M=y?"x":"y",C=o7(f,x,M),I=C.range,T=I[1]-I[0],D=void 0;if(T>=1){if(T>1&&!d){var E=KS(f,I[0]);u.attr({x:E[0]+w,y:E[1]+S}),o&&(D=v.getRawValue(I[0]))}else{var E=c.getPointOn(x,M);E&&u.attr({x:E[0]+w,y:E[1]+S});var R=v.getRawValue(I[0]),k=v.getRawValue(I[1]);o&&(D=rD(n,h,R,k,C.t))}i.lastFrameIndex=I[0]}else{var N=e===1||i.lastFrameIndex>0?I[0]:0,E=KS(f,N);o&&(D=v.getRawValue(N)),u.attr({x:E[0]+w,y:E[1]+S})}if(o){var O=_l(u);typeof O.setLabelText=="function"&&O.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,v=qG(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),d=v.current,h=v.stackedOnCurrent,g=v.next,m=v.stackedOnNext;if(o&&(h=ni(v.stackedOnCurrent,v.current,n,o,l),d=ni(v.current,null,n,o,l),m=ni(v.stackedOnNext,v.next,n,o,l),g=ni(v.next,null,n,o,l)),XS(d,g)>3e3||c&&XS(h,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=v.current,u.shape.points=d;var y={shape:{points:g}};v.current!==d&&(y.shape.__points=v.next),u.stopAnimation(),ee(u,y,f),c&&(c.setShape({points:d,stackedOnPoints:h}),c.stopAnimation(),ee(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var _=[],b=v.status,x=0;x<b.length;x++){var w=b[x].cmd;if(w==="="){var S=e.getItemGraphicEl(b[x].idx1);S&&_.push({el:S,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var M=u.shape.__points,C=0;C<_.length;C++){var I=_[C].el,T=_[C].ptIdx*2;I.x=M[T],I.y=M[T+1],I.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ce);function jc(r,t){return{seriesType:r,plan:Ml(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(n){var s=Q(n.dimensions,function(d){return a.mapDimension(d)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Pi(a,s[0])&&(s[0]=u),Pi(a,s[1])&&(s[1]=u);var c=a.getStore(),f=a.getDimensionIndex(s[0]),v=a.getDimensionIndex(s[1]);return l&&{progress:function(d,h){for(var g=d.end-d.start,m=o&&tn(g*l),y=[],_=[],b=d.start,x=0;b<d.end;b++){var w=void 0;if(l===1){var S=c.get(f,b);w=n.dataToPoint(S,null,_)}else y[0]=c.get(f,b),y[1]=c.get(v,b),w=n.dataToPoint(y,null,_);o?(m[x++]=w[0],m[x++]=w[1]):h.setItemLayout(b,w.slice())}o&&h.setLayout("points",m)}}}}}}var u7={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},c7=function(r){return Math.round(r.length/2)};function _k(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=a.getDevicePixelRatio(),v=Math.abs(c[1]-c[0])*(f||1),d=Math.round(s/v);if(isFinite(d)&&d>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/d)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/d));var h=void 0;ft(i)?h=u7[i]:xt(i)&&(h=i),h&&t.setData(n.downSample(n.mapDimension(u.dim),1/d,h,c7))}}}}}function bk(r){r.registerChartView(l7),r.registerSeriesModel(YG),r.registerLayout(jc("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,_k("line"))}var mc=function(r){G(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,a){return jn(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(v,d){if(v.type==="category"&&a!=null){var h=v.getTicksCoords(),g=v.getTickModel().get("alignWithLabel"),m=o[d],y=a[d]==="x1"||a[d]==="y1";if(y&&!g&&(m+=1),h.length<2)return;if(h.length===2){s[d]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var _=void 0,b=void 0,x=1,w=0;w<h.length;w++){var S=h[w].coord,M=w===h.length-1?h[w-1].tickValue+x:h[w].tickValue;if(M===m){b=S;break}else if(M<m)_=S;else if(_!=null&&M>m){b=(S+_)/2;break}w===1&&(x=M-h[0].tickValue)}b==null&&(_?_&&(b=h[h.length-1].coord):b=h[0].coord),s[d]=v.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(xe);xe.registerClass(mc);var f7=function(r){G(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 jn(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"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=zi(mc.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}(mc),v7=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}(),xd=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new v7},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,f=a.endAngle,v=a.clockwise,d=Math.PI*2,h=v?f-c<d:c-f<d;h||(c=f-(v?d:-d));var g=Math.cos(c),m=Math.sin(c),y=Math.cos(f),_=Math.sin(f);h?(e.moveTo(g*o+n,m*o+i),e.arc(g*u+n,m*u+i,l,-Math.PI+c,c,!v)):e.moveTo(g*s+n,m*s+i),e.arc(n,i,s,c,f,!v),e.arc(y*u+n,_*u+i,l,f-Math.PI*2,f-Math.PI,!v),o!==0&&e.arc(n,i,o,f,c,v)},t}(Vt);function d7(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Jv(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,f=u.cy,v=u.r,d=u.r0,h=(v+d)/2,g=u.startAngle,m=u.endAngle,y=(g+m)/2,_=e?Math.abs(v-d)/2:0,b=Math.cos,x=Math.sin,w=c+v*b(g),S=f+v*x(g),M="left",C="top";switch(s){case"startArc":w=c+(d-l)*b(y),S=f+(d-l)*x(y),M="center",C="top";break;case"insideStartArc":w=c+(d+l)*b(y),S=f+(d+l)*x(y),M="center",C="bottom";break;case"startAngle":w=c+h*b(g)+Bf(g,l+_,!1),S=f+h*x(g)+Vf(g,l+_,!1),M="right",C="middle";break;case"insideStartAngle":w=c+h*b(g)+Bf(g,-l+_,!1),S=f+h*x(g)+Vf(g,-l+_,!1),M="left",C="middle";break;case"middle":w=c+h*b(y),S=f+h*x(y),M="center",C="middle";break;case"endArc":w=c+(v+l)*b(y),S=f+(v+l)*x(y),M="center",C="bottom";break;case"insideEndArc":w=c+(v-l)*b(y),S=f+(v-l)*x(y),M="center",C="top";break;case"endAngle":w=c+h*b(m)+Bf(m,l+_,!0),S=f+h*x(m)+Vf(m,l+_,!0),M="left",C="middle";break;case"insideEndAngle":w=c+h*b(m)+Bf(m,-l+_,!0),S=f+h*x(m)+Vf(m,-l+_,!0),M="right",C="middle";break;default:return Jv(a,n,i)}return a=a||{},a.x=w,a.y=S,a.align=M,a.verticalAlign=C,a}}function h7(r,t,e,a){if(Qt(a)){r.setTextConfig({rotation:a});return}else if(K(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function Bf(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Vf(r,t,e){return t*Math.cos(r)*(e?1:-1)}function ko(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;K(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Q(a,function(i){return Ta(i,n)})}}var dg=Math.max,hg=Math.min;function p7(r,t){var e=r.getArea&&r.getArea();if(ns(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var g7=function(r){G(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){Oi(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var v=e.isAnimationEnabled()?e:null,d=m7(e,u);d&&this._enableRealtimeSort(d,s,n);var h=e.get("clip",!0)||d,g=p7(u,s);o.removeClipPath();var m=e.get("roundCap",!0),y=e.get("showBackground",!0),_=e.getModel("backgroundStyle"),b=_.get("borderRadius")||0,x=[],w=this._backgroundEls,S=i&&i.isInitSort,M=i&&i.type==="changeAxisOrder";function C(D){var E=Gf[u.type](s,D),R=M7(u,f,E);return R.useStyle(_.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",b):R.setShape("cornerRadius",b),x[D]=R,R}s.diff(l).add(function(D){var E=s.getItemModel(D),R=Gf[u.type](s,D,E);if(y&&C(D),!(!s.hasValue(D)||!r2[u.type](R))){var k=!1;h&&(k=JS[u.type](g,R));var N=QS[u.type](e,s,D,R,f,v,c.model,!1,m);d&&(N.forceLabelAnimation=!0),a2(N,s,D,E,R,e,f,u.type==="polar"),S?N.attr({shape:R}):d?t2(d,v,N,R,D,f,!1,!1):Me(N,{shape:R},e,D),s.setItemGraphicEl(D,N),o.add(N),N.ignore=k}}).update(function(D,E){var R=s.getItemModel(D),k=Gf[u.type](s,D,R);if(y){var N=void 0;w.length===0?N=C(E):(N=w[E],N.useStyle(_.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",b):N.setShape("cornerRadius",b),x[D]=N);var O=Gf[u.type](s,D),V=wk(f,O,u);ee(N,{shape:V},v,D)}var B=l.getItemGraphicEl(E);if(!s.hasValue(D)||!r2[u.type](k)){o.remove(B);return}var Z=!1;if(h&&(Z=JS[u.type](g,k),Z&&o.remove(B)),B?Aa(B):B=QS[u.type](e,s,D,k,f,v,c.model,!!B,m),d&&(B.forceLabelAnimation=!0),M){var X=B.getTextContent();if(X){var et=_l(X);et.prevValue!=null&&(et.prevValue=et.value)}}else a2(B,s,D,R,k,e,f,u.type==="polar");S?B.attr({shape:k}):d?t2(d,v,B,k,D,f,!0,M):ee(B,{shape:k},e,D,null),s.setItemGraphicEl(D,B),B.ignore=Z,o.add(B)}).remove(function(D){var E=l.getItemGraphicEl(D);E&&sc(E,e,D)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new It);I.removeAll();for(var T=0;T<x.length;++T)I.add(x[T]);o.add(I),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),i2(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),i2(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&Uc(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Q(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:a(e.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){sc(i,e,Tt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ce),JS={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=dg(t.x,r.x),s=hg(t.x+t.width,n),l=dg(t.y,r.y),u=hg(t.y+t.height,i),c=s<o,f=u<l;return t.x=c&&o>n?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=hg(t.r,r.r),i=dg(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},QS={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new Xt({shape:Y({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=n?"height":"width";c[f]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?xd:Mr,c=new u({shape:a,z2:1});c.name="item";var f=xk(n);if(c.calculateTextPosition=d7(f,{isRoundCap:u===xd}),i){var v=c.shape,d=n?"r":"endAngle",h={};v[d]=n?a.r0:a.startAngle,h[d]=a[d],(s?ee:Me)(c,{shape:h},i)}return c}};function m7(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function t2(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?ee:Me)(e,{shape:l},t,n,null);var c=t?r.baseAxis.model:null;(o?ee:Me)(e,{shape:u},c,n)}function e2(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var y7=["x","y","width","height"],_7=["cx","cy","r","startAngle","endAngle"],r2={cartesian2d:function(r){return!e2(r,y7)},polar:function(r){return!e2(r,_7)}},Gf={cartesian2d:function(r,t,e){var a=r.getItemLayout(t),n=e?x7(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function b7(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function xk(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function a2(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=ko(a.getModel("itemStyle"),c,!0);Y(c,f),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var d=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",h=Ze(a);Qe(r,h,{labelFetcher:i,labelDataIndex:e,defaultText:sl(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=r.getTextContent();if(s&&g){var m=a.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,h7(r,m==="outside"?d:m,xk(o),a.get(["label","rotate"]))}BD(g,h,i.getRawValue(e),function(_){return fk(t,_)});var y=a.getModel(["emphasis"]);Le(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Je(r,a),b7(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(_){_.style&&(_.style.fill=_.style.stroke="none")}))}function x7(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var w7=function(){function r(){}return r}(),n2=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new w7},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<n.length;c+=3)l[i]=u,l[o]=n[c+2],s[i]=n[c+i],s[o]=n[c+o],e.rect(s[0],s[1],l[0],l[1])},t}(Vt);function i2(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var c=new n2({shape:{points:u},incremental:!!a,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var f=new n2({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(n.getVisual("style")),f.style.stroke=null,Tt(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",o2),f.on("mousemove",o2)),e&&e.push(f)}var o2=P1(function(r){var t=this,e=S7(t,r.offsetX,r.offsetY);Tt(t).dataIndex=e>=0?e:null},30,!1);function S7(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c<f;c++){var v=c*3;if(l[a]=u,l[n]=i[v+2],s[a]=i[v+a],s[n]=i[v+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function wk(r,t,e){if(ns(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function M7(r,t,e){var a=r.type==="polar"?Mr:Xt;return new a({shape:wk(t,e,r),silent:!0,z2:0})}function Sk(r){r.registerChartView(g7),r.registerSeriesModel(f7),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Dt(CL,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,IL("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,_k("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var s2=Math.PI*2,Ff=Math.PI/180;function Mk(r,t){return Ve(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ck(r,t){var e=Mk(r,t),a=r.get("center"),n=r.get("radius");K(n)||(n=[0,n]);var i=lt(e.width,t.getWidth()),o=lt(e.height,t.getHeight()),s=Math.min(i,o),l=lt(n[0],s/2),u=lt(n[1],s/2),c,f,v=r.coordinateSystem;if(v){var d=v.dataToPoint(a);c=d[0]||0,f=d[1]||0}else K(a)||(a=[a,a]),c=lt(a[0],i)+e.x,f=lt(a[1],o)+e.y;return{cx:c,cy:f,r0:l,r:u}}function C7(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=Mk(a,e),s=Ck(a,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,v=-a.get("startAngle")*Ff,d=a.get("endAngle"),h=a.get("padAngle")*Ff;d=d==="auto"?v-s2:-d*Ff;var g=a.get("minAngle")*Ff,m=g+h,y=0;n.each(i,function(V){!isNaN(V)&&y++});var _=n.getSum(i),b=Math.PI/(_||y)*2,x=a.get("clockwise"),w=a.get("roseType"),S=a.get("stillShowZeroSum"),M=n.getDataExtent(i);M[0]=0;var C=x?1:-1,I=[v,d],T=C*h/2;s1(I,!x),v=I[0],d=I[1];var D=Ik(a);D.startAngle=v,D.endAngle=d,D.clockwise=x;var E=Math.abs(d-v),R=E,k=0,N=v;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(V,B){var Z;if(isNaN(V)){n.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:f,r:w?NaN:c});return}w!=="area"?Z=_===0&&S?b:V*b:Z=E/y,Z<m?(Z=m,R-=m):k+=V;var X=N+C*Z,et=0,it=0;h>Z?(et=N+C*Z/2,it=et):(et=N+T,it=X-T),n.setItemLayout(B,{angle:Z,startAngle:et,endAngle:it,clockwise:x,cx:l,cy:u,r0:f,r:w?oe(V,M,[f,c]):c}),N=X}),R<s2&&y)if(R<=.001){var O=E/y;n.each(i,function(V,B){if(!isNaN(V)){var Z=n.getItemLayout(B);Z.angle=O;var X=0,et=0;O<h?(X=v+C*(B+1/2)*O,et=X):(X=v+C*B*O+T,et=v+C*(B+1)*O-T),Z.startAngle=X,Z.endAngle=et}})}else b=R/k,N=v,n.each(i,function(V,B){if(!isNaN(V)){var Z=n.getItemLayout(B),X=Z.angle===m?m:V*b,et=0,it=0;X<h?(et=N+C*X/2,it=et):(et=N+T,it=N+C*X-T),Z.startAngle=et,Z.endAngle=it,N+=C*X}})})}var Ik=qt();function Xc(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var I7=Math.PI/180;function l2(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function c(g){for(var m=g.rB,y=m*m,_=0;_<g.list.length;_++){var b=g.list[_],x=Math.abs(b.label.y-e),w=a+b.len,S=w*w,M=Math.sqrt(Math.abs((1-x*x/y)*S)),C=t+(M+b.len2)*n,I=C-b.label.x,T=b.targetTextWidth-I*n;Tk(b,T,!0),b.label.x=C}}function f(g){for(var m={list:[],maxY:0},y={list:[],maxY:0},_=0;_<g.length;_++)if(g[_].labelAlignTo==="none"){var b=g[_],x=b.label.y>e?y:m,w=Math.abs(b.label.y-e);if(w>=x.maxY){var S=b.label.x-t-b.len2*n,M=a+b.len,C=Math.abs(S)<M?Math.sqrt(w*w/(1-S*S/M/M)):M;x.rB=C,x.maxY=w}x.list.push(b)}c(m),c(y)}for(var v=r.length,d=0;d<v;d++)if(r[d].position==="outer"&&r[d].labelAlignTo==="labelLine"){var h=r[d].label.x-u;r[d].linePoints[1][0]+=h,r[d].label.x=u}UL(r,l,l+o)&&f(r)}function T7(r,t,e,a,n,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,v=0;v<r.length;v++){var d=r[v].label;pg(r[v])||(d.x<t?(c=Math.min(c,d.x),l.push(r[v])):(f=Math.max(f,d.x),u.push(r[v])))}for(var v=0;v<r.length;v++){var h=r[v];if(!pg(h)&&h.linePoints){if(h.labelStyleWidth!=null)continue;var d=h.label,g=h.linePoints,m=void 0;h.labelAlignTo==="edge"?d.x<t?m=g[2][0]-h.labelDistance-o-h.edgeDistance:m=o+n-h.edgeDistance-g[2][0]-h.labelDistance:h.labelAlignTo==="labelLine"?d.x<t?m=c-o-h.bleedMargin:m=o+n-f-h.bleedMargin:d.x<t?m=d.x-o-h.bleedMargin:m=o+n-d.x-h.bleedMargin,h.targetTextWidth=m,Tk(h,m)}}l2(u,t,e,a,1,n,i,o,s,f),l2(l,t,e,a,-1,n,i,o,s,c);for(var v=0;v<r.length;v++){var h=r[v];if(!pg(h)&&h.linePoints){var d=h.label,g=h.linePoints,y=h.labelAlignTo==="edge",_=d.style.padding,b=_?_[1]+_[3]:0,x=d.style.backgroundColor?0:b,w=h.rect.width+x,S=g[1][0]-g[2][0];y?d.x<t?g[2][0]=o+h.edgeDistance+w+h.labelDistance:g[2][0]=o+n-h.edgeDistance-w-h.labelDistance:(d.x<t?g[2][0]=d.x+h.labelDistance:g[2][0]=d.x-h.labelDistance,g[1][0]=g[2][0]+S),g[1][1]=g[2][1]=d.y}}}function Tk(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,c=i.width+(o?0:l);if(t<c||e){var f=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var v=a.getBoundingRect();a.setStyle("width",Math.ceil(v.width)),a.setStyle("backgroundColor",o)}else{var d=t-l,h=t<c?d:e?d>r.unconstrainedWidth?null:d:null;a.setStyle("width",h)}var g=a.getBoundingRect();i.width=g.width;var m=(a.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-f)/2}}}function pg(r){return r.position==="center"}function A7(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*I7,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,v=s.height;function d(S){S.ignore=!0}function h(S){if(!S.ignore)return!0;for(var M in S.states)if(S.states[M].ignore===!1)return!0;return!1}t.each(function(S){var M=t.getItemGraphicEl(S),C=M.shape,I=M.getTextContent(),T=M.getTextGuideLine(),D=t.getItemModel(S),E=D.getModel("label"),R=E.get("position")||D.get(["emphasis","label","position"]),k=E.get("distanceToLabelLine"),N=E.get("alignTo"),O=lt(E.get("edgeDistance"),u),V=E.get("bleedMargin"),B=D.getModel("labelLine"),Z=B.get("length");Z=lt(Z,u);var X=B.get("length2");if(X=lt(X,u),Math.abs(C.endAngle-C.startAngle)<o){A(I.states,d),I.ignore=!0,T&&(A(T.states,d),T.ignore=!0);return}if(h(I)){var et=(C.startAngle+C.endAngle)/2,it=Math.cos(et),yt=Math.sin(et),_t,Ct,Wt,q;a=C.cx,n=C.cy;var rt=R==="inside"||R==="inner";if(R==="center")_t=C.cx,Ct=C.cy,q="center";else{var j=(rt?(C.r+C.r0)/2*it:C.r*it)+a,ot=(rt?(C.r+C.r0)/2*yt:C.r*yt)+n;if(_t=j+it*3,Ct=ot+yt*3,!rt){var st=j+it*(Z+l-C.r),$=ot+yt*(Z+l-C.r),z=st+(it<0?-1:1)*X,F=$;N==="edge"?_t=it<0?c+O:c+u-O:_t=z+(it<0?-k:k),Ct=F,Wt=[[j,ot],[st,$],[z,F]]}q=rt?"center":N==="edge"?it>0?"right":"left":it>0?"left":"right"}var U=Math.PI,J=0,tt=E.get("rotate");if(Qt(tt))J=tt*(U/180);else if(R==="center")J=0;else if(tt==="radial"||tt===!0){var pt=it<0?-et+U:-et;J=pt}else if(tt==="tangential"&&R!=="outside"&&R!=="outer"){var vt=Math.atan2(it,yt);vt<0&&(vt=U*2+vt);var ht=yt>0;ht&&(vt=U+vt),J=vt-U}if(i=!!J,I.x=_t,I.y=Ct,I.rotation=J,I.setStyle({verticalAlign:"middle"}),rt){I.setStyle({align:q});var bt=I.states.select;bt&&(bt.x+=I.x,bt.y+=I.y)}else{var ut=I.getBoundingRect().clone();ut.applyTransform(I.getComputedTransform());var Rt=(I.style.margin||0)+2.1;ut.y-=Rt/2,ut.height+=Rt,e.push({label:I,labelLine:T,position:R,len:Z,len2:X,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new kt(it,yt),linePoints:Wt,textAlign:q,labelDistance:k,labelAlignTo:N,edgeDistance:O,bleedMargin:V,rect:ut,unconstrainedWidth:ut.width,labelStyleWidth:I.style.width})}M.setTextConfig({inside:rt})}}),!i&&r.get("avoidLabelOverlap")&&T7(e,a,n,l,u,v,c,f);for(var g=0;g<e.length;g++){var m=e[g],y=m.label,_=m.labelLine,b=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:m.textAlign}),b&&(A(y.states,d),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(_){var w=m.linePoints;b||!w?(A(_.states,d),_.ignore=!0):(WL(w,m.minTurnAngle),tG(w,m.surfaceNormal,m.maxSurfaceAngle),_.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new kt(w[0][0],w[0][1])})}}}var D7=function(r){G(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new Kt;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),c=e.getItemLayout(a),f=Y(ko(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var v=s.getShallow("animationType");s.ecModel.ssr?(Me(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):v==="scale"?(o.shape.r=c.r0,Me(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Me(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,ee(o,{shape:{endAngle:c.endAngle}},s,a))}else Aa(o),ee(o,{shape:f},s,a);o.useStyle(e.getItemVisual(a,"style")),Je(o,l);var d=(c.startAngle+c.endAngle)/2,h=s.get("selectedOffset"),g=Math.cos(d)*h,m=Math.sin(d)*h,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=Y({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},ko(u.getModel("itemStyle"),c)),Y(o.ensureState("select"),{x:g,y:m,shape:ko(l.getModel(["select","itemStyle"]),c)}),Y(o.ensureState("blur"),{shape:ko(l.getModel(["blur","itemStyle"]),c)});var _=o.getTextGuideLine(),b=o.getTextContent();_&&Y(_.ensureState("select"),{x:g,y:m}),Y(b.ensureState("select"),{x:g,y:m}),Le(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;Qe(i,Ze(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var v=e.get(["label","position"]);if(v!=="outside"&&v!=="outer")i.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Ir,this.setTextGuideLine(d)),W1(this,Z1(o),{stroke:u,opacity:an(s.get(["lineStyle","opacity"]),c,1)})}},t}(Mr),L7=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var v=Ik(e),d=new Mr({shape:Y(Ck(e,n),v)});d.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var g=new D7(o,h,u);o.setItemGraphicEl(h,g),l.add(g)}).update(function(h,g){var m=s.getItemGraphicEl(g);m.updateData(o,h,u),m.off("click"),l.add(m),o.setItemGraphicEl(h,m)}).remove(function(h){var g=s.getItemGraphicEl(h);sc(g,e,h)}).execute(),A7(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(ce);function Al(r,t,e){t=K(t)&&{coordDimensions:t}||Y({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=Hc(a,t).dimensions,i=new br(n,r);return i.initData(a,e),i}var qc=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 a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}(),k7=qt(),P7=function(r){G(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 qc(dt(this.getData,this),dt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Al(this,{coordDimensions:["value"],encodeDefaulter:Dt(M1,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=k7(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=I9(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Wo(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.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}(xe);function R7(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Qt(o)&&!isNaN(o)&&o<0)})}}}function Ak(r){r.registerChartView(L7),r.registerSeriesModel(P7),Z5("pie",r.registerAction),r.registerLayout(Dt(C7,"pie")),r.registerProcessor(Xc("pie")),r.registerProcessor(R7("pie"))}var E7=function(r){G(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,a){return jn(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,a,n){return n.point(a.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}(xe),Dk=4,N7=function(){function r(){}return r}(),$7=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new N7},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<Dk,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<n.length;){var v=n[f++],d=n[f++];isNaN(v)||isNaN(d)||c&&!c.contain(v,d)||(s.x=v-i[0]/2,s.y=d-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,a=e.points,n=e.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,v=i[c+1]-l/2;if(e>=f&&a>=v&&e<=f+s&&a<=v+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,v=0;v<n.length;){var d=n[v++],h=n[v++];l=Math.min(d,l),c=Math.max(d,c),u=Math.min(h,u),f=Math.max(h,f)}e=this._rect=new Pt(l-o/2,u-s/2,c-l+o,f-u+s)}return e},t}(Vt),O7=function(){function r(){this.group=new It}return r.prototype.updateData=function(t,e){this._clear();var a=this._create();a.setShape({points:t.getLayout("points")}),this._setCommon(a,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;e=new Float32Array(e.buffer,i,n)}a.setShape("points",e),a.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,a){var n=this._newAdded[0],i=e.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=t.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,a)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new $7({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;a=a||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=a.clipShape||null,t.symbolProxy=$e(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Dk;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Tt(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),z7=function(r){G(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,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=jc("").reset(e,a,n);o.progress&&o.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 a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new O7:new Yc,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ce),B7=function(r){G(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}(Yt),zy=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ne).models[0]},t.type="cartesian2dAxis",t}(Yt);Oe(zy,Wc);var Lk={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},V7=Lt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Lk),J1=Lt({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}}},Lk),G7=Lt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},J1),F7=wt({logBase:10},J1);const kk={category:V7,value:J1,time:G7,log:F7};var H7={value:1,category:1,time:1,log:1};function ll(r,t,e,a){A(H7,function(n,i){var o=Lt(Lt({},kk[i],!0),a,!0),s=function(l){G(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var v=uc(this),d=v?wl(c):{},h=f.getTheme();Lt(c,h.get(i+"Axis")),Lt(c,this.getDefaultOption()),c.type=u2(c),v&&ki(c,d,v)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=ky.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",u2)}function u2(r){return r.type||(r.data?"category":"value")}var W7=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 Q(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ne(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}(),By=["x","y"];function c2(r){return r.type==="interval"||r.type==="time"}var Z7=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=By,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!c2(e)||!c2(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,v=o[0]-n[0]*c,d=o[1]-i[0]*f,h=this._transform=[c,0,0,f,v,d];this._invTransform=pl([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.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,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new Pt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ke(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var n=[];if(this._invTransform)return Ke(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new Pt(i,o,s,l)},t}(W7),Y7=function(r){G(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(La);function Vy(r,t,e){e=e||{};var a=r.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,c=a.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],v={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,h=u==="x"?[f[2]-d,f[3]+d]:[f[0]-d,f[1]+d];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));h[v.onZero]=Math.max(Math.min(g,h[1]),h[0])}i.position=[u==="y"?h[v[l]]:f[0],u==="x"?h[v[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?h[v[s]]-h[v.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),je(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function f2(r){return r.get("coordinateSystem")==="cartesian2d"}function v2(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ne).models[0];t[a]=i}),t}var gg=Math.log;function Pk(r,t,e){var a=Fn.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=kL(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var v=gg(r.base);u=[gg(u[0])/v,gg(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var d=a.getExtent.call(r);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var h=a.getInterval.call(r),g=u[0],m=u[1];if(c&&f)h=(m-g)/o;else if(c)for(m=u[0]+h*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)h=eg(h),m=u[0]+h*o;else if(f)for(g=u[1]-h*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)h=eg(h),g=u[1]-h*o;else{var y=r.getTicks().length-1;y>o&&(h=eg(h));var _=h*o;m=Math.ceil(u[1]/h)*h,g=ke(m-_),g<0&&u[0]>=0?(g=0,m=ke(_)):m>0&&u[1]<=0&&(m=0,g=-ke(_))}var b=(n[0].value-i[0].value)/s,x=(n[o].value-i[o].value)/s;a.setExtent.call(r,g+h*b,m+h*x),a.setInterval.call(r,h),(b||x)&&a.setNiceExtent.call(r,g+h,m-h)}var U7=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=By,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Ut(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var v=+l[f],d=o[v],h=d.model,g=d.scale;Py(g)&&h.get("alignTicks")&&h.get("interval")==null?c.push(d):(ol(g,h),Py(g)&&(s=d))}c.length&&(s||(s=c.pop(),ol(s.scale,s.model)),A(c,function(m){Pk(m.scale,m.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){d2(a,"y",o,i)}),A(a.y,function(o){d2(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=t.getBoxLayoutParams(),i=!a&&t.get("containLabel"),o=Ve(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=k8(u);if(c){var f=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+v,u.position==="top"?o.y+=c.height+v:u.position==="left"&&(o.x+=c.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(f[v],f[1-v]),j7(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}St(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",Ne).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Ne).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,Nt(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(c,f){A(s.y,function(v,d){var h="x"+f+"y"+d,g=new Z7(h);g.master=n,g.model=t,n._coordsMap[h]=g,n._coordsList.push(g),g.addAxis(c),g.addAxis(v)})});function u(c){return function(f,v){if(mg(f,t)){var d=f.get("position");c==="x"?d!=="top"&&d!=="bottom"&&(d=o.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=o.left?"right":"left"),o[d]=!0;var h=new Y7(c,Lh(f),[0,0],f.get("type"),d),g=h.type==="category";h.onBand=g&&f.get("boundaryGap"),h.inverse=f.get("inverse"),f.axis=h,h.model=f,h.grid=i,h.index=v,i._axesList.push(h),s[c][v]=h,l[c]++}}}},r.prototype._updateScale=function(t,e){A(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(f2(n)){var i=v2(n),o=i.xAxisModel,s=i.yAxisModel;if(!mg(o,e)||!mg(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),c=l.getAxis("x"),f=l.getAxis("y");a(u,c),a(u,f)}},this);function a(n,i){A(md(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return A(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);Nt(e,i)<0&&e.push(i),Nt(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){if(f2(n)){var i=v2(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=By,r}();function mg(r,t){return r.getCoordSysModel()===t}function d2(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)h2(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&h2(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function h2(r){return r&&r.type!=="category"&&r.type!=="time"&&L8(r)}function j7(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}var _i=Math.PI,xr=function(){function r(t,e){this.group=new It,this.opt=e,this.axisModel=t,wt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new It({x:e.position[0],y:e.position[1],rotation:e.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(t){return!!p2[t]},r.prototype.add=function(t){p2[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,a){var n=UA(e-t),i,o;return ac(n)?(o=a>0?"top":"bottom",i="center"):ac(n-_i)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<_i?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),p2={axisLine:function(r,t,e,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Ke(s,s,o),Ke(l,l,o));var c=Y({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Fe({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});al(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var v=t.get(["axisLine","symbol"]);if(v!=null){var d=t.get(["axisLine","symbolSize"]);ft(v)&&(v=[v,v]),(ft(d)||Qt(d))&&(d=[d,d]);var h=rs(t.get(["axisLine","symbolOffset"])||0,d),g=d[0],m=d[1];A([{rotate:r.rotation+Math.PI/2,offset:h[0],r:0},{rotate:r.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,_){if(v[_]!=="none"&&v[_]!=null){var b=$e(v[_],-g/2,-m/2,g,m,c.stroke,!0),x=y.r+y.offset,w=u?l:s;b.attr({rotation:y.rotate,x:w[0]+x*Math.cos(r.rotation),y:w[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(b)}})}}},axisTickLabel:function(r,t,e,a){var n=K7(e,a,t,r),i=Q7(e,a,t,r);if(q7(t,i,n),J7(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=ZL(Q(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));jL(o)}},axisName:function(r,t,e,a){var n=je(r.axisName,t.get("name"));if(n){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,m2(i)?r.labelOffset+o*l:0],v,d=t.get("nameRotate");d!=null&&(d=d*_i/180);var h;m2(i)?v=xr.innerTextLayout(r.rotation,d??r.rotation,o):(v=X7(r.rotation,i,d||0,u),h=r.axisNameAvailableWidth,h!=null&&(h=Math.abs(h/Math.sin(v.rotation)),!isFinite(h)&&(h=null)));var g=s.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,_=je(r.nameTruncateMaxWidth,m.maxWidth,h),b=new Kt({x:f[0],y:f[1],rotation:v.rotation,silent:xr.isLabelSilent(t),style:be(s,{text:n,font:g,overflow:"truncate",width:_,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(ts({el:b,componentModel:t,itemName:n}),b.__fullText=n,b.anid="name",t.get("triggerEvent")){var x=xr.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,Tt(b).eventData=x}a.add(b),b.updateTransform(),e.add(b),b.decomposeTransform()}}};function X7(r,t,e,a){var n=UA(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return ac(n-_i/2)?(o=l?"bottom":"top",i="center"):ac(n-_i*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<_i*1.5&&n>_i/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function q7(r,t,e){if(!PL(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],v=e[e.length-2];a===!1?(qr(i),qr(u)):g2(i,o)&&(a?(qr(o),qr(c)):(qr(i),qr(u))),n===!1?(qr(s),qr(f)):g2(l,s)&&(n?(qr(l),qr(v)):(qr(s),qr(f)))}}function qr(r){r&&(r.ignore=!0)}function g2(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var n=eh([]);return Qo(n,n,-r.rotation),e.applyTransform(Rn([],n,r.getLocalTransform())),a.applyTransform(Rn([],n,t.getLocalTransform())),e.intersect(a)}}function m2(r){return r==="middle"||r==="center"}function Rk(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Ke(o,o,t),Ke(s,s,t));var c=new Fe({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});al(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function K7(r,t,e,a){var n=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),u=n.getTicksCoords(),c=Rk(u,t.transform,l,wt(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)r.add(c[f]);return c}}function J7(r,t,e,a){var n=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=wt(s.getLineStyle(),wt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=Rk(o[c],t.transform,l,u,"minorticks_"+c),v=0;v<f.length;v++)r.add(f[v])}}function Q7(r,t,e,a){var n=e.axis,i=je(a.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(je(a.labelRotate,o.get("rotate"))||0)*_i/180,c=xr.innerTextLayout(a.rotation,u,a.labelDirection),f=e.getCategories&&e.getCategories(!0),v=[],d=xr.isLabelSilent(e),h=e.get("triggerEvent");return A(l,function(g,m){var y=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,_=g.formattedLabel,b=g.rawLabel,x=o;if(f&&f[y]){var w=f[y];St(w)&&w.textStyle&&(x=new se(w.textStyle,o,e.ecModel))}var S=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),M=n.dataToCoord(y),C=x.getShallow("align",!0)||c.textAlign,I=At(x.getShallow("alignMinLabel",!0),C),T=At(x.getShallow("alignMaxLabel",!0),C),D=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||c.textVerticalAlign,E=At(x.getShallow("verticalAlignMinLabel",!0),D),R=At(x.getShallow("verticalAlignMaxLabel",!0),D),k=new Kt({x:M,y:a.labelOffset+a.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(g.level||0),style:be(x,{text:_,align:m===0?I:m===l.length-1?T:C,verticalAlign:m===0?E:m===l.length-1?R:D,fill:xt(S)?S(n.type==="category"?b:n.type==="value"?y+"":y,m):S})});if(k.anid="label_"+y,ts({el:k,componentModel:e,itemName:_,formatterParamsExtra:{isTruncated:function(){return k.isTruncated},value:b,tickIndex:m}}),h){var N=xr.makeAxisEventDataBase(e);N.targetType="axisLabel",N.value=b,N.tickIndex=m,n.type==="category"&&(N.dataIndex=y),Tt(k).eventData=N}t.add(k),k.updateTransform(),v.push(k),r.add(k),k.decomposeTransform()}),v}}function tF(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return eF(e,r,t),e.seriesInvolved&&aF(e,r),e}function eF(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=yc(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",a);if(A(s.getAxes(),Dt(g,!1,null)),s.getTooltipAxes&&a&&f.get("show")){var v=f.get("trigger")==="axis",d=f.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(f.get(["axisPointer","axis"]));(v||d)&&A(h.baseAxes,Dt(g,d?"cross":!0,v)),d&&A(h.otherAxes,Dt(g,"cross",!1))}function g(m,y,_){var b=_.model.getModel("axisPointer",n),x=b.get("show");if(!(!x||x==="auto"&&!m&&!Gy(b))){y==null&&(y=b.get("triggerTooltip")),b=m?rF(_,f,n,t,m,y):b;var w=b.get("snap"),S=b.get("triggerEmphasis"),M=yc(_.model),C=y||w||_.type==="category",I=r.axesInfo[M]={key:M,axis:_,coordSys:s,axisPointerModel:b,triggerTooltip:y,triggerEmphasis:S,involveSeries:C,snap:w,useHandle:Gy(b),seriesModels:[],linkGroup:null};u[M]=I,r.seriesInvolved=r.seriesInvolved||C;var T=nF(i,_);if(T!=null){var D=o[T]||(o[T]={axesInfo:{}});D.axesInfo[M]=I,D.mapper=i[T].mapper,I.linkGroup=D}}}})}function rF(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(v){l[v]=Mt(o.get(v))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&wt(u,f.textStyle)}}return r.model.getModel("axisPointer",new se(l,e,a))}function aF(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[yc(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function nF(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(yg(i[a+"AxisId"],e.id)||yg(i[a+"AxisIndex"],e.componentIndex)||yg(i[a+"AxisName"],e.name))return n}}function yg(r,t){return r==="all"||K(r)&&Nt(r,t)>=0||r===t}function iF(r){var t=Q1(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=Gy(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Q1(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[yc(r)]}function oF(r){var t=Q1(r);return t&&t.axisPointerModel}function Gy(r){return!!r.get(["handle","show"])}function yc(r){return r.type+"||"+r.id}var y2={},is=function(r){G(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,a,n,i){this.axisPointerClass&&iF(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=oF(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){y2[e]=a},t.getAxisPointerClass=function(e){return e&&y2[e]},t.type="axis",t}(De),Fy=qt();function Ek(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=Fy(r).splitAreaColors,v=mt(),d=0;if(f)for(var h=0;h<u.length;h++){var g=f.get(u[h].tickValue);if(g!=null){d=(g+(c-1)*h)%c;break}}var m=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=K(s)?s:[s];for(var h=1;h<u.length;h++){var _=n.toGlobalCoord(u[h].coord),b=void 0,x=void 0,w=void 0,S=void 0;n.isHorizontal()?(b=m,x=l.y,w=_-b,S=l.height,m=b+w):(b=l.x,x=m,w=l.width,S=_-x,m=x+S);var M=u[h-1].tickValue;M!=null&&v.set(M,d),t.add(new Xt({anid:M!=null?"area_"+M:null,shape:{x:b,y:x,width:w,height:S},style:wt({fill:s[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%c}Fy(r).splitAreaColors=v}}}function Nk(r){Fy(r).splitAreaColors=null}var sF=["axisLine","axisTickLabel","axisName"],lF=["splitArea","splitLine","minorSplitLine"],$k=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new It,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Vy(s,e),u=new xr(e,Y({handleAutoShown:function(f){for(var v=s.coordinateSystem.getCartesians(),d=0;d<v.length;d++)if(Py(v[d].getOtherAxis(e.axis).scale))return!0;return!1}},l));A(sF,u.add,u),this._axisGroup.add(u.getGroup()),A(lF,function(f){e.get([f,"show"])&&uF[f](this,this._axisGroup,e,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||Bc(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){Nk(this)},t.type="cartesianAxis",t}(is),uF={splitLine:function(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color"),l=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;s=K(s)?s:[s];for(var c=a.coordinateSystem.getRect(),f=n.isHorizontal(),v=0,d=n.getTicksCoords({tickModel:i}),h=[],g=[],m=o.getLineStyle(),y=0;y<d.length;y++){var _=n.toGlobalCoord(d[y].coord);if(!(y===0&&!l||y===d.length-1&&!u)){var b=d[y].tickValue;f?(h[0]=_,h[1]=c.y,g[0]=_,g[1]=c.y+c.height):(h[0]=c.x,h[1]=_,g[0]=c.x+c.width,g[1]=_);var x=v++%s.length,w=new Fe({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:wt({stroke:s[x]},m),silent:!0});al(w.shape,m.lineWidth),t.add(w)}}}},minorSplitLine:function(r,t,e,a){var n=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var c=[],f=[],v=o.getLineStyle(),d=0;d<u.length;d++)for(var h=0;h<u[d].length;h++){var g=n.toGlobalCoord(u[d][h].coord);l?(c[0]=g,c[1]=s.y,f[0]=g,f[1]=s.y+s.height):(c[0]=s.x,c[1]=g,f[0]=s.x+s.width,f[1]=g);var m=new Fe({anid:"minor_line_"+u[d][h].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:v,silent:!0});al(m.shape,v.lineWidth),t.add(m)}},splitArea:function(r,t,e,a){Ek(r,t,e,a)}},Ok=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}($k),cF=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Ok.type,e}return t.type="yAxis",t}($k),fF=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new Xt({shape:e.coordinateSystem.getRect(),style:wt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(De),_2={offset:0};function zk(r){r.registerComponentView(fF),r.registerComponentModel(B7),r.registerCoordinateSystem("cartesian2d",U7),ll(r,"x",zy,_2),ll(r,"y",zy,_2),r.registerComponentView(Ok),r.registerComponentView(cF),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Bk(r){Bt(zk),r.registerSeriesModel(E7),r.registerChartView(z7),r.registerLayout(jc("scatter"))}function vF(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(n){var i=n.getIndicatorAxes();A(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var c=n.dataToPoint(l,s);a[u][s]=b2(c)?c:x2(n)})}),e.each(function(o){var s=t6(a[o],function(l){return b2(l)})||x2(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function b2(r){return!isNaN(r[0])&&!isNaN(r[1])}function x2(r){return[r.cx,r.cy]}function dF(r){var t=r.polar;if(t){K(t)||(t=[t]);var e=[];A(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],K(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}A(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var hF=function(r){G(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,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(v,d){var h=v.getItemVisual(d,"symbol")||"circle";if(h!=="none"){var g=Il(v.getItemVisual(d,"symbolSize")),m=$e(h,-1,-1,2,2),y=v.getItemVisual(d,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:y*Math.PI/180||0}),m}}function c(v,d,h,g,m,y){h.removeAll();for(var _=0;_<d.length-1;_++){var b=u(g,m);b&&(b.__dimIdx=_,v[_]?(b.setPosition(v[_]),es[y?"initProps":"updateProps"](b,{x:d[_][0],y:d[_][1]},e,m)):b.setPosition(d[_]),h.add(b))}}function f(v){return Q(v,function(d){return[i.cx,i.cy]})}s.diff(l).add(function(v){var d=s.getItemLayout(v);if(d){var h=new Cr,g=new Ir,m={shape:{points:d}};h.shape.points=f(d),g.shape.points=f(d),Me(h,m,e,v),Me(g,m,e,v);var y=new It,_=new It;y.add(g),y.add(h),y.add(_),c(g.shape.points,d,_,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,d){var h=l.getItemGraphicEl(d),g=h.childAt(0),m=h.childAt(1),y=h.childAt(2),_={shape:{points:s.getItemLayout(v)}};_.shape.points&&(c(g.shape.points,_.shape.points,y,s,v,!1),Aa(m),Aa(g),ee(g,_,e),ee(m,_,e),s.setItemGraphicEl(v,h))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,d){var h=s.getItemModel(d),g=v.childAt(0),m=v.childAt(1),y=v.childAt(2),_=s.getItemVisual(d,"style"),b=_.fill;o.add(v),g.useStyle(wt(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),Je(g,h,"lineStyle"),Je(m,h,"areaStyle");var x=h.getModel("areaStyle"),w=x.isEmpty()&&x.parentModel.isEmpty();m.ignore=w,A(["emphasis","select","blur"],function(C){var I=h.getModel([C,"areaStyle"]),T=I.isEmpty()&&I.parentModel.isEmpty();m.ensureState(C).ignore=T&&w}),m.useStyle(wt(x.getAreaStyle(),{fill:b,opacity:.7,decal:_.decal}));var S=h.getModel("emphasis"),M=S.getModel("itemStyle").getItemStyle();y.eachChild(function(C){if(C instanceof Xe){var I=C.style;C.useStyle(Y({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},_))}else C.useStyle(_),C.setColor(b),C.style.strokeNoScale=!0;var T=C.ensureState("emphasis");T.style=Mt(M);var D=s.getStore().get(s.getDimensionIndex(C.__dimIdx),d);(D==null||isNaN(D))&&(D=""),Qe(C,Ze(h),{labelFetcher:s.hostModel,labelDataIndex:d,labelDimIndex:C.__dimIdx,defaultText:D,inheritColor:b,defaultOpacity:_.opacity})}),Le(v,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(ce),pF=function(r){G(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),this.legendVisualProvider=new qc(dt(this.getData,this),dt(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return Al(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,c=R5(this,e);return Ye("section",{header:u,sortBlocks:!0,blocks:Q(s,function(f){var v=i.get(i.mapDimension(f.dim),e);return Ye("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:v,sortParam:v})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(Q(n.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(xe),Jl=kk.value;function Hf(r,t){return wt({show:t},r)}var gF=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),v=this.get("triggerEvent"),d=Q(this.get("indicator")||[],function(h){h.max!=null&&h.max>0&&!h.min?h.min=0:h.min!=null&&h.min<0&&!h.max&&(h.max=0);var g=l;h.color!=null&&(g=wt({color:h.color},l));var m=Lt(Mt(h),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:h.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:v},!1);if(ft(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else xt(c)&&(m.name=c(m.name,m));var _=new se(m,null,this.ecModel);return Oe(_,Wc.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_},this);this._indicatorModels=d},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:Lt({lineStyle:{color:"#bbb"}},Jl.axisLine),axisLabel:Hf(Jl.axisLabel,!1),axisTick:Hf(Jl.axisTick,!1),splitLine:Hf(Jl.splitLine,!0),splitArea:Hf(Jl.splitArea,!0),indicator:[]},t}(Yt),mF=["axisLine","axisTickLabel","axisName"],yF=function(r){G(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,a,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes(),i=Q(n,function(o){var s=o.model.get("showName")?o.name:"",l=new xr(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A(i,function(o){A(mF,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),v=l.get("color"),d=u.get("color"),h=K(v)?v:[v],g=K(d)?d:[d],m=[],y=[];function _(N,O,V){var B=V%O.length;return N[B]=N[B]||[],B}if(i==="circle")for(var b=n[0].getTicksCoords(),x=a.cx,w=a.cy,S=0;S<b.length;S++){if(c){var M=_(m,h,S);m[M].push(new Un({shape:{cx:x,cy:w,r:b[S].coord}}))}if(f&&S<b.length-1){var M=_(y,g,S);y[M].push(new $c({shape:{cx:x,cy:w,r0:b[S].coord,r:b[S+1].coord}}))}}else for(var C,I=Q(n,function(N,O){var V=N.getTicksCoords();return C=C==null?V.length-1:Math.min(V.length-1,C),Q(V,function(B){return a.coordToPoint(B.coord,O)})}),T=[],S=0;S<=C;S++){for(var D=[],E=0;E<n.length;E++)D.push(I[E][S]);if(D[0]&&D.push(D[0].slice()),c){var M=_(m,h,S);m[M].push(new Ir({shape:{points:D}}))}if(f&&T){var M=_(y,g,S-1);y[M].push(new Cr({shape:{points:D.concat(T)}}))}T=D.slice().reverse()}var R=l.getLineStyle(),k=u.getAreaStyle();A(y,function(N,O){this.group.add(oa(N,{style:wt({stroke:"none",fill:g[O%g.length]},k),silent:!0}))},this),A(m,function(N,O){this.group.add(oa(N,{style:wt({fill:"none",stroke:h[O%h.length]},R),silent:!0}))},this)},t.type="radar",t}(De),_F=function(r){G(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t}(La),bF=function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=Q(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new _F(o,new Fn);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight(),o=Math.min(n,i)/2;this.cx=lt(a[0],n),this.cy=lt(a[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(ft(s)||Qt(s))&&(s=[0,s]),this.r0=lt(s[0],o),this.r=lt(s[1],o),A(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;A(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();A(a,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=n.get("splitNumber"),o=new Fn;o.setExtent(0,i),o.setInterval(1),A(a,function(s,l){Pk(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r}();function xF(r){r.registerCoordinateSystem("radar",bF),r.registerComponentModel(gF),r.registerComponentView(yF),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function wF(r){Bt(xF),r.registerChartView(hF),r.registerSeriesModel(pF),r.registerLayout(vF),r.registerProcessor(Xc("radar")),r.registerPreprocessor(dF)}var w2="\0_ec_interaction_mutex";function SF(r,t,e){var a=t_(r);a[t]=e}function MF(r,t,e){var a=t_(r),n=a[t];n===e&&(a[t]=null)}function S2(r,t){return!!t_(r)[t]}function t_(r){return r[w2]||(r[w2]={})}pn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Re);var Kc=function(r){G(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=dt(a._mousedownHandler,a),i=dt(a._mousemoveHandler,a),o=dt(a._mouseupHandler,a),s=dt(a._mousewheelHandler,a),l=dt(a._pinchHandler,a);return a.enable=function(u,c){this.disable(),this._opt=wt(Mt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",n),e.on("mousemove",i),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},a.disable=function(){e.off("mousedown",n),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Qb(e)){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Dv("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||S2(this._zr,"globalPan"))){var a=e.offsetX,n=e.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&On(e.event),Vk(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Qb(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var a=Dv("zoomOnMouseWheel",e,this._opt),n=Dv("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;_g(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var f=Math.abs(i),v=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);_g(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!S2(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;_g(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(da);function _g(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(On(a.event),Vk(r,t,e,a,n))}function Vk(r,t,e,a,n){n.isAvailableBehavior=dt(Dv,null,e,a),r.trigger(t,n)}function Dv(r,t,e){var a=e[r];return!r||a&&(!ft(a)||t.event[a+"Key"])}function e_(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function r_(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(e-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var CF={axisPointer:1,tooltip:1,brush:1};function Ph(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!CF.hasOwnProperty(a.mainType)&&n&&n.model!==e}function Gk(r){if(ft(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 bg,wd={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"},M2=Ut(wd),Sd={"alignment-baseline":"textBaseline","stop-color":"stopColor"},C2=Ut(Sd),IF=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var a=Gk(t);this._defsUsePending=[];var n=new It;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||e.width),l=parseFloat(a.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Vr(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;DF(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var v=Rh(o);v.length>=4&&(c={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(c&&s!=null&&l!=null&&(f=Hk(c,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var d=n;n=new It,n.add(d),d.scaleX=d.scaleY=f.scale,d.x=f.x,d.y=f.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Xt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(t,e,a,n,i,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var c=bg[s];if(c&&gt(bg,s)){l=c.call(this,t,e);var f=t.getAttribute("name");if(f){var v={name:f,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var d=I2[s];if(d&&gt(I2,s)){var h=d.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=h)}}if(l&&l.isGroup)for(var m=t.firstChild;m;)m.nodeType===1?this._parseNode(m,l,a,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},r.prototype._parseText=function(t,e){var a=new rl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Kr(e,a),Vr(t,a,this._defsUsePending,!1,!1),TF(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=function(){bg={g:function(t,e){var a=new It;return Kr(e,a),Vr(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new Xt;return Kr(e,a),Vr(t,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},circle:function(t,e){var a=new Un;return Kr(e,a),Vr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new Fe;return Kr(e,a),Vr(t,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},ellipse:function(t,e){var a=new fh;return Kr(e,a),Vr(t,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=D2(a));var i=new Cr({shape:{points:n||[]},silent:!0});return Kr(e,i),Vr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=D2(a));var i=new Ir({shape:{points:n||[]},silent:!0});return Kr(e,i),Vr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new Xe;return Kr(e,a),Vr(t,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new It;return Kr(e,s),Vr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new It;return Kr(e,s),Vr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",n=TD(a);return Kr(e,n),Vr(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),I2={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new zc(t,e,a,n);return T2(r,i),A2(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new kD(t,e,a);return T2(r,n),A2(r,n),n}};function T2(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function A2(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};Fk(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function Kr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),wt(t.__inheritedStyle,r.__inheritedStyle))}function D2(r){for(var t=Rh(r),e=[],a=0;a<t.length;a+=2){var n=parseFloat(t[a]),i=parseFloat(t[a+1]);e.push([n,i])}return e}function Vr(r,t,e,a,n){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(PF(r,t),Fk(r,o,s),a||RF(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=L2(i,"fill",o.fill,e)),o.stroke!=null&&(i.style.stroke=L2(i,"stroke",o.stroke,e)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=Q(Rh(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function TF(r,t){var e=t.__selfStyle;if(e){var a=e.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var AF=/^url\(\s*#(.*?)\)/;function L2(r,t,e,a){var n=e&&e.match(AF);if(n){var i=xa(n[1]);a.push([r,t,i]);return}return e==="none"&&(e=null),e}function DF(r,t){for(var e=0;e<t.length;e++){var a=t[e];a[0].style[a[1]]=r[a[2]]}}var LF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Rh(r){return r.match(LF)||[]}var kF=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,xg=Math.PI/180;function PF(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var a=[],n=null;e.replace(kF,function(f,v,d){return a.push(v,d),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=Rh(o);switch(n=n||Yr(),s){case"translate":cn(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":J0(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Qo(n,n,-parseFloat(l[0])*xg,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*xg);Rn(n,[1,0,u,1,0,0],n);break;case"skewY":var c=Math.tan(parseFloat(l[0])*xg);Rn(n,[1,c,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var k2=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Fk(r,t,e){var a=r.getAttribute("style");if(a){k2.lastIndex=0;for(var n;(n=k2.exec(a))!=null;){var i=n[1],o=gt(wd,i)?wd[i]:null;o&&(t[o]=n[2]);var s=gt(Sd,i)?Sd[i]:null;s&&(e[s]=n[2])}}}function RF(r,t,e){for(var a=0;a<M2.length;a++){var n=M2[a],i=r.getAttribute(n);i!=null&&(t[wd[n]]=i)}for(var a=0;a<C2.length;a++){var n=C2[a],i=r.getAttribute(n);i!=null&&(e[Sd[n]]=i)}}function Hk(r,t){var e=t.width/r.width,a=t.height/r.height,n=Math.min(e,a);return{scale:n,x:-(r.x+r.width/2)*n+(t.x+t.width/2),y:-(r.y+r.height/2)*n+(t.y+t.height/2)}}function EF(r,t){var e=new IF;return e.parse(r,t)}var NF=mt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),$F=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=mt(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Gk(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=zF(t.named),a=e.regions,n=e.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,a;try{e=t&&EF(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,wr(a!=null)}catch(m){throw new Error(`Invalid svg format
  53. `+m.message)}var n=new It;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,v=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,v=o):s&&(c=s.y,v=s.height),u==null||c==null){var d=a.getBoundingRect();u==null&&(u=d.x,f=d.width),c==null&&(c=d.y,v=d.height)}l=this._boundingRect=new Pt(u,c,f,v)}if(s){var h=Hk(s,l);a.scaleX=a.scaleY=h.scale,a.x=h.x,a.y=h.y}n.setClipPath(new Xt({shape:l.plain()}));var g=[];return A(e.named,function(m){NF.get(m.svgNodeTagLower)!=null&&(g.push(m),OF(m.el))}),{root:n,boundingRect:l,named:g}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r}();function OF(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function zF(r){var t=[],e=mt();return A(r,function(a){if(a.namedFrom==null){var n=new O8(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var Hy=[126,25],P2="南海诸岛",po=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var co=0;co<po.length;co++)for(var xs=0;xs<po[co].length;xs++)po[co][xs][0]/=10.5,po[co][xs][1]/=-10.5/.75,po[co][xs][0]+=Hy[0],po[co][xs][1]+=Hy[1];function BF(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===P2)return;t.push(new EL(P2,Q(po,function(a){return{type:"polygon",exterior:a}}),Hy))}}var VF={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function GF(r,t){if(r==="china"){var e=VF[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var FF=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function HF(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:FF[0]})}var WF="name",ZF=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=mt(),this._mapName=t,this._specialAreas=a,this._geoJSON=UF(e)}return r.prototype.load=function(t,e){e=e||WF;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:YF(n)})}var i=mt(),o=[];return A(a.regions,function(s){var l=s.name;t&&gt(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new Pt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?B8(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
  54. `+i.message)}return BF(e,n),A(n,function(i){var o=i.name;GF(e,i),HF(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function YF(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function UF(r){return ft(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ql=mt();const Hn={registerMap:function(r,t,e){if(t.svg){var a=new $F(r,t.svg);Ql.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new ZF(r,n,e);Ql.set(r,a)}},getGeoResource:function(r){return Ql.get(r)},getMapForUser:function(r){var t=Ql.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=Ql.get(r);if(a)return a.load(t,e)}};var a_=["rect","circle","line","ellipse","polygon","polyline","path"],jF=mt(a_),XF=mt(a_.concat(["g"])),qF=mt(a_.concat(["g"])),Wk=qt();function Wf(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function R2(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Zk=function(){function r(t){var e=new It;this.uid=bl("ec_map_draw"),this._controller=new Kc(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new It),e.add(this._svgGroup=new It)}return r.prototype.draw=function(t,e,a,n,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),v=f.raw,d=f.roam,h=!u.childAt(0)||i;h?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):ee(c,d,t);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=mt(),a=mt(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(d,h){return h&&(d=h(d)),d&&[d[0]*i.scaleX+i.x,d[1]*i.scaleY+i.y]}function f(d){for(var h=[],g=!u&&l&&l.project,m=0;m<d.length;++m){var y=c(d[m],g);y&&h.push(y)}return h}function v(d){return{shape:{points:f(d)}}}n.removeAll(),A(t.geo.regions,function(d){var h=d.name,g=e.get(h),m=a.get(h)||{},y=m.dataIdx,_=m.regionModel;if(!g){g=e.set(h,new It),n.add(g),y=s?s.indexOfName(h):null,_=t.isGeo?o.getRegionModel(h):s?s.getItemModel(y):null;var b=_.get("silent",!0);b!=null&&(g.silent=b),a.set(h,{dataIdx:y,regionModel:_})}var x=[],w=[];A(d.geometries,function(C){if(C.type==="polygon"){var I=[C.exterior].concat(C.interiors||[]);u&&(I=B2(I,u)),A(I,function(D){x.push(new Cr(v(D)))})}else{var T=C.points;u&&(T=B2(T,u,!0)),A(T,function(D){w.push(new Ir(v(D)))})}});var S=c(d.getCenter(),l&&l.project);function M(C,I){if(C.length){var T=new h1({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});g.add(T),E2(t,T,y,_),N2(t,T,h,_,o,y,S),I&&(R2(T),A(T.states,R2))}}M(x),M(w,!0)}),e.each(function(d,h){var g=a.get(h),m=g.dataIdx,y=g.regionModel;$2(t,d,h,y,o,m),O2(t,d,h,y,o),z2(t,d,h,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=mt(),i=!1;A(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,v=u?u.indexOfName(s):null,d=l.getRegionModel(s);jF.get(c)!=null&&f instanceof va&&E2(t,f,v,d),f instanceof va&&(f.culling=!0);var h=d.get("silent",!0);if(h!=null&&(f.silent=h),f.z2EmphasisLift=0,!o.namedFrom&&(qF.get(c)!=null&&N2(t,f,s,d,l,v,null),$2(t,f,s,d,l,v),O2(t,f,s,d,l),XF.get(c)!=null)){var g=z2(t,f,s,d,l);g==="self"&&(i=!0);var m=n.get(s)||n.set(s,[]);m.push(f)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var a=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Uo(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var a=e.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(t);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=Hn.getGeoResource(t);if(e&&e.type==="geoSVG"){var a=e.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=Hn.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,a){var n=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,e_(o,u.dx,u.dy),a.dispatchAction(Y(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,r_(o,u.scale,u.originX,u.originY),a.dispatchAction(Y(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return n.containPoint([c,f])&&!Ph(u,a,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=Wk(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,a,n){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function E2(r,t,e,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=Wf(n),u=Wf(i),c=Wf(s),f=Wf(o),v=r.data;if(v){var d=v.getItemVisual(e,"style"),h=v.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),h&&(l.decal=il(h,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,Uo(t)}function N2(r,t,e,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?e:i,v=void 0;(!s||i>=0)&&(v=n);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Qe(t,Ze(a),{labelFetcher:v,labelDataIndex:f,defaultText:e},d);var h=t.getTextContent();if(h&&(Wk(h).ignore=h.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function $2(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):Tt(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function O2(r,t,e,a,n){r.data||ts({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function z2(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Le(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&tO(t,n,e),o}function B2(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),a}var KF=function(r){G(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,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new Zk(n);o.add(s.group),s.draw(e,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(e,a,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,a,n){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,v=new Un({style:{fill:e.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:ml+1)});if(!f){var d=e.mainSeries.getData(),h=i.getName(l),g=d.indexOfName(h),m=i.getItemModel(l),y=m.getModel("label"),_=d.getItemGraphicEl(g);Qe(v,Ze(m),{labelFetcher:{getFormattedLabel:function(b,x){return e.getFormattedLabel(g,x)}},defaultText:h}),v.disableLabelAnimation=!0,y.get("position")||v.setTextConfig({position:"bottom"}),_.onHoverStateChange=function(b){td(v,b)}}o.add(v)}}})},t.type="map",t}(ce),JF=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var a=Al(this,{coordDimensions:["value"],encodeDefaulter:Dt(M1,this)}),n=mt(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=Hn.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return A(u.regions,function(c){var f=c.name,v=n.get(f),d=c.properties&&c.properties.echartsStyle,h;v==null?(h={name:f},i.push(h)):h=a.getRawDataItem(v),d&&Lt(h,d)}),a.appendData(i),a},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var a=this.getData();return a.get(a.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var a=this.getData();return a.getItemModel(a.indexOfName(e))},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),v=i.mapDimension("value");isNaN(l[c].originalData.get(v,f))||u.push(l[c].name)}return Ye("section",{header:u.join(", "),noHeader:!u.length,blocks:[Ye("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var a=e.icon||"roundRect",n=$e(a,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},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}(xe);function QF(r,t){var e={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,c=0;c<u;c++)s=Math.min(s,e[i][c]),l=Math.max(l,e[i][c]),o+=e[i][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function tH(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getHostGeoModel(),n=a?"o"+a.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)}),A(t,function(e,a){for(var n=QF(Q(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=i===0&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]})}function eH(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getMapType();if(!(e.getHostGeoModel()||t[a])){var n={};A(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),v=s.getRegion(f);if(!(!v||isNaN(u))){var d=n[f]||0,h=s.dataToPoint(v.getCenter());n[f]=d+1,l.setItemLayout(c,{point:h,offset:d})}})});var i=e.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),t[a]=!0}})}var V2=Ke,Jc=function(r){G(t,r);function t(e){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new An,a._rawTransformable=new An,a.name=e,a}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new Pt(e,a,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=new Pt(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Pt(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,a){e&&(this._center=[lt(e[0],a.getWidth()),lt(e[1],a.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var a=this.zoomLimit;a&&(a.max!=null&&(e=Math.min(a.max,e)),a.min!=null&&(e=Math.max(a.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Ke([],i,e),n=Ke([],n,e),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),K0(this.transform||(this.transform=[]),a.transform||Yr()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],pl(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new An;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?V2(n,e,i):pr(n,e)},t.prototype.pointToData=function(e){var a=this.invTransform;return a?V2([],e,a):[e[0],e[1]]},t.prototype.convertToPixel=function(e,a,n){var i=G2(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=G2(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(An);function G2(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var rH={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Yk=["lng","lat"],Wy=function(r){G(t,r);function t(e,a,n){var i=r.call(this,e)||this;i.dimensions=Yk,i.type="geo",i._nameCoordMap=mt(),i.map=a;var o=n.projection,s=Hn.load(a,n.nameMap,n.nameProperty),l=Hn.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=rH[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var v=0;v<u.length;v++){var d=u[v].getBoundingRect(o);f=f||d.clone(),f.union(d)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:At(n.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Pt(e,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(e))return a[n]}},t.prototype.addGeoCoord=function(e,a){this._nameCoordMap.set(e,a)},t.prototype.getGeoCoord=function(e){var a=this._regionsMap.get(e);return this._nameCoordMap.get(e)||a&&a.getCenter()},t.prototype.dataToPoint=function(e,a,n){if(ft(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,a,n)}},t.prototype.pointToData=function(e){var a=this.projection;return a&&(e=a.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,a,n){return r.prototype.dataToPoint.call(this,e,a,n)},t.prototype.convertToPixel=function(e,a,n){var i=F2(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=F2(a);return i===this?i.pointToData(n):null},t}(Jc);Oe(Wy,Jc);function F2(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Ne).models[0]||{}).coordinateSystem:null}function H2(r,t){var e=r.get("boundingCoords");if(e!=null){var a=e[0],n=e[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var c=function(S,M,C,I){for(var T=C-S,D=I-M,E=0;E<=100;E++){var R=E/100,k=i.project([S+T*R,M+D*R]);hi(a,a,k),pi(n,n,k)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var f=this.getBoundingRect(),v=r.get("layoutCenter"),d=r.get("layoutSize"),h=t.getWidth(),g=t.getHeight(),m=f.width/f.height*this.aspectScale,y=!1,_,b;v&&d&&(_=[lt(v[0],h),lt(v[1],g)],b=lt(d,Math.min(h,g)),!isNaN(_[0])&&!isNaN(_[1])&&!isNaN(b)&&(y=!0));var x;if(y)x={},m>1?(x.width=b,x.height=b/m):(x.height=b,x.width=b*m),x.y=_[1]-x.height/2,x.x=_[0]-x.width/2;else{var w=r.getBoxLayoutParams();w.aspect=m,x=Ve(w,{width:h,height:g})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function aH(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var nH=function(){function r(){this.dimensions=Yk}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Wy(l+s,l,Y({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=H2,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=Q(o,function(c){return c.get("nameMap")}),u=new Wy(s,s,Y({nameMap:U0(l)},n(o[0])));u.zoomLimit=je.apply(null,Q(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=H2,u.resize(o[0],e),A(o,function(c){c.coordinateSystem=u,aH(u,c)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=mt(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Hn.load(e,a,n);return A(l.regions,function(u){var c=u.name,f=o.get(c),v=u.properties&&u.properties.echartsStyle;f||(f={name:c},i.push(f)),v&&Lt(f,v)}),i},r}(),Uk=new nH,iH=function(r){G(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,a,n){var i=Hn.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),Wo(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=Uk.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=un(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new se(o,e,e.ecModel)),o.selected&&(n[s]=!0)),i},mt()),a.selectedMap||(a.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new se(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,a){var n=this.getRegionModel(e),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};if(xt(i))return o.status=a,i(o);if(ft(i))return i.replace("{a}",e??"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var a=this.option.selectedMap;a&&(a[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var a=this.option.selectedMap;return!!(a&&a[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Yt);function W2(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function n_(r,t,e,a){var n=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(W2(r,s),a)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var c=(t.originX-r.x)*(o-1),f=(t.originY-r.y)*(o-1);r.x-=c,r.y-=f,r.updateTransform(),r.setCenter(W2(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var oH=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,a){this._api=a},t.prototype.render=function(e,a,n,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Zk(n));var o=this._mapDraw;o.draw(e,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,a,n)},t.prototype._handleRegionClick=function(e){var a;Ao(e.target,function(n){return(a=Tt(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},t.prototype.updateSelectStatus=function(e,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=Tt(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(De);function sH(r,t,e){Hn.registerMap(r,t,e)}function jk(r){r.registerCoordinateSystem("geo",Uk),r.registerComponentModel(iH),r.registerComponentView(oH),r.registerImpl("registerMap",sH),r.registerImpl("getMap",function(e){return Hn.getMapForUser(e)});function t(e,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[e](n.name);var u=l.coordinateSystem;A(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];A(o,function(f,v){o[v]&&c.push(v)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:n.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,a,n){var i=e.componentType||"series";a.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=n_(s,e,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&A(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function lH(r){Bt(jk),r.registerChartView(KF),r.registerSeriesModel(JF),r.registerLayout(eH),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,tH),Z5("map",r.registerAction)}function uH(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],a,n;a=e.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function cH(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){dH(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=hH(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function fH(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function Z2(r){return arguments.length?r:mH}function mu(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function vH(r,t){return Ve(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function dH(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function hH(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=wg(s),i=Sg(i),s&&i;){n=wg(n),o=Sg(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+f-i.hierNode.prelim-u+a(s,i);v>0&&(gH(pH(s,r,e),r,v),u+=v,l+=v),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,c+=o.hierNode.modifier}s&&!wg(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=f-l),i&&!Sg(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,e=r)}return e}function wg(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Sg(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function pH(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function gH(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function mH(r,t){return r.parentNode===t.parentNode?1:2}var yH=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),_H=function(r){G(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 yH},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,v=lt(a.forkPosition,1),d=[];d[c]=o[c],d[f]=o[f]+(l[f]-o[f])*v,e.moveTo(o[0],o[1]),e.lineTo(d[0],d[1]),e.moveTo(s[0],s[1]),d[c]=s[c],e.lineTo(d[0],d[1]),d[c]=l[c],e.lineTo(d[0],d[1]),e.lineTo(l[0],l[1]);for(var h=1;h<i-1;h++){var g=n[h];e.moveTo(g[0],g[1]),d[c]=g[c],e.lineTo(d[0],d[1])}},t}(Vt),bH=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new It,e}return t.prototype.init=function(e,a){this._controller=new Kc(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,n),this._updateController(e,a,n);var u=this._data;i.diff(u).add(function(c){Y2(i,c)&&U2(i,c,null,s,e)}).update(function(c,f){var v=u.getItemGraphicEl(f);if(!Y2(i,c)){v&&X2(u,f,v,s,e);return}U2(i,c,v,s,e)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&X2(u,c,f,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:f})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,a){var n=e.getData(),i=[];n.each(function(f){var v=n.getItemLayout(f);v&&!isNaN(v.x)&&!isNaN(v.y)&&i.push([+v.x,+v.y])});var o=[],s=[];lh(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=e.coordinateSystem=new Jc;c.zoomLimit=e.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(e.get("center"),a),c.setZoom(e.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(c,f)&&!Ph(u,n,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){e_(s,u.dx,u.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){r_(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var a=e.getData(),n=this._getNodeGlobalScale(e);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var a=e.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),s=(o-1)*n+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(ce);function Y2(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function U2(r,t,e,a,n){var i=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=r.tree.root,f=o.parentNode===c?o:o.parentNode||o,v=r.getItemGraphicEl(f.dataIndex),d=f.getLayout(),h=v?{x:v.__oldX,y:v.__oldY,rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:d,g=o.getLayout();i?(e=new Zc(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=h.x,e.y=h.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=g.rawX,e.__radialRawY=g.rawY,a.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,ee(e,{x:g.x,y:g.y},n);var m=e.getSymbolPath();if(n.get("layout")==="radial"){var y=c.children[0],_=y.getLayout(),b=y.children.length,x=void 0,w=void 0;if(g.x===_.x&&o.isExpand===!0&&y.children.length){var S={x:(y.children[0].getLayout().x+y.children[b-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[b-1].getLayout().y)/2};x=Math.atan2(S.y-_.y,S.x-_.x),x<0&&(x=Math.PI*2+x),w=S.x<_.x,w&&(x=x-Math.PI)}else x=Math.atan2(g.y-_.y,g.x-_.x),x<0&&(x=Math.PI*2+x),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(w=g.x<_.x,w&&(x=x-Math.PI)):(w=g.x>_.x,w||(x=x-Math.PI));var M=w?"left":"right",C=s.getModel("label"),I=C.get("rotate"),T=I*(Math.PI/180),D=m.getTextContent();D&&(m.setTextConfig({position:C.get("position")||M,rotation:I==null?-x:T,origin:"center"}),D.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),R=E==="relative"?Qu(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;R&&(Tt(e).focus=R),xH(n,o,c,e,h,d,g,a),e.__edge&&(e.onHoverStateChange=function(k){if(k!=="blur"){var N=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);N&&N.hoverState===Nc||td(e.__edge,k)}})}function xH(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),c=r.get("layout"),f=r.getOrient(),v=r.get(["lineStyle","curveness"]),d=r.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),g=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(g||(g=a.__edge=new Oc({shape:Zy(c,f,v,n,n)})),ee(g,{shape:Zy(c,f,v,i,o)},r));else if(u==="polyline"&&c==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var m=t.children,y=[],_=0;_<m.length;_++){var b=m[_].getLayout();y.push([b.x,b.y])}g||(g=a.__edge=new _H({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:d}})),ee(g,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}g&&!(u==="polyline"&&!t.isExpand)&&(g.useStyle(wt({strokeNoScale:!0,fill:null},h)),Je(g,l,"lineStyle"),Uo(g),s.add(g))}function j2(r,t,e,a,n){var i=t.tree.root,o=Xk(i,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,v=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),d=a.get("edgeShape"),h=a.get("layout"),g=a.get("orient"),m=a.get(["lineStyle","curveness"]);v&&(d==="curve"?Li(v,{shape:Zy(h,g,m,l,l),style:{opacity:0}},a,{cb:function(){e.remove(v)},removeOpt:n}):d==="polyline"&&a.get("layout")==="orthogonal"&&Li(v,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){e.remove(v)},removeOpt:n}))}}function Xk(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,a;a=e.getLayout(),a==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:a}}function X2(r,t,e,a,n){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=Xk(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};Li(e,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){j2(u,r,a,n,l)}),j2(i,r,a,n,l)}function Zy(r,t,e,a,n){var i,o,s,l,u,c,f,v;if(r==="radial"){u=a.rawX,f=a.rawY,c=n.rawX,v=n.rawY;var d=mu(u,f),h=mu(u,f+(v-f)*e),g=mu(c,v+(f-v)*e),m=mu(c,v);return{x1:d.x||0,y1:d.y||0,x2:m.x||0,y2:m.y||0,cpx1:h.x||0,cpy1:h.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=a.x,f=a.y,c=n.x,v=n.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*e,o=f,s=c+(u-c)*e,l=v),(t==="TB"||t==="BT")&&(i=u,o=f+(v-f)*e,s=c,l=v+(f-v)*e);return{x1:u,y1:f,x2:c,y2:v,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var ca=qt();function qk(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,Kk(t,e,r),A(e,function(a){A(t.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,Dt(wH,r))})}),t.wrapMethod("cloneShallow",Dt(MH,r)),A(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,Dt(SH,r))}),wr(e[t.dataType]===t)}function wH(r,t){if(TH(this)){var e=Y({},ca(this).datas);e[this.dataType]=t,Kk(t,e,r)}else i_(t,this.dataType,ca(this).mainData,r);return t}function SH(r,t){return r.struct&&r.struct.update(),t}function MH(r,t){return A(ca(t).datas,function(e,a){e!==t&&i_(e.cloneShallow(),a,t,r)}),t}function CH(r){var t=ca(this).mainData;return r==null||t==null?t:ca(t).datas[r]}function IH(){var r=ca(this).mainData;return r==null?[{data:r}]:Q(Ut(ca(r).datas),function(t){return{type:t,data:ca(r).datas[t]}})}function TH(r){return ca(r).mainData===r}function Kk(r,t,e){ca(r).datas={},A(t,function(a,n){i_(a,n,r,e)})}function i_(r,t,e,a){ca(e).datas[t]=r,ca(r).mainData=e,r.dataType=t,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=r),r.getLinkedData=CH,r.getLinkedDataAll=IH}var AH=function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,a){xt(t)&&(a=e,e=t,t=null),t=t||{},ft(t)&&(t={order:t});var n=t.order||"preorder",i=this[t.attr||"children"],o;n==="preorder"&&(o=e.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,a);n==="postorder"&&e.call(a,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].contains(t);if(i)return i}},r.prototype.getAncestors=function(t){for(var e=[],a=t?this:this.parentNode;a;)e.push(a),a=a.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=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,a=e.data.getItemModel(this.dataIndex);return a.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<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),o_=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,a){this.root.eachNode(t,e,a)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,a=0,n=e.length;a<n;a++)e[a].dataIndex=-1;for(var a=0,n=t.count();a<n;a++)e[t.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,a){var n=new r(e),i=[],o=1;s(t);function s(c,f){var v=c.value;o=Math.max(o,K(v)?v.length:1),i.push(c);var d=new AH(ze(c.name,""),n);f?DH(d,f):n.root=d,n._nodes.push(d);var h=c.children;if(h)for(var g=0;g<h.length;g++)s(h[g],d)}n.root.updateDepthAndHeight(0);var l=Hc(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new br(l,e);return u.initData(i),a&&a(u),qk({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r}();function DH(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}function _c(r,t,e){if(r&&Nt(t,r.type)>=0){var a=e.getData().tree.root,n=r.targetNode;if(ft(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function Jk(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function s_(r,t){var e=Jk(r);return Nt(e,t)>=0}function Eh(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var LH=function(r){G(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 a={name:e.name,children:e.data},n=e.leaves||{},i=new se(n,this,this.ecModel),o=o_.createTree(a,this,s);function s(f){f.wrapMethod("getItemModel",function(v,d){var h=o.getNodeByDataIndex(d);return h&&h.children.length&&h.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=e.expandAndCollapse,c=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var v=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=v&&v.collapsed!=null?!v.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Ye("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Eh(n,this),a.collapsed=!n.isExpand,a},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}(xe);function kH(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)t(i,e)}function tu(r,t){for(var e=[r],a;a=e.pop();)if(t(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)e.push(n[i])}}function PH(r,t){r.eachSeriesByType("tree",function(e){RH(e,t)})}function RH(r,t){var e=vH(r,t);r.layoutInfo=e;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(e.height,e.width)/2,o=Z2(function(b,x){return(b.parentNode===x.parentNode?1:2)/b.depth})):(n=e.width,i=e.height,o=Z2());var s=r.getData().tree.root,l=s.children[0];if(l){uH(s),kH(l,cH,o),s.hierNode.modifier=-l.hierNode.prelim,tu(l,fH);var u=l,c=l,f=l;tu(l,function(b){var x=b.getLayout().x;x<u.getLayout().x&&(u=b),x>c.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var v=u===c?1:o(u,c)/2,d=v-u.getLayout().x,h=0,g=0,m=0,y=0;if(a==="radial")h=n/(c.getLayout().x+v+d),g=i/(f.depth-1||1),tu(l,function(b){m=(b.getLayout().x+d)*h,y=(b.depth-1)*g;var x=mu(m,y);b.setLayout({x:x.x,y:x.y,rawX:m,rawY:y},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=i/(c.getLayout().x+v+d),h=n/(f.depth-1||1),tu(l,function(b){y=(b.getLayout().x+d)*g,m=_==="LR"?(b.depth-1)*h:n-(b.depth-1)*h,b.setLayout({x:m,y},!0)})):(_==="TB"||_==="BT")&&(h=n/(c.getLayout().x+v+d),g=i/(f.depth-1||1),tu(l,function(b){m=(b.getLayout().x+d)*h,y=_==="TB"?(b.depth-1)*g:i-(b.depth-1)*g,b.setLayout({x:m,y},!0)}))}}}function EH(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");Y(s,o)})})}function NH(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=n_(i,t,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function $H(r){r.registerChartView(bH),r.registerSeriesModel(LH),r.registerLayout(PH),r.registerVisual(EH),NH(r)}var q2=["treemapZoomToNode","treemapRender","treemapMove"];function OH(r){for(var t=0;t<q2.length;t++)r.registerAction({type:q2[t],update:"updateView"},Re);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,a){a.eachComponent({mainType:"series",subType:"treemap",query:e},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=_c(e,s,i);if(l){var u=i.getViewRoot();u&&(e.direction=s_(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function Qk(r){var t=r.getData(),e=t.tree,a={};e.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=yy(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var zH=function(r){G(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,a){var n={name:e.name,children:e.data};tP(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new se({itemStyle:o},this,a);i=e.levels=BH(i,a);var l=Q(i||[],function(f){return new se(f,s,a)},this),u=o_.createTree(n,this,c);function c(f){f.wrapMethod("getItemModel",function(v,d){var h=u.getNodeByDataIndex(d),g=h?l[h.depth]:null;return v.parentModel=g||s,v})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return Ye("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Eh(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=mt(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){Qk(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}(xe);function tP(r){var t=0;A(r.children,function(a){tP(a);var n=a.value;K(n)&&(n=n[0]),t+=n});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 BH(r,t){var e=ue(t.get("color")),a=ue(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;A(r,function(s){var l=new se(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}var VH=8,K2=8,Mg=5,GH=function(){function r(t){this.group=new It,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.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(a,f,u),this._renderContent(t,f,s,l,u,c,n),xh(o,f.pos,f.box)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=ze(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+VH*2,e.emptyItemWidth);e.totalWidth+=s+K2,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i,o,s){for(var l=0,u=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=rz(e.pos,e.box),v=e.totalWidth,d=e.renderList,h=n.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var m=d[g],y=m.node,_=m.width,b=m.text;v>f.width&&(v-=_-u,_=u,b=null);var x=new Cr({shape:{points:FH(l,0,_,c,g===d.length-1,g===0)},style:wt(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Kt({style:be(i,{text:b})}),textConfig:{position:"inside"},z2:ml*1e4,onclick:Dt(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=be(o,{text:b}),x.ensureState("emphasis").style=h,Le(x,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(x),HH(x,t,y),l+=_+K2}},r.prototype.remove=function(){this.group.removeAll()},r}();function FH(r,t,e,a,n,i){var o=[[n?r:r-Mg,t],[r+e,t],[r+e,t+a],[n?r:r-Mg,t+a]];return!i&&o.splice(2,0,[r+e+Mg,t+a/2]),!n&&o.push([r,t+a/2]),o}function HH(r,t,e){Tt(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&&Eh(e,t)}}var WH=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,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,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r}();function ZH(){return new WH}var Yy=It,J2=Xt,Q2=3,tM="label",eM="upperLabel",YH=ml*10,UH=ml*2,jH=ml*3,go=Yo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),rM=function(r){var t=go(r);return t.stroke=t.fill=t.lineWidth=null,t},Md=qt(),XH=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=eu(),e}return t.prototype.render=function(e,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Nt(o,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=_c(i,s,e),u=i&&i.type,c=e.layoutInfo,f=!this._oldTree,v=this._storage,d=u==="treemapRootToNode"&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(c),g=e.get("animation"),m=this._doRender(h,e,d);g&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(h,m,e,d):m.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,l)}},t.prototype._giveContainerGroup=function(e){var a=this._containerGroup;return a||(a=this._containerGroup=new Yy,this._initEvents(a),this.group.add(a)),a.x=e.x,a.y=e.y,a},t.prototype._doRender=function(e,a,n){var i=a.getData().tree,o=this._oldTree,s=eu(),l=eu(),u=this._storage,c=[];function f(_,b,x,w){return qH(a,l,u,n,s,c,_,b,x,w)}g(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var v=m(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var d=this.seriesModel.layoutInfo,h=i.root.getLayout();h.width===d.width&&h.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:v,renderFinally:y};function g(_,b,x,w,S){w?(b=_,A(_,function(I,T){!I.isRemoved()&&C(T,T)})):new Gn(b,_,M,M).add(C).update(C).remove(Dt(C,null)).execute();function M(I){return I.getId()}function C(I,T){var D=I!=null?_[I]:null,E=T!=null?b[T]:null,R=f(D,E,x,S);R&&g(D&&D.viewChildren||[],E&&E.viewChildren||[],R,w,S+1)}}function m(_){var b=eu();return _&&A(_,function(x,w){var S=b[w];A(x,function(M){M&&(S.push(M),Md(M).willDelete=!0)})}),b}function y(){A(v,function(_){A(_,function(b){b.parent&&b.parent.remove(b)})}),A(c,function(_){_.invisible=!0,_.dirty()})}},t.prototype._doAnimation=function(e,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(xt(o)?0:o)||0,u=(xt(s)?null:s)||"cubicOut",c=ZH();A(a.willDeleteEls,function(f,v){A(f,function(d,h){if(!d.invisible){var g=d.parent,m,y=Md(g);if(i&&i.direction==="drillDown")m=g===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var _=0,b=0;y.willDelete||(_=y.nodeWidth/2,b=y.nodeHeight/2),m=v==="nodeGroup"?{x:_,y:b,style:{opacity:0}}:{shape:{x:_,y:b,width:0,height:0},style:{opacity:0}}}m&&c.add(d,m,l,0,u)}})}),A(this._storage,function(f,v){A(f,function(d,h){var g=a.lastsForAnimation[v][h],m={};g&&(d instanceof It?g.oldX!=null&&(m.x=d.x,m.y=d.y,d.x=g.oldX,d.y=g.oldY):(g.oldShape&&(m.shape=Y({},d.shape),d.setShape(g.oldShape)),g.fadein?(d.setStyle("opacity",0),m.style={opacity:1}):d.style.opacity!==1&&(m.style={opacity:1})),c.add(d,m,l,0,u))})},this),this._state="animating",c.finished(dt(function(){this._state="ready",a.renderFinally()},this)).start()},t.prototype._resetController=function(e){var a=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),a||(a=this._controller=new Kc(e.getZr()),a.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),a.on("pan",dt(this._onPan,this)),a.on("zoom",dt(this._onZoom,this)));var i=new Pt(0,0,e.getWidth(),e.getHeight());a.setPointerChecker(function(o,s,l){return i.contain(s,l)})},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>Q2||Math.abs(e.dy)>Q2)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Pt(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=i,u){var v=u.min||0,d=u.max||1/0;f=Math.max(Math.min(d,f),v)}var h=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;a-=g.x,n-=g.y;var m=Yr();cn(m,m,[-a,-n]),J0(m,m,[h,h]),cn(m,m,[a,n]),l.applyTransform(m),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&od(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new GH(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(s_(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=eu(),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,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t}(ce);function eu(){return{nodeGroup:[],background:[],content:[]}}function qH(r,t,e,a,n,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=r.getData(),v=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var d=c.width,h=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),_=s&&s.getRawIndex(),b=o.viewChildren,x=c.upperHeight,w=b&&b.length,S=v.getModel("itemStyle"),M=v.getModel(["emphasis","itemStyle"]),C=v.getModel(["blur","itemStyle"]),I=v.getModel(["select","itemStyle"]),T=S.get("borderRadius")||0,D=Ct("nodeGroup",Yy);if(!D)return;if(l.add(D),D.x=c.x||0,D.y=c.y||0,D.markRedraw(),Md(D).nodeWidth=d,Md(D).nodeHeight=h,c.isAboveViewRoot)return D;var E=Ct("background",J2,u,UH);E&&X(D,E,w&&c.upperLabelHeight);var R=v.getModel("emphasis"),k=R.get("focus"),N=R.get("blurScope"),O=R.get("disabled"),V=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(w)oc(D)&&Io(D,!1),E&&(Io(E,!O),f.setItemGraphicEl(o.dataIndex,E),cy(E,V,N));else{var B=Ct("content",J2,u,jH);B&&et(D,B),E.disableMorphing=!0,E&&oc(E)&&Io(E,!1),Io(D,!O),f.setItemGraphicEl(o.dataIndex,D);var Z=v.getShallow("cursor");Z&&B.attr("cursor",Z),cy(D,V,N)}return D;function X(rt,j,ot){var st=Tt(j);if(st.dataIndex=o.dataIndex,st.seriesIndex=r.seriesIndex,j.setShape({x:0,y:0,width:d,height:h,r:T}),m)it(j);else{j.invisible=!1;var $=o.getVisual("style"),z=$.stroke,F=rM(S);F.fill=z;var U=go(M);U.fill=M.get("borderColor");var J=go(C);J.fill=C.get("borderColor");var tt=go(I);if(tt.fill=I.get("borderColor"),ot){var pt=d-2*g;yt(j,z,$.opacity,{x:g,y:0,width:pt,height:x})}else j.removeTextContent();j.setStyle(F),j.ensureState("emphasis").style=U,j.ensureState("blur").style=J,j.ensureState("select").style=tt,Uo(j)}rt.add(j)}function et(rt,j){var ot=Tt(j);ot.dataIndex=o.dataIndex,ot.seriesIndex=r.seriesIndex;var st=Math.max(d-2*g,0),$=Math.max(h-2*g,0);if(j.culling=!0,j.setShape({x:g,y:g,width:st,height:$,r:T}),m)it(j);else{j.invisible=!1;var z=o.getVisual("style"),F=z.fill,U=rM(S);U.fill=F,U.decal=z.decal;var J=go(M),tt=go(C),pt=go(I);yt(j,F,z.opacity,null),j.setStyle(U),j.ensureState("emphasis").style=J,j.ensureState("blur").style=tt,j.ensureState("select").style=pt,Uo(j)}rt.add(j)}function it(rt){!rt.invisible&&i.push(rt)}function yt(rt,j,ot,st){var $=v.getModel(st?eM:tM),z=ze(v.get("name"),null),F=$.getShallow("show");Qe(rt,Ze(v,st?eM:tM),{defaultText:F?z:null,inheritColor:j,defaultOpacity:ot,labelFetcher:r,labelDataIndex:o.dataIndex});var U=rt.getTextContent();if(U){var J=U.style,tt=X0(J.padding||0);st&&(rt.setTextConfig({layoutRect:st}),U.disableLabelLayout=!0),U.beforeUpdate=function(){var vt=Math.max((st?st.width:rt.shape.width)-tt[1]-tt[3],0),ht=Math.max((st?st.height:rt.shape.height)-tt[0]-tt[2],0);(J.width!==vt||J.height!==ht)&&U.setStyle({width:vt,height:ht})},J.truncateMinChar=2,J.lineOverflow="truncate",_t(J,st,c);var pt=U.getState("emphasis");_t(pt?pt.style:null,st,c)}}function _t(rt,j,ot){var st=rt?rt.text:null;if(!j&&ot.isLeafRoot&&st!=null){var $=r.get("drillDownIcon",!0);rt.text=$?$+" "+st:st}}function Ct(rt,j,ot,st){var $=_!=null&&e[rt][_],z=n[rt];return $?(e[rt][_]=null,Wt(z,$)):m||($=new j,$ instanceof va&&($.z2=KH(ot,st)),q(z,$)),t[rt][y]=$}function Wt(rt,j){var ot=rt[y]={};j instanceof Yy?(ot.oldX=j.x,ot.oldY=j.y):ot.oldShape=Y({},j.shape)}function q(rt,j){var ot=rt[y]={},st=o.parentNode,$=j instanceof It;if(st&&(!a||a.direction==="drillDown")){var z=0,F=0,U=n.background[st.getRawIndex()];!a&&U&&U.oldShape&&(z=U.oldShape.width,F=U.oldShape.height),$?(ot.oldX=0,ot.oldY=F):ot.oldShape={x:z,y:F,width:0,height:0}}ot.fadein=!$}}function KH(r,t){return r*YH+t}var bc=A,JH=St,Cd=-1,We=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=Mt(t);this.type=a,this.mappingMethod=e,this._normalizeData=eW[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Cg(n),QH(n)):e==="category"?n.categories?tW(n):Cg(n,!0):(wr(e!=="linear"||n.dataExtent),Cg(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return dt(this._normalizeData,this)},r.listVisualTypes=function(){return Ut(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){St(t)?A(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=K(t)?[]:St(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&bc(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(K(t))t=t.slice();else if(JH(t)){var e=[];bc(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.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,a){for(var n,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||ft(l)&&l===t+"")return o;a&&v(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Yf(f[1],t,c[1]))return o}else if(c[1]===1/0){if(Yf(f[0],c[0],t))return o}else if(Yf(f[0],c[0],t)&&Yf(f[1],t,c[1]))return o;a&&v(c[0],o),a&&v(c[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function v(d,h){var g=Math.abs(d-t);g<i&&(i=g,n=h)}},r.visualHandlers={color:{applyVisual:ru("color"),getColorMapper:function(){var t=this.option;return dt(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),yu.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=op(e,t.parsedVisual,n),i?n:En(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return En(op(t,this.option.parsedVisual),"rgba")},category:yu,piecewise:function(t,e){var a=jy.call(this,e);return a==null&&(a=En(op(t,this.option.parsedVisual),"rgba")),a},fixed:mo}},colorHue:Zf(function(t,e){return ku(t,e)}),colorSaturation:Zf(function(t,e){return ku(t,null,e)}),colorLightness:Zf(function(t,e){return ku(t,null,null,e)}),colorAlpha:Zf(function(t,e){return jv(t,e)}),decal:{applyVisual:ru("decal"),_normalizedToVisual:{linear:null,category:yu,piecewise:null,fixed:null}},opacity:{applyVisual:ru("opacity"),_normalizedToVisual:Uy([0,1])},liftZ:{applyVisual:ru("liftZ"),_normalizedToVisual:{linear:mo,category:mo,piecewise:mo,fixed:mo}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:aM,category:yu,piecewise:function(t,e){var a=jy.call(this,e);return a==null&&(a=aM.call(this,t)),a},fixed:mo}},symbolSize:{applyVisual:ru("symbolSize"),_normalizedToVisual:Uy([0,1])}},r}();function QH(r){var t=r.pieceList;r.hasSpecialVisual=!1,A(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function tW(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(bc(t,function(o,s){e[o]=s}),!K(a)){var n=[];St(a)?bc(a,function(o,s){var l=e[s];n[l??Cd]=o}):n[Cd]=a,a=eP(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function Cg(r,t){var e=r.visual,a=[];St(e)?bc(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),eP(r,a)}function Zf(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Uy([0,1])}}function aM(r){var t=this.option.visual;return t[Math.round(oe(r,[0,1],[0,t.length-1],!0))]||{}}function ru(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function yu(r){var t=this.option.visual;return t[this.option.loop&&r!==Cd?r%t.length:r]}function mo(){return this.option.visual[0]}function Uy(r){return{linear:function(t){return oe(t,r,this.option.visual,!0)},category:yu,piecewise:function(t,e){var a=jy.call(this,e);return a==null&&(a=oe(t,r,this.option.visual,!0)),a},fixed:mo}}function jy(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=We.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function eP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Q(t,function(e){var a=Ur(e);return a||[0,0,0,1]})),t}var eW={linear:function(r){return oe(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=We.findPieceIndex(r,t,!0);if(e!=null)return oe(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Cd},fixed:Re};function Yf(r,t,e){return r?t<=e:t<e}var rW="itemStyle",rP=qt();const aW={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||aP(e,{},r.getViewRoot().getAncestors(),r)}};function aP(r,t,e,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(rW),l=nW(s,t,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),v;f!=null&&(v=nM(l),c=iW(f,v)),u.stroke=c;var d=r.viewChildren;if(!d||!d.length)v=nM(l),u.fill=v;else{var h=oW(r,n,i,s,l,d);A(d,function(g,m){if(g.depth>=e.length||g===e[g.depth]){var y=sW(n,l,g,m,h,a);aP(g,y,e,a)}})}}}function nW(r,t,e){var a=Y({},t),n=e.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function nM(r){var t=Ig(r,"color");if(t){var e=Ig(r,"colorAlpha"),a=Ig(r,"colorSaturation");return a&&(t=ku(t,null,null,a)),e&&(t=jv(t,e)),t}}function iW(r,t){return t!=null?ku(t,null,null,r):null}function Ig(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function oW(r,t,e,a,n,i){if(!(!i||!i.length)){var o=Tg(t,"color")||n.color!=null&&n.color!=="none"&&(Tg(t,"colorAlpha")||Tg(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var v=new We(f);return rP(v).drColorMappingBy=c,v}}}function Tg(r,t){var e=r.get(t);return K(e)&&e.length?{name:t,range:e}:null}function sW(r,t,e,a,n,i){var o=Y({},t);if(n){var s=n.type,l=s==="color"&&rP(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var xc=Math.max,Id=Math.min,iM=je,l_=A,nP=["itemStyle","borderWidth"],lW=["itemStyle","gapWidth"],uW=["upperLabel","show"],cW=["upperLabel","height"];const fW={seriesType:"treemap",reset:function(r,t,e,a){var n=e.getWidth(),i=e.getHeight(),o=r.option,s=Ve(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=lt(iM(s.width,l[0]),n),c=lt(iM(s.height,l[1]),i),f=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],d=_c(a,v,r),h=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,g=r.getViewRoot(),m=Jk(g);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?mW(r,d,g,u,c):h?[h.width,h.height]:[u,c],_=o.sort;_&&_!=="asc"&&_!=="desc"&&(_="desc");var b={squareRatio:o.squareRatio,sort:_,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(x),iP(g,b,!1,0),x=g.getLayout(),l_(m,function(S,M){var C=(m[M+1]||g).getValue();S.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},x))})}var w=r.getData().tree.root;w.setLayout(yW(s,h,d),!0),r.setLayoutInfo(s),oP(w,new Pt(-s.x,-s.y,n,i),m,g,0)}};function iP(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(nP),u=s.get(lW)/2,c=sP(s),f=Math.max(l,c),v=l-u,d=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),n=xc(n-2*v,0),i=xc(i-v-d,0);var h=n*i,g=vW(r,s,h,t,e,a);if(g.length){var m={x:v,y:d,width:n,height:i},y=Id(n,i),_=1/0,b=[];b.area=0;for(var x=0,w=g.length;x<w;){var S=g[x];b.push(S),b.area+=S.getLayout().area;var M=gW(b,y,t.squareRatio);M<=_?(x++,_=M):(b.area-=b.pop().getLayout().area,oM(b,y,m,u,!1),y=Id(m.width,m.height),b.length=b.area=0,_=1/0)}if(b.length&&oM(b,y,m,u,!0),!e){var C=s.get("childrenVisibleMin");C!=null&&h<C&&(e=!0)}for(var x=0,w=g.length;x<w;x++)iP(g[x],t,e,a+1)}}}function vW(r,t,e,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=ne(o,function(d){return!d.isRemoved()}),hW(o,s);var u=pW(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=dW(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var v=o[c].getValue()/u.sum*e;o[c].setLayout({area:v})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function dW(r,t,e,a,n){if(!a)return e;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*t<i&&(s=l,e-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),e}function hW(r,t){return t&&r.sort(function(e,a){var n=t==="asc"?e.getValue()-a.getValue():a.getValue()-e.getValue();return n===0?t==="asc"?e.dataIndex-a.dataIndex:a.dataIndex-e.dataIndex:n}),r}function pW(r,t,e){for(var a=0,n=0,i=t.length;n<i;n++)a+=t[n].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],l_(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function gW(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=t*t*e;return l?xc(u*a/l,l/(u*n)):1/0}function oM(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],c=t?r.area/t:0;(n||c>e[l[o]])&&(c=e[l[o]]);for(var f=0,v=r.length;f<v;f++){var d=r[f],h={},g=c?d.getLayout().area/c:0,m=h[l[o]]=xc(c-2*a,0),y=e[s[i]]+e[l[i]]-u,_=f===v-1||y<g?y:g,b=h[l[i]]=xc(_-2*a,0);h[s[o]]=e[s[o]]+Id(a,m/2),h[s[i]]=u+Id(a,b/2),u+=_,d.setLayout(h,!0)}e[s[o]]+=c,e[l[o]]-=c}function mW(r,t,e,a,n){var i=(t||{}).node,o=[a,n];if(!i||i===e)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,v=0,d=f.length;v<d;v++)c+=f[v].getValue();var h=i.getValue();if(h===0)return o;u*=c/h;var g=s.getModel(),m=g.get(nP),y=Math.max(m,sP(g));u+=4*m*m+(3*m+y)*Math.pow(u,.5),u>bx&&(u=bx),i=s}u<l&&(u=l);var _=Math.pow(u/l,.5);return[a*_,n*_]}function yW(r,t,e){if(t)return{x:t.x,y:t.y};var a={x:0,y:0};if(!e)return a;var n=e.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function oP(r,t,e,a,n){var i=r.getLayout(),o=e[n],s=o&&o===r;if(!(o&&!s||n===e.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Pt(t.x-i.x,t.y-i.y,t.width,t.height);l_(r.viewChildren||[],function(u){oP(u,l,e,a,n+1)})}}function sP(r){return r.get(uW)?r.get(cW):0}function _W(r){r.registerSeriesModel(zH),r.registerChartView(XH),r.registerVisual(aW),r.registerLayout(fW),OH(r)}function bW(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Qt(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function xW(r){var t={};r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),a.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var v=l.getShallow(c[f],!0);v!=null&&a.setItemVisual(o,c[f],v)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){ft(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),c=n.ensureUniqueItemVisual(o,"style");Y(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],v=0;v<f.length;v++)n.setItemVisual(o,f[v],a.getItemVisual(l,f[v]))}})})}function Uf(r){return r instanceof Array||(r=[r,r]),r}function wW(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),a=t.getEdgeData(),n=Uf(t.get("edgeSymbol")),i=Uf(t.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",t.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=e.getEdgeByIndex(o),u=Uf(s.getShallow("symbol",!0)),c=Uf(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),v=a.ensureUniqueItemVisual(o,"style");switch(Y(v,f),v.stroke){case"source":{var d=l.node1.getVisual("style");v.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");v.stroke=d&&d.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var Xy="-->",Nh=function(r){return r.get("autoCurveness")||null},lP=function(r,t){var e=Nh(r),a=20,n=[];if(Qt(e))a=e;else if(K(e)){r.__curvenessList=e;return}t>a&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},wc=function(r,t,e){var a=[r.id,r.dataIndex].join("."),n=[t.id,t.dataIndex].join(".");return[e.uid,a,n].join(Xy)},uP=function(r){var t=r.split(Xy);return[t[0],t[2],t[1]].join(Xy)},SW=function(r,t){var e=wc(r.node1,r.node2,t);return t.__edgeMap[e]},MW=function(r,t){var e=qy(wc(r.node1,r.node2,t),t),a=qy(wc(r.node2,r.node1,t),t);return e+a},qy=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function CW(r){Nh(r)&&(r.__curvenessList=[],r.__edgeMap={},lP(r))}function IW(r,t,e,a){if(Nh(e)){var n=wc(r,t,e),i=e.__edgeMap,o=i[uP(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function u_(r,t,e,a){var n=Nh(t),i=K(n);if(!n)return null;var o=SW(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=MW(r,t);lP(t,u),r.lineStyle=r.lineStyle||{};var c=wc(r.node1,r.node2,t),f=t.__curvenessList,v=i||u%2?0:1;if(o.isForward)return f[v+s];var d=uP(c),h=qy(d,t),g=f[s+h+v];return a?i?n&&n[0]===0?(h+v)%2?g:-g:((h%2?0:1)+v)%2?g:-g:(h+v)%2?g:-g:f[s+h+v]}function cP(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),c_(e,r)}}function c_(r,t){r.eachEdge(function(e,a){var n=an(e.getModel().get(["lineStyle","curveness"]),-u_(e,t,a,!0),0),i=Pn(e.node1.getLayout()),o=Pn(e.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),e.setLayout(s)})}function TW(r,t){r.eachSeriesByType("graph",function(e){var a=e.get("layout"),n=e.coordinateSystem;if(n&&n.type!=="view"){var i=e.getData(),o=[];A(n.dimensions,function(v){o=o.concat(i.mapDimensionsAll(v))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}c_(i.graph,e)}else(!a||a==="none")&&cP(e)})}function _u(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,a=t.scaleX,n=t.getZoom(),i=(n-1)*e+1;return i/a}function bu(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var sM=Math.PI,Ag=[];function f_(r,t,e,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(e){var v=n.pointToData(a),d=v[0],h=v[1],g=[d-l,h-u];hl(g,g),hv(g,g,c),e.setLayout([l+g[0],u+g[1]],!0);var m=r.get(["circular","rotateLabel"]);fP(e,m,l,u)}AW[t](r,s,o,c,l,u,f),s.eachEdge(function(y,_){var b=an(y.getModel().get(["lineStyle","curveness"]),u_(y,r,_),0),x=Pn(y.node1.getLayout()),w=Pn(y.node2.getLayout()),S,M=(x[0]+w[0])/2,C=(x[1]+w[1])/2;+b&&(b*=3,S=[l*b+M*(1-b),u*b+C*(1-b)]),y.setLayout([x,w,S])})}}}var AW={value:function(r,t,e,a,n,i,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),v=u*(l?f:1)/2;s+=v,c.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=v})},symbolSize:function(r,t,e,a,n,i,o){var s=0;Ag.length=o;var l=_u(r);t.eachNode(function(f){var v=bu(f);isNaN(v)&&(v=2),v<0&&(v=0),v*=l;var d=Math.asin(v/2/a);isNaN(d)&&(d=sM/2),Ag[f.dataIndex]=d,s+=d*2});var u=(2*sM-s)/o/2,c=0;t.eachNode(function(f){var v=u+Ag[f.dataIndex];c+=v,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([a*Math.cos(c)+n,a*Math.sin(c)+i]),c+=v})}};function fP(r,t,e,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-e);u<0&&(u=Math.PI*2+u);var c=l[0]<e;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var v=s.ensureState("emphasis");Y(v.textConfig||(v.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function DW(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&f_(t,"symbolSize")})}var ws=Nm;function LW(r,t,e){for(var a=r,n=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,c=0;c<a.length;c++){var f=a[c];f.p||(f.p=Jo(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Pn(f.p),f.edges=null}var v=e.friction==null?.6:e.friction,d=v,h,g;return{warmUp:function(){d=v*.8},setFixed:function(m){a[m].fixed=!0},setUnfixed:function(m){a[m].fixed=!1},beforeStep:function(m){h=m},afterStep:function(m){g=m},step:function(m){h&&h(a,n);for(var y=[],_=a.length,b=0;b<n.length;b++){var x=n[b];if(!x.ignoreForceLayout){var w=x.n1,S=x.n2;Mo(y,S.p,w.p);var M=$m(y)-x.d,C=S.w/(w.w+S.w);isNaN(C)&&(C=0),hl(y,y),!w.fixed&&ws(w.p,w.p,y,C*M*d),!S.fixed&&ws(S.p,S.p,y,-(1-C)*M*d)}}for(var b=0;b<_;b++){var I=a[b];I.fixed||(Mo(y,l,I.p),ws(I.p,I.p,y,u*d))}for(var b=0;b<_;b++)for(var w=a[b],T=b+1;T<_;T++){var S=a[T];Mo(y,S.p,w.p);var M=$m(y);M===0&&(s6(y,Math.random()-.5,Math.random()-.5),M=1);var D=(w.rep+S.rep)/M/M;!w.fixed&&ws(w.pp,w.pp,y,D),!S.fixed&&ws(S.pp,S.pp,y,-D)}for(var E=[],b=0;b<_;b++){var I=a[b];I.fixed||(Mo(E,I.p,I.pp),ws(I.p,I.p,E,d),pr(I.pp,I.p))}d=d*.992;var R=d<.01;g&&g(a,n,R),m&&m(R)}}}function kW(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var a=t.preservedPoints||{},n=t.getGraph(),i=n.data,o=n.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(b){var x=i.getId(b);i.setItemLayout(b,a[x]||[NaN,NaN])}):!l||l==="none"?cP(t):l==="circular"&&f_(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),v=s.get("edgeLength"),d=K(f)?f:[f,f],h=K(v)?v:[v,v];h=[h[1],h[0]];var g=i.mapArray("value",function(b,x){var w=i.getItemLayout(x),S=oe(b,u,d);return isNaN(S)&&(S=(d[0]+d[1])/2),{w:S,rep:S,fixed:i.getItemModel(x).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),m=o.mapArray("value",function(b,x){var w=n.getEdgeByIndex(x),S=oe(b,c,h);isNaN(S)&&(S=(h[0]+h[1])/2);var M=w.getModel(),C=an(w.getModel().get(["lineStyle","curveness"]),-u_(w,t,x,!0),0);return{n1:g[w.node1.dataIndex],n2:g[w.node2.dataIndex],d:S,curveness:C,ignoreForceLayout:M.get("ignoreForceLayout")}}),y=e.getBoundingRect(),_=LW(g,m,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});_.beforeStep(function(b,x){for(var w=0,S=b.length;w<S;w++)b[w].fixed&&pr(b[w].p,n.getNodeByIndex(w).getLayout())}),_.afterStep(function(b,x,w){for(var S=0,M=b.length;S<M;S++)b[S].fixed||n.getNodeByIndex(S).setLayout(b[S].p),a[i.getId(S)]=b[S].p;for(var S=0,M=x.length;S<M;S++){var C=x[S],I=n.getEdgeByIndex(S),T=C.n1.p,D=C.n2.p,E=I.getLayout();E=E?E.slice():[],E[0]=E[0]||[],E[1]=E[1]||[],pr(E[0],T),pr(E[1],D),+C.curveness&&(E[2]=[(T[0]+D[0])/2-(T[1]-D[1])*C.curveness,(T[1]+D[1])/2-(D[0]-T[0])*C.curveness]),I.setLayout(E)}}),t.forceLayout=_,t.preservedPoints=a,_.step()}else t.forceLayout=null})}function PW(r,t,e){var a=Y(r.getBoxLayoutParams(),{aspect:e});return Ve(a,{width:t.getWidth(),height:t.getHeight()})}function RW(r,t){var e=[];return r.eachSeriesByType("graph",function(a){var n=a.get("coordinateSystem");if(!n||n==="view"){var i=a.getData(),o=i.mapArray(function(m){var y=i.getItemModel(m);return[+y.get("x"),+y.get("y")]}),s=[],l=[];lh(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=PW(a,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],v=l[1]-s[1],d=c.width,h=c.height,g=a.coordinateSystem=new Jc;g.zoomLimit=a.get("scaleLimit"),g.setBoundingRect(s[0],s[1],f,v),g.setViewRect(c.x,c.y,d,h),g.setCenter(a.get("center"),t),g.setZoom(a.get("zoom")),e.push(g)}}),e}var lM=Fe.prototype,Dg=Oc.prototype,vP=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(vP);function Lg(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var EW=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-line",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vP},t.prototype.buildPath=function(e,a){Lg(a)?lM.buildPath.call(this,e,a):Dg.buildPath.call(this,e,a)},t.prototype.pointAt=function(e){return Lg(this.shape)?lM.pointAt.call(this,e):Dg.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var a=this.shape,n=Lg(a)?[a.x2-a.x1,a.y2-a.y1]:Dg.tangentAt.call(this,e);return hl(n,n)},t}(Vt),kg=["fromSymbol","toSymbol"];function uM(r){return"_"+r+"Type"}function cM(r,t,e){var a=t.getItemVisual(e,r);if(!a||a==="none")return a;var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Il(n),u=rs(o||0,l);return a+l+u+(i||"")+(s||"")}function fM(r,t,e){var a=t.getItemVisual(e,r);if(!(!a||a==="none")){var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Il(n),u=rs(o||0,l),c=$e(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function NW(r){var t=new EW({name:"line",subPixelOptimize:!0});return Ky(t.shape,r),t}function Ky(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var v_=function(r){G(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createLine(e,a,n),i}return t.prototype._createLine=function(e,a,n){var i=e.hostModel,o=e.getItemLayout(a),s=NW(o);s.shape.percent=0,Me(s,{shape:{percent:1}},i,a),this.add(s),A(kg,function(l){var u=fM(l,e,a);this.add(u),this[uM(l)]=cM(l,e,a)},this),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(a),l={shape:{}};Ky(l.shape,s),ee(o,l,i,a),A(kg,function(u){var c=cM(u,e,a),f=uM(u);if(this[f]!==c){this.remove(this.childOfName(u));var v=fM(u,e,a);this.add(v)}this[f]=c},this),this._updateCommonStl(e,a,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,c=n&&n.labelStatesModels,f=n&&n.emphasisDisabled,v=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var h=e.getItemModel(a),g=h.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=h.getModel(["blur","lineStyle"]).getLineStyle(),u=h.getModel(["select","lineStyle"]).getLineStyle(),f=g.get("disabled"),v=g.get("focus"),d=g.get("blurScope"),c=Ze(h)}var m=e.getItemVisual(a,"style"),y=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,A(kg,function(S){var M=this.childOfName(S);if(M){M.setColor(y),M.style.opacity=m.opacity;for(var C=0;C<Sr.length;C++){var I=Sr[C],T=o.getState(I);if(T){var D=T.style||{},E=M.ensureState(I),R=E.style||(E.style={});D.stroke!=null&&(R[M.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(R.opacity=D.opacity)}}M.markRedraw()}},this);var _=i.getRawValue(a);Qe(this,c,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(S,M){return i.getFormattedLabel(S,M,e.dataType)}},inheritColor:y||"#000",defaultOpacity:m.opacity,defaultText:(_==null?e.getName(a):isFinite(_)?ke(_):_)+""});var b=this.getTextContent();if(b){var x=c.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=x.get("position")||"middle";var w=x.get("distance");K(w)||(w=[w,w]),b.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Le(this,v,d,f)},t.prototype.highlight=function(){Bn(this)},t.prototype.downplay=function(){Vn(this)},t.prototype.updateLayout=function(e,a){this.setLinePoints(e.getItemLayout(a))},t.prototype.setLinePoints=function(e){var a=this.childOfName("line");Ky(a.shape,e),a.dirty()},t.prototype.beforeUpdate=function(){var e=this,a=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),v=Mo([],f,c);hl(v,v);function d(T,D){var E=T.__specifiedRotation;if(E==null){var R=l.tangentAt(D);T.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else T.attr("rotation",E)}if(a&&(a.setPosition(c),d(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(f),d(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,g=void 0,m=i.__labelDistance,y=m[0]*o,_=m[1]*o,b=u/2,x=l.tangentAt(b),w=[x[1],-x[0]],S=l.pointAt(b);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var M=x[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(x[1],x[0]);f[0]<c[0]&&(C=Math.PI+C),i.rotation=C}var I=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":I=-_,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":I=_,g="top";break;default:I=0,g="middle"}switch(i.__position){case"end":i.x=v[0]*y+f[0],i.y=v[1]*_+f[1],h=v[0]>.8?"left":v[0]<-.8?"right":"center",g=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+c[0],i.y=-v[1]*_+c[1],h=v[0]>.8?"right":v[0]<-.8?"left":"center",g=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*M+c[0],i.y=c[1]+I,h=x[0]<0?"right":"left",i.originX=-y*M,i.originY=-I;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+I,h="center",i.originY=-I;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*M+f[0],i.y=f[1]+I,h=x[0]>=0?"right":"left",i.originX=y*M,i.originY=-I;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||h})}},t}(It),d_=function(){function r(t){this.group=new It,this._LineCtor=t||v_}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=vM(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=vM(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!$W(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var i=e.getItemLayout(n);if(Pg(i)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(a),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Oi(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,a){var n=t.getItemLayout(e);if(Pg(n)){var i=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,a,n,i){var o=t.getItemGraphicEl(a);if(!Pg(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,i):o=new this._LineCtor(e,n,i),e.setItemGraphicEl(n,o),this.group.add(o)},r}();function $W(r){return r.animators&&r.animators.length>0}function vM(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:Ze(t)}}function dM(r){return isNaN(r[0])||isNaN(r[1])}function Pg(r){return r&&!dM(r[0])&&!dM(r[1])}var Rg=[],Eg=[],Ng=[],Ss=Ue,$g=Ro,hM=Math.abs;function pM(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,c=.1;c<=.9;c+=.1){Rg[0]=Ss(a[0],n[0],i[0],c),Rg[1]=Ss(a[1],n[1],i[1],c);var f=hM($g(Rg,t)-l);f<o&&(o=f,s=c)}for(var v=0;v<32;v++){var d=s+u;Eg[0]=Ss(a[0],n[0],i[0],s),Eg[1]=Ss(a[1],n[1],i[1],s),Ng[0]=Ss(a[0],n[0],i[0],d),Ng[1]=Ss(a[1],n[1],i[1],d);var f=$g(Eg,t)-l;if(hM(f)<.01)break;var h=$g(Ng,t)-l;u/=2,f<0?h>=0?s=s+u:s=s-u:h>=0?s=s-u:s=s+u}return s}function Og(r,t){var e=[],a=tc,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Pn(u[0]),Pn(u[1])],u[2]&&u.__original.push(Pn(u[2])));var v=u.__original;if(u[2]!=null){if(pr(n[0],v[0]),pr(n[1],v[2]),pr(n[2],v[1]),c&&c!=="none"){var d=bu(s.node1),h=pM(n,v[0],d*t);a(n[0][0],n[1][0],n[2][0],h,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],h,e),n[0][1]=e[3],n[1][1]=e[4]}if(f&&f!=="none"){var d=bu(s.node2),h=pM(n,v[1],d*t);a(n[0][0],n[1][0],n[2][0],h,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],h,e),n[1][1]=e[1],n[2][1]=e[2]}pr(u[0],n[0]),pr(u[1],n[2]),pr(u[2],n[1])}else{if(pr(i[0],v[0]),pr(i[1],v[1]),Mo(o,i[1],i[0]),hl(o,o),c&&c!=="none"){var d=bu(s.node1);Nm(i[0],i[0],o,d*t)}if(f&&f!=="none"){var d=bu(s.node2);Nm(i[1],i[1],o,-d*t)}pr(u[0],i[0]),pr(u[1],i[1])}})}function gM(r){return r.type==="view"}var OW=function(r){G(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,a){var n=new Yc,i=new d_,o=this.group;this._controller=new Kc(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(gM(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ee(u,c,e)}Og(e.getGraph(),_u(e));var f=e.getData();s.updateData(f);var v=e.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(e,a,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,h=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,h);var g=e.get("layout");f.graph.eachNode(function(b){var x=b.dataIndex,w=b.getGraphicEl(),S=b.getModel();if(w){w.off("drag").off("dragend");var M=S.get("draggable");M&&w.on("drag",function(I){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,h),d.setFixed(x),f.setItemLayout(x,[w.x,w.y]);break;case"circular":f.setItemLayout(x,[w.x,w.y]),b.setLayout({fixed:!0},!0),f_(e,"symbolSize",b,[I.offsetX,I.offsetY]),i.updateLayout(e);break;case"none":default:f.setItemLayout(x,[w.x,w.y]),c_(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),w.setDraggable(M,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(Tt(w).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var x=b.getGraphicEl(),w=b.getModel().get(["emphasis","focus"]);x&&w==="adjacency"&&(Tt(x).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var m=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),y=f.getLayout("cx"),_=f.getLayout("cy");f.graph.eachNode(function(b){fP(b,m,y,_)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a){var n=this;(function i(){e.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(c,f)&&!Ph(u,n,e)}),!gM(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){e_(s,u.dx,u.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){r_(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Og(e.getGraph(),_u(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=_u(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){Og(e.getGraph(),_u(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}(ce);function Ms(r){return"_EC_"+r}var zW=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 a=this._nodesMap;if(!a[Ms(t)]){var n=new yo(t,e);return n.hostGraph=this,this.nodes.push(n),a[Ms(t)]=n,n}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Ms(t)]},r.prototype.addEdge=function(t,e,a){var n=this._nodesMap,i=this._edgesMap;if(Qt(t)&&(t=this.nodes[t]),Qt(e)&&(e=this.nodes[e]),t instanceof yo||(t=n[Ms(t)]),e instanceof yo||(e=n[Ms(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new dP(t,e,a);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof yo&&(t=t.id),e instanceof yo&&(e=e.id);var a=this._edgesMap;return this._directed?a[t+"-"+e]:a[t+"-"+e]||a[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof yo||(e=this._nodesMap[Ms(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(n,f,l))return;s.push(f),f.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(s){var l=n[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,a=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r}(),yo=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var a=this.edges[e];a.dataIndex<0||(t.edge.push(a.dataIndex),t.node.push(a.node1.dataIndex,a.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=mt(),e=mt(),a=0;a<this.edges.length;a++){var n=this.edges[a];if(!(n.dataIndex<0)){t.set(n.dataIndex,!0);for(var i=[n.node1],o=[n.node2],s=0;s<i.length;){var l=i[s];s++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,e.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},r}(),dP=function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=mt(),e=mt();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,e.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),a.push(o.inEdges[s].node1)}for(i=0;i<n.length;){var l=n[i];i++,e.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),n.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},r}();function hP(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},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)}}}Oe(yo,hP("hostGraph","data"));Oe(dP,hP("hostGraph","edgeData"));function pP(r,t,e,a,n){for(var i=new zW(a),o=0;o<r.length;o++)i.addNode(je(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,v=c.target;i.addEdge(f,v,u)&&(l.push(c),s.push(je(ze(c.id,null),f+" > "+v)),u++)}var d=e.get("coordinateSystem"),h;if(d==="cartesian2d"||d==="polar")h=jn(r,e);else{var g=Gc.get(d),m=g?g.dimensions||[]:[];Nt(m,"value")<0&&m.concat(["value"]);var y=Hc(r,{coordDimensions:m,encodeDefine:e.getEncode()}).dimensions;h=new br(y,e),h.initData(r)}var _=new br(["value"],e);return _.initData(l,s),n&&n(h,_),qk({mainData:h,struct:i,structAttr:"graph",datas:{node:h,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var BW=function(r){G(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 a=this;function n(){return a._categoriesData}this.legendVisualProvider=new qc(n,n),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),Wo(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){CW(this);var s=pP(i,n,this,!0,l);return A(s.edges,function(u){IW(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(h){var g=o._categoriesModels,m=h.getShallow("category"),y=g[m];return y&&(y.parentModel=h.parentModel,h.parentModel=y),h});var f=se.prototype.getModel;function v(h,g){var m=f.call(this,h,g);return m.resolveParentPath=d,m}c.wrapMethod("getItemModel",function(h){return h.resolveParentPath=d,h.getModel=v,h});function d(h){if(h&&(h[0]==="label"||h[1]==="label")){var g=h.slice();return h[0]==="label"?g[0]="edgeLabel":h[1]==="label"&&(g[1]="edgeLabel"),g}return h}}},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,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Ye("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=N5({series:this,dataIndex:e,multipleSeries:a});return f},t.prototype._updateCategoriesData=function(){var e=Q(this.option.categories||[],function(n){return n.value!=null?n:Y({value:0},n)}),a=new br(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},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}(xe),VW={type:"graphRoam",event:"graphRoam",update:"none"};function GW(r){r.registerChartView(OW),r.registerSeriesModel(BW),r.registerProcessor(bW),r.registerVisual(xW),r.registerVisual(wW),r.registerLayout(TW),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,DW),r.registerLayout(kW),r.registerCoordinateSystem("graphView",{dimensions:Jc.dimensions,create:RW}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Re),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Re),r.registerAction(VW,function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=n.coordinateSystem,o=n_(i,t,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var FW=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),HW=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new FW},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),c=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,c)},t}(Vt);function WW(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=lt(e[0],t.getWidth()),s=lt(e[1],t.getHeight()),l=lt(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function jf(r,t){var e=r==null?"":r+"";return t&&(ft(t)?e=t.replace("{value}",e):xt(t)&&(e=t(r))),e}var ZW=function(r){G(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,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=WW(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,f=e.getModel("axisLine"),v=f.get("roundCap"),d=v?xd:Mr,h=f.get("show"),g=f.getModel("lineStyle"),m=g.get("width"),y=[u,c];s1(y,!l),u=y[0],c=y[1];for(var _=c-u,b=u,x=[],w=0;h&&w<i.length;w++){var S=Math.min(Math.max(i[w][0],0),1);c=u+_*S;var M=new d({shape:{startAngle:b,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});M.setStyle({fill:i[w][1]}),M.setStyle(g.getLineStyle(["color","width"])),x.push(M),b=c}x.reverse(),A(x,function(I){return s.add(I)});var C=function(I){if(I<=0)return i[0][1];var T;for(T=0;T<i.length;T++)if(i[T][0]>=I&&(T===0?0:i[T-1][0])<I)return i[T][1];return i[T-1][1]};this._renderTicks(e,a,n,C,o,u,c,l,m),this._renderTitleAndDetail(e,a,n,C,o),this._renderAnchor(e,o),this._renderPointer(e,a,n,C,o,u,c,l,m)},t.prototype._renderTicks=function(e,a,n,i,o,s,l,u,c){for(var f=this.group,v=o.cx,d=o.cy,h=o.r,g=+e.get("min"),m=+e.get("max"),y=e.getModel("splitLine"),_=e.getModel("axisTick"),b=e.getModel("axisLabel"),x=e.get("splitNumber"),w=_.get("splitNumber"),S=lt(y.get("length"),h),M=lt(_.get("length"),h),C=s,I=(l-s)/x,T=I/w,D=y.getModel("lineStyle").getLineStyle(),E=_.getModel("lineStyle").getLineStyle(),R=y.get("distance"),k,N,O=0;O<=x;O++){if(k=Math.cos(C),N=Math.sin(C),y.get("show")){var V=R?R+c:c,B=new Fe({shape:{x1:k*(h-V)+v,y1:N*(h-V)+d,x2:k*(h-S-V)+v,y2:N*(h-S-V)+d},style:D,silent:!0});D.stroke==="auto"&&B.setStyle({stroke:i(O/x)}),f.add(B)}if(b.get("show")){var V=b.get("distance")+R,Z=jf(ke(O/x*(m-g)+g),b.get("formatter")),X=i(O/x),et=k*(h-S-V)+v,it=N*(h-S-V)+d,yt=b.get("rotate"),_t=0;yt==="radial"?(_t=-C+2*Math.PI,_t>Math.PI/2&&(_t+=Math.PI)):yt==="tangential"?_t=-C-Math.PI/2:Qt(yt)&&(_t=yt*Math.PI/180),_t===0?f.add(new Kt({style:be(b,{text:Z,x:et,y:it,verticalAlign:N<-.8?"top":N>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:X}),silent:!0})):f.add(new Kt({style:be(b,{text:Z,x:et,y:it,verticalAlign:"middle",align:"center"},{inheritColor:X}),silent:!0,originX:et,originY:it,rotation:_t}))}if(_.get("show")&&O!==x){var V=_.get("distance");V=V?V+c:c;for(var Ct=0;Ct<=w;Ct++){k=Math.cos(C),N=Math.sin(C);var Wt=new Fe({shape:{x1:k*(h-V)+v,y1:N*(h-V)+d,x2:k*(h-M-V)+v,y2:N*(h-M-V)+d},silent:!0,style:E});E.stroke==="auto"&&Wt.setStyle({stroke:i((O+Ct/w)/x)}),f.add(Wt),C+=T}C-=T}else C+=I}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,c){var f=this.group,v=this._data,d=this._progressEls,h=[],g=e.get(["pointer","show"]),m=e.getModel("progress"),y=m.get("show"),_=e.getData(),b=_.mapDimension("value"),x=+e.get("min"),w=+e.get("max"),S=[x,w],M=[s,l];function C(T,D){var E=_.getItemModel(T),R=E.getModel("pointer"),k=lt(R.get("width"),o.r),N=lt(R.get("length"),o.r),O=e.get(["pointer","icon"]),V=R.get("offsetCenter"),B=lt(V[0],o.r),Z=lt(V[1],o.r),X=R.get("keepAspect"),et;return O?et=$e(O,B-k/2,Z-N,k,N,null,X):et=new HW({shape:{angle:-Math.PI/2,width:k,r:N,x:B,y:Z}}),et.rotation=-(D+Math.PI/2),et.x=o.cx,et.y=o.cy,et}function I(T,D){var E=m.get("roundCap"),R=E?xd:Mr,k=m.get("overlap"),N=k?m.get("width"):c/_.count(),O=k?o.r-N:o.r-(T+1)*N,V=k?o.r:o.r-T*N,B=new R({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:V}});return k&&(B.z2=oe(_.get(b,T),[x,w],[100,0],!0)),B}(y||g)&&(_.diff(v).add(function(T){var D=_.get(b,T);if(g){var E=C(T,s);Me(E,{rotation:-((isNaN(+D)?M[0]:oe(D,S,M,!0))+Math.PI/2)},e),f.add(E),_.setItemGraphicEl(T,E)}if(y){var R=I(T,s),k=m.get("clip");Me(R,{shape:{endAngle:oe(D,S,M,k)}},e),f.add(R),sy(e.seriesIndex,_.dataType,T,R),h[T]=R}}).update(function(T,D){var E=_.get(b,T);if(g){var R=v.getItemGraphicEl(D),k=R?R.rotation:s,N=C(T,k);N.rotation=k,ee(N,{rotation:-((isNaN(+E)?M[0]:oe(E,S,M,!0))+Math.PI/2)},e),f.add(N),_.setItemGraphicEl(T,N)}if(y){var O=d[D],V=O?O.shape.endAngle:s,B=I(T,V),Z=m.get("clip");ee(B,{shape:{endAngle:oe(E,S,M,Z)}},e),f.add(B),sy(e.seriesIndex,_.dataType,T,B),h[T]=B}}).execute(),_.each(function(T){var D=_.getItemModel(T),E=D.getModel("emphasis"),R=E.get("focus"),k=E.get("blurScope"),N=E.get("disabled");if(g){var O=_.getItemGraphicEl(T),V=_.getItemVisual(T,"style"),B=V.fill;if(O instanceof Xe){var Z=O.style;O.useStyle(Y({image:Z.image,x:Z.x,y:Z.y,width:Z.width,height:Z.height},V))}else O.useStyle(V),O.type!=="pointer"&&O.setColor(B);O.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",i(oe(_.get(b,T),S,[0,1],!0))),O.z2EmphasisLift=0,Je(O,D),Le(O,R,k,N)}if(y){var X=h[T];X.useStyle(_.getItemVisual(T,"style")),X.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),X.z2EmphasisLift=0,Je(X,D),Le(X,R,k,N)}}),this._progressEls=h)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=$e(s,a.cx-o/2+lt(l[0],a.r),a.cy-o/2+lt(l[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),c=+e.get("min"),f=+e.get("max"),v=new It,d=[],h=[],g=e.isAnimationEnabled(),m=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){d[y]=new Kt({silent:!0}),h[y]=new Kt({silent:!0})}).update(function(y,_){d[y]=s._titleEls[_],h[y]=s._detailEls[_]}).execute(),l.each(function(y){var _=l.getItemModel(y),b=l.get(u,y),x=new It,w=i(oe(b,[c,f],[0,1],!0)),S=_.getModel("title");if(S.get("show")){var M=S.get("offsetCenter"),C=o.cx+lt(M[0],o.r),I=o.cy+lt(M[1],o.r),T=d[y];T.attr({z2:m?0:2,style:be(S,{x:C,y:I,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),x.add(T)}var D=_.getModel("detail");if(D.get("show")){var E=D.get("offsetCenter"),R=o.cx+lt(E[0],o.r),k=o.cy+lt(E[1],o.r),N=lt(D.get("width"),o.r),O=lt(D.get("height"),o.r),V=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,T=h[y],B=D.get("formatter");T.attr({z2:m?0:2,style:be(D,{x:R,y:k,text:jf(b,B),width:isNaN(N)?null:N,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:V})}),BD(T,{normal:D},b,function(X){return jf(X,B)}),g&&VD(T,y,l,e,{getFormattedLabel:function(X,et,it,yt,_t,Ct){return jf(Ct?Ct.interpolatedValue:b,B)}}),x.add(T)}v.add(x)}),this.group.add(v),this._titleEls=d,this._detailEls=h},t.type="gauge",t}(ce),YW=function(r){G(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,a){return Al(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}(xe);function UW(r){r.registerChartView(ZW),r.registerSeriesModel(YW)}var jW=["itemStyle","opacity"],XW=function(r){G(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new Ir,s=new Kt;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),c=s.get(jW);c=c??1,n||Aa(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Me(i,{style:{opacity:c}},o,a)):ee(i,{style:{opacity:c},shape:{points:l.points}},o,a),Je(i,s),this._updateLabel(e,a),Le(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),c=u.label,f=e.getItemVisual(a,"style"),v=f.fill;Qe(o,Ze(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:f.opacity,defaultText:e.getName(a)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:v,outsideFill:v});var d=c.linePoints;i.setShape({points:d}),n.textGuideLineConfig={anchor:d?new kt(d[0][0],d[0][1]):null},ee(o,{style:{x:c.x,y:c.y}},s,a),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),W1(n,Z1(l),{stroke:v})},t}(Cr),qW=function(r){G(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,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new XW(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);sc(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(ce),KW=function(r){G(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 qc(dt(this.getData,this),dt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return Al(this,{coordDimensions:["value"],encodeDefaulter:Dt(M1,this)})},t.prototype._defaultLabelLine=function(e){Wo(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},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}(xe);function JW(r,t){return Ve(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function QW(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return xt(t)?n.sort(t):t!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function tZ(r){var t=r.hostModel,e=t.get("orient");r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,v,d,h;if(c)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,d=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,d=(u[1][1]+u[2][1])/2,f="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,d=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),h=[[v,d],[v,d]];else{var g=void 0,m=void 0,y=void 0,_=void 0,b=s.get("length");o==="left"?(g=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=g-b,v=y-5,f="right"):o==="right"?(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=g+b,v=y+5,f="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,_=m-b,d=_-5,f="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,_=m+b,d=_+5,f="center"):o==="rightTop"?(g=e==="horizontal"?u[3][0]:u[1][0],m=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(_=m-b,d=_-5,f="center"):(y=g+b,v=y+5,f="top")):o==="rightBottom"?(g=u[2][0],m=u[2][1],e==="horizontal"?(_=m+b,d=_+5,f="center"):(y=g+b,v=y+5,f="bottom")):o==="leftTop"?(g=u[0][0],m=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(_=m-b,d=_-5,f="center"):(y=g-b,v=y-5,f="right")):o==="leftBottom"?(g=e==="horizontal"?u[1][0]:u[3][0],m=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(_=m+b,d=_+5,f="center"):(y=g-b,v=y-5,f="right")):(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,e==="horizontal"?(_=m+b,d=_+5,f="center"):(y=g+b,v=y+5,f="left")),e==="horizontal"?(y=g,v=y):(_=m,d=_),h=[[g,m],[y,_]]}l.label={linePoints:h,x:v,y:d,verticalAlign:"middle",textAlign:f,inside:c}})}function eZ(r,t){r.eachSeriesByType("funnel",function(e){var a=e.getData(),n=a.mapDimension("value"),i=e.get("sort"),o=JW(e,t),s=e.get("orient"),l=o.width,u=o.height,c=QW(a,i),f=o.x,v=o.y,d=s==="horizontal"?[lt(e.get("minSize"),u),lt(e.get("maxSize"),u)]:[lt(e.get("minSize"),l),lt(e.get("maxSize"),l)],h=a.getDataExtent(n),g=e.get("min"),m=e.get("max");g==null&&(g=Math.min(h[0],0)),m==null&&(m=h[1]);var y=e.get("funnelAlign"),_=e.get("gap"),b=s==="horizontal"?l:u,x=(b-_*(a.count()-1))/a.count(),w=function(k,N){if(s==="horizontal"){var O=a.get(n,k)||0,V=oe(O,[g,m],d,!0),B=void 0;switch(y){case"top":B=v;break;case"center":B=v+(u-V)/2;break;case"bottom":B=v+(u-V);break}return[[N,B],[N,B+V]]}var Z=a.get(n,k)||0,X=oe(Z,[g,m],d,!0),et;switch(y){case"left":et=f;break;case"center":et=f+(l-X)/2;break;case"right":et=f+l-X;break}return[[et,N],[et+X,N]]};i==="ascending"&&(x=-x,_=-_,s==="horizontal"?f+=l:v+=u,c=c.reverse());for(var S=0;S<c.length;S++){var M=c[S],C=c[S+1],I=a.getItemModel(M);if(s==="horizontal"){var T=I.get(["itemStyle","width"]);T==null?T=x:(T=lt(T,l),i==="ascending"&&(T=-T));var D=w(M,f),E=w(C,f+T);f+=T+_,a.setItemLayout(M,{points:D.concat(E.slice().reverse())})}else{var R=I.get(["itemStyle","height"]);R==null?R=x:(R=lt(R,u),i==="ascending"&&(R=-R));var D=w(M,v),E=w(C,v+R);v+=R+_,a.setItemLayout(M,{points:D.concat(E.slice().reverse())})}}tZ(a)})}function rZ(r){r.registerChartView(qW),r.registerSeriesModel(KW),r.registerLayout(eZ),r.registerProcessor(Xc("funnel"))}var aZ=.3,nZ=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new It,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.dimensions,f=yM(e);s.diff(l).add(v).update(d).remove(h).execute();function v(m){var y=mM(s,o,m,c,u);zg(y,s,m,f)}function d(m,y){var _=l.getItemGraphicEl(y),b=gP(s,m,c,u);s.setItemGraphicEl(m,_),ee(_,{shape:{points:b}},e,m),Aa(_),zg(_,s,m,f)}function h(m){var y=l.getItemGraphicEl(m);o.remove(y)}if(!this._initialized){this._initialized=!0;var g=iZ(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(g)}this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=yM(a),u=this._progressiveEls=[],c=e.start;c<e.end;c++){var f=mM(i,this._dataGroup,c,s,o);f.incremental=!0,zg(f,i,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(ce);function iZ(r,t,e){var a=r.model,n=r.getRect(),i=new Xt({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Me(i,{shape:{width:n.width,height:n.height}},t,e),i}function gP(r,t,e,a){for(var n=[],i=0;i<e.length;i++){var o=e[i],s=r.get(r.mapDimension(o),t);oZ(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function mM(r,t,e,a,n){var i=gP(r,e,a,n),o=new Ir({shape:{points:i},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function yM(r){var t=r.get("smooth",!0);return t===!0&&(t=aZ),t=zn(t),Ju(t)&&(t=0),{smooth:t}}function zg(r,t,e,a){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=t.getItemModel(e),i=n.getModel("emphasis");Je(r,n,"lineStyle"),Le(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function oZ(r,t){return t==="category"?r==null:r==null||isNaN(r)}var sZ=function(r){G(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.getInitialData=function(e,a){return jn(null,this,{useEncodeDefaulter:dt(lZ,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){e===o&&i.push(n.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(xe);function lZ(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return A(t.dimensions,function(a){var n=uZ(a);e[a]=n}),e}}function uZ(r){return+r.replace("dim","")}var cZ=["lineStyle","opacity"],fZ={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){e.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(cZ,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},n.start,n.end)}}}};function vZ(r){dZ(r),hZ(r)}function dZ(r){if(!r.parallel){var t=!1;A(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function hZ(r){var t=ue(r.parallelAxis);A(t,function(e){if(St(e)){var a=e.parallelIndex||0,n=ue(r.parallel)[a];n&&n.parallelAxisDefault&&Lt(e,n.parallelAxisDefault,!1)}})}var pZ=5,gZ=function(r){G(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,a,n){this._model=e,this._api=n,this._handlers||(this._handlers={},A(mZ,function(i,o){n.getZr().on(o,this._handlers[o]=dt(i,this))},this)),Cl(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){fc(this,"_throttledDispatchExpand"),A(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Y({type:"parallelAxisExpand"},e))},t.type="parallel",t}(De),mZ={mousedown:function(r){Bg(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(Bg(this,"click")&&t){var e=[r.offsetX,r.offsetY],a=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(a>pZ)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Bg(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Bg(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var yZ=function(r){G(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 a=this.option;e&&Lt(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=ne(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){e.push("dim"+i.get("dim")),a.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}(Yt),_Z=function(r){G(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(La);function os(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Cs(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Cs(s,[0,o]),n=i=Cs(s,[n,i]),a=0}t[0]=Cs(t[0],e),t[1]=Cs(t[1],e);var l=Vg(t,a);t[a]+=r;var u=n||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[a]=Cs(t[a],c);var f;return f=Vg(t,a),n!=null&&(f.sign!==l.sign||f.span<n)&&(t[1-a]=t[a]+l.sign*n),f=Vg(t,a),i!=null&&f.span>i&&(t[1-a]=t[a]+f.sign*i),t}function Vg(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Cs(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Gg=A,mP=Math.min,yP=Math.max,_M=Math.floor,bZ=Math.ceil,bM=ke,xZ=Math.PI,wZ=function(){function r(t,e,a){this.type="parallel",this._axesMap=mt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;Gg(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),c=this._axesMap.set(o,new _Z(o,Lh(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var n=a.getData();Gg(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),ol(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=Ve(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,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,c=Xf(t.get("axisExpandWidth"),l),f=Xf(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,d=t.get("axisExpandWindow"),h;if(d)h=Xf(d[1]-d[0],l),d[1]=d[0]+h;else{h=Xf(c*(f-1),l);var g=t.get("axisExpandCenter")||_M(u/2);d=[c*g-h/2],d[1]=d[0]+h}var m=(s-h)/(u-f);m<3&&(m=0);var y=[_M(bM(d[0]/c,1))+1,bZ(bM(d[1]/c,1))-1],_=m/c*d[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:v,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:d,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:_}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Gg(a,function(o,s){var l=(n.axisExpandable?MZ:SZ)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:xZ/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],v=c[i],d=Yr();Qo(d,d,v),cn(d,d,f),this._axesLayout[o]={position:f,rotation:v,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(m){s.push(t.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=a;c<n;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var v=t.getValues(s,c),d=0,h=o.length;d<h;d++){var g=l[d].getActiveState(v[d]);if(g==="inactive"){f="inactive";break}}}e(f,c)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,a=!1,n=0,i=t.length;n<i;n++)e.get(t[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(t,e){var a=this._axesLayout[e];return Ca([t,0],a.transform)},r.prototype.getAxisLayout=function(t){return Mt(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),a=e.pixelDimIndex,n=e.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var s=t[a]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",c=e.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),v=f[0]!=null;if(c)v&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):v&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=e.axisExpandWidth/c,l?os(l,n,o,"all"):u="none";else{var d=n[1]-n[0],h=o[1]*s/d;n=[yP(0,h-d/2)],n[1]=mP(o[1],n[0]+d),n[0]=n[1]-d}return{axisExpandWindow:n,behavior:u}},r}();function Xf(r,t){return mP(yP(r,t[0]),t[1])}function SZ(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function MZ(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*a-t.axisExpandWindow[0],l=a,u=!0):(s=e-(n-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function CZ(r,t){var e=[];return r.eachComponent("parallel",function(a,n){var i=new wZ(a,r,t);i.name="parallel_"+n,i.resize(a,t),a.coordinateSystem=i,i.model=a,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",Ne).models[0];a.coordinateSystem=n.coordinateSystem}}),e}var IZ={create:CZ},Jy=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return Yo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=Mt(e);if(a)for(var n=a.length-1;n>=0;n--)la(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=e&&e<=a[i][1])return"active";return"inactive"},t}(Yt);Oe(Jy,Wc);var Xo=!0,Sc=Math.min,ul=Math.max,TZ=Math.pow,AZ=1e4,DZ=6,LZ=6,xM="globalPan",kZ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},PZ={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wM={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},RZ=0,h_=function(r){G(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new It,a._uid="brushController_"+RZ++,A(VZ,function(n,i){this._handlers[i]=dt(n,this)},a),a}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var a=this._zr;this._enableGlobalPan||SF(a,xM,this._uid),A(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=Lt(Mt(wM),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;MF(e,xM,this._uid),A(this._handlers,function(a,n){e.off(n,a)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var a=this._panels={};A(e,function(n){a[n.panelId]=Mt(n)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=a.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Q(e,function(v){return Lt(Mt(wM),v,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Gn(n,e,u,l).add(c).update(c).remove(f).execute(),this;function l(v,d){return(v.id!=null?v.id:a+d)+"-"+v.brushType}function u(v,d){return l(v.__brushOption,d)}function c(v,d){var h=e[v];if(d!=null&&n[d]===s)i[v]=n[d];else{var g=i[v]=d!=null?(n[d].__brushOption=h,n[d]):bP(o,_P(o,h));p_(o,g)}}function f(v){n[v]!==s&&o.group.remove(n[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),Qy(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(da);function _P(r,t){var e=$h[t.brushType].createCover(r,t);return e.__brushOption=t,wP(e,t),r.group.add(e),e}function bP(r,t){var e=g_(t);return e.endCreating&&(e.endCreating(r,t),wP(t,t.__brushOption)),t}function xP(r,t){var e=t.__brushOption;g_(t).updateCoverShape(r,t,e.range,e)}function wP(r,t){var e=t.z;e==null&&(e=AZ),r.traverse(function(a){a.z=e,a.z2=e})}function p_(r,t){g_(t).updateCommon(r,t),xP(r,t)}function g_(r){return $h[r.__brushOption.brushType]}function m_(r,t,e){var a=r._panels;if(!a)return Xo;var n,i=r._transform;return A(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function SP(r,t){var e=r._panels;if(!e)return Xo;var a=t.__brushOption.panelId;return a!=null?e[a]:Xo}function Qy(r){var t=r._covers,e=t.length;return A(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function qo(r,t){var e=Q(r._covers,function(a){var n=a.__brushOption,i=Mt(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function EZ(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],a=t[0],n=e[0]-a[0],i=e[1]-a[1],o=TZ(n*n+i*i,.5);return o>DZ}function MP(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function CP(r,t,e,a){var n=new It;return n.add(new Xt({name:"main",style:y_(e),silent:!0,draggable:!0,cursor:"move",drift:Dt(SM,r,t,n,["n","s","w","e"]),ondragend:Dt(qo,t,{isEnd:!0})})),A(a,function(i){n.add(new Xt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Dt(SM,r,t,n,i),ondragend:Dt(qo,t,{isEnd:!0})}))}),n}function IP(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=ul(n,LZ),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,c=e[0][1],f=e[1][1],v=c-i+n/2,d=f-i+n/2,h=c-o,g=f-s,m=h+n,y=g+n;wn(r,t,"main",o,s,h,g),a.transformable&&(wn(r,t,"w",l,u,i,y),wn(r,t,"e",v,u,i,y),wn(r,t,"n",l,u,m,i),wn(r,t,"s",l,d,m,i),wn(r,t,"nw",l,u,i,i),wn(r,t,"ne",v,u,i,i),wn(r,t,"sw",l,d,i,i),wn(r,t,"se",v,d,i,i))}function t0(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(y_(e)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?e0(r,i[0]):$Z(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?PZ[s]+"-resize":null})})}function wn(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(zZ(__(r,t,[[a,n],[a+i,n+o]])))}function y_(r){return wt({strokeNoScale:!0},r.brushStyle)}function TP(r,t,e,a){var n=[Sc(r,e),Sc(t,a)],i=[ul(r,e),ul(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function NZ(r){return zo(r.group)}function e0(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=hh(e[t],NZ(r));return a[n]}function $Z(r,t){var e=[e0(r,t[0]),e0(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function SM(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=AP(t,n,i);A(a,function(u){var c=kZ[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(TP(s[0][0],s[1][0],s[0][1],s[1][1])),p_(t,e),qo(t,{isEnd:!1})}function OZ(r,t,e,a){var n=t.__brushOption.range,i=AP(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),p_(r,t),qo(r,{isEnd:!1})}function AP(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function __(r,t,e){var a=SP(r,t);return a&&a!==Xo?a.clipPath(e,r._transform):Mt(e)}function zZ(r){var t=Sc(r[0][0],r[1][0]),e=Sc(r[0][1],r[1][1]),a=ul(r[0][0],r[1][0]),n=ul(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function BZ(r,t,e){if(!(!r._brushType||GZ(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=m_(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===Xo||s.panelId===i.panelId)&&$h[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function r0(r){var t=r.event;t.preventDefault&&t.preventDefault()}function a0(r,t,e){return r.childOfName("main").contain(t,e)}function DP(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),EZ(r)||n){if(i&&!n){o.brushMode==="single"&&Qy(r);var l=Mt(o);l.brushType=MM(l.brushType,i),l.panelId=i===Xo?null:i.panelId,n=r._creatingCover=_P(r,l),r._covers.push(n)}if(n){var u=$h[MM(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(__(r,n,r._track)),a&&(bP(r,n),u.updateCommon(r,n)),xP(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&m_(r,t,e)&&Qy(r)&&(s={isEnd:a,removeOnClick:!0});return s}function MM(r,t){return r==="auto"?t.defaultBrushType:r}var VZ={mousedown:function(r){if(this._dragging)CM(this,r);else if(!r.target||!r.target.draggable){r0(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=m_(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,a=this.group.transformCoordToLocal(t,e);if(BZ(this,r,a),this._dragging){r0(r);var n=DP(this,r,a,!1);n&&qo(this,n)}},mouseup:function(r){CM(this,r)}};function CM(r,t){if(r._dragging){r0(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=DP(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&qo(r,i)}}function GZ(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var $h={lineX:IM(0),lineY:IM(1),rect:{createCover:function(r,t){function e(a){return a}return CP({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=MP(r);return TP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){IP(r,t,e,a)},updateCommon:t0,contain:a0},polygon:{createCover:function(r,t){var e=new It;return e.add(new Ir({name:"main",style:y_(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Cr({name:"main",draggable:!0,drift:Dt(OZ,r,t),ondragend:Dt(qo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:__(r,t,e)})},updateCommon:t0,contain:a0}};function IM(r){return{createCover:function(t,e){return CP({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=MP(t),a=Sc(e[0][r],e[1][r]),n=ul(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=SP(t,e);if(o!==Xo&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),IP(t,e,l,n)},updateCommon:t0,contain:a0}}function LP(r){return r=b_(r),function(t){return $D(t,r)}}function kP(r,t){return r=b_(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function PP(r,t,e){var a=b_(r);return function(n,i){return a.contain(i[0],i[1])&&!Ph(n,t,e)}}function b_(r){return Pt.create(r)}var FZ=["axisLine","axisTickLabel","axisName"],HZ=function(r){G(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,a){r.prototype.init.apply(this,arguments),(this._brushController=new h_(a.getZr())).on("brush",dt(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!WZ(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new It,this.group.add(this._axisGroup),!!e.get("show")){var s=YZ(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,f=e.axis.dim,v=l.getAxisLayout(f),d=Y({strokeContainThreshold:c},v),h=new xr(e,d);A(FZ,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(d,u,e,s,c,n),Bc(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Pt.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:LP(f),isTargetByCursor:PP(f,s,i),getLinearBrushOtherExtent:kP(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(ZZ(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=Q(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(De);function WZ(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function ZZ(r){var t=r.axis;return Q(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function YZ(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var UZ={type:"axisAreaSelect",event:"axisAreaSelected"};function jZ(r){r.registerAction(UZ,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var XZ={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function RP(r){r.registerComponentView(gZ),r.registerComponentModel(yZ),r.registerCoordinateSystem("parallel",IZ),r.registerPreprocessor(vZ),r.registerComponentModel(Jy),r.registerComponentView(HZ),ll(r,"parallel",Jy,XZ),jZ(r)}function qZ(r){Bt(RP),r.registerChartView(nZ),r.registerSeriesModel(sZ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,fZ)}var KZ=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}(),JZ=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new KZ},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){Bn(this)},t.prototype.downplay=function(){Vn(this)},t}(Vt),QZ=function(r){G(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,a,n){var i=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,c=l.height,f=e.getData(),v=e.getData("edge"),d=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(h){var g=new JZ,m=Tt(g);m.dataIndex=h.dataIndex,m.seriesIndex=e.seriesIndex,m.dataType="edge";var y=h.getModel(),_=y.getModel("lineStyle"),b=_.get("curveness"),x=h.node1.getLayout(),w=h.node1.getModel(),S=w.get("localX"),M=w.get("localY"),C=h.node2.getLayout(),I=h.node2.getModel(),T=I.get("localX"),D=I.get("localY"),E=h.getLayout(),R,k,N,O,V,B,Z,X;g.shape.extent=Math.max(1,E.dy),g.shape.orient=d,d==="vertical"?(R=(S!=null?S*u:x.x)+E.sy,k=(M!=null?M*c:x.y)+x.dy,N=(T!=null?T*u:C.x)+E.ty,O=D!=null?D*c:C.y,V=R,B=k*(1-b)+O*b,Z=N,X=k*b+O*(1-b)):(R=(S!=null?S*u:x.x)+x.dx,k=(M!=null?M*c:x.y)+E.sy,N=T!=null?T*u:C.x,O=(D!=null?D*c:C.y)+E.ty,V=R*(1-b)+N*b,B=k,Z=R*b+N*(1-b),X=O),g.setShape({x1:R,y1:k,x2:N,y2:O,cpx1:V,cpy1:B,cpx2:Z,cpy2:X}),g.useStyle(_.getItemStyle()),TM(g.style,d,h);var et=""+y.get("value"),it=Ze(y,"edgeLabel");Qe(g,it,{labelFetcher:{getFormattedLabel:function(Ct,Wt,q,rt,j,ot){return e.getFormattedLabel(Ct,Wt,"edge",rt,an(j,it.normal&&it.normal.get("formatter"),et),ot)}},labelDataIndex:h.dataIndex,defaultText:et}),g.setTextConfig({position:"inside"});var yt=y.getModel("emphasis");Je(g,y,"lineStyle",function(Ct){var Wt=Ct.getItemStyle();return TM(Wt,d,h),Wt}),s.add(g),v.setItemGraphicEl(h.dataIndex,g);var _t=yt.get("focus");Le(g,_t==="adjacency"?h.getAdjacentDataIndices():_t==="trajectory"?h.getTrajectoryDataIndices():_t,yt.get("blurScope"),yt.get("disabled"))}),o.eachNode(function(h){var g=h.getLayout(),m=h.getModel(),y=m.get("localX"),_=m.get("localY"),b=m.getModel("emphasis"),x=m.get(["itemStyle","borderRadius"])||0,w=new Xt({shape:{x:y!=null?y*u:g.x,y:_!=null?_*c:g.y,width:g.dx,height:g.dy,r:x},style:m.getModel("itemStyle").getItemStyle(),z2:10});Qe(w,Ze(m),{labelFetcher:{getFormattedLabel:function(M,C){return e.getFormattedLabel(M,C,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),w.disableLabelAnimation=!0,w.setStyle("fill",h.getVisual("color")),w.setStyle("decal",h.getVisual("style").decal),Je(w,m),s.add(w),f.setItemGraphicEl(h.dataIndex,w),Tt(w).dataType="node";var S=b.get("focus");Le(w,S==="adjacency"?h.getAdjacentDataIndices():S==="trajectory"?h.getTrajectoryDataIndices():S,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(h,g){var m=f.getItemModel(g);m.get("draggable")&&(h.drift=function(y,_){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=_,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},h.ondragend=function(){i._focusAdjacencyDisabled=!1},h.draggable=!0,h.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(tY(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(ce);function TM(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 a=e.node1.getVisual("color"),n=e.node2.getVisual("color");ft(a)&&ft(n)&&(r.fill=new zc(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function tY(r,t,e){var a=new Xt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Me(a,{shape:{width:r.width+20}},t,e),a}var eY=function(r){G(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,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new se(o[l],this,a));var u=pP(i,n,this,!0,c);return u.data;function c(f,v){f.wrapMethod("getItemModel",function(d,h){var g=d.parentModel,m=g.getData().getItemLayout(h);if(m){var y=m.depth,_=g.levelModels[y];_&&(d.parentModel=_)}return d}),v.wrapMethod("getItemModel",function(d,h){var g=d.parentModel,m=g.getGraph().getEdgeByIndex(h),y=m.node1.getLayout();if(y){var _=y.depth,b=g.levelModels[_];b&&(d.parentModel=b)}return d})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(d){return isNaN(d)||d==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Ye("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(e),f=c.getLayout().value,v=this.getDataParams(e,n).data.name;return Ye("nameValue",{name:v!=null?v+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},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}(xe);function rY(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=aY(e,t);e.layoutInfo=i;var o=i.width,s=i.height,l=e.getGraph(),u=l.nodes,c=l.edges;iY(u);var f=ne(u,function(g){return g.getLayout().value===0}),v=f.length!==0?0:e.get("layoutIterations"),d=e.get("orient"),h=e.get("nodeAlign");nY(u,c,a,n,o,s,v,d,h)})}function aY(r,t){return Ve(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function nY(r,t,e,a,n,i,o,s,l){oY(r,t,e,n,i,s,l),cY(r,t,i,n,a,o,s),_Y(r,s)}function iY(r){A(r,function(t){var e=Ii(t.outEdges,Td),a=Ii(t.inEdges,Td),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function oY(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],c=[],f=0,v=0;v<t.length;v++)s[v]=1;for(var v=0;v<r.length;v++)l[v]=r[v].inEdges.length,l[v]===0&&u.push(r[v]);for(var d=-1;u.length;){for(var h=0;h<u.length;h++){var g=u[h],m=g.hostGraph.data.getRawDataItem(g.dataIndex),y=m.depth!=null&&m.depth>=0;y&&m.depth>d&&(d=m.depth),g.setLayout({depth:y?m.depth:f},!0),i==="vertical"?g.setLayout({dy:e},!0):g.setLayout({dx:e},!0);for(var _=0;_<g.outEdges.length;_++){var b=g.outEdges[_],x=t.indexOf(b);s[x]=0;var w=b.node2,S=r.indexOf(w);--l[S]===0&&c.indexOf(w)<0&&c.push(w)}}++f,u=c,c=[]}for(var v=0;v<s.length;v++)if(s[v]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var M=d>f-1?d:f-1;o&&o!=="left"&&sY(r,o,i,M);var C=i==="vertical"?(n-e)/M:(a-e)/M;uY(r,C,i)}function EP(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function sY(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];n.indexOf(c.node1)<0&&n.push(c.node1)}}i=n,n=[],++o}A(r,function(f){EP(f)||f.setLayout({depth:Math.max(0,a-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&lY(r,a)}function lY(r,t){A(r,function(e){!EP(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function uY(r,t,e){A(r,function(a){var n=a.getLayout().depth*t;e==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function cY(r,t,e,a,n,i,o){var s=fY(r,o);vY(s,t,e,a,n,o),Fg(s,n,e,a,o);for(var l=1;i>0;i--)l*=.99,dY(s,l,o),Fg(s,n,e,a,o),yY(s,l,o),Fg(s,n,e,a,o)}function fY(r,t){var e=[],a=t==="vertical"?"y":"x",n=ay(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){e.push(n.buckets.get(i))}),e}function vY(r,t,e,a,n,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;c<o&&(o=c)}),A(r,function(s){A(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),A(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Fg(r,t,e,a,n){var i=n==="vertical"?"x":"y";A(r,function(o){o.sort(function(g,m){return g.getLayout()[i]-m.getLayout()[i]});for(var s,l,u,c=0,f=o.length,v=n==="vertical"?"dx":"dy",d=0;d<f;d++)l=o[d],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[v]+t;var h=n==="vertical"?a:e;if(u=c-t-h,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var d=f-2;d>=0;--d)l=o[d],u=l.getLayout()[i]+l.getLayout()[v]+t-c,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function dY(r,t,e){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=Ii(n.outEdges,hY,e)/Ii(n.outEdges,Td);if(isNaN(i)){var o=n.outEdges.length;i=o?Ii(n.outEdges,pY,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Ri(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Ri(n,e))*t;n.setLayout({y:l},!0)}}})})}function hY(r,t){return Ri(r.node2,t)*r.getValue()}function pY(r,t){return Ri(r.node2,t)}function gY(r,t){return Ri(r.node1,t)*r.getValue()}function mY(r,t){return Ri(r.node1,t)}function Ri(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Td(r){return r.getValue()}function Ii(r,t,e){for(var a=0,n=r.length,i=-1;++i<n;){var o=+t(r[i],e);isNaN(o)||(a+=o)}return a}function yY(r,t,e){A(r,function(a){A(a,function(n){if(n.inEdges.length){var i=Ii(n.inEdges,gY,e)/Ii(n.inEdges,Td);if(isNaN(i)){var o=n.inEdges.length;i=o?Ii(n.inEdges,mY,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Ri(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Ri(n,e))*t;n.setLayout({y:l},!0)}}})})}function _Y(r,t){var e=t==="vertical"?"x":"y";A(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[e]-i.node2.getLayout()[e]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[e]-i.node1.getLayout()[e]})}),A(r,function(a){var n=0,i=0;A(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),A(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function bY(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),a=e.nodes,n=e.edges;if(a.length){var i=1/0,o=-1/0;A(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),A(a,function(s){var l=new We({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function xY(r){r.registerChartView(QZ),r.registerSeriesModel(eY),r.registerLayout(rY),r.registerVisual(bY),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var NP=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],v=u[1-c],d=[n,i],h=d[c].get("type"),g=d[1-c].get("type"),m=t.data;if(m&&l){var y=[];A(m,function(x,w){var S;K(x)?(S=x.slice(),x.unshift(w)):K(x.value)?(S=Y({},x),S.value=S.value.slice(),x.value.unshift(w)):S=x,y.push(S)}),t.data=y}var _=this.defaultValueDimensions,b=[{name:f,type:gd(h),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:gd(g),dimsDef:_.slice()}];return Al(this,{coordDimensions:b,dimensionsCount:_.length+1,encodeDefaulter:Dt(l5,b,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),$P=function(r){G(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}(xe);Oe($P,NP,!0);var wY=function(r){G(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,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=AM(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var v=i.getItemLayout(u);f?(Aa(f),OP(v,f,i,u)):f=AM(v,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t}(ce),SY=function(){function r(){}return r}(),MY=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new SY},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(Vt);function AM(r,t,e,a,n){var i=r.ends,o=new MY({shape:{points:n?CY(i,a,r):i}});return OP(r,o,t,e,n),o}function OP(r,t,e,a,n){var i=e.hostModel,o=es[n?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},i,a),t.useStyle(e.getItemVisual(a,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(a),l=s.getModel("emphasis");Je(t,s),Le(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function CY(r,t,e){return Q(r,function(a){return a=a.slice(),a[t]=e.initBaseline,a})}var Gu=A;function IY(r){var t=TY(r);Gu(t,function(e){var a=e.seriesModels;a.length&&(AY(e),Gu(a,function(n,i){DY(n,e.boxOffsetList[i],e.boxWidthList[i])}))})}function TY(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=Nt(e,n);i<0&&(i=e.length,e[i]=n,t[i]={axis:n,seriesModels:[]}),t[i].seriesModels.push(a)}),t}function AY(r){var t=r.axis,e=r.seriesModels,a=e.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Gu(e,function(h){l=Math.max(l,h.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Gu(e,function(h){var g=h.get("boxWidth");K(g)||(g=[g,g]),o.push([lt(g[0],s)||0,lt(g[1],s)||0])});var c=s*.8-2,f=c/a*.3,v=(c-f*(a-1))/a,d=v/2-c/2;Gu(e,function(h,g){i.push(d),d+=f+v,n.push(Math.min(Math.max(v,o[g][0]),o[g][1]))})}function DY(r,t,e){var a=r.coordinateSystem,n=r.getData(),i=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),c=n.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<n.count();f++){var v=n.get(u,f),d=b(v,c[2],f),h=b(v,c[0],f),g=b(v,c[1],f),m=b(v,c[3],f),y=b(v,c[4],f),_=[];x(_,g,!1),x(_,m,!0),_.push(h,g,y,m),w(_,h),w(_,y),w(_,d),n.setItemLayout(f,{initBaseline:d[s],ends:_})}function b(S,M,C){var I=n.get(M,C),T=[];T[o]=S,T[s]=I;var D;return isNaN(S)||isNaN(I)?D=[NaN,NaN]:(D=a.dataToPoint(T),D[o]+=t),D}function x(S,M,C){var I=M.slice(),T=M.slice();I[o]+=i,T[o]-=i,C?S.push(I,T):S.push(T,I)}function w(S,M){var C=M.slice(),I=M.slice();C[o]-=i,I[o]+=i,S.push(C,I)}}function LY(r,t){t=t||{};for(var e=[],a=[],n=t.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=la(r[o].slice()),l=yp(s,.25),u=yp(s,.5),c=yp(s,.75),f=s[0],v=s[s.length-1],d=(n??1.5)*(c-l),h=i?f:Math.max(f,l-d),g=i?v:Math.min(v,c+d),m=t.itemNameFormatter,y=xt(m)?m({value:o}):ft(m)?m.replace("{value}",o+""):o+"";e.push([y,h,l,u,c,g]);for(var _=0;_<s.length;_++){var b=s[_];if(b<h||b>g){var x=[y,b];a.push(x)}}}return{boxData:e,outliers:a}}var kY={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==cr){var a="";ae(a)}var n=LY(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function PY(r){r.registerSeriesModel($P),r.registerChartView(wY),r.registerLayout(IY),r.registerTransform(kY)}var RY=["itemStyle","borderColor"],EY=["itemStyle","borderColor0"],NY=["itemStyle","borderColorDoji"],$Y=["itemStyle","color"],OY=["itemStyle","color0"];function x_(r,t){return t.get(r>0?$Y:OY)}function w_(r,t){return t.get(r===0?NY:r>0?RY:EY)}var zY={seriesType:"candlestick",plan:Ml(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=x_(s,o),l.stroke=w_(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");Y(u,l)}}}}}},BY=["color","borderColor"],VY=function(r){G(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,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){Oi(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(c){if(a.hasValue(c)){var f=a.getItemLayout(c);if(s&&DM(u,f))return;var v=Hg(f,c,!0);Me(v,{shape:{points:f.ends}},e,c),Wg(v,a,c,o),i.add(v),a.setItemGraphicEl(c,v)}}).update(function(c,f){var v=n.getItemGraphicEl(f);if(!a.hasValue(c)){i.remove(v);return}var d=a.getItemLayout(c);if(s&&DM(u,d)){i.remove(v);return}v?(ee(v,{shape:{points:d.ends}},e,c),Aa(v)):v=Hg(d),Wg(v,a,c,o),i.add(v),a.setItemGraphicEl(c,v)}).remove(function(c){var f=n.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),LM(e,this.group);var a=e.get("clip",!0)?Uc(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),l=Hg(s);Wg(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){LM(a,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}(ce),GY=function(){function r(){}return r}(),FY=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new GY},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Vt);function Hg(r,t,e){var a=r.ends;return new FY({shape:{points:e?HY(a,r):a},z2:100})}function DM(r,t){for(var e=!0,a=0;a<t.ends.length;a++)if(r.contain(t.ends[a][0],t.ends[a][1])){e=!1;break}return e}function Wg(r,t,e,a){var n=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,Je(r,n);var i=t.getItemLayout(e).sign;A(r.states,function(s,l){var u=n.getModel(l),c=x_(i,u),f=w_(i,u)||c,v=s.style||(s.style={});c&&(v.fill=c),f&&(v.stroke=f)});var o=n.getModel("emphasis");Le(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function HY(r,t){return Q(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var WY=function(){function r(){}return r}(),Zg=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new WY},t.prototype.buildPath=function(e,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];e.moveTo(o,n[i++]),e.lineTo(o,n[i++])}else i+=3},t}(Vt);function LM(r,t,e,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new Zg({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Zg({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Zg({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),Yg(1,o,r),Yg(-1,s,r),Yg(0,l,r),a&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function Yg(r,t,e,a){var n=w_(r,e)||x_(r,e),i=e.getModel("itemStyle").getItemStyle(BY);t.useStyle(i),t.style.fill=null,t.style.stroke=n}var zP=function(r){G(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,a,n){var i=a.getItemLayout(e);return i&&n.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:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(xe);Oe(zP,NP,!0);function ZY(r){!r||!K(r.series)||A(r.series,function(t){St(t)&&t.type==="k"&&(t.type="candlestick")})}var YY={seriesType:"candlestick",plan:Ml(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),a=UY(r,e),n=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[n])),l=Q(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],c=l[1],f=l[2],v=l[3];if(e.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?h:d};function d(g,m){for(var y,_=m.getStore();(y=g.next())!=null;){var b=_.get(s,y),x=_.get(u,y),w=_.get(c,y),S=_.get(f,y),M=_.get(v,y),C=Math.min(x,w),I=Math.max(x,w),T=V(C,b),D=V(I,b),E=V(S,b),R=V(M,b),k=[];B(k,D,0),B(k,T,1),k.push(X(R),X(D),X(E),X(T));var N=m.getItemModel(y),O=!!N.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:kM(_,y,x,w,c,O),initBaseline:x>w?D[i]:T[i],ends:k,brushRect:Z(S,M,b)})}function V(et,it){var yt=[];return yt[n]=it,yt[i]=et,isNaN(it)||isNaN(et)?[NaN,NaN]:t.dataToPoint(yt)}function B(et,it,yt){var _t=it.slice(),Ct=it.slice();_t[n]=Mv(_t[n]+a/2,1,!1),Ct[n]=Mv(Ct[n]-a/2,1,!0),yt?et.push(_t,Ct):et.push(Ct,_t)}function Z(et,it,yt){var _t=V(et,yt),Ct=V(it,yt);return _t[n]-=a/2,Ct[n]-=a/2,{x:_t[0],y:_t[1],width:a,height:Ct[1]-_t[1]}}function X(et){return et[n]=Mv(et[n],1),et}}function h(g,m){for(var y=tn(g.count*4),_=0,b,x=[],w=[],S,M=m.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(S=g.next())!=null;){var I=M.get(s,S),T=M.get(u,S),D=M.get(c,S),E=M.get(f,S),R=M.get(v,S);if(isNaN(I)||isNaN(E)||isNaN(R)){y[_++]=NaN,_+=3;continue}y[_++]=kM(M,S,T,D,c,C),x[n]=I,x[i]=E,b=t.dataToPoint(x,null,w),y[_++]=b?b[0]:NaN,y[_++]=b?b[1]:NaN,x[i]=R,b=t.dataToPoint(x,null,w),y[_++]=b?b[1]:NaN}m.setLayout("largePoints",y)}}};function kM(r,t,e,a,n,i){var o;return e>a?o=-1:e<a?o=1:o=i?0:t>0?r.get(n,t-1)<=a?1:-1:1,o}function UY(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=lt(At(r.get("barMaxWidth"),n),n),o=lt(At(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?lt(s,n):Math.max(Math.min(n/2,i),o)}function jY(r){r.registerChartView(VY),r.registerSeriesModel(zP),r.registerPreprocessor(ZY),r.registerVisual(zY),r.registerLayout(YY)}function PM(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var XY=function(r){G(t,r);function t(e,a){var n=r.call(this)||this,i=new Zc(e,a),o=new It;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=$e(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}PM(o,e)},t.prototype.updateEffectAnimation=function(e){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}PM(n,e)},t.prototype.highlight=function(){Bn(this)},t.prototype.downplay=function(){Vn(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,a){var n=this,i=e.hostModel;this.childAt(0).updateData(e,a);var o=this.childAt(1),s=e.getItemModel(a),l=e.getItemVisual(a,"symbol"),u=Il(e.getItemVisual(a,"symbolSize")),c=e.getItemVisual(a,"style"),f=c&&c.fill,v=s.getModel("emphasis");o.setScale(u),o.traverse(function(m){m.setStyle("fill",f)});var d=rs(e.getItemVisual(a,"symbolOffset"),u);d&&(o.x=d[0],o.y=d[1]);var h=e.getItemVisual(a,"symbolRotate");o.rotation=(h||0)*Math.PI/180||0;var g={};g.showEffectOn=i.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1e3,g.effectOffset=a/e.count(),g.z=i.getShallow("z")||0,g.zlevel=i.getShallow("zlevel")||0,g.symbolType=l,g.color=f,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?g.showEffectOn!=="render"&&n.startEffectAnimation(g):m==="normal"&&g.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=g,Le(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(It),qY=function(r){G(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._symbolDraw=new Yc(XY)},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var a=e.coordinateSystem,n=a&&a.getArea&&a.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,a,n){var i=e.getData();this.group.dirty();var o=jc("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var a=e.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=S6(a.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(ce),KY=function(r){G(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,a){return jn(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(xe);function JY(r){r.registerChartView(qY),r.registerSeriesModel(KY),r.registerLayout(jc("effectScatter"))}var BP=function(r){G(t,r);function t(e,a,n){var i=r.call(this)||this;return i.add(i.createLine(e,a,n)),i._updateEffectSymbol(e,a),i}return t.prototype.createLine=function(e,a,n){return new v_(e,a,n)},t.prototype._updateEffectSymbol=function(e,a){var n=e.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");K(o)||(o=[o,o]);var l=e.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=$e(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,a))},t.prototype._updateEffectAnimation=function(e,a,n){var i=this.childAt(1);if(i){var o=e.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),c=a.get("constantSpeed"),f=je(a.get("delay"),function(d){return d/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;xt(f)?v=f(n):v=f,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return di(e.__p1,e.__cp1)+di(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Ue,c=Fm;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var f=e.__t<1?c(a[0],i[0],n[0],o):c(n[0],i[0],a[0],1-o),v=e.__t<1?c(a[1],i[1],n[1],o):c(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(v,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=di(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*di(a,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,a){this.childAt(0).updateLayout(e,a);var n=e.getItemModel(a).getModel("effect");this._updateEffectAnimation(e,n,a)},t}(It),VP=function(r){G(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createPolyline(e,a,n),i}return t.prototype._createPolyline=function(e,a,n){var i=e.getItemLayout(a),o=new Ir({shape:{points:i}});this.add(o),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(a)}};ee(o,s,i,a),this._updateCommonStl(e,a,n)},t.prototype._updateCommonStl=function(e,a,n){var i=this.childAt(0),o=e.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(e.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var v=i.ensureState("emphasis");v.style=s,Le(this,l,u,c)},t.prototype.updateLayout=function(e,a){var n=this.childAt(0);n.setShape("points",e.getItemLayout(a))},t}(It),QY=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,a,n){return new VP(e,a,n)},t.prototype._updateAnimationPoints=function(e,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=di(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var a=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var c=(a-i[l])/(i[l+1]-i[l]),f=n[l],v=n[l+1];e.x=f[0]*(1-c)+c*v[0],e.y=f[1]*(1-c)+c*v[1];var d=e.__t<1?v[0]-f[0]:f[0]-v[0],h=e.__t<1?v[1]-f[1]:f[1]-v[1];e.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(BP),tU=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),eU=function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}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 tU},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){e.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)e.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],c=n[o++],f=n[o++],v=n[o++];if(e.moveTo(u,c),i>0){var d=(u+f)/2-(c-v)*i,h=(c+v)/2-(f-u)*i;e.quadraticCurveTo(d,h,f,v)}else e.lineTo(f,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],v=i[u++],d=1;d<c;d++){var h=i[u++],g=i[u++];if(ci(f,v,h,g,s,e,a))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],v=i[u++],h=i[u++],g=i[u++];if(o>0){var m=(f+h)/2-(v-g)*o,y=(v+g)/2-(h-f)*o;if(lD(f,v,m,y,h,g,s,e,a))return l}else if(ci(f,v,h,g,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var c=n[u++],f=n[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}e=this._rect=new Pt(i,o,s,l)}return e},t}(Vt),rU=function(){function r(){this.group=new It}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var a=this._newAdded[0],n=e.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new eU({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Tt(t);o.seriesIndex=n.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),GP={seriesType:"lines",plan:Ml(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,c=n.start;c<n.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,v=[],c=n.start;c<n.end;c++){var d=r.getLineCoords(c,o);e&&(s[f++]=d);for(var h=0;h<d;h++)v=t.dataToPoint(o[h],!1,v),s[f++]=v[0],s[f++]=v[1]}i.setLayout("linesPoints",s)}else for(var c=n.start;c<n.end;c++){var g=i.getItemModel(c),d=r.getLineCoords(c,o),m=[];if(e)for(var y=0;y<d;y++)m.push(t.dataToPoint(o[y]));else{m[0]=t.dataToPoint(o[0]),m[1]=t.dataToPoint(o[1]);var _=g.get(["lineStyle","curveness"]);+_&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*_,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*_])}i.setItemLayout(c,m)}}}}}},aU=function(r){G(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,a,n){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=n.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=e.get("clip",!0)&&Uc(e.coordinateSystem,!1,e);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=GP.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new rU:new d_(o?i?QY:VP:i?BP:v_),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(ce),nU=typeof Uint32Array>"u"?Array:Uint32Array,iU=typeof Float64Array>"u"?Array:Float64Array;function RM(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Q(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),U0([n,e[0],e[1]])}))}var oU=function(r){G(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||[],RM(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(RM(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Qu(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Qu(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),Qt(e[0])){for(var n=e.length,i=new nU(n),o=new iU(n),s=0,l=0,u=0,c=0;c<n;){u++;var f=e[c++];i[l++]=s+a,i[l++]=f;for(var v=0;v<f;v++){var d=e[c++],h=e[c++];o[s++]=d,o[s++]=h}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,a){var n=new br(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Ye("nameValue",{name:c.join(" > ")})},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"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},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}(xe);function qf(r){return r instanceof Array||(r=[r,r]),r}var sU={seriesType:"lines",reset:function(r){var t=qf(r.get("symbol")),e=qf(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=qf(s.getShallow("symbol",!0)),u=qf(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function lU(r){r.registerChartView(aU),r.registerSeriesModel(oU),r.registerLayout(GP),r.registerVisual(sU)}var uU=256,cU=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ai.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,v=f.getContext("2d"),d=t.length;f.width=e,f.height=a;for(var h=0;h<d;++h){var g=t[h],m=g[0],y=g[1],_=g[2],b=n(_);v.globalAlpha=b,v.drawImage(s,m-c,y-c)}if(!f.width||!f.height)return f;for(var x=v.getImageData(0,0,f.width,f.height),w=x.data,S=0,M=w.length,C=this.minOpacity,I=this.maxOpacity,T=I-C;S<M;){var b=w[S+3]/256,D=Math.floor(b*(uU-1))*4;if(b>0){var E=o(b)?l:u;b>0&&(b=b*T+C),w[S++]=E[D],w[S++]=E[D+1],w[S++]=E[D+2],w[S++]=E[D+3]*b*256}else S+=4}return v.putImageData(x,0,0),f},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ai.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();function fU(r,t,e){var a=r[1]-r[0];t=Q(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&e[s]}}function vU(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(a){return a>=t[0]&&a<=t[1]}}function EM(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var dU=function(r){G(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,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):EM(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(EM(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Oi(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,a,n,i,o){var s=e.coordinateSystem,l=ns(s,"cartesian2d"),u,c,f,v;if(l){var d=s.getAxis("x"),h=s.getAxis("y");u=d.getBandWidth()+.5,c=h.getBandWidth()+.5,f=d.scale.getExtent(),v=h.scale.getExtent()}for(var g=this.group,m=e.getData(),y=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),b=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),w=Ze(e),S=e.getModel("emphasis"),M=S.get("focus"),C=S.get("blurScope"),I=S.get("disabled"),T=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],D=n;D<i;D++){var E=void 0,R=m.getItemVisual(D,"style");if(l){var k=m.get(T[0],D),N=m.get(T[1],D);if(isNaN(m.get(T[2],D))||isNaN(k)||isNaN(N)||k<f[0]||k>f[1]||N<v[0]||N>v[1])continue;var O=s.dataToPoint([k,N]);E=new Xt({shape:{x:O[0]-u/2,y:O[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(T[1],D)))continue;E=new Xt({z2:1,shape:s.dataToRect([m.get(T[0],D)]).contentShape,style:R})}if(m.hasItemOption){var V=m.getItemModel(D),B=V.getModel("emphasis");y=B.getModel("itemStyle").getItemStyle(),_=V.getModel(["blur","itemStyle"]).getItemStyle(),b=V.getModel(["select","itemStyle"]).getItemStyle(),x=V.get(["itemStyle","borderRadius"]),M=B.get("focus"),C=B.get("blurScope"),I=B.get("disabled"),w=Ze(V)}E.shape.r=x;var Z=e.getRawValue(D),X="-";Z&&Z[2]!=null&&(X=Z[2]+""),Qe(E,w,{labelFetcher:e,labelDataIndex:D,defaultOpacity:R.opacity,defaultText:X}),E.ensureState("emphasis").style=y,E.ensureState("blur").style=_,E.ensureState("select").style=b,Le(E,M,C,I),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),g.add(E),m.setItemGraphicEl(D,E),this._progressiveEls&&this._progressiveEls.push(E)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new cU;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var c=e.getViewRect().clone(),f=e.getRoamTransform();c.applyTransform(f);var v=Math.max(c.x,0),d=Math.max(c.y,0),h=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=h-v,y=g-d,_=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(_,function(M,C,I){var T=e.dataToPoint([M,C]);return T[0]-=v,T[1]-=d,T.push(I),T}),x=n.getExtent(),w=n.type==="visualMap.continuous"?vU(x,n.option.range):fU(x,n.getPieceList(),n.option.selected);u.update(b,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var S=new Xe({style:{width:m,height:y,x:v,y:d,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(ce),hU=function(r){G(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,a){return jn(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Gc.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}(xe);function pU(r){r.registerChartView(dU),r.registerSeriesModel(hU)}var gU=["itemStyle","borderWidth"],NM=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ug=new Un,mU=function(r){G(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,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:NM[+c],categoryDim:NM[1-+c]};o.diff(s).add(function(h){if(o.hasValue(h)){var g=OM(o,h),m=$M(o,h,g,v),y=zM(o,v,m);o.setItemGraphicEl(h,y),i.add(y),VM(y,v,m)}}).update(function(h,g){var m=s.getItemGraphicEl(g);if(!o.hasValue(h)){i.remove(m);return}var y=OM(o,h),_=$M(o,h,y,v),b=UP(o,_);m&&b!==m.__pictorialShapeStr&&(i.remove(m),o.setItemGraphicEl(h,null),m=null),m?MU(m,v,_):m=zM(o,v,_,!0),o.setItemGraphicEl(h,m),m.__pictorialSymbolMeta=_,i.add(m),VM(m,v,_)}).remove(function(h){var g=s.getItemGraphicEl(h);g&&BM(s,h,g.__pictorialSymbolMeta.animationModel,g)}).execute();var d=e.get("clip",!0)?Uc(e.coordinateSystem,!1,e):null;return d?i.setClipPath(d):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){BM(i,Tt(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(ce);function $M(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),v={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};yU(e,i,n,a,v),_U(r,t,n,i,o,v.boundingLength,v.pxSign,c,a,v),bU(e,v.symbolScale,u,a,v);var d=v.symbolSize,h=rs(e.get("symbolOffset"),d);return xU(e,d,n,i,o,h,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function yU(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(K(o)){var f=[jg(s,o[0])-l,jg(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=jg(s,o)-l:t?c=a.coordSysExtent[i.index][u]-l:c=e[i.wh];n.boundingLength=c,t&&(n.repeatCutLength=e[i.wh]);var v=i.xy==="x",d=s.inverse;n.pxSign=v&&!d||!v&&d?c>=0?1:-1:c>0?1:-1}function jg(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function _U(r,t,e,a,n,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,v=Math.abs(e[f.wh]),d=r.getItemVisual(t,"symbolSize"),h;K(d)?h=d.slice():d==null?h=["100%","100%"]:h=[d,d],h[f.index]=lt(h[f.index],v),h[c.index]=lt(h[c.index],a?v:Math.abs(i)),u.symbolSize=h;var g=u.symbolScale=[h[0]/s,h[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function bU(r,t,e,a,n){var i=r.get(gU)||0;i&&(Ug.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Ug.updateTransform(),i/=Ug.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function xU(r,t,e,a,n,i,o,s,l,u,c,f){var v=c.categoryDim,d=c.valueDim,h=f.pxSign,g=Math.max(t[d.index]+s,0),m=g;if(a){var y=Math.abs(l),_=je(r.get("symbolMargin"),"15%")+"",b=!1;_.lastIndexOf("!")===_.length-1&&(b=!0,_=_.slice(0,_.length-1));var x=lt(_,t[d.index]),w=Math.max(g+x*2,0),S=b?0:x*2,M=XA(a),C=M?a:GM((y+S)/w),I=y-C*g;x=I/2/(b?C:Math.max(C-1,1)),w=g+x*2,S=b?0:x*2,!M&&a!=="fixed"&&(C=u?GM((Math.abs(u)+S)/w):0),m=C*w-S,f.repeatTimes=C,f.symbolMargin=x}var T=h*(m/2),D=f.pathPosition=[];D[v.index]=e[v.wh]/2,D[d.index]=o==="start"?T:o==="end"?l-T:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var E=f.bundlePosition=[];E[v.index]=e[v.xy],E[d.index]=e[d.xy];var R=f.barRectShape=Y({},e);R[d.wh]=h*Math.max(Math.abs(e[d.wh]),Math.abs(D[d.index]+T)),R[v.wh]=e[v.wh];var k=f.clipShape={};k[v.xy]=-e[v.xy],k[v.wh]=c.ecSize[v.wh],k[d.xy]=0,k[d.wh]=e[d.wh]}function FP(r){var t=r.symbolPatternSize,e=$e(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function HP(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+e.symbolMargin*2;for(S_(r,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?qs(g,null,h(c),e,a):qs(g,null,{scaleX:0,scaleY:0},e,a,function(){n.remove(g)}),c++});c<u;c++){var v=FP(e);v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,n.add(v);var d=h(c);qs(v,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},e,a)}function h(g){var m=s.slice(),y=e.pxSign,_=g;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(_=u-1-g),m[l.index]=f*(_-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function WP(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?qs(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=FP(e),n.add(i),qs(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,a))}function ZP(r,t,e){var a=Y({},t.barRectShape),n=r.__pictorialBarRect;n?qs(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new Xt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function YP(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=Y({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)ee(n,{shape:i},s,l);else{i[o.wh]=0,n=new Xt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],es[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function OM(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=wU,e.isAnimationEnabled=SU,e}function wU(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function SU(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function zM(r,t,e,a){var n=new It,i=new It;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?HP(n,t,e):WP(n,t,e),ZP(n,e,a),YP(n,t,e,a),n.__pictorialShapeStr=UP(r,e),n.__pictorialSymbolMeta=e,n}function MU(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;ee(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?HP(r,t,e,!0):WP(r,t,e,!0),ZP(r,e,!0),YP(r,t,e,!0)}function BM(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];S_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),A(i,function(o){Li(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function UP(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function S_(r,t,e){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function qs(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&es[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function VM(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),v=i.get("scale");S_(r,function(g){if(g instanceof Xe){var m=g.style;g.useStyle(Y({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},e.style))}else g.useStyle(e.style);var y=g.ensureState("emphasis");y.style=o,v&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=e.z2});var d=t.valueDim.posDesc[+(e.boundingLength>0)],h=r.__pictorialBarRect;h.ignoreClip=!0,Qe(h,Ze(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:sl(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:d}),Le(r,c,f,i.get("disabled"))}function GM(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var CU=function(r){G(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=zi(mc.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}(mc);function IU(r){r.registerChartView(mU),r.registerSeriesModel(CU),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Dt(CL,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,IL("pictorialBar"))}var TU=function(r){G(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,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function v(m){return m.name}var d=new Gn(this._layersSeries||[],l,v,v),h=[];d.add(dt(g,this,"add")).update(dt(g,this,"update")).remove(dt(g,this,"remove")).execute();function g(m,y,_){var b=o._layers;if(m==="remove"){s.remove(b[y]);return}for(var x=[],w=[],S,M=l[y].indices,C=0;C<M.length;C++){var I=i.getItemLayout(M[C]),T=I.x,D=I.y0,E=I.y;x.push(T,D),w.push(T,D+E),S=i.getItemVisual(M[C],"style")}var R,k=i.getItemLayout(M[0]),N=e.getModel("label"),O=N.get("margin"),V=e.getModel("emphasis");if(m==="add"){var B=h[y]=new It;R=new pk({shape:{points:x,stackedOnPoints:w,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),B.add(R),s.add(B),e.isAnimationEnabled()&&R.setClipPath(AU(R.getBoundingRect(),e,function(){R.removeClipPath()}))}else{var B=b[_];R=B.childAt(0),s.add(B),h[y]=B,ee(R,{shape:{points:x,stackedOnPoints:w}},e),Aa(R)}Qe(R,Ze(e),{labelDataIndex:M[C-1],defaultText:i.getName(M[C-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),R.setTextConfig({position:null,local:!0});var Z=R.getTextContent();Z&&(Z.x=k.x-O,Z.y=k.y0+k.y/2),R.useStyle(S),i.setItemGraphicEl(y,R),Je(R,e),Le(R,V.get("focus"),V.get("blurScope"),V.get("disabled"))}this._layersSeries=l,this._layers=h},t.type="themeRiver",t}(ce);function AU(r,t,e){var a=new Xt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Me(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),a}var Xg=2,DU=function(r){G(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 qc(dt(this.getData,this),dt(this.getRawData,this))},t.prototype.fixData=function(e){var a=e.length,n={},i=ay(e,function(v){return n.hasOwnProperty(v[0]+"")||(n[v[0]+""]=-1),v[2]}),o=[];i.buckets.each(function(v,d){o.push({name:d,dataList:v})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";n[f]=l}for(var f in n)n.hasOwnProperty(f)&&n[f]!==l&&(n[f]=l,e[a]=[f,0,u],a++)}return e},t.prototype.getInitialData=function(e,a){for(var n=this.getReferringComponents("singleAxis",Ne).models[0],i=n.get("type"),o=ne(e.data,function(h){return h[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=mt(),c=0,f=0;f<s.length;++f)l.push(s[f][Xg]),u.get(s[f][Xg])||(u.set(s[f][Xg],c),c++);var v=Hc(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:gd(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new br(v,this);return d.initData(s),d},t.prototype.getLayerSeries=function(){for(var e=this.getData(),a=e.count(),n=[],i=0;i<a;++i)n[i]=i;var o=e.mapDimension("single"),s=ay(n,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,v){return e.get(o,f)-e.get(o,v)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,a,n){K(e)||(e=e?[e]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,v=-1,d=o[c].indices.length,h=0;h<d;++h){var g=i.get(e[0],o[c].indices[h]),m=Math.abs(g-a);m<=f&&(u=g,f=m,v=o[c].indices[h])}s.push(v)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getName(e),s=i.get(i.mapDimension("value"),e);return Ye("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(xe);function LU(r,t){r.eachSeriesByType("themeRiver",function(e){var a=e.getData(),n=e.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=e.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=lt(s[0],o.height),s[1]=lt(s[1],o.height);var u=o.height-s[0]-s[1];FM(a,e,u)}else{s[0]=lt(s[0],o.width),s[1]=lt(s[1],o.width);var c=o.width-s[0]-s[1];FM(a,e,c)}a.setLayout("layoutInfo",i)})}function FM(r,t,e){if(r.count())for(var a=t.coordinateSystem,n=t.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=Q(n,function(m){return Q(m.indices,function(y){var _=a.dataToPoint(r.get(i,y));return _[1]=r.get(o,y),_})}),l=kU(s),u=l.y0,c=e/l.max,f=n.length,v=n[0].indices.length,d,h=0;h<v;++h){d=u[h]*c,r.setItemLayout(n[0].indices[h],{layerIndex:0,x:s[0][h][0],y0:d,y:s[0][h][1]*c});for(var g=1;g<f;++g)d+=s[g-1][h][1]*c,r.setItemLayout(n[g].indices[h],{layerIndex:g,x:s[g][h][0],y0:d,y:s[g][h][1]*c})}}function kU(r){for(var t=r.length,e=r[0].length,a=[],n=[],i=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<e;++u)n[u]=(i-a[u])/2;i=0;for(var c=0;c<e;++c){var f=a[c]+n[c];f>i&&(i=f)}return{y0:n,max:i}}function PU(r){r.registerChartView(TU),r.registerSeriesModel(DU),r.registerLayout(LU),r.registerProcessor(Xc("themeRiver"))}var RU=2,EU=4,HM=function(r){G(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=RU,o.textConfig={inside:!0},Tt(o).seriesIndex=a.seriesIndex;var s=new Kt({z2:EU,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;Tt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),c=a.getLayout(),f=Y({},c);f.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var d=a.getVisual("decal");d&&(v.decal=il(d,o));var h=ko(l.getModel("itemStyle"),f,!0);Y(f,h),A(Sr,function(_){var b=s.ensureState(_),x=l.getModel([_,"itemStyle"]);b.style=x.getItemStyle();var w=ko(x,f);w&&(b.shape=w)}),e?(s.setShape(f),s.shape.r=c.r0,Me(s,{shape:{r:c.r}},n,a.dataIndex)):(ee(s,{shape:f},n),Aa(s)),s.useStyle(v),this._updateLabel(n);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="relative"?Qu(a.getAncestorsIndices(),a.getDescendantIndices()):m==="ancestor"?a.getAncestorsIndices():m==="descendant"?a.getDescendantIndices():m;Le(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,v=f.getTextContent(),d=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(h!=null&&Math.abs(s)<h);v.ignore=!g,A(ic,function(y){var _=y==="normal"?n.getModel("label"):n.getModel([y,"label"]),b=y==="normal",x=b?v:v.ensureState(y),w=e.getFormattedLabel(d,y);b&&(w=w||a.node.name),x.style=be(_,{},null,y!=="normal",!0),w&&(x.style.text=w);var S=_.get("show");S!=null&&!b&&(x.ignore=!S);var M=m(_,"position"),C=b?f:f.states[y],I=C.style.fill;C.textConfig={outsideFill:_.get("color")==="inherit"?I:null,inside:M!=="outside"};var T,D=m(_,"distance")||0,E=m(_,"align"),R=m(_,"rotate"),k=Math.PI*.5,N=Math.PI*1.5,O=Zr(R==="tangential"?Math.PI/2-l:l),V=O>k&&!ac(O-k)&&O<N;M==="outside"?(T=o.r+D,E=V?"right":"left"):!E||E==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,E="center"):E==="left"?(T=o.r0+D,E=V?"right":"left"):E==="right"&&(T=o.r-D,E=V?"left":"right"),x.style.align=E,x.style.verticalAlign=m(_,"verticalAlign")||"middle",x.x=T*u+o.cx,x.y=T*c+o.cy;var B=0;R==="radial"?B=Zr(-l)+(V?Math.PI:0):R==="tangential"?B=Zr(Math.PI/2-l)+(V?Math.PI:0):Qt(R)&&(B=R*Math.PI/180),x.rotation=Zr(B)});function m(y,_){var b=y.get(_);return b??i.get(_)}v.dirtyStyle()},t}(Mr),n0="sunburstRootToNode",WM="sunburstHighlight",NU="sunburstUnhighlight";function $U(r){r.registerAction({type:n0,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(n,i){var o=_c(t,[n0],n);if(o){var s=n.getViewRoot();s&&(t.direction=s_(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:WM,update:"none"},function(t,e,a){t=Y({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i){var o=_c(t,[WM],i);o&&(t.dataIndex=o.node.dataIndex)}a.dispatchAction(Y(t,{type:"highlight"}))}),r.registerAction({type:NU,update:"updateView"},function(t,e,a){t=Y({},t),a.dispatchAction(Y(t,{type:"downplay"}))})}var OU=function(r){G(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,a,n,i){var o=this;this.seriesModel=e,this.api=n,this.ecModel=a;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),c=this.group,f=e.get("renderLabelForZeroData"),v=[];u.eachNode(function(_){v.push(_)});var d=this._oldChildren||[];h(v,d),y(l,u),this._initEvents(),this._oldChildren=v;function h(_,b){if(_.length===0&&b.length===0)return;new Gn(b,_,x,x).add(w).update(w).remove(Dt(w,null)).execute();function x(S){return S.getId()}function w(S,M){var C=S==null?null:_[S],I=M==null?null:b[M];g(C,I)}}function g(_,b){if(!f&&_&&!_.getValue()&&(_=null),_!==l&&b!==l){if(b&&b.piece)_?(b.piece.updateData(!1,_,e,a,n),s.setItemGraphicEl(_.dataIndex,b.piece)):m(b);else if(_){var x=new HM(_,e,a,n);c.add(x),s.setItemGraphicEl(_.dataIndex,x)}}}function m(_){_&&_.piece&&(c.remove(_.piece),_.piece=null)}function y(_,b){b.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,_,e,a,n):(o.virtualPiece=new HM(_,e,a,n),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(b.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";od(u,c)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:n0,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(ce),zU=function(r){G(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,a){var n={name:e.name,children:e.data};jP(n);var i=this._levelModels=Q(e.levels||[],function(l){return new se(l,this,a)},this),o=o_.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),v=i[f.depth];return v&&(u.parentModel=v),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=Eh(n,this),a},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 a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){Qk(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}(xe);function jP(r){var t=0;A(r.children,function(a){jP(a);var n=a.value;K(n)&&(n=n[0]),t+=n});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 ZM=Math.PI/180;function BU(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");K(i)||(i=[0,i]),K(n)||(n=[n,n]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=lt(n[0],o),c=lt(n[1],s),f=lt(i[0],l/2),v=lt(i[1],l/2),d=-a.get("startAngle")*ZM,h=a.get("minAngle")*ZM,g=a.getData().tree.root,m=a.getViewRoot(),y=m.depth,_=a.get("sort");_!=null&&XP(m,_);var b=0;A(m.children,function(O){!isNaN(O.getValue())&&b++});var x=m.getValue(),w=Math.PI/(x||b)*2,S=m.depth>0,M=m.height-(S?-1:1),C=(v-f)/(M||1),I=a.get("clockwise"),T=a.get("stillShowZeroSum"),D=I?1:-1,E=function(O,V){if(O){var B=V;if(O!==g){var Z=O.getValue(),X=x===0&&T?w:Z*w;X<h&&(X=h),B=V+D*X;var et=O.depth-y-(S?-1:1),it=f+C*et,yt=f+C*(et+1),_t=a.getLevelModel(O);if(_t){var Ct=_t.get("r0",!0),Wt=_t.get("r",!0),q=_t.get("radius",!0);q!=null&&(Ct=q[0],Wt=q[1]),Ct!=null&&(it=lt(Ct,l/2)),Wt!=null&&(yt=lt(Wt,l/2))}O.setLayout({angle:X,startAngle:V,endAngle:B,clockwise:I,cx:u,cy:c,r0:it,r:yt})}if(O.children&&O.children.length){var rt=0;A(O.children,function(j){rt+=E(j,V+rt)})}return B-V}};if(S){var R=f,k=f+C,N=Math.PI*2;g.setLayout({angle:N,startAngle:d,endAngle:d+N,clockwise:I,cx:u,cy:c,r0:R,r:k})}E(m,d)})}function XP(r,t){var e=r.children||[];r.children=VU(e,t),e.length&&A(r.children,function(a){XP(a,t)})}function VU(r,t){if(xt(t)){var e=Q(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return e.sort(function(n,i){return t(n.params,i.params)}),Q(e,function(n){return r[n.index]})}else{var a=t==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function GU(r){var t={};function e(a,n,i){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&ft(s)&&(s=Zm(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");Y(u,l)})})}function FU(r){r.registerChartView(OU),r.registerSeriesModel(zU),r.registerLayout(Dt(BU,"sunburst")),r.registerProcessor(Dt(Xc,"sunburst")),r.registerVisual(GU),$U(r)}var YM={color:"fill",borderColor:"stroke"},HU={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Nn=qt(),WU=function(r){G(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,a){return jn(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Nn(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(xe);function ZU(r,t){return t=t||[0,0],Q(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function YU(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:dt(ZU,r)}}}function UU(r,t){return t=t||[0,0],Q([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function jU(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:dt(UU,r)}}}function XU(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function qU(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:dt(XU,r)}}}function KU(r,t){return t=t||[0,0],Q(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function JU(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:dt(KU,r)}}}function QU(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(a,n){return r.dataToPoint(a,n)}}}}function qP(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||gt(r,"text")))}function KP(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},gt(a,"text")&&(o.text=a.text),gt(a,"rich")&&(o.rich=a.rich),gt(a,"textFill")&&(o.fill=a.textFill),gt(a,"textStroke")&&(o.stroke=a.textStroke),gt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),gt(a,"fontSize")&&(o.fontSize=a.fontSize),gt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),gt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=gt(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),gt(a,"textPosition")&&(n.position=a.textPosition),gt(a,"textOffset")&&(n.offset=a.textOffset),gt(a,"textRotation")&&(n.rotation=a.textRotation),gt(a,"textDistance")&&(n.distance=a.textDistance)}return UM(o,r),A(o.rich,function(l){UM(l,l)}),{textConfig:n,textContent:i}}function UM(r,t){t&&(t.font=t.textFont||t.font,gt(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),gt(t,"textAlign")&&(r.align=t.textAlign),gt(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),gt(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),gt(t,"textWidth")&&(r.width=t.textWidth),gt(t,"textHeight")&&(r.height=t.textHeight),gt(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),gt(t,"textPadding")&&(r.padding=t.textPadding),gt(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),gt(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),gt(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),gt(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),gt(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),gt(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),gt(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function jM(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";XM(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||"#fff",!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||"#000"),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,A(t.rich,function(s){XM(s,s)}),a}function XM(r,t){t&&(gt(t,"fill")&&(r.textFill=t.fill),gt(t,"stroke")&&(r.textStroke=t.fill),gt(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),gt(t,"font")&&(r.font=t.font),gt(t,"fontStyle")&&(r.fontStyle=t.fontStyle),gt(t,"fontWeight")&&(r.fontWeight=t.fontWeight),gt(t,"fontSize")&&(r.fontSize=t.fontSize),gt(t,"fontFamily")&&(r.fontFamily=t.fontFamily),gt(t,"align")&&(r.textAlign=t.align),gt(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),gt(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),gt(t,"width")&&(r.textWidth=t.width),gt(t,"height")&&(r.textHeight=t.height),gt(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),gt(t,"padding")&&(r.textPadding=t.padding),gt(t,"borderColor")&&(r.textBorderColor=t.borderColor),gt(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),gt(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),gt(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),gt(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),gt(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),gt(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),gt(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),gt(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),gt(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),gt(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var JP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},qM=Ut(JP);un(fn,function(r,t){return r[t]=1,r},{});fn.join(", ");var Ad=["","style","shape","extra"],cl=qt();function M_(r,t,e,a,n){var i=r+"Animation",o=yl(r,a,n)||{},s=cl(t).userDuring;return o.duration>0&&(o.during=s?dt(nj,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),Y(o,e[i]),o}function Lv(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=cl(r),u=t.style;l.userDuring=t.during;var c={},f={};if(oj(r,t,f),JM("shape",t,f),JM("extra",t,f),!i&&s&&(ij(r,t,c),KM("shape",r,t,c),KM("extra",r,t,c),sj(r,t,u,c)),f.style=u,tj(r,f,o),rj(r,t),s)if(i){var v={};A(Ad,function(h){var g=h?t[h]:t;g&&g.enterFrom&&(h&&(v[h]=v[h]||{}),Y(h?v[h]:v,g.enterFrom))});var d=M_("enter",r,t,e,n);d.duration>0&&r.animateFrom(v,d)}else ej(r,t,n||0,e,c);QP(r,t),u?r.dirty():r.markRedraw()}function QP(r,t){for(var e=cl(r).leaveToProps,a=0;a<Ad.length;a++){var n=Ad[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=cl(r).leaveToProps={}),n&&(e[n]=e[n]||{}),Y(n?e[n]:e,i.leaveTo))}}function Oh(r,t,e,a){if(r){var n=r.parent,i=cl(r).leaveToProps;if(i){var o=M_("update",r,t,e,0);o.done=function(){n.remove(r)},r.animateTo(i,o)}else n.remove(r)}}function Go(r){return r==="all"}function tj(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function ej(r,t,e,a,n){if(n){var i=M_("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function rj(r,t){gt(t,"silent")&&(r.silent=t.silent),gt(t,"ignore")&&(r.ignore=t.ignore),r instanceof va&&gt(t,"invisible")&&(r.invisible=t.invisible),r instanceof Vt&&gt(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Za={},aj={setTransform:function(r,t){return Za.el[r]=t,this},getTransform:function(r){return Za.el[r]},setShape:function(r,t){var e=Za.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Za.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Za.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Za.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Za.el.extra||(Za.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Za.el.extra;if(t)return t[r]}};function nj(){var r=this,t=r.el;if(t){var e=cl(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}Za.el=t,a(aj)}}function KM(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),Go(l))Y(o,i);else for(var u=ue(l),c=0;c<u.length;c++){var f=u[c],v=i[f];o[f]=v}else if(Go(s)||Nt(s,r)>=0){!o&&(o=a[r]={});for(var d=Ut(i),c=0;c<d.length;c++){var f=d[c],v=i[f];lj(n[f],v)&&(o[f]=v)}}}}}function JM(r,t,e){var a=t[r];if(a)for(var n=e[r]={},i=Ut(a),o=0;o<i.length;o++){var s=i[o];n[s]=Pu(a[s])}}function ij(r,t,e){for(var a=t.transition,n=Go(a)?fn:ue(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function oj(r,t,e){for(var a=0;a<qM.length;a++){var n=qM[a],i=JP[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<fn.length;a++){var s=fn[a];t[s]!=null&&(e[s]=t[s])}}function sj(r,t,e,a){if(e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!Go(o)){var l=ue(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var c=l[u],f=n[c];i[c]=f}}else if(r.getAnimationStyleProps&&(Go(s)||Go(o)||Nt(s,"style")>=0)){var v=r.getAnimationStyleProps(),d=v?v.style:null;if(d){!i&&(i=a.style={});for(var h=Ut(e),u=0;u<h.length;u++){var c=h[u];if(d[c]){var f=n[c];i[c]=f}}}}}}}function lj(r,t){return ur(r)?r!==t:r!=null&&isFinite(r)}var t3=qt(),uj=["percent","easing","shape","style","extra"];function e3(r){r.stopAnimation("keyframe"),r.attr(t3(r))}function Dd(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(K(t)){A(t,function(s){Dd(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=yl("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=t3(r);A(Ad,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,c){return u.percent-c.percent}),A(a,function(u){var c=r.animators,f=s?u[s]:u;if(f){var v=Ut(f);if(s||(v=ne(v,function(g){return Nt(uj,g)<0})),!!v.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==l&&c[d].targetName===l.targetName&&c[d].stopTracks(v);s&&(o[s]=o[s]||{});var h=s?o[s]:o;A(v,function(g){h[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(n*u.percent,f,v,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var $n="emphasis",bi="normal",C_="blur",I_="select",Ei=[bi,$n,C_,I_],qg={normal:["itemStyle"],emphasis:[$n,"itemStyle"],blur:[C_,"itemStyle"],select:[I_,"itemStyle"]},Kg={normal:["label"],emphasis:[$n,"label"],blur:[C_,"label"],select:[I_,"label"]},cj=["x","y"],fj="e\0\0",Jr={normal:{},emphasis:{},blur:{},select:{}},vj={cartesian2d:YU,geo:jU,single:qU,polar:JU,calendar:QU};function i0(r){return r instanceof Vt}function o0(r){return r instanceof va}function dj(r,t){t.copyTransform(r),o0(t)&&o0(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,i0(t)&&i0(r)&&t.setShape(r.shape))}var hj=function(r){G(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,a,n,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=QM(e,s,a,n);o||l.removeAll(),s.diff(o).add(function(f){Jg(n,null,f,u(f,i),e,l,s)}).remove(function(f){var v=o.getItemGraphicEl(f);v&&Oh(v,Nn(v).option,e)}).update(function(f,v){var d=o.getItemGraphicEl(v);Jg(n,d,f,u(f,i),e,l,s)}).execute();var c=e.get("clip",!0)?Uc(e.coordinateSystem,!1,e):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,a,n,i,o){var s=a.getData(),l=QM(a,s,n,i),u=this._progressiveEls=[];function c(d){d.isGroup||(d.incremental=!0,d.ensureState("emphasis").hoverLayer=!0)}for(var f=e.start;f<e.end;f++){var v=Jg(null,null,f,l(f,o),a,this.group,s);v&&(v.traverse(c),u.push(v))}},t.prototype.eachRendered=function(e){Oi(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t}(ce);function T_(r){var t=r.type,e;if(t==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=n3(a);e=dh(i,null,n,a.layout||"center"),Nn(e).customPathData=i}else if(t==="image")e=new Xe({}),Nn(e).customImagePath=r.style.image;else if(t==="text")e=new Kt({});else if(t==="group")e=new It;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=g1(t);if(!o){var s="";ae(s)}e=new o}return Nn(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function A_(r,t,e,a,n,i,o){e3(t);var s=n&&n.normal.cfg;s&&t.setTextConfig(s),a&&a.transition==null&&(a.transition=cj);var l=a&&a.style;if(l){if(t.type==="text"){var u=l;gt(u,"textFill")&&(u.fill=u.textFill),gt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=i0(t)?l.decal:null;r&&f&&(f.dirty=!0,c=il(f,r)),l.__decalPattern=c}if(o0(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Lv(t,a,i,{dataIndex:e,isInit:o,clearStyle:!0}),Dd(t,a.keyframeAnimation,i)}function r3(r,t,e,a,n){var i=t.isGroup?null:t,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),Uo(i)}}function pj(r,t,e){if(!r.isGroup){var a=r,n=e.currentZ,i=e.currentZLevel;a.z=n,a.zlevel=i;var o=t.z2;o!=null&&(a.z2=o||0);for(var s=0;s<Ei.length;s++)gj(a,t,Ei[s])}}function gj(r,t,e){var a=e===bi,n=a?t:Ld(t,e),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(e),o.z2=i||0)}function QM(r,t,e,a){var n=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):vj[i.type](i));for(var s=wt({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:x,style:S,ordinalRawValue:w,styleEmphasis:M,visual:T,barLayout:D,currentSeriesIndices:E,font:R},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:mj(r.getData())},u,c,f={},v={},d={},h={},g=0;g<Ei.length;g++){var m=Ei[g];d[m]=r.getModel(qg[m]),h[m]=r.getModel(Kg[m])}function y(k){return k===u?c||(c=t.getItemModel(k)):t.getItemModel(k)}function _(k,N){return t.hasItemOption?k===u?f[N]||(f[N]=y(k).getModel(qg[N])):y(k).getModel(qg[N]):d[N]}function b(k,N){return t.hasItemOption?k===u?v[N]||(v[N]=y(k).getModel(Kg[N])):y(k).getModel(Kg[N]):h[N]}return function(k,N){return u=k,c=null,f={},v={},n&&n(wt({dataIndexInside:k,dataIndex:t.getRawIndex(k),actionType:N?N.type:null},l),s)};function x(k,N){return N==null&&(N=u),t.getStore().get(t.getDimensionIndex(k||0),N)}function w(k,N){N==null&&(N=u),k=k||0;var O=t.getDimensionInfo(k);if(!O){var V=t.getDimensionIndex(k);return V>=0?t.getStore().get(V,N):void 0}var B=t.get(O.name,N),Z=O&&O.ordinalMeta;return Z?Z.categories[B]:B}function S(k,N){N==null&&(N=u);var O=t.getItemVisual(N,"style"),V=O&&O.fill,B=O&&O.opacity,Z=_(N,bi).getItemStyle();V!=null&&(Z.fill=V),B!=null&&(Z.opacity=B);var X={inheritColor:ft(V)?V:"#000"},et=b(N,bi),it=be(et,null,X,!1,!0);it.text=et.getShallow("show")?At(r.getFormattedLabel(N,bi),sl(t,N)):null;var yt=nd(et,X,!1);return I(k,Z),Z=jM(Z,it,yt),k&&C(Z,k),Z.legacy=!0,Z}function M(k,N){N==null&&(N=u);var O=_(N,$n).getItemStyle(),V=b(N,$n),B=be(V,null,null,!0,!0);B.text=V.getShallow("show")?an(r.getFormattedLabel(N,$n),r.getFormattedLabel(N,bi),sl(t,N)):null;var Z=nd(V,null,!0);return I(k,O),O=jM(O,B,Z),k&&C(O,k),O.legacy=!0,O}function C(k,N){for(var O in N)gt(N,O)&&(k[O]=N[O])}function I(k,N){k&&(k.textFill&&(N.textFill=k.textFill),k.textPosition&&(N.textPosition=k.textPosition))}function T(k,N){if(N==null&&(N=u),gt(YM,k)){var O=t.getItemVisual(N,"style");return O?O[YM[k]]:null}if(gt(HU,k))return t.getItemVisual(N,k)}function D(k){if(i.type==="cartesian2d"){var N=i.getBaseAxis();return f8(wt({axis:N},k))}}function E(){return e.getCurrentSeriesIndices()}function R(k){return m1(k,e)}}function mj(r){var t={};return A(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Jg(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=D_(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Le(s,a.focus,a.blurScope,a.emphasisDisabled),s}function D_(r,t,e,a,n,i){var o=-1,s=t;t&&a3(t,a,n)&&(o=Nt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=T_(a),s&&dj(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Jr.normal.cfg=Jr.normal.conOpt=Jr.emphasis.cfg=Jr.emphasis.conOpt=Jr.blur.cfg=Jr.blur.conOpt=Jr.select.cfg=Jr.select.conOpt=null,Jr.isLegacy=!1,_j(u,e,a,n,l,Jr),yj(u,e,a,n,l),A_(r,u,e,a,Jr,n,l),gt(a,"info")&&(Nn(u).info=a.info);for(var c=0;c<Ei.length;c++){var f=Ei[c];if(f!==bi){var v=Ld(a,f),d=L_(a,v,f);r3(f,u,v,d,Jr)}}return pj(u,a,n),a.type==="group"&&bj(r,u,e,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function a3(r,t,e){var a=Nn(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&Mj(i)&&n3(i)!==a.customPathData||n==="image"&&gt(o,"image")&&o.image!==a.customImagePath}function yj(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&a3(o,i,a)&&(o=null),o||(o=T_(i),r.setClipPath(o)),A_(null,o,t,i,null,a,n)}}function _j(r,t,e,a,n,i){if(!r.isGroup){tC(e,null,i),tC(e,$n,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=T_(o),r.setTextContent(c)),A_(null,c,t,o,null,a,n);for(var f=o&&o.style,v=0;v<Ei.length;v++){var d=Ei[v];if(d!==bi){var h=i[d].conOpt;r3(d,c,h,L_(o,h,d),null)}}f?c.dirty():c.markRedraw()}}}}function tC(r,t,e){var a=t?Ld(r,t):r,n=t?L_(r,a,$n):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?t?Ld(s,t):s:null;if(n&&(e.isLegacy||qP(n,i,!!o,!!l))){e.isLegacy=!0;var u=KP(n,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?e[t]:e.normal;f.cfg=o,f.conOpt=l}function Ld(r,t){return t?r?r[t]:null:r}function L_(r,t,e){var a=t&&t.style;return a==null&&e===$n&&r&&(a=r.styleEmphasis),a}function bj(r,t,e,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){wj({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:n,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=i[c],v=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),D_(r,v,e,f,n,t)):v.ignore=!0}for(var d=t.childCount()-1;d>=c;d--){var h=t.childAt(d);xj(t,h,n)}}}function xj(r,t,e){t&&Oh(t,Nn(r).option,e)}function wj(r){new Gn(r.oldChildren,r.newChildren,eC,eC,r).add(rC).update(rC).remove(Sj).execute()}function eC(r,t){var e=r&&r.name;return e??fj+t}function rC(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;D_(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function Sj(r){var t=this.context,e=t.oldChildren[r];e&&Oh(e,Nn(e).option,t.seriesModel)}function n3(r){return r&&(r.pathData||r.d)}function Mj(r){return r&&(gt(r,"pathData")||gt(r,"d"))}function Cj(r){r.registerChartView(hj),r.registerSeriesModel(WU)}var wo=qt(),aC=Mt,Qg=dt,k_=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new It,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=Dt(nC,e,f);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}oC(s,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 a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=Q1(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=wo(t).pointerEl=new es[i.type](aC(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=wo(t).labelEl=new Kt(aC(e.label));t.add(i),iC(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=wo(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=wo(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),iC(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Vc(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){On(u.event)},onmousedown:Qg(this._onHandleDragMove,this,0,0),drift:Qg(this._onHandleDragMove,this),ondragend:Qg(this._onHandleDragEnd,this)}),a.add(n)),oC(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");K(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Cl(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){nC(this._axisPointerModel,!e&&this._moveAnimation,this._handle,tm(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(tm(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(tm(n)),wo(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.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(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),fc(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function nC(r,t,e,a){i3(wo(e).lastProp,a)||(wo(e).lastProp=a,t?ee(e,a,r):(e.stopAnimation(),e.attr(a)))}function i3(r,t){if(St(r)&&St(t)){var e=!0;return A(t,function(a,n){e=e&&i3(r[n],a)}),!!e}else return r===t}function iC(r,t){r[t.get(["label","show"])?"show":"hide"]()}function tm(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function oC(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}function P_(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function o3(r,t,e,a,n){var i=e.get("value"),o=s3(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=xl(s.get("padding")||0),u=s.getFont(),c=Rc(o,u),f=n.position,v=c.width+l[1]+l[3],d=c.height+l[0]+l[2],h=n.align;h==="right"&&(f[0]-=v),h==="center"&&(f[0]-=v/2);var g=n.verticalAlign;g==="bottom"&&(f[1]-=d),g==="middle"&&(f[1]-=d/2),Ij(f,v,d,a);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:be(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function Ij(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-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 s3(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:F1(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),ft(o)?i=o.replace("{value}",i):xt(o)&&(i=o(s))}return i}function R_(r,t,e){var a=Yr();return Qo(a,a,e.rotation),cn(a,a,e.position),Ca([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function l3(r,t,e,a,n,i){var o=xr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),o3(t,a,n,i,{position:R_(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function E_(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function u3(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function sC(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var Tj=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),c=lC(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=P_(i),d=Aj[u](s,f,c);d.style=v,e.graphicKey=d.type,e.pointer=d}var h=Vy(l.model,n);l3(a,e,h,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Vy(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=R_(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=lC(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=a[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var v=(u[1]+u[0])/2,d=[v,v];d[c]=f[c];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:d,tooltipOption:h[c]}},t}(k_);function lC(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var Aj={line:function(r,t,e){var a=E_([t,e[0]],[t,e[1]],uC(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:u3([t-a/2,e[0]],[a,n],uC(r))}}};function uC(r){return r.dim==="x"?0:1}var Dj=function(r){G(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}(Yt),Dn=qt(),Lj=A;function c3(r,t,e){if(!Gt.node){var a=t.getZr();Dn(a).records||(Dn(a).records={}),kj(a,t);var n=Dn(a).records[r]||(Dn(a).records[r]={});n.handler=e}}function kj(r,t){if(Dn(r).initialized)return;Dn(r).initialized=!0,e("click",Dt(cC,"click")),e("mousemove",Dt(cC,"mousemove")),e("globalout",Rj);function e(a,n){r.on(a,function(i){var o=Ej(t);Lj(Dn(r).records,function(s){s&&n(s,i,o.dispatchAction)}),Pj(o.pendings,t)})}}function Pj(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function Rj(r,t,e){r.handler("leave",null,e)}function cC(r,t,e,a){t.handler(r,e,a)}function Ej(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function s0(r,t){if(!Gt.node){var e=t.getZr(),a=(Dn(e).records||{})[r];a&&(Dn(e).records[r]=null)}}var Nj=function(r){G(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,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";c3("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){s0("axisPointer",a)},t.prototype.dispose=function(e,a){s0("axisPointer",a)},t.type="axisPointer",t}(De);function f3(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Zo(i,r);if(o==null||o<0||K(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,v=u.dim,d=f==="x"||f==="radius"?1:0,h=i.mapDimension(v),g=[];g[d]=i.get(h,o),g[1-d]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(i.getValues(Q(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),e=[m.x+m.width/2,m.y+m.height/2]}return{point:e,el:s}}var fC=qt();function $j(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||dt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){kv(n)&&(n=f3({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=kv(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||kv(n),v={},d={},h={list:[],map:{}},g={showPointer:Dt(zj,d),showTooltip:Dt(Bj,h)};A(s.coordSysMap,function(y,_){var b=l||y.containPoint(n);A(s.coordSysAxesInfo[_],function(x,w){var S=x.axis,M=Hj(u,x);if(!f&&b&&(!u||M)){var C=M&&M.value;C==null&&!l&&(C=S.pointToData(n)),C!=null&&vC(x,C,g,!1,v)}})});var m={};return A(c,function(y,_){var b=y.linkGroup;b&&!d[_]&&A(b.axesInfo,function(x,w){var S=d[w];if(x!==y&&S){var M=S.value;b.mapper&&(M=y.axis.scale.parse(b.mapper(M,dC(x),dC(y)))),m[y.key]=M}})}),A(m,function(y,_){vC(c[_],y,g,!0,v)}),Vj(d,c,v),Gj(h,n,r,o),Fj(c,o,e),v}}function vC(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=Oj(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&Y(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function Oj(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),f,v;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,r,e);v=d.dataIndices,f=d.nestestValue}else{if(v=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!v.length)return;f=l.getData().get(c[0],v[0])}if(!(f==null||!isFinite(f))){var h=r-f,g=Math.abs(h);g<=o&&((g<o||h>=0&&s<0)&&(o=g,s=h,n=f,i.length=0),A(v,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:n}}function zj(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function Bj(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=yc(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function Vj(r,t,e){var a=e.axesInfo=[];A(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function Gj(r,t,e,a){if(kv(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function Fj(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=fC(a)[n]||{},o=fC(a)[n]={};A(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&A(f.seriesDataIndices,function(v){var d=v.seriesIndex+" | "+v.dataIndex;o[d]=v})});var s=[],l=[];A(i,function(u,c){!o[c]&&l.push(u)}),A(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Hj(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function dC(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function kv(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Qc(r){is.registerAxisPointerClass("CartesianAxisPointer",Tj),r.registerComponentModel(Dj),r.registerComponentView(Nj),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=tF(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$j)}function v3(r){Bt(zk),Bt(Qc)}var Wj=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var d=P_(i),h=Yj[v](s,l,f,c);h.style=d,e.graphicKey=h.type,e.pointer=h}var g=i.get(["label","margin"]),m=Zj(a,n,i,l,g);o3(e,n,i,o,m)},t}(k_);function Zj(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var v=Yr();Qo(v,v,s),cn(v,v,[a.cx,a.cy]),u=Ca([o,-n],v);var d=t.getModel("axisLabel").get("rotate")||0,h=xr.innerTextLayout(s,d*Math.PI/180,-1);c=h.textAlign,f=h.textVerticalAlign}else{var g=l[1];u=a.coordToPoint([g+n,o]);var m=a.cx,y=a.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var Yj={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:E_(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:sC(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:sC(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}},Uj=function(r){G(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 a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Yt),N_=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ne).models[0]},t.type="polarAxis",t}(Yt);Oe(N_,Wc);var jj=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(N_),Xj=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(N_),$_=function(r){G(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(La);$_.prototype.dataToRadius=La.prototype.dataToCoord;$_.prototype.radiusToData=La.prototype.coordToData;var qj=qt(),O_=function(r){G(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),c=Rc(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(c.height,7),v=f/u;isNaN(v)&&(v=1/0);var d=Math.max(0,Math.floor(v)),h=qj(e.model),g=h.lastAutoInterval,m=h.lastTickCount;return g!=null&&m!=null&&Math.abs(g-d)<=1&&Math.abs(m-o)<=1&&g>d?d=g:(h.lastTickCount=o,h.lastAutoInterval=d),d},t}(La);O_.prototype.dataToAngle=La.prototype.dataToCoord;O_.prototype.angleToData=La.prototype.coordToData;var d3=["radius","angle"],Kj=function(){function r(t){this.dimensions=d3,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new $_,this._angleAxis=new O_,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=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),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 a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,v=this.r,d=this.r0;return v!==d&&f-o<=v*v&&f+o>=d*d}}},r.prototype.convertToPixel=function(t,e,a){var n=hC(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=hC(e);return n===this?this.pointToData(a):null},r}();function hC(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function Jj(r,t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight();r.cx=lt(a[0],n),r.cy=lt(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:K(l)||(l=[0,l]);var u=[lt(l[0],s),lt(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Qj(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(md(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(md(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),ol(a.scale,a.model),ol(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function tX(r){return r.mainType==="angleAxis"}function pC(r,t){var e;if(r.type=t.get("type"),r.scale=Lh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),tX(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var eX={dimensions:d3,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new Kj(n+"");i.update=Qj;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");pC(o,l),pC(s,u),Jj(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Ne).models[0];a.coordinateSystem=n.coordinateSystem}}),e}},rX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Kf(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Jf(r){var t=r.getRadiusAxis();return t.inverse?0:1}function gC(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 aX=function(r){G(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,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=Q(n.getViewLabels(),function(c){c=Mt(c);var f=n.scale,v=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(v),c});gC(u),gC(s),A(rX,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&nX[c](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(is),nX={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Jf(e),f=c?0:1,v,d=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?v=new es[d]({shape:{cx:e.cx,cy:e.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new $c({shape:{cx:e.cx,cy:e.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Jf(e)],u=Q(a,function(c){return new Fe({shape:Kf(e,[l,l+s],c.coord)})});r.add(oa(u,{style:wt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Jf(e)],c=[],f=0;f<n.length;f++)for(var v=0;v<n[f].length;v++)c.push(new Fe({shape:Kf(e,[u,u+l],n[f][v].coord)}));r.add(oa(c,{style:wt(s.getModel("lineStyle").getLineStyle(),wt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,n,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");A(o,function(f,v){var d=l,h=f.tickValue,g=i[Jf(e)],m=e.coordToPoint([g+u,f.coord]),y=e.cx,_=e.cy,b=Math.abs(m[0]-y)/g<.3?"center":m[0]>y?"left":"right",x=Math.abs(m[1]-_)/g<.3?"middle":m[1]>_?"top":"bottom";if(s&&s[h]){var w=s[h];St(w)&&w.textStyle&&(d=new se(w.textStyle,l,l.ecModel))}var S=new Kt({silent:xr.isLabelSilent(t),style:be(d,{x:m[0],y:m[1],fill:d.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:x})});if(r.add(S),c){var M=xr.makeAxisEventDataBase(t);M.targetType="axisLabel",M.value=f.rawLabel,Tt(S).eventData=M}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<a.length;f++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new Fe({shape:Kf(e,i,a[f].coord)}))}for(var f=0;f<c.length;f++)r.add(oa(c[f],{style:wt({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new Fe({shape:Kf(e,i,n[u][c].coord)}));r.add(oa(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,n,i){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,v=-a[0].coord*f,d=Math.min(i[0],i[1]),h=Math.max(i[0],i[1]),g=t.get("clockwise"),m=1,y=a.length;m<=y;m++){var _=m===y?a[0].coord:a[m].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new Mr({shape:{cx:e.cx,cy:e.cy,r0:d,r:h,startAngle:v,endAngle:-_*f,clockwise:g},silent:!0})),v=-_*f}for(var m=0;m<c.length;m++)r.add(oa(c[m],{style:wt({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},iX=["axisLine","axisTickLabel","axisName"],oX=["splitLine","splitArea","minorSplitLine"],sX=function(r){G(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,a){if(this.group.removeAll(),!!e.get("show")){var n=this._axisGroup,i=this._axisGroup=new It;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],v=o.getExtent(),d=uX(s,e,f),h=new xr(e,d);A(iX,h.add,h),i.add(h.getGroup()),Bc(n,i,e),A(oX,function(g){e.get([g,"show"])&&!o.scale.isBlank()&&lX[g](this.group,e,s,f,v,u,c)},this)}},t.type="radiusAxis",t}(is),lX={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=e.getAngleAxis(),f=Math.PI/180,v=c.getExtent(),d=Math.abs(v[1]-v[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var h=[],g=0;g<i.length;g++){var m=u++%l.length;h[m]=h[m]||[],h[m].push(new es[d]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[g].coord,0),startAngle:-v[0]*f,endAngle:-v[1]*f,clockwise:c.inverse}}))}for(var g=0;g<h.length;g++)r.add(oa(h[g],{style:wt({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Un({shape:{cx:e.cx,cy:e.cy,r:o[c][f].coord}}));r.add(oa(u,{style:wt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,n,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,v=1;v<i.length;v++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Mr({shape:{cx:e.cx,cy:e.cy,r0:f,r:i[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[v].coord}for(var v=0;v<c.length;v++)r.add(oa(c[v],{style:wt({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function uX(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function h3(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function p3(r,t){return t.dim+r.model.componentIndex}function cX(r,t,e){var a={},n=fX(ne(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=p3(s,l),c=h3(i),f=n[u][c],v=f.offset,d=f.width,h=s.getOtherAxis(l),g=i.coordinateSystem.cx,m=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,_=i.get("barMinAngle")||0;a[c]=a[c]||[];for(var b=o.mapDimension(h.dim),x=o.mapDimension(l.dim),w=Pi(o,b),S=l.dim!=="radius"||!i.get("roundCap",!0),M=h.model,C=M.get("startValue"),I=h.dataToCoord(C||0),T=0,D=o.count();T<D;T++){var E=o.get(b,T),R=o.get(x,T),k=E>=0?"p":"n",N=I;w&&(a[c][R]||(a[c][R]={p:I,n:I}),N=a[c][R][k]);var O=void 0,V=void 0,B=void 0,Z=void 0;if(h.dim==="radius"){var X=h.dataToCoord(E)-I,et=l.dataToCoord(R);Math.abs(X)<y&&(X=(X<0?-1:1)*y),O=N,V=N+X,B=et-v,Z=B-d,w&&(a[c][R][k]=V)}else{var it=h.dataToCoord(E,S)-I,yt=l.dataToCoord(R);Math.abs(it)<_&&(it=(it<0?-1:1)*_),O=yt+v,V=O+d,B=N,Z=N+it,w&&(a[c][R][k]=Z)}o.setItemLayout(T,{cx:g,cy:m,r0:O,r:V,startAngle:-B*Math.PI/180,endAngle:-Z*Math.PI/180,clockwise:B>=Z})}}})}function fX(r){var t={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=p3(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=f.stacks;t[l]=f;var d=h3(a);v[d]||f.autoWidthCount++,v[d]=v[d]||{width:0,maxWidth:0};var h=lt(a.get("barWidth"),c),g=lt(a.get("barMaxWidth"),c),m=a.get("barGap"),y=a.get("barCategoryGap");h&&!v[d].width&&(h=Math.min(f.remainedWidth,h),v[d].width=h,f.remainedWidth-=h),g&&(v[d].maxWidth=g),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=lt(a.categoryGap,o),l=lt(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),A(i,function(g,m){var y=g.maxWidth;y&&y<f&&(y=Math.min(y,u),g.width&&(y=Math.min(y,g.width)),u-=y,g.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var v=0,d;A(i,function(g,m){g.width||(g.width=f),d=g,v+=g.width*(1+l)}),d&&(v-=d.width*l);var h=-v/2;A(i,function(g,m){e[n][m]=e[n][m]||{offset:h,width:g.width},h+=g.width*(1+l)})}),e}var vX={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},dX={splitNumber:5},hX=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(De);function pX(r){Bt(Qc),is.registerAxisPointerClass("PolarAxisPointer",Wj),r.registerCoordinateSystem("polar",eX),r.registerComponentModel(Uj),r.registerComponentView(hX),ll(r,"angle",jj,vX),ll(r,"radius",Xj,dX),r.registerComponentView(aX),r.registerComponentView(sX),r.registerLayout(Dt(cX,"bar"))}function l0(r,t){t=t||{};var e=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};n.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=f[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),je(t.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var v=t.rotate;return v==null&&(v=r.get(["axisLabel","rotate"])),n.labelRotation=i==="top"?-v:v,n.z2=1,n}var gX=["axisLine","axisTickLabel","axisName"],mX=["splitArea","splitLine"],yX=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new It;var l=l0(e),u=new xr(e,l);A(gX,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),A(mX,function(c){e.get([c,"show"])&&_X[c](this,this.group,this._axisGroup,e)},this),Bc(s,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)},t.prototype.remove=function(){Nk(this)},t.type="singleAxis",t}(is),_X={splitLine:function(r,t,e,a){var n=a.axis;if(!n.scale.isBlank()){var i=a.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=a.coordinateSystem.getRect(),c=n.isHorizontal(),f=[],v=0,d=n.getTicksCoords({tickModel:i}),h=[],g=[],m=0;m<d.length;++m){var y=n.toGlobalCoord(d[m].coord);c?(h[0]=y,h[1]=u.y,g[0]=y,g[1]=u.y+u.height):(h[0]=u.x,h[1]=y,g[0]=u.x+u.width,g[1]=y);var _=new Fe({shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},silent:!0});al(_.shape,l);var b=v++%s.length;f[b]=f[b]||[],f[b].push(_)}for(var x=o.getLineStyle(["color"]),m=0;m<f.length;++m)t.add(oa(f[m],{style:wt({stroke:s[m%s.length]},x),silent:!0}))}},splitArea:function(r,t,e,a){Ek(r,e,a,a)}},Pv=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Yt);Oe(Pv,Wc.prototype);var bX=function(r){G(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,a){return this.coordinateSystem.pointToData(e)[0]},t}(La),g3=["single"],xX=function(){function r(t,e,a){this.type="single",this.dimension="single",this.dimensions=g3,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=this.dimension,i=new bX(n,Lh(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(t,e){t.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();A(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),ol(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){this._rect=Ve({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,a=e.isHorizontal(),n=a?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),this._updateAxisTransform(e,a?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var a=t.getExtent(),n=a[0]+a[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+e}:function(o){return n-o+e},t.toLocalCoord=i?function(o){return o-e}:function(o){return n-o+e}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(t){var e=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:a.contain(a.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(),a=this.getRect(),n=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),n[i]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(t,e,a){var n=mC(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=mC(e);return n===this?this.pointToData(a):null},r}();function mC(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function wX(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new xX(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",Ne).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var SX={create:wX,dimensions:g3},yC=["x","y"],MX=["width","height"],CX=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=em(l,1-kd(s)),c=l.dataToPoint(a)[0],f=i.get("type");if(f&&f!=="none"){var v=P_(i),d=IX[f](s,c,u);d.style=v,e.graphicKey=d.type,e.pointer=d}var h=l0(n);l3(a,e,h,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=l0(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=R_(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=kd(o),u=em(s,l),c=[e.x,e.y];c[l]+=a[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=em(s,1-l),v=(f[1]+f[0])/2,d=[v,v];return d[l]=c[l],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(k_),IX={line:function(r,t,e){var a=E_([t,e[0]],[t,e[1]],kd(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:u3([t-a/2,e[0]],[a,n],kd(r))}}};function kd(r){return r.isHorizontal()?0:1}function em(r,t){var e=r.getRect();return[e[yC[t]],e[yC[t]]+e[MX[t]]]}var TX=function(r){G(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 AX(r){Bt(Qc),is.registerAxisPointerClass("SingleAxisPointer",CX),r.registerComponentView(TX),r.registerComponentView(yX),r.registerComponentModel(Pv),ll(r,"single",Pv,Pv.defaultOption),r.registerCoordinateSystem("single",SX)}var DX=function(r){G(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,a,n){var i=wl(e);r.prototype.init.apply(this,arguments),_C(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),_C(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}(Yt);function _C(r,t){var e=r.cellSize,a;K(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=Q([0,1],function(i){return az(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});ki(r,t,{type:"box",ignoreSize:n})}var LX=function(r){G(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,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new Xt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});n.add(f)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=a.start,v=0;f.time<=a.end.time;v++){h(f.formatedDate),v===0&&(f=s.getDateInfo(a.start.y+"-"+a.start.m));var d=f.date;d.setMonth(d.getMonth()+1),f=s.getDateInfo(d)}h(s.getNextNDay(a.end.time,1).formatedDate);function h(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(e,g,n);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new Ir({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return ft(e)&&e?tz(e,a):xt(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,d={top:[c,u[v][1]],bottom:[c,u[1-v][1]],left:[u[1-v][0],f],right:[u[v][0],f]},h=a.start.y;+a.end.y>+a.start.y&&(h=h+"-"+a.end.y);var g=o.get("formatter"),m={start:a.start.y,end:a.end.y,nameMap:h},y=this._formatterLabel(g,m),_=new Kt({z2:30,style:be(o,{text:y}),silent:o.get("silent")});_.attr(this._yearTextPositionControl(_,d[l],n,l,s)),i.add(_)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],c=e[1];return n==="horizontal"?(c=c+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||ft(s))&&(s&&(a=py(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,d=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var h=c==="center",g=o.get("silent"),m=0;m<f[v].length-1;m++){var y=f[v][m].slice(),_=this._firstDayOfMonth[m];if(h){var b=this._firstDayPoints[m];y[d]=(b[d]+f[0][m+1][d])/2}var x=o.get("formatter"),w=s[+_.m-1],S={yyyy:_.y,yy:(_.y+"").slice(2),MM:_.m,M:+_.m,nameMap:w},M=this._formatterLabel(x,S),C=new Kt({z2:30,style:Y(be(o,{text:M}),this._monthTextPositionControl(y,h,n,u,l)),silent:g});i.add(C)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],c=e[1],f=n==="start";return a==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,a,n,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),v=l.getFirstDayOfWeek();if(!c||ft(c)){c&&(a=py(c)||a);var d=a.get(["time","dayOfWeekShort"]);c=d||Q(a.get(["time","dayOfWeekAbbr"]),function(S){return S[0]})}var h=l.getNextNDay(n.end.time,7-n.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];f=lt(f,Math.min(g[1],g[0])),u==="start"&&(h=l.getNextNDay(n.start.time,-(7+n.fweek)).time,f=-f);for(var m=s.get("silent"),y=0;y<7;y++){var _=l.getNextNDay(h,y),b=l.dataToRect([_.time],!1).center,x=y;x=Math.abs((y+v)%7);var w=new Kt({z2:30,style:Y(be(s,{text:c[x]}),this._weekTextPositionControl(b,i,u,f,g)),silent:m});o.add(w)}}},t.type="calendar",t}(De),rm=864e5,kX=function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=vn(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];A([0,1],function(f){c(i,f)&&(o[n[f]]=i[f]*s[f])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=Ve(o,l);A([0,1],function(f){c(i,f)||(i[f]=u[n[f]]/s[f])});function c(f,v){return f[v]!=null&&f[v]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e){K(t)&&(t=t[0]),e==null&&(e=!0);var a=this.getDateInfo(t),n=this._rangeInfo,i=a.formatedDate;if(e&&!(a.time>=n.start.time&&a.time<n.end.time+rm))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var a=this.dataToPoint(t,e);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},r.prototype.convertToPixel=function(t,e,a){var n=bC(e);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=bC(e);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(K(t)&&t.length===1&&(t=t[0]),K(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/rm)-Math.floor(e[0].time/rm)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var c=Math.floor((n+e[0].day+6)/7),f=a?-c+1:c-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:c,nthWeek:f,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),t.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function bC(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function PX(r){r.registerComponentModel(DX),r.registerComponentView(LX),r.registerCoordinateSystem("calendar",kX)}function RX(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function xC(r,t){var e;return A(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function EX(r,t,e){var a=Y({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(Lt(n,a,!0),ki(n,a,{ignoreSize:!0}),a5(e,n),Qf(e,n),Qf(e,n,"shape"),Qf(e,n,"style"),Qf(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var m3=["transition","enterFrom","leaveTo"],NX=m3.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Qf(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?m3:NX,n=0;n<a.length;n++){var i=a[n];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function $X(r,t){if(r&&(r.hv=t.hv=[xC(t,["left","right"]),xC(t,["top","bottom"])],r.type==="group")){var e=r,a=t;e.width==null&&(e.width=a.width=0),e.height==null&&(e.height=a.height=0)}}var OX=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,a),this.option.elements=n},t.prototype.optionUpdated=function(e,a){var n=this.option,i=(a?n:e).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=tD(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];A(l,function(c,f){var v=c.newOption;v&&(u.push(v),RX(c,v),EX(o,f,v),$X(o[f],v))},this),n.elements=ne(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(e,a,n){A(e,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Yt),wC={path:null,compoundPath:null,group:It,image:Xe,text:Kt},aa=qt(),zX=function(r){G(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._elMap=mt()},t.prototype.render=function(e,a,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var a=e.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");A(a,function(l){var u=ze(l.id,null),c=u!=null?n.get(u):null,f=ze(l.parentId,null),v=f!=null?n.get(f):i,d=l.type,h=l.style;d==="text"&&h&&l.hv&&l.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var g=l.textContent,m=l.textConfig;if(h&&qP(h,d,!!m,!!g)){var y=KP(h,d,!0);!m&&y.textConfig&&(m=l.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var _=BX(l),b=l.$action||"merge",x=b==="merge",w=b==="replace";if(x){var S=!c,M=c;S?M=SC(u,v,l.type,n):(M&&(aa(M).isNew=!1),e3(M)),M&&(Lv(M,_,e,{isInit:S}),MC(M,l,o,s))}else if(w){Rv(c,l,n,e);var C=SC(u,v,l.type,n);C&&(Lv(C,_,e,{isInit:!0}),MC(C,l,o,s))}else b==="remove"&&(QP(c,l),Rv(c,l,n,e));var I=n.get(u);if(I&&g)if(x){var T=I.getTextContent();T?T.attr(g):I.setTextContent(new Kt(g))}else w&&I.setTextContent(new Kt(g));if(I){var D=l.clipPath;if(D){var E=D.type,R=void 0,S=!1;if(x){var k=I.getClipPath();S=!k||aa(k).type!==E,R=S?u0(E):k}else w&&(S=!0,R=u0(E));I.setClipPath(R),Lv(R,D,e,{isInit:S}),Dd(R,D.keyframeAnimation,e)}var N=aa(I);I.setTextConfig(m),N.option=l,VX(I,e,l),ts({el:I,componentModel:e,itemName:I.name,itemTooltipOption:l.tooltip}),Dd(I,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,a){for(var n=e.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],c=0;c<n.length;c++){var f=n[c],v=ze(f.id,null),d=v!=null?o.get(v):null;if(!(!d||!d.isGroup)){var h=d.parent,g=h===i,m=aa(d),y=aa(h);m.width=lt(m.option.width,g?s:y.width)||0,m.height=lt(m.option.height,g?l:y.height)||0}}for(var c=n.length-1;c>=0;c--){var f=n[c],v=ze(f.id,null),d=v!=null?o.get(v):null;if(d){var h=d.parent,y=aa(h),_=h===i?{width:s,height:l}:{width:y.width,height:y.height},b={},x=xh(d,f,_,null,{hv:f.hv,boundingMode:f.bounding},b);if(!aa(d).isNew&&x){for(var w=f.transition,S={},M=0;M<u.length;M++){var C=u[M],I=b[C];w&&(Go(w)||Nt(w,C)>=0)?S[C]=I:d[C]=I}ee(d,S,e,0)}else d.attr(b)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Rv(n,aa(n).option,a,e._lastGraphicModel)}),this._elMap=mt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(De);function u0(r){var t=gt(wC,r)?wC[r]:g1(r),e=new t({});return aa(e).type=r,e}function SC(r,t,e,a){var n=u0(e);return t.add(n),a.set(r,n),aa(n).id=r,aa(n).isNew=!0,n}function Rv(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Rv(i,t,e,a)}),Oh(r,t,a),e.removeKey(aa(r).id))}function MC(r,t,e,a){r.isGroup||A([["cursor",va.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];gt(t,i)?r[i]=At(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(Ut(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=xt(i)?i:null}}),gt(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function BX(r){return r=Y({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(r5),function(t){delete r[t]}),r}function VX(r,t,e){var a=Tt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=Tt(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function GX(r){r.registerComponentModel(OX),r.registerComponentView(zX),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 CC=["x","y","radius","angle","single"],FX=["cartesian2d","polar","singleAxis"];function HX(r){var t=r.get("coordinateSystem");return Nt(FX,t)>=0}function xi(r){return r+"Axis"}function WX(r,t){var e=mt(),a=[],n=mt();r.eachComponent({mainType:"dataZoom",query:t},function(c){n.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!n.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){n.set(c.uid,!0),a.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(v,d){var h=e.get(v);h&&h[d]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,v){(e.get(f)||e.set(f,[]))[v]=!0})}return a}function y3(r){var t=r.ecModel,e={infoList:[],infoMap:mt()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(xi(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var am=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}(),Mc=function(r){G(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,a,n){var i=IC(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=IC(e);Lt(this.option,e,!0),Lt(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=mt(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return A(CC,function(n){var i=this.getReferringComponents(xi(n),F9);if(i.specified){a=!0;var o=new am;A(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===a}});l(s,"single")}function l(u,c){var f=u[0];if(f){var v=new am;if(v.add(f.componentIndex),e.set(c,v),i=!1,c==="x"||c==="y"){var d=f.getReferringComponents("grid",Ne).models[0];d&&A(u,function(h){f.componentIndex!==h.componentIndex&&d===h.getReferringComponents("grid",Ne).models[0]&&v.add(h.componentIndex)})}}}i&&A(CC,function(u){if(i){var c=n.findComponents({mainType:xi(u),filter:function(v){return v.get("type",!0)==="category"}});if(c[0]){var f=new am;f.add(c[0].componentIndex),e.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(xi(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(xi(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Yt);function IC(r){var t={};return A(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var ZX=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Mc),z_=function(r){G(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,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t}(De),YX=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(z_),Es=A,TC=la,UX=function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(HX(e)){var a=xi(this._dimName),n=e.getReferringComponents(a,Ne).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Mt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Es(["start","end"],function(v,d){var h=t[v],g=t[v+"Value"];i[d]==="percent"?(h==null&&(h=o[d]),g=n.parse(oe(h,o,e))):(u=!0,g=g==null?e[d]:n.parse(g),h=oe(g,e,o)),l[d]=g==null||isNaN(g)?e[d]:g,s[d]=h==null||isNaN(h)?o[d]:h}),TC(l),TC(s);var c=this._minMaxSpan;u?f(l,s,e,o,!1):f(s,l,o,e,!0);function f(v,d,h,g,m){var y=m?"Span":"ValueSpan";os(0,v,h,"all",c["min"+y],c["max"+y]);for(var _=0;_<2;_++)d[_]=oe(v[_],h,g,!0),m&&(d[_]=n.parse(d[_]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=jX(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;Es(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(a);if(c.length){if(i==="weakFilter"){var f=u.getStore(),v=Q(c,function(d){return u.getDimensionIndex(d)},u);u.filterSelf(function(d){for(var h,g,m,y=0;y<c.length;y++){var _=f.get(v[y],d),b=!isNaN(_),x=_<o[0],w=_>o[1];if(b&&!x&&!w)return!0;b&&(m=!0),x&&(h=!0),w&&(g=!0)}return m&&h&&g})}else Es(c,function(d){if(i==="empty")l.setData(u=u.map(d,function(g){return s(g)?g:NaN}));else{var h={};h[d]=o,u.selectRange(h)}});Es(c,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;Es(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=oe(a[0]+o,a,[0,100],!0):i!=null&&(o=oe(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=YA(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function jX(r,t,e){var a=[1/0,-1/0];Es(e,function(o){R8(a,o.getData(),t)});var n=r.getAxisModel(),i=LL(n.axis.scale,n,a).calculate();return[i.min,i.max]}var XX={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(xi(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new UX(n,i,s,r),e.push(o.__dzAxisProxy))});var a=mt();return A(e,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function qX(r){r.registerAction("dataZoom",function(t,e){var a=WX(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var AC=!1;function B_(r){AC||(AC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,XX),qX(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function KX(r){r.registerComponentModel(ZX),r.registerComponentView(YX),B_(r)}var ia=function(){function r(){}return r}(),_3={};function Ns(r,t){_3[r]=t}function b3(r){return _3[r]}var JX=function(r){G(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;A(this.option.feature,function(a,n){var i=b3(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Lt(a,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}(Yt);function QX(r,t,e){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Ve(a,i,n);Bo(t.get("orient"),r,t.get("itemGap"),o.width,o.height),xh(r,a,i,n)}function x3(r,t){var e=xl(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new Xt({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:a,silent:!0,z2:-1}),r}var tq=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),f=[];A(u,function(h,g){f.push(g)}),new Gn(this._featureNames||[],f).add(v).update(v).remove(Dt(v,null)).execute(),this._featureNames=f;function v(h,g){var m=f[h],y=f[g],_=u[m],b=new se(_,e,e.ecModel),x;if(i&&i.newTitle!=null&&i.featureName===m&&(_.title=i.newTitle),m&&!y){if(eq(m))x={onclick:b.option.onclick,featureName:m};else{var w=b3(m);if(!w)return;x=new w}c[m]=x}else if(x=c[y],!x)return;x.uid=bl("toolbox-feature"),x.model=b,x.ecModel=a,x.api=n;var S=x instanceof ia;if(!m&&y){S&&x.dispose&&x.dispose(a,n);return}if(!b.get("show")||S&&x.unusable){S&&x.remove&&x.remove(a,n);return}d(b,x,m),b.setIconStatus=function(M,C){var I=this.option,T=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[M]=C,T[M]&&(C==="emphasis"?Bn:Vn)(T[M])},x instanceof ia&&x.render&&x.render(b,a,n,i)}function d(h,g,m){var y=h.getModel("iconStyle"),_=h.getModel(["emphasis","iconStyle"]),b=g instanceof ia&&g.getIcons?g.getIcons():h.get("icon"),x=h.get("title")||{},w,S;ft(b)?(w={},w[m]=b):w=b,ft(x)?(S={},S[m]=x):S=x;var M=h.iconPaths={};A(w,function(C,I){var T=Vc(C,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(y.getItemStyle());var D=T.ensureState("emphasis");D.style=_.getItemStyle();var E=new Kt({style:{text:S[I],align:_.get("textAlign"),borderRadius:_.get("textBorderRadius"),padding:_.get("textPadding"),fill:null,font:m1({fontStyle:_.get("textFontStyle"),fontFamily:_.get("textFontFamily"),fontSize:_.get("textFontSize"),fontWeight:_.get("textFontWeight")},a)},ignore:!0});T.setTextContent(E),ts({el:T,componentModel:e,itemName:I,formatterParamsExtra:{title:S[I]}}),T.__title=S[I],T.on("mouseover",function(){var R=_.getItemStyle(),k=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:_.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:_.get("textBackgroundColor")}),T.setTextConfig({position:_.get("textPosition")||k}),E.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){h.get(["iconStatus",I])!=="emphasis"&&n.leaveEmphasis(this),E.hide()}),(h.get(["iconStatus",I])==="emphasis"?Bn:Vn)(T),o.add(T),T.on("click",dt(g.onclick,g,a,n,I)),M[I]=T})}QX(o,e,n),o.add(x3(o.getBoundingRect(),e)),l||o.eachChild(function(h){var g=h.__title,m=h.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),_=h.getTextContent(),b=_&&_.ensureState("emphasis");if(b&&!xt(b)&&g){var x=b.style||(b.style={}),w=Rc(g,Kt.makeFont(x)),S=h.x+o.x,M=h.y+o.y+s,C=!1;M+w.height>n.getHeight()&&(y.position="top",C=!0);var I=C?-5-w.height:s+10;S+w.width/2>n.getWidth()?(y.position=["100%",I],x.align="right"):S-w.width/2<0&&(y.position=[0,I],x.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o instanceof ia&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){A(this._features,function(n){n instanceof ia&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){A(this._features,function(n){n instanceof ia&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(De);function eq(r){return r.indexOf("my")===0}var rq=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Gt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),d=v[0].indexOf("base64")>-1,h=o?decodeURIComponent(v[1]):v[1];d&&(h=window.atob(h));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=h.length,y=new Uint8Array(m);m--;)y[m]=h.charCodeAt(m);var _=new Blob([y]);window.navigator.msSaveOrOpenBlob(_,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var x=b.contentWindow,w=x.document;w.open("image/svg+xml","replace"),w.write(h),w.close(),x.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var S=n.get("lang"),M='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',C=window.open();C.document.write(M),C.document.title=i}},t.getDefaultOption=function(e){var a={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 a},t}(ia),DC="__ec_magicType_stack__",aq=[["line","bar"],["stack"]],nq=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return A(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={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 a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(LC[n]){var s={series:[]},l=function(f){var v=f.subType,d=f.id,h=LC[n](v,d,f,i);h&&(wt(h,f.option),s.series.push(h));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(n==="line"||n==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,_=y+"Axis",b=f.getReferringComponents(_,Ne).models[0],x=b.componentIndex;s[_]=s[_]||[];for(var w=0;w<=x;w++)s[_][x]=s[_][x]||{};s[_][x].boundaryGap=n==="bar"}}};A(aq,function(f){Nt(f,n)>=0&&A(f,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;n==="stack"&&(u=Lt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ia),LC={line:function(r,t,e,a){if(r==="bar")return Lt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return Lt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===DC;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),Lt({id:t,stack:n?"":DC},a.get(["option","stack"])||{},!0)}};pn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var zh=new Array(60).join("-"),fl=" ";function iq(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function oq(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(Q(e.series,function(d){return d.name})),l=[n.model.getCategories()];A(e.series,function(d){var h=d.getRawData();l.push(d.getRawData().mapArray(h.mapDimension(o),function(g){return g}))});for(var u=[s.join(fl)],c=0;c<l[0].length;c++){for(var f=[],v=0;v<l.length;v++)f.push(l[v][c]);u.push(f.join(fl))}t.push(u.join(`
  55. `))}),t.join(`
  56. `+zh+`
  57. `)}function sq(r){return Q(r,function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+fl:"")+n.join(fl))}),a.join(`
  58. `)}).join(`
  59. `+zh+`
  60. `)}function lq(r){var t=iq(r);return{value:ne([oq(t.seriesGroupByCategoryAxis),sq(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
  61. `+zh+`
  62. `),meta:t.meta}}function Pd(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function uq(r){var t=r.slice(0,r.indexOf(`
  63. `));if(t.indexOf(fl)>=0)return!0}var c0=new RegExp("["+fl+"]+","g");function cq(r){for(var t=r.split(/\n+/g),e=Pd(t.shift()).split(c0),a=[],n=Q(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Pd(t[i]).split(c0);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function fq(r){for(var t=r.split(/\n+/g),e=Pd(t.shift()),a=[],n=0;n<t.length;n++){var i=Pd(t[n]);if(i){var o=i.split(c0),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function vq(r,t){var e=r.split(new RegExp(`
  64. *`+zh+`
  65. *`,"g")),a={series:[]};return A(e,function(n,i){if(uq(n)){var o=cq(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=fq(n);a.series.push(o)}}),a}var dq=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),v=i.get("contentToOption"),d=lq(e);if(xt(f)){var h=f(a.getOption());ft(h)?u.innerHTML=h:el(h)&&u.appendChild(h)}else{c.readOnly=i.get("readOnly");var g=c.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=i.get("textColor"),g.borderColor=i.get("textareaBorderColor"),g.backgroundColor=i.get("textareaColor"),c.value=d.value,u.appendChild(c)}var m=d.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var _="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),x=document.createElement("div");_+=";background-color:"+i.get("buttonColor"),_+=";color:"+i.get("buttonTextColor");var w=this;function S(){n.removeChild(o),w._dom=null}Gm(b,"click",S),Gm(x,"click",function(){if(v==null&&f!=null||v!=null&&f==null){S();return}var M;try{xt(v)?M=v(u,a.getOption()):M=vq(c.value,m)}catch(C){throw S(),new Error("Data view format error "+C)}M&&a.dispatchAction({type:"changeDataView",newOption:M}),S()}),b.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=b.style.cssText=_,!i.get("readOnly")&&y.appendChild(x),y.appendChild(b),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},t}(ia);function hq(r,t){return Q(r,function(e,a){var n=t&&t[a];if(St(n)&&!K(n)){var i=St(e)&&!K(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=wt(e,n),o&&delete e.name,e}else return e})}pn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];A(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(Y({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:hq(a.data,i)})}}),t.mergeOption(wt({series:e},r.newOption))});var w3=A,S3=qt();function pq(r,t){var e=V_(r);w3(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function gq(r){var t=V_(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return w3(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function mq(r){S3(r).snapshots=null}function yq(r){return V_(r).length}function V_(r){var t=S3(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var _q=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){mq(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={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 a},t}(ia);pn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var bq=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],G_=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=kC(e,t);A(xq,function(o,s){(!a||!a.include||Nt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=nm[a.brushType](0,i,n);a.__rangeOffset={offset:NC[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){A(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&A(i.coordSyses,function(o){var s=nm[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=nm[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?NC[a.brushType](i.values,o.offset,wq(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Q(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:LP(n),isTargetByCursor:PP(n,t,a.coordSysModel),getLinearBrushOtherExtent:kP(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&Nt(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=kC(e,t),i=0;i<a.length;i++){var o=a[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<PC.length;l++)if(PC[l](n,o))return o}return!0},r}();function f0(r){return r[0]>r[1]&&r.reverse(),r}function kC(r,t){return Eu(r,t,{includeMainTypes:bq})}var xq={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=mt(),o={},s={};!e&&!a&&!n||(A(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];A(u.getCartesians(),function(f,v){(Nt(e,f.getAxis("x").model)>=0||Nt(a,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:RC.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:RC.geo})})}},PC=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],RC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(zo(r)),t}},nm={lineX:Dt(EC,0),lineY:Dt(EC,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[f0([n[0],i[0]]),f0([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=Q(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function EC(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=f0(Q([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var NC={lineX:Dt($C,0),lineY:Dt($C,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 Q(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function $C(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function wq(r,t){var e=OC(r),a=OC(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function OC(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var v0=A,Sq=O9("toolbox-dataZoom_"),Mq=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new h_(n.getZr()),this._brushController.on("brush",dt(this._onBrush,this)).mount()),Tq(e,a,this,i,n),Iq(e,a)},t.prototype.onclick=function(e,a,n){Cq[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new G_(F_(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,f){if(f.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[v],f,c)}}),pq(i,n),this._dispatchZoomAction(n);function s(u,c,f){var v=c.getAxis(u),d=v.model,h=l(u,d,i),g=h.findRepresentativeAxisProxy(d).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=os(0,f.slice(),v.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),h&&(n[h.id]={dataZoomId:h.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var v;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var h=d.getAxisModel(u,c.componentIndex);h&&(v=d)}),v}},t.prototype._dispatchZoomAction=function(e){var a=[];v0(e,function(n,i){a.push(Mt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={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 a},t}(ia),Cq={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(gq(this.ecModel))}};function F_(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 Iq(r,t){r.setIconStatus("back",yq(t)>1?"emphasis":"normal")}function Tq(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new G_(F_(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}uz("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=F_(a),o=Eu(r,i);v0(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),v0(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:Sq+u+f};v[c]=f,n.push(v)}return n});function Aq(r){r.registerComponentModel(JX),r.registerComponentView(tq),Ns("saveAsImage",rq),Ns("magicType",nq),Ns("dataView",dq),Ns("dataZoom",Mq),Ns("restore",_q),Bt(KX)}var Dq=function(r){G(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}(Yt);function M3(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function C3(r){if(Gt.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var I3=C3(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Lq=C3(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function T3(r,t){if(!r)return t;t=t5(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function kq(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var Pq=T3(Lq,"transition"),H_=T3(I3,"transform"),Rq="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Gt.transform3dSupported?"will-change:transform;":"");function Eq(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Nq(r,t,e){if(!ft(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=jo(t);var i=Eq(e),o=Math.max(Math.round(n)*1.5,6),s="",l=H_+":",u;Nt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+n,v=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),d=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-f)/2)*100)/100;s+=";"+i+":-"+d+"px";var h=t+" solid "+n+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+a+";"];return'<div style="'+g.join("")+'"></div>'}function $q(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,n="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,n+=Gt.transformSupported?","+H_+a:",left"+a+",top"+a),Pq+":"+n}function zC(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Gt.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Gt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+H_+":"+o+";":[["top",0],["left",0],[I3,o]]}function Oq(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=At(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var c=r.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function zq(r,t,e){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=E5(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),t&&n&&a.push($q(n,e)),i&&a.push("background-color:"+i),A(["width","color","radius"],function(d){var h="border-"+d,g=t5(h),m=r.get(g);m!=null&&a.push(h+":"+m+(d==="color"?"":"px"))}),a.push(Oq(c)),f!=null&&a.push("padding:"+xl(f).join("px ")+"px"),a.join(";")+";"}function BC(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&v6(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Bq=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,Gt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(ft(i)?document.querySelector(i):el(i)?i:xt(i)&&i(t.getDom()));BC(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();ta(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=kq(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.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 a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=Rq+zq(t,!this._firstShow,this._longHide)+zC(i[0],i[1],!0)+("border-color:"+jo(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(ft(i)&&a.get("trigger")==="item"&&!M3(a)&&(s=Nq(a,n,i)),ft(t))o.innerHTML=t+s;else if(t){o.innerHTML="",K(t)||(t=[t]);for(var l=0;l<t.length;l++)el(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var a=this._styleCoord;if(BC(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=zC(a[0],a[1]);A(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Gt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(dt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}(),Vq=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),GC(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;St(t)&&ae(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Kt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:E5(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=VC(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;GC(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=oi(i.borderWidth||0),s=VC(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(dt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function oi(r){return Math.max(0,r)}function VC(r){var t=oi(r.shadowBlur||0),e=oi(r.shadowOffsetX||0),a=oi(r.shadowOffsetY||0);return{left:oi(t-e),right:oi(t+e),top:oi(t-a),bottom:oi(t+a)}}function GC(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Gq=new Xt({shape:{x:-1,y:-1,width:2,height:2}}),Fq=function(r){G(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,a){if(!(Gt.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=Z9(n.get("renderMode"));this._tooltipContent=i==="richText"?new Vq(a):new Bq(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(Gt.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Cl(this,"_updatePosition",50,"fixRate"):fc(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");c3("itemTooltip",this._api,dt(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||Gt.node||!n.getDom())){var o=FC(i,n);this._ticket="";var s=i.dataByCoordSys,l=Yq(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=Gq;c.x=i.x,c.y=i.y,c.update(),Tt(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var f=f3(i,a),v=f.point[0],d=f.point[1];v!=null&&d!=null&&this._tryShow({offsetX:v,offsetY:d,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(FC(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),f=au([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=Tt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ao(n,function(c){if(Tt(c).dataIndex!=null)return l=c,!0;if(Tt(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=dt(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=au([a.tooltipOption],i),l=this._renderMode,u=[],c=Ye("section",{blocks:[],noHeader:!0}),f=[],v=new Wp;A(e,function(_){A(_.dataByAxis,function(b){var x=n.getComponent(b.axisDim+"Axis",b.axisIndex),w=b.value;if(!(!x||w==null)){var S=s3(w,x.axis,n,b.seriesDataIndices,b.valueLabelOpt),M=Ye("section",{header:S,noHeader:!xa(S),sortBlocks:!0,blocks:[]});c.blocks.push(M),A(b.seriesDataIndices,function(C){var I=n.getSeriesByIndex(C.seriesIndex),T=C.dataIndexInside,D=I.getDataParams(T);if(!(D.dataIndex<0)){D.axisDim=b.axisDim,D.axisIndex=b.axisIndex,D.axisType=b.axisType,D.axisId=b.axisId,D.axisValue=F1(x.axis,{value:w}),D.axisValueLabel=S,D.marker=v.makeTooltipMarker("item",jo(D.color),l);var E=Lw(I.formatTooltip(T,!0,null)),R=E.frag;if(R){var k=au([I],i).get("valueFormatter");M.blocks.push(k?Y({valueFormatter:k},R):R)}E.text&&f.push(E.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var d=a.position,h=s.get("order"),g=$w(c,v,l,h,n.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var m=l==="richText"?`
  66. `:"<br/>",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],d,null,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=Tt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,v=u.getData(f),d=this._renderMode,h=e.positionDefault,g=au([v.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),_=new Wp;y.marker=_.makeTooltipMarker("item",jo(y.color),d);var b=Lw(u.formatTooltip(c,!1,f)),x=g.get("order"),w=g.get("valueFormatter"),S=b.frag,M=S?$w(w?Y({valueFormatter:w},S):S,_,d,x,i.get("useUTC"),g.get("textStyle")):b.text,C="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,M,y,C,e.offsetX,e.offsetY,e.position,e.target,_)}),n({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=Tt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ft(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=Mt(l),l.content=_r(l.content));var f=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&f.push(v),f.push({formatter:l.content});var d=e.positionDefault,h=au(f,this._tooltipModel,d?{position:d}:null),g=h.get("content"),m=Math.random()+"",y=new Wp;this._showOrMove(h,function(){var _=Mt(h.get("formatterParams")||{});this._showTooltipContent(h,g,_,m,e.offsetX,e.offsetY,e.position,a,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var d=a,h=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),g=h.color;if(v)if(ft(v)){var m=e.ecModel.get("useUTC"),y=K(n)?n[0]:n,_=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=v,_&&(d=gh(y.axisValue,d,m)),d=e5(d,n,!0)}else if(xt(v)){var b=dt(function(x,w){x===this._ticket&&(f.setContent(w,c,e,g,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=i,d=v(n,i,b)}else d=v;f.setContent(d,c,e,g,l),f.show(e,g),this._updatePosition(e,l,o,s,f,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||K(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!K(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var f=o.getSize(),v=e.get("align"),d=e.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),xt(a)&&(a=a([n,i],s,o.el,h,{viewSize:[u,c],contentSize:f.slice()})),K(a))n=lt(a[0],u),i=lt(a[1],c);else if(St(a)){var g=a;g.width=f[0],g.height=f[1];var m=Ve(g,{width:u,height:c});n=m.x,i=m.y,v=null,d=null}else if(ft(a)&&l){var y=Zq(a,h,f,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=Hq(n,i,o,u,c,v?null:20,d?null:20);n=y[0],i=y[1]}if(v&&(n-=HC(v)?f[0]/2:v==="right"?f[0]:0),d&&(i-=HC(d)?f[1]/2:d==="bottom"?f[1]:0),M3(e)){var y=Wq(n,i,o,u,c);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&A(u,function(v,d){var h=f[d]||{},g=v.seriesDataIndices||[],m=h.seriesDataIndices||[];o=o&&v.value===h.value&&v.axisType===h.axisType&&v.axisId===h.axisId&&g.length===m.length,o&&A(g,function(y,_){var b=m[_];o=o&&y.seriesIndex===b.seriesIndex&&y.dataIndex===b.dataIndex}),i&&A(v.seriesDataIndices,function(y){var _=y.seriesIndex,b=a[_],x=i[_];b&&x&&x.data!==b.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){Gt.node||!a.getDom()||(fc(this,"_updatePosition"),this._tooltipContent.dispose(),s0("itemTooltip",a))},t.type="tooltip",t}(De);function au(r,t,e){var a=t.ecModel,n;e?(n=new se(e,a,a),n=new se(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof se&&(o=o.get("tooltip",!0)),ft(o)&&(o={formatter:o}),o&&(n=new se(o,n,a)))}return n}function FC(r,t){return r.dispatchAction||dt(t.dispatchAction,t)}function Hq(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function Wq(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Zq(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+c+o;break;case"left":s=t.x-n-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function HC(r){return r==="center"||r==="middle"}function Yq(r,t,e){var a=n1(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Ec(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Tt(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function A3(r){Bt(Qc),r.registerComponentModel(Dq),r.registerComponentView(Fq),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Re),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Re)}var Uq=["rect","polygon","keep","clear"];function jq(r,t){var e=ue(r?r.brush:[]);if(e.length){var a=[];A(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;K(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),Xq(s),t&&!s.length&&s.push.apply(s,Uq)}}function Xq(r){var t={};A(r,function(e){t[e]=1}),r.length=0,A(t,function(e,a){r.push(a)})}var WC=A;function ZC(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function d0(r,t,e){var a={};return WC(t,function(i){var o=a[i]=n();WC(r[i],function(s,l){if(We.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new We(u),l==="opacity"&&(u=Mt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new We(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function D3(r,t,e){var a;A(e,function(n){t.hasOwnProperty(n)&&ZC(t[n])&&(a=!0)}),a&&A(e,function(n){t.hasOwnProperty(n)&&ZC(t[n])?r[n]=Mt(t[n]):delete r[n]})}function qq(r,t,e,a,n,i){var o={};A(r,function(f){var v=We.prepareVisualTypes(t[f]);o[f]=v});var s;function l(f){return R1(e,s,f)}function u(f,v){W5(e,s,f,v)}e.each(c);function c(f,v){s=f;var d=e.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var h=a.call(n,f),g=t[h],m=o[h],y=0,_=m.length;y<_;y++){var b=m[y];g[b]&&g[b].applyVisual(f,l,u)}}}function Kq(r,t,e,a){var n={};return A(r,function(i){var o=We.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(w){return R1(s,f,w)}function c(w,S){W5(s,f,w,S)}for(var f,v=s.getStore();(f=o.next())!=null;){var d=s.getRawDataItem(f);if(!(d&&d.visualMap===!1))for(var h=a!=null?v.get(l,f):f,g=e(h),m=t[g],y=n[g],_=0,b=y.length;_<b;_++){var x=y[_];m[x]&&m[x].applyVisual(h,u,c)}}}}}function Jq(r){var t=r.brushType,e={point:function(a){return YC[t].point(a,e,r)},rect:function(a){return YC[t].rect(a,e,r)}};return e}var YC={lineX:UC(0),lineY:UC(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&bo(e.range,r[0],r[1])},rect:function(r,t,e){var a=e.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(bo(a,n,i)||bo(a,n+o,i)||bo(a,n,i+s)||bo(a,n+o,i+s)||Pt.create(r).contain(l[0],l[1])||du(n,i,n+o,i,a)||du(n,i,n,i+s,a)||du(n+o,i,n+o,i+s,a)||du(n,i+s,n+o,i+s,a))return!0}}};function UC(r){var t=["x","y"],e=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return nu(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[t[r]],a[t[r]]+a[e[r]]];return s[1]<s[0]&&s.reverse(),nu(s[0],o)||nu(s[1],o)||nu(o[0],s)||nu(o[1],s)}}}}function nu(r,t){return t[0]<=r&&r<=t[1]}var jC=["inBrush","outOfBrush"],im="__ecBrushSelect",h0="__ecInBrushSelectEvent";function L3(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new G_(t.option,r);e.setInputRanges(t.areas,r)})}function Qq(r,t,e){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),L3(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Mt(o.areas),selected:[]};a.push(l);var u=o.option,c=u.brushLink,f=[],v=[],d=[],h=!1;s||(n=u.throttleType,i=u.throttleDelay);var g=Q(o.areas,function(w){var S=aK[w.brushType],M=wt({boundingRect:S?S(w):void 0},w);return M.selectors=Jq(M),M}),m=d0(o.option,jC,function(w){w.mappingMethod="fixed"});K(c)&&A(c,function(w){f[w]=1});function y(w){return c==="all"||!!f[w]}function _(w){return!!w.length}r.eachSeries(function(w,S){var M=d[S]=[];w.subType==="parallel"?b(w,S):x(w,S,M)});function b(w,S){var M=w.coordinateSystem;h=h||M.hasAxisBrushed(),y(S)&&M.eachActiveState(w.getData(),function(C,I){C==="active"&&(v[I]=1)})}function x(w,S,M){if(!(!w.brushSelector||rK(o,S))&&(A(g,function(I){o.brushTargetManager.controlSeries(I,w,r)&&M.push(I),h=h||_(M)}),y(S)&&_(M))){var C=w.getData();C.each(function(I){XC(w,M,C,I)&&(v[I]=1)})}}r.eachSeries(function(w,S){var M={seriesId:w.id,seriesIndex:S,seriesName:w.name,dataIndex:[]};l.selected.push(M);var C=d[S],I=w.getData(),T=y(S)?function(D){return v[D]?(M.dataIndex.push(I.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return XC(w,C,I,D)?(M.dataIndex.push(I.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(S)?h:_(C))&&qq(jC,m,I,T)})}),tK(t,n,i,a,e)}function tK(r,t,e,a,n){if(n){var i=r.getZr();if(!i[h0]){i[im]||(i[im]=eK);var o=Cl(i,im,e,t);o(r,a)}}}function eK(r,t){if(!r.isDisposed()){var e=r.getZr();e[h0]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[h0]=!1}}function XC(r,t,e,a){for(var n=0,i=t.length;n<i;n++){var o=t[n];if(r.brushSelector(a,e,o.selectors,o))return!0}}function rK(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(K(e)?Nt(e,t)<0:t!==e)}var aK={rect:function(r){return qC(r.range)},polygon:function(r){for(var t,e=r.range,a=0,n=e.length;a<n;a++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=e[a];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&qC(t)}};function qC(r){return new Pt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var nK=function(r){G(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,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new h_(a.getZr())).on("brush",dt(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){L3(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:Mt(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:Mt(n),$from:a})},t.type="brush",t}(De),iK="#ddd",oK=function(r){G(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,a){var n=this.option;!a&&D3(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:iK},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Q(e,function(a){return KC(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=KC(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}(Yt);function KC(r,t){return Lt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new se(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var sK=["rect","polygon","lineX","lineY","keep","clear"],lK=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return A(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:sK.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 a},t}(ia);function uK(r){r.registerComponentView(nK),r.registerComponentModel(oK),r.registerPreprocessor(jq),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Qq),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Re),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Re),Ns("brush",lK)}var cK=function(r){G(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}(Yt),fK=function(r){G(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,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=At(e.get("textBaseline"),e.get("textVerticalAlign")),c=new Kt({style:be(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),v=e.get("subtext"),d=new Kt({style:be(s,{text:v,fill:s.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=e.get("link"),g=e.get("sublink"),m=e.get("triggerEvent",!0);c.silent=!h&&!m,d.silent=!g&&!m,h&&c.on("click",function(){od(h,"_"+e.get("target"))}),g&&d.on("click",function(){od(g,"_"+e.get("subtarget"))}),Tt(c).eventData=Tt(d).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),v&&i.add(d);var y=i.getBoundingRect(),_=e.getBoxLayoutParams();_.width=y.width,_.height=y.height;var b=Ve(_,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var x={align:l,verticalAlign:u};c.setStyle(x),d.setStyle(x),y=i.getBoundingRect();var w=b.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var M=new Xt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(M)}},t.type="title",t}(De);function k3(r){r.registerComponentModel(cK),r.registerComponentView(fK)}var JC=function(r){G(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,a,n){this.mergeDefaultAndTheme(e,n),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 a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-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,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,c){var f=ze(gl(u),""),v;St(u)?(v=Mt(u),v.value=c):v=c,o.push(v),i.push(f)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new br([{name:"value",type:s}],this);l.initData(o,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}(Yt),P3=function(r){G(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=zi(JC.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}(JC);Oe(P3,Sh.prototype);var vK=function(r){G(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),dK=function(r){G(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(La),om=Math.PI,QC=qt(),hK=function(r){G(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,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Ye("nameValue",{noName:!0,value:c})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,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,a){var n=e.get(["label","position"]),i=e.get("orient"),o=gK(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":ft(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:om/2},f=i==="vertical"?o.height:o.width,v=e.getModel("controlStyle"),d=v.get("show",!0),h=d?v.get("itemSize"):0,g=d?v.get("itemGap"):0,m=h+g,y=e.get(["label","rotate"])||0;y=y*om/180;var _,b,x,w=v.get("position",!0),S=d&&v.get("showPlayBtn",!0),M=d&&v.get("showPrevBtn",!0),C=d&&v.get("showNextBtn",!0),I=0,T=f;w==="left"||w==="bottom"?(S&&(_=[0,0],I+=m),M&&(b=[I,0],I+=m),C&&(x=[T-h,0],T-=m)):(S&&(_=[T-h,0],T-=m),M&&(b=[0,0],I+=m),C&&(x=[T-h,0],T-=m));var D=[I,T];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:_,prevBtnPosition:b,nextBtnPosition:x,axisExtent:D,controlSize:h,controlGap:g}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Yr(),l=o.x,u=o.y+o.height;cn(s,s,[-l,-u]),Qo(s,s,-om/2),cn(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=_(o),f=_(n.getBoundingRect()),v=_(i.getBoundingRect()),d=[n.x,n.y],h=[i.x,i.y];h[0]=d[0]=c[0][0];var g=e.labelPosOpt;if(g==null||ft(g)){var m=g==="+"?0:1;b(d,f,c,1,m),b(h,v,c,1,1-m)}else{var m=g>=0?0:1;b(d,f,c,1,m),h[1]=d[1]+g}n.setPosition(d),i.setPosition(h),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(x){x.originX=c[0][0]-x.x,x.originY=c[1][0]-x.y}function _(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function b(x,w,S,M,C){x[M]+=S[M][C]-w[M][C]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=pK(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new dK("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new It;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new Fe({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Y({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new Fe({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:wt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var c=n.dataToCoord(u.value),f=s.getItemModel(u.value),v=f.getModel("itemStyle"),d=f.getModel(["emphasis","itemStyle"]),h=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:dt(o._changeTimeline,o,u.value)},m=tI(f,v,a,g);m.ensureState("emphasis").style=d.getItemStyle(),m.ensureState("progress").style=h.getItemStyle(),Oo(m);var y=Tt(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(c){var f=c.tickValue,v=l.getItemModel(f),d=v.getModel("label"),h=v.getModel(["emphasis","label"]),g=v.getModel(["progress","label"]),m=n.dataToCoord(c.tickValue),y=new Kt({x:m,y:0,rotation:e.labelRotation-e.rotation,onclick:dt(o._changeTimeline,o,f),silent:!1,style:be(d,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=be(h),y.ensureState("progress").style=be(g),a.add(y),Oo(y),QC(y).dataIndex=f,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);v(e.nextBtnPosition,"next",dt(this._changeTimeline,this,f?"-":"+")),v(e.prevBtnPosition,"prev",dt(this._changeTimeline,this,f?"+":"-")),v(e.playPosition,c?"stop":"play",dt(this._handlePlayClick,this,!c),!0);function v(d,h,g,m){if(d){var y=Ta(At(i.get(["controlStyle",h+"BtnSize"]),o),o),_=[0,-y/2,y,y],b=mK(i,h+"Icon",_,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});b.ensureState("emphasis").style=u,a.add(b),Oo(b)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=dt(u._handlePointerDrag,u),f.ondragend=dt(u._handlePointerDragend,u),eI(f,u._progressLine,s,n,i,!0)},onUpdate:function(f){eI(f,u._progressLine,s,n,i)}};this._currentPointer=tI(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=la(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=e.model;e._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var a=this._mainGroup.getLocalTransform();return Ca(e,a,!0)},t.prototype._findNearestTick=function(e){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-e);c<n&&(n=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var a=this.model.getCurrentIndex();e==="+"?e=a+1:e==="-"&&(e=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<e);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",QC(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(vK);function pK(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Dh({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new V1({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Fn}}function gK(r,t){return Ve(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function mK(r,t,e,a){var n=a.style,i=Vc(r.get(["controlStyle",t]),a||{},new Pt(e[0],e[1],e[2],e[3]));return n&&i.setStyle(n),i}function tI(r,t,e,a,n,i){var o=t.get("color");if(n)n.setColor(o),e.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=$e(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),e.add(n),i&&i.onCreate(n)}var l=t.getItemStyle(["color"]);n.setStyle(l),a=Lt({rectHover:!0,z2:100},a,!0);var u=Il(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=rs(r.get("symbolOffset"),u);c&&(a.x=(a.x||0)+c[0],a.y=(a.y||0)+c[1]);var f=r.get("symbolRotate");return a.rotation=(f||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function eI(r,t,e,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",e));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function yK(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,a){var n=e.getComponent("timeline");return n&&t.currentIndex!=null&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),wt({currentIndex:n.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var a=e.getComponent("timeline");a&&t.playState!=null&&a.setPlayState(t.playState)})}function _K(r){var t=r&&r.timeline;K(t)||(t=t?[t]:[]),A(t,function(e){e&&bK(e)})}function bK(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),rI(r),So(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});So(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!So(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}A(r.data||[],function(n){St(n)&&!K(n)&&(!So(n,"value")&&So(n,"name")&&(n.value=n.name),rI(n))})}function rI(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};A(a,function(o,s){!i[s]&&!So(n,s)&&(n[s]=o)}),e.label&&!So(a,"emphasis")&&(a.emphasis=e.label,delete e.label)}function So(r,t){return r.hasOwnProperty(t)}function xK(r){r.registerComponentModel(P3),r.registerComponentView(hK),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),yK(r),r.registerPreprocessor(_K)}function W_(r,t){if(!r)return!1;for(var e=K(r)?r:[r],a=0;a<e.length;a++)if(e[a]&&e[a][t])return!0;return!1}function tv(r){Wo(r,"label",["show"])}var ev=qt(),Wn=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Gt.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,a){this._mergeOption(e,a,!1,!1)},t.prototype._mergeOption=function(e,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=ev(s)[o];if(!l||!l.data){ev(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&tv(l),A(l.data,function(c){c instanceof Array?(tv(c[0]),tv(c[1])):tv(c)}),u=this.createMarkerModelFromSeries(l,this,a),Y(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),ev(s)[o]=u},this)},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return Ye("section",{header:this.name,blocks:[Ye("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,a){var n=Sh.prototype.getDataParams.call(this,e,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},t.getMarkerModelFromSeries=function(e,a){return ev(e)[a]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Yt);Oe(Wn,Sh.prototype);var wK=function(r){G(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,a,n){return new t(e,a,n)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Wn);function p0(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function SK(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function rv(r,t,e,a,n,i){var o=[],s=Pi(t,a),l=s?t.getCalculationInfo("stackResultDimension"):a,u=Z_(t,l,r),c=t.indicesOfNearest(l,u)[0];o[n]=t.get(e,c),o[i]=t.get(l,c);var f=t.get(a,c),v=Ja(t.get(a,c));return v=Math.min(v,20),v>=0&&(o[i]=+o[i].toFixed(v)),[o,f]}var sm={min:Dt(rv,"min"),max:Dt(rv,"max"),average:Dt(rv,"average"),median:Dt(rv,"median")};function Cc(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!SK(t)&&!K(t.coord)&&K(n)){var i=R3(t,e,a,r);if(t=Mt(t),t.type&&sm[t.type]&&i.baseAxis&&i.valueAxis){var o=Nt(n,i.baseAxis.dim),s=Nt(n,i.valueAxis.dim),l=sm[t.type](e,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!K(n))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)sm[u[c]]&&(u[c]=Z_(e,e.mapDimension(n[c]),u[c]));return t}}function R3(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(MK(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function MK(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Ic(r,t){return r&&r.containData&&t.coord&&!p0(t)?r.containData(t.coord):!0}function CK(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!p0(t)&&!p0(e)?r.containZone(t.coord,e.coord):!0}function E3(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Ci(o,t[i])}:function(e,a,n,i){return Ci(e.value,t[i])}}function Z_(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var lm=qt(),Y_=function(r){G(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=mt()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){lm(s).keep=!1}),a.eachSeries(function(s){var l=Wn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!lm(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(e){lm(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;A(e,function(i){var o=Wn.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?yD(l):f1(l))})}})},t.type="marker",t}(De);function aI(r,t,e){var a=t.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=lt(i.get("x"),e.getWidth()),l=lt(i.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),c=r.get(a.dimensions[1],n);o=a.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var IK=function(r){G(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,a,n){a.eachSeries(function(i){var o=Wn.getMarkerModelFromSeries(i,"markPoint");o&&(aI(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Yc),f=TK(o,e,a);a.setData(f),aI(a.getData(),e,i),f.each(function(v){var d=f.getItemModel(v),h=d.getShallow("symbol"),g=d.getShallow("symbolSize"),m=d.getShallow("symbolRotate"),y=d.getShallow("symbolOffset"),_=d.getShallow("symbolKeepAspect");if(xt(h)||xt(g)||xt(m)||xt(y)){var b=a.getRawValue(v),x=a.getDataParams(v);xt(h)&&(h=h(b,x)),xt(g)&&(g=g(b,x)),xt(m)&&(m=m(b,x)),xt(y)&&(y=y(b,x))}var w=d.getModel("itemStyle").getItemStyle(),S=Fc(l,"color");w.fill||(w.fill=S),f.setItemVisual(v,{symbol:h,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:_,style:w})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(v){v.traverse(function(d){Tt(d).dataModel=a})}),this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(Y_);function TK(r,t,e){var a;r?a=Q(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Y(Y({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new br(a,e),i=Q(e.get("data"),Dt(Cc,t));r&&(i=ne(i,Dt(Ic,r)));var o=E3(!!r,a);return n.initData(i,null,o),n}function AK(r){r.registerComponentModel(wK),r.registerComponentView(IK),r.registerPreprocessor(function(t){W_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var DK=function(r){G(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,a,n){return new t(e,a,n)},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}(Wn),av=qt(),LK=function(r,t,e,a){var n=r.getData(),i;if(K(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=je(a.yAxis,a.xAxis);else{var u=R3(a,n,t,r);s=u.valueAxis;var c=yL(n,u.valueDataDim);l=Z_(n,c,o)}var f=s.dim==="x"?0:1,v=1-f,d=Mt(a),h={coord:[]};d.type=null,d.coord=[],d.coord[v]=-1/0,h.coord[v]=1/0;var g=e.get("precision");g>=0&&Qt(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[f]=h.coord[f]=l,i=[d,h,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var m=[Cc(r,i[0]),Cc(r,i[1]),Y({},i[2])];return m[2].type=m[2].type||null,Lt(m[2],m[0]),Lt(m[2],m[1]),m};function Rd(r){return!isNaN(r)&&!isFinite(r)}function nI(r,t,e,a){var n=1-r,i=a.dimensions[r];return Rd(t[n])&&Rd(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function kK(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(nI(1,e,a,r)||nI(0,e,a,r)))return!0}return Ic(r,t[0])&&Ic(r,t[1])}function um(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=lt(o.get("x"),n.getWidth()),u=lt(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var c=i.dimensions,f=r.get(c[0],t),v=r.get(c[1],t);s=i.dataToPoint([f,v])}if(ns(i,"cartesian2d")){var d=i.getAxis("x"),h=i.getAxis("y"),c=i.dimensions;Rd(r.get(c[0],t))?s[0]=d.toGlobalCoord(d.getExtent()[e?0:1]):Rd(r.get(c[1],t))&&(s[1]=h.toGlobalCoord(h.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var PK=function(r){G(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,a,n){a.eachSeries(function(i){var o=Wn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=av(o).from,u=av(o).to;l.each(function(c){um(l,c,!0,i,n),um(u,c,!1,i,n)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new d_);this.group.add(c.group);var f=RK(o,e,a),v=f.from,d=f.to,h=f.line;av(a).from=v,av(a).to=d,a.setData(h);var g=a.get("symbol"),m=a.get("symbolSize"),y=a.get("symbolRotate"),_=a.get("symbolOffset");K(g)||(g=[g,g]),K(m)||(m=[m,m]),K(y)||(y=[y,y]),K(_)||(_=[_,_]),f.from.each(function(x){b(v,x,!0),b(d,x,!1)}),h.each(function(x){var w=h.getItemModel(x).getModel("lineStyle").getLineStyle();h.setItemLayout(x,[v.getItemLayout(x),d.getItemLayout(x)]),w.stroke==null&&(w.stroke=v.getItemVisual(x,"style").fill),h.setItemVisual(x,{fromSymbolKeepAspect:v.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(x,"symbolOffset"),fromSymbolRotate:v.getItemVisual(x,"symbolRotate"),fromSymbolSize:v.getItemVisual(x,"symbolSize"),fromSymbol:v.getItemVisual(x,"symbol"),toSymbolKeepAspect:d.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(x,"symbolOffset"),toSymbolRotate:d.getItemVisual(x,"symbolRotate"),toSymbolSize:d.getItemVisual(x,"symbolSize"),toSymbol:d.getItemVisual(x,"symbol"),style:w})}),c.updateData(h),f.line.eachItemGraphicEl(function(x){Tt(x).dataModel=a,x.traverse(function(w){Tt(w).dataModel=a})});function b(x,w,S){var M=x.getItemModel(w);um(x,w,S,e,i);var C=M.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Fc(l,"color")),x.setItemVisual(w,{symbolKeepAspect:M.get("symbolKeepAspect"),symbolOffset:At(M.get("symbolOffset",!0),_[S?0:1]),symbolRotate:At(M.get("symbolRotate",!0),y[S?0:1]),symbolSize:At(M.get("symbolSize"),m[S?0:1]),symbol:At(M.get("symbol",!0),g[S?0:1]),style:C})}this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(Y_);function RK(r,t,e){var a;r?a=Q(r&&r.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Y(Y({},c),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new br(a,e),i=new br(a,e),o=new br([],e),s=Q(e.get("data"),Dt(LK,t,r,e));r&&(s=ne(s,Dt(kK,r)));var l=E3(!!r,a);return n.initData(Q(s,function(u){return u[0]}),null,l),i.initData(Q(s,function(u){return u[1]}),null,l),o.initData(Q(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function EK(r){r.registerComponentModel(DK),r.registerComponentView(PK),r.registerPreprocessor(function(t){W_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var NK=function(r){G(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,a,n){return new t(e,a,n)},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}(Wn),nv=qt(),$K=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Cc(r,n),s=Cc(r,i),l=o.coord,u=s.coord;l[0]=je(l[0],-1/0),l[1]=je(l[1],-1/0),u[0]=je(u[0],1/0),u[1]=je(u[1],1/0);var c=U0([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Ed(r){return!isNaN(r)&&!isFinite(r)}function iI(r,t,e,a){var n=1-r;return Ed(t[n])&&Ed(e[n])}function OK(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return ns(r,"cartesian2d")?e&&a&&(iI(1,e,a)||iI(0,e,a))?!0:CK(r,n,i):Ic(r,n)||Ic(r,i)}function oI(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=lt(o.get(e[0]),n.getWidth()),u=lt(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var c=r.getValues(["x0","y0"],t),f=r.getValues(["x1","y1"],t),v=i.clampData(c),d=i.clampData(f),h=[];e[0]==="x0"?h[0]=v[0]>d[0]?f[0]:c[0]:h[0]=v[0]>d[0]?c[0]:f[0],e[1]==="y0"?h[1]=v[1]>d[1]?f[1]:c[1]:h[1]=v[1]>d[1]?c[1]:f[1],s=a.getMarkerPosition(h,e,!0)}else{var g=r.get(e[0],t),m=r.get(e[1],t),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(ns(i,"cartesian2d")){var _=i.getAxis("x"),b=i.getAxis("y"),g=r.get(e[0],t),m=r.get(e[1],t);Ed(g)?s[0]=_.toGlobalCoord(_.getExtent()[e[0]==="x0"?0:1]):Ed(m)&&(s[1]=b.toGlobalCoord(b.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var sI=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],zK=function(r){G(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,a,n){a.eachSeries(function(i){var o=Wn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Q(sI,function(f){return oI(s,l,f,i,n)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new It});this.group.add(c.group),this.markKeep(c);var f=BK(o,e,a);a.setData(f),f.each(function(v){var d=Q(sI,function(C){return oI(f,v,C,e,i)}),h=o.getAxis("x").scale,g=o.getAxis("y").scale,m=h.getExtent(),y=g.getExtent(),_=[h.parse(f.get("x0",v)),h.parse(f.get("x1",v))],b=[g.parse(f.get("y0",v)),g.parse(f.get("y1",v))];la(_),la(b);var x=!(m[0]>_[1]||m[1]<_[0]||y[0]>b[1]||y[1]<b[0]),w=!x;f.setItemLayout(v,{points:d,allClipped:w});var S=f.getItemModel(v).getModel("itemStyle").getItemStyle(),M=Fc(l,"color");S.fill||(S.fill=M,ft(S.fill)&&(S.fill=jv(S.fill,.4))),S.stroke||(S.stroke=M),f.setItemVisual(v,"style",S)}),f.diff(nv(c).data).add(function(v){var d=f.getItemLayout(v);if(!d.allClipped){var h=new Cr({shape:{points:d.points}});f.setItemGraphicEl(v,h),c.group.add(h)}}).update(function(v,d){var h=nv(c).data.getItemGraphicEl(d),g=f.getItemLayout(v);g.allClipped?h&&c.group.remove(h):(h?ee(h,{shape:{points:g.points}},a,v):h=new Cr({shape:{points:g.points}}),f.setItemGraphicEl(v,h),c.group.add(h))}).remove(function(v){var d=nv(c).data.getItemGraphicEl(v);c.group.remove(d)}).execute(),f.eachItemGraphicEl(function(v,d){var h=f.getItemModel(d),g=f.getItemVisual(d,"style");v.useStyle(f.getItemVisual(d,"style")),Qe(v,Ze(h),{labelFetcher:a,labelDataIndex:d,defaultText:f.getName(d)||"",inheritColor:ft(g.fill)?jv(g.fill,1):"#000"}),Je(v,h),Le(v,null,null,h.get(["emphasis","disabled"])),Tt(v).dataModel=a}),nv(c).data=f,c.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(Y_);function BK(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=Q(r&&r.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Y(Y({},f),{name:u,ordinalMeta:null})});n=Q(i,function(u,c){return{name:u,type:o[c%2].type}}),a=new br(n,e)}else n=[{name:"value",type:"float"}],a=new br(n,e);var s=Q(e.get("data"),Dt($K,t,r,e));r&&(s=ne(s,Dt(OK,r)));var l=r?function(u,c,f,v){var d=u.coord[Math.floor(v/2)][v%2];return Ci(d,n[v])}:function(u,c,f,v){return Ci(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}function VK(r){r.registerComponentModel(NK),r.registerComponentView(zK),r.registerPreprocessor(function(t){W_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var GK=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},g0=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),K(a)&&A(a,function(i,o){ft(i)&&(i={type:i}),a[o]=Lt(i,GK(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,v=f.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(v)),v.length?a=a.concat(v):c=!0}else c=!0;c&&a1(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=mt(),s=Q(i,function(l){return(ft(l)||Qt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new se(l,this,this.ecModel))},this);this._data=ne(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;A(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;A(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;A(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&Nt(this._availableNames,e)>=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}(Yt),Is=Dt,m0=A,iv=It,N3=function(r){G(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 iv),this.group.add(this._selectorGroup=new iv),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var c=e.getBoxLayoutParams(),f={width:n.getWidth(),height:n.getHeight()},v=e.get("padding"),d=Ve(c,f,v),h=this.layoutInner(e,o,d,i,l,u),g=Ve(wt({width:h.width,height:h.height},c),f,v);this.group.x=g.x-h.x,this.group.y=g.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=x3(h,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),c=mt(),f=a.get("selectedMode"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),m0(a.getData(),function(d,h){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
  67. `)){var m=new iv;m.newline=!0,u.add(m);return}var y=n.getSeriesByName(g)[0];if(!c.get(g))if(y){var _=y.getData(),b=_.getVisual("legendLineStyle")||{},x=_.getVisual("legendIcon"),w=_.getVisual("style"),S=this._createItem(y,g,h,d,a,e,b,w,x,f,i);S.on("click",Is(lI,g,null,i,v)).on("mouseover",Is(y0,y.name,null,i,v)).on("mouseout",Is(_0,y.name,null,i,v)),n.ssr&&S.eachChild(function(M){var C=Tt(M);C.seriesIndex=y.seriesIndex,C.dataIndex=h,C.ssrType="legend"}),c.set(g,!0)}else n.eachRawSeries(function(M){if(!c.get(g)&&M.legendVisualProvider){var C=M.legendVisualProvider;if(!C.containName(g))return;var I=C.indexOfName(g),T=C.getItemVisual(I,"style"),D=C.getItemVisual(I,"legendIcon"),E=Ur(T.fill);E&&E[3]===0&&(E[3]=.2,T=Y(Y({},T),{fill:En(E,"rgba")}));var R=this._createItem(M,g,h,d,a,e,{},T,D,f,i);R.on("click",Is(lI,null,g,i,v)).on("mouseover",Is(y0,null,g,i,v)).on("mouseout",Is(_0,null,g,i,v)),n.ssr&&R.eachChild(function(k){var N=Tt(k);N.seriesIndex=M.seriesIndex,N.dataIndex=h,N.ssrType="legend"}),c.set(g,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();m0(e,function(u){var c=u.type,f=new Kt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(f);var v=a.getModel("selectorLabel"),d=a.getModel(["emphasis","selectorLabel"]);Qe(f,{normal:v,emphasis:d},{defaultText:u.title}),Oo(f)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,f,v){var d=e.visualDrawType,h=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(a),y=i.get("symbolRotate"),_=i.get("symbolKeepAspect"),b=i.get("icon");c=b||c||"roundRect";var x=FK(c,i,l,u,d,m,v),w=new iv,S=i.getModel("textStyle");if(xt(e.getLegendIcon)&&(!b||b==="inherit"))w.add(e.getLegendIcon({itemWidth:h,itemHeight:g,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:_}));else{var M=b==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(HK({itemWidth:h,itemHeight:g,icon:c,iconRotate:M,itemStyle:x.itemStyle,symbolKeepAspect:_}))}var C=s==="left"?h+5:-5,I=s,T=o.get("formatter"),D=a;ft(T)&&T?D=T.replace("{name}",a??""):xt(T)&&(D=T(a));var E=m?S.getTextColor():i.get("inactiveColor");w.add(new Kt({style:be(S,{text:D,x:C,y:g/2,fill:E,align:I,verticalAlign:"middle"},{inheritColor:E})}));var R=new Xt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&ts({el:R,componentModel:o,itemName:a,itemTooltipOption:k.option}),w.add(R),w.eachChild(function(N){N.silent=!0}),R.silent=!f,this.getContentGroup().add(w),Oo(w),w.__legendDataIndex=n,w},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Bo(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Bo("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),d=[-v.x,-v.y],h=e.get("selectorButtonGap",!0),g=e.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",_=g===0?"y":"x";s==="end"?d[g]+=c[m]+h:f[g]+=v[m]+h,d[1-g]+=c[y]/2-v[y]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[m]=c[m]+h+v[m],b[y]=Math.max(c[y],v[y]),b[_]=Math.min(0,v[_]+d[1-g]),b}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(De);function FK(r,t,e,a,n,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),m0(m,function(_,b){m[b]==="inherit"&&(m[b]=y[b])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:il(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var v=t.getModel("lineStyle"),d=v.getLineStyle();if(s(d,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),d.stroke==="auto"&&(d.stroke=a.fill),!i){var h=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=h==="auto"?a.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=v.get("inactiveColor"),d.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function HK(r){var t=r.icon||"roundRect",e=$e(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 lI(r,t,e,a){_0(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),y0(r,t,e,a)}function $3(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function y0(r,t,e,a){$3(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function _0(r,t,e,a){$3(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}function WK(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function iu(r,t,e){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),uI(s,n),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){A(n,function(l,u){s[l?"select":"unSelect"](u)}),uI(s,o)}),a?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function uI(r,t){var e=t||{};return A(r.getData(),function(a){var n=a.get("name");if(!(n===`
  68. `||n==="")){var i=r.isSelected(n);gt(e,n)?e[n]=e[n]&&i:e[n]=i}}),e}function ZK(r){r.registerAction("legendToggleSelect","legendselectchanged",Dt(iu,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Dt(iu,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Dt(iu,"inverseSelect")),r.registerAction("legendSelect","legendselected",Dt(iu,"select")),r.registerAction("legendUnSelect","legendunselected",Dt(iu,"unSelect"))}function O3(r){r.registerComponentModel(g0),r.registerComponentView(N3),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,WK),r.registerSubTypeDefaulter("legend",function(){return"plain"}),ZK(r)}var YK=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=wl(e);r.prototype.init.call(this,e,a,n),cI(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),cI(this,this.option,e)},t.type="legend.scroll",t.defaultOption=zi(g0.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(g0);function cI(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,ki(t,e,{type:"box",ignoreSize:!!n})}var fI=It,cm=["width","height"],fm=["x","y"],UK=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new fI),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new fI)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),v=K(f)?f:[f,f];h("pagePrev",0);var d=a.getModel("pageTextStyle");c.add(new Kt({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1);function h(g,m){var y=g+"DataIndex",_=Vc(a.get("pageIcons",!0)[a.getOrient().name][m],{onclick:dt(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});_.name=g,c.add(_)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=cm[u],f=fm[u],v=cm[1-u],d=fm[1-u];o&&Bo("horizontal",l,e.get("selectorItemGap",!0));var h=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),m=[-g.x,-g.y],y=Mt(n);o&&(y[c]=n[c]-g[c]-h);var _=this._layoutContentAndController(e,i,y,u,c,v,d,f);if(o){if(s==="end")m[u]+=_[c]+h;else{var b=g[c]+h;m[u]-=b,_[f]-=b}_[c]+=g[c]+h,m[1-u]+=_[d]+_[v]/2-g[v]/2,_[v]=Math.max(_[v],g[v]),_[d]=Math.min(_[d],g[d]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return _},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,v=this._controllerGroup;Bo(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),Bo("horizontal",v,e.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),h=v.getBoundingRect(),g=this._showController=d[o]>n[o],m=[-d.x,-d.y];a||(m[i]=c[u]);var y=[0,0],_=[-h.x,-h.y],b=At(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var x=e.get("pageButtonPosition",!0);x==="end"?_[i]+=n[o]-h[o]:y[i]+=h[o]+b}_[1-i]+=d[s]/2-h[s]/2,c.setPosition(m),f.setPosition(y),v.setPosition(_);var w={x:0,y:0};if(w[o]=g?n[o]:d[o],w[s]=Math.max(d[s],h[s]),w[l]=Math.min(0,h[l]+_[1-i]),f.__rectSize=n[o],g){var S={x:0,y:0};S[o]=Math.max(n[o]-h[o]-b,0),S[s]=w[s],f.setClipPath(new Xt({shape:S})),f.__rectSize=S[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(e);return M.pageIndex!=null&&ee(c,{x:M.contentPosition[0],y:M.contentPosition[1]},g?e:null),this._updatePageInfoView(e,M),w},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",v=a[f]!=null,d=n.childOfName(c);d&&(d.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),d.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",ft(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=cm[o],l=fm[o],u=this._findTargetItemIndex(a),c=n.children(),f=c[u],v=c.length,d=v?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return h;var g=x(f);h.contentPosition[o]=-g.s;for(var m=u+1,y=g,_=g,b=null;m<=v;++m)b=x(c[m]),(!b&&_.e>y.s+i||b&&!w(b,y.s))&&(_.i>y.i?y=_:y=b,y&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=y.i),++h.pageCount)),_=b;for(var m=u-1,y=g,_=g,b=null;m>=-1;--m)b=x(c[m]),(!b||!w(_,b.s))&&y.i<_.i&&(_=y,h.pagePrevDataIndex==null&&(h.pagePrevDataIndex=y.i),++h.pageCount,++h.pageIndex),y=b;return h;function x(S){if(S){var M=S.getBoundingRect(),C=M[l]+S[l];return{s:C,e:C+M[s],i:S.__legendDataIndex}}}function w(S,M){return S.e>=M&&S.s<=M+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(N3);function jK(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function XK(r){Bt(O3),r.registerComponentModel(YK),r.registerComponentView(UK),jK(r)}function z3(r){Bt(O3),Bt(XK)}var qK=function(r){G(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=zi(Mc.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Mc),U_=qt();function KK(r,t,e){U_(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function JK(r,t){for(var e=U_(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||B3(e,o))}}}function B3(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function QK(r,t){var e={model:t,containsPoint:Dt(eJ,t),dispatchAction:Dt(tJ,r),dataZoomInfoMap:null,controller:null},a=e.controller=new Kc(r.getZr());return A(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function tJ(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function eJ(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function rJ(r){var t,e="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[e+s]>a[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function aJ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=U_(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=mt());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=y3(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,QK(e,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=mt());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){B3(n,i);return}var c=rJ(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Cl(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var nJ=function(r){G(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,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),KK(n,e,{pan:dt(vm.pan,this),zoom:dt(vm.zoom,this),scrollMove:dt(vm.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){JK(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(z_),vm={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=dm[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(os(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:vI(function(r,t,e,a,n,i){var o=dm[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:vI(function(r,t,e,a,n,i){var o=dm[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function vI(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(os(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var dm={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function V3(r){B_(r),r.registerComponentModel(qK),r.registerComponentView(nJ),aJ(r)}var iJ=function(r){G(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=zi(Mc.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Mc),ou=Xt,dI=7,oJ=1,hm=30,sJ=7,su="horizontal",hI="vertical",lJ=5,uJ=["line","bar","candlestick","scatter"],cJ={easing:"cubicOut",duration:100,delay:0},fJ=function(r){G(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,a){this.api=a,this._onBrush=dt(this._onBrush,this),this._onBrushEnd=dt(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Cl(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(){fc(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 a=this._displayables.sliderGroup=new It;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?sJ:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===su?{right:s.width-o.x-o.width,top:s.height-hm-dI-i,width:o.width,height:hm}:{right:dI,top:o.y,width:hm,height:o.height},u=wl(e.option);A(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Ve(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===hI&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===su&&!o?{scaleY:l?1:-1,scaleX:1}:n===su&&o?{scaleY:l?1:-1,scaleX:-1}:n===hI&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new ou({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new ou({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:dt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var f=o.getDataExtent(l),v=(f[1]-f[0])*.3;f=[f[0]-v,f[1]+v];var d=[0,a[1]],h=[0,a[0]],g=[[a[0],0],[0,0]],m=[],y=h[1]/(o.count()-1),_=0,b=Math.round(o.count()/a[0]),x;o.each([l],function(I,T){if(b>0&&T%b){_+=y;return}var D=I==null||isNaN(I)||I==="",E=D?0:oe(I,f,d,!0);D&&!x&&T?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!D&&x&&(g.push([_,0]),m.push([_,0])),g.push([_,E]),m.push([_,E]),_+=y,x=D}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var w=this.dataZoomModel;function S(I){var T=w.getModel(I?"selectedDataBackground":"dataBackground"),D=new It,E=new Cr({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new Ir({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(E),D.add(R),D}for(var M=0;M<3;M++){var C=S(M===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&Nt(uJ,u.get("type"))<0)){var c=i.getComponent(xi(o),s).axis,f=vJ(o),v,d=u.coordinateSystem;f!=null&&d.getOtherAxis&&(v=d.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),n={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:v}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),v=a.filler=new ou({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new ou({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:oJ,fill:"rgba(0,0,0,0)"}})),A([0,1],function(b){var x=l.get("handleIcon");!ud[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var w=$e(x,-1,0,2,2,null,!0);w.attr({cursor:pI(this._orient),draggable:!0,drift:dt(this._onDragMove,this,b),ondragend:dt(this._onDragEnd,this),onmouseover:dt(this._showDataInfo,this,!0),onmouseout:dt(this._showDataInfo,this,!1),z2:5});var S=w.getBoundingRect(),M=l.get("handleSize");this._handleHeight=lt(M,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Oo(w);var C=l.get("handleColor");C!=null&&(w.style.fill=C),o.add(n[b]=w);var I=l.getModel("textStyle"),T=l.get("handleLabel")||{},D=T.show||!1;e.add(i[b]=new Kt({silent:!0,invisible:!D,style:be(I,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:I.getTextColor(),font:I.getFont()}),z2:10}))},this);var d=v;if(f){var h=lt(l.get("moveHandleSize"),s[1]),g=a.moveHandle=new Xt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:h}}),m=h*.8,y=a.moveHandleIcon=$e(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+h/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _=Math.min(s[1]/2,Math.max(h,10));d=a.moveZone=new Xt({invisible:!0,shape:{y:s[1]-_,height:h+_}}),d.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(d)}d.attr({draggable:!0,cursor:pI(this._orient),drift:dt(this._onDragMove,this,"all"),ondragstart:dt(this._showDataInfo,this,!0),ondragend:dt(this._onDragEnd,this),onmouseover:dt(this._showDataInfo,this,!0),onmouseout:dt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[oe(e[0],[0,100],a,!0),oe(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];os(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?oe(s.minSpan,l,o,!0):null,s.maxSpan!=null?oe(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=la([oe(i[0],o,l,!0),oe(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=la(n.slice()),o=this._size;A([0,1],function(d){var h=a.handles[d],g=this._handleHeight;h.attr({scaleX:g/2,scaleY:g/2,x:n[d]+(d?-1:1),y:o[1]/2-g/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],v=f.getClipPath();v||(v=new Xt,f.setClipPath(v)),v.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=e?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var v=la(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(h){var g=zo(n.handles[h].parent,this.group),m=hh(h===0?"right":"left",g),y=this._handleWidth/2+lJ,_=Ca([v[h]+(h===0?-y:y),this._size[1]/2],g);i[h].setStyle({x:_[0],y:_[1],verticalAlign:o===su?"middle":m,align:o===su?m:"center",text:s[h]})}},t.prototype._formatLabel=function(e,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return xt(i)?i(e,s):ft(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,On(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ca([a,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new kt(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=la([oe(n.x,o,s,!0),oe(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(On(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new ou({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?cJ:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=y3(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(z_);function vJ(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function pI(r){return r==="vertical"?"ns-resize":"ew-resize"}function G3(r){r.registerComponentModel(iJ),r.registerComponentView(fJ),B_(r)}function F3(r){Bt(V3),Bt(G3)}var H3={get:function(r,t,e){var a=Mt((dJ[r]||{})[t]);return e&&K(a)?a[a.length-1]:a}},dJ={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]}},gI=We.mapVisual,hJ=We.eachVisual,pJ=K,mI=A,gJ=la,mJ=oe,Nd=function(r){G(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,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&D3(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=dt(e,this),this.controllerVisuals=d0(this.option.controller,a,e),this.targetVisuals=d0(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,a=[];return e==null||e==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=ue(e),a},t.prototype.eachTargetSeries=function(e,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],K(e)&&(e=e.slice(),u=!0);var c=a?e:u?[f(e[0]),f(e[1])]:f(e);if(ft(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(xt(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+c[1]:e[1]===s[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=gJ([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});Lt(i,n),Lt(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){pJ(a.color)&&!f.inRange&&(f.inRange={color:a.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function u(f,v,d){var h=f[v],g=f[d];h&&!g&&(g=f[d]={},mI(h,function(m,y){if(We.isValidType(y)){var _=H3.get(y,"inactive",s);_!=null&&(g[y]=_,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var v=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,d=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,h=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";mI(this.stateList,function(y){var _=this.itemSize,b=f[y];b||(b=f[y]={color:s?h:[h]}),b.symbol==null&&(b.symbol=v&&Mt(v)||(s?m:[m])),b.symbolSize==null&&(b.symbolSize=d&&Mt(d)||(s?_[0]:[_[0],_[0]])),b.symbol=gI(b.symbol,function(S){return S==="none"?m:S});var x=b.symbolSize;if(x!=null){var w=-1/0;hJ(x,function(S){S>w&&(w=S)}),b.symbolSize=gI(x,function(S){return mJ(S,[0,w],[0,_[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}(Yt),yI=[20,140],yJ=function(r){G(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,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.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]=yI[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=yI[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):K(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=la((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=e)&&(a[1]>=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=_I(this,"outOfRange",this.getExtent()),n=_I(this,"inRange",this.option.range.slice()),i=[];function o(d,h){i.push({value:d,color:e(d,h)})}for(var s=0,l=0,u=n.length,c=a.length;l<c&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var f=1;l<c;l++)(!n.length||n[n.length-1]<a[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(a[l],"outOfRange"));var v=i.length;return{stops:i,outerColors:[v?i[0].color:"transparent",v?i[v-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=zi(Nd.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(Nd);function _I(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,n=(e[1]-e[0])/a,i=e[0],o=[],s=0;s<=a&&i<e[1];s++)o.push(i),i+=n;return o.push(e[1]),o}var W3=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,n,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,n,i)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,n=xl(a.get("padding")||0),i=e.getBoundingRect();e.add(new Xt({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(d){return s[d]}function c(d,h){s[d]=h}var f=o.controllerVisuals[i||o.getValueState(e)],v=We.prepareVisualTypes(f);return A(v,function(d){var h=f[d];n.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",h=f.__alphaForOpacity),We.dependsOn(d,a)&&h&&h.applyVisual(e,u,c)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api;xh(e,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t}(De),bI=[["left","right","width"],["top","bottom","height"]];function Z3(r,t,e){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=bI[o],l=[0,null,10],u={},c=0;c<3;c++)u[bI[1-o][c]]=l[c],u[s[c]]=c===2?e[0]:a[s[c]];var f=[["x","width",3],["y","height",0]][o],v=Ve(u,i,a.padding);return s[(v.margin[f[2]]||0)+v[f[0]]+v[f[1]]*.5<i[f[1]]*.5?0:1]}function Ev(r,t){return A(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var Ya=oe,_J=A,xI=Math.min,pm=Math.max,bJ=12,xJ=6,wJ=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=dt(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=dt(this._hideIndicator,this)},t.prototype.doRender=function(e,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),f=this._applyTransform(n===0?"bottom":"top",u),v=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Kt({style:be(d,{x:c[0],y:c[1],verticalAlign:v==="horizontal"?"middle":f,align:v==="horizontal"?f:"center",text:i})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=Z3(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new It;u.add(c),c.add(n.outOfRange=wI()),c.add(n.inRange=wI(null,s?MI(this._orient):null,dt(this._dragHandle,this,"all",!1),dt(this._dragHandle,this,"all",!0))),c.setClipPath(new Xt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=a.textStyleModel.getTextRect("国"),v=pm(f.width,f.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,v,o),this._createHandle(a,u,1,i,v,o)),this._createIndicator(a,u,i,v,o),e.add(u)},t.prototype._createHandle=function(e,a,n,i,o,s){var l=dt(this._dragHandle,this,n,!1),u=dt(this._dragHandle,this,n,!0),c=Ta(e.get("handleSize"),i[0]),f=$e(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),v=MI(this._orient);f.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){On(y.event)}}),f.x=i[0]/2,f.useStyle(e.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Io(f,!0),a.add(f);var d=this.visualMapModel.textStyleModel,h=new Kt({cursor:v,draggable:!0,drift:l,onmousemove:function(y){On(y.event)},ondragend:u,style:be(d,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var g=[c,0],m=this._shapes;m.handleThumbs[n]=f,m.handleLabelPoints[n]=g,m.handleLabels[n]=h},t.prototype._createIndicator=function(e,a,n,i,o){var s=Ta(e.get("indicatorSize"),n[0]),l=$e(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Xe){var c=l.style;l.useStyle(Y({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);a.add(l);var f=this.visualMapModel.textStyleModel,v=new Kt({silent:!0,invisible:!0,style:be(f,{x:0,y:0,text:""})});this.group.add(v);var d=[(o==="horizontal"?i/2:xJ)+n[0]/2,0],h=this._shapes;h.indicator=l,h.indicatorLabel=v,h.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():SI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[Ya(a[0],n,i,!0),Ya(a[1],n,i,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];os(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[Ya(i[0],o,s,!0),Ya(i[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new zc(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new It(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",n.mainGroup);_J([0,1],function(f){var v=o[f];v.setStyle("fill",a.handlesColor[f]),v.y=e[f];var d=Ya(e[f],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");v.scaleX=v.scaleY=h/l[0],v.x=l[0]-h/2;var g=Ca(n.handleLabelPoints[f],zo(v,this.group));if(this._orient==="horizontal"){var m=c==="left"||c==="top"?(l[0]-h)/2:(l[0]-h)/-2;g[1]+=m}s[f].setStyle({x:g[0],y:g[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var v={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",v),h=this.getControllerVisual(e,"symbolSize"),g=Ya(e,s,u,!0),m=l[0]-h/2,y={x:f.x,y:f.y};f.y=g,f.x=m;var _=Ca(c.indicatorLabelPoint,zo(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),w=this._orient,S=w==="horizontal";b.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:S?x:"middle",align:S?"center":x});var M={x:m,y:g,style:{fill:d}},C={style:{x:_[0],y:_[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var I={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(M,I),b.animateTo(C,I)}else f.attr(M),b.attr(C);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var D=0;D<T.length;D++)this.api.enterBlur(T[D])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);i[1]=xI(pm(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();e=xI(pm(o[0],e),o[1]);var l=SJ(n,s,o),u=[e-l,e+l],c=Ya(e,o,s,!0),f=[Ya(u[0],o,s,!0),Ya(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),a&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var v=this._hoverLinkDataIndices,d=[];(a||SI(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var h=V9(v,d);this._dispatchHighDown("downplay",Ev(h[0],n)),this._dispatchHighDown("highlight",Ev(h[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Ao(e.target,function(l){var u=Tt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ev(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=zo(a,i?null:this.group);return K(e)?Ca(e,o,n):hh(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(W3);function wI(r,t,e,a){return new Cr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){On(n.event)},ondragend:a})}function SJ(r,t,e){var a=bJ/2,n=r.get("hoverLinkDataSize");return n&&(a=Ya(n,t,e,!0)/2),a}function SI(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function MI(r){return r==="vertical"?"ns-resize":"ew-resize"}var MJ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},CJ=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},IJ=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(Kq(a.stateList,a.targetVisuals,dt(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(dt(TJ,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function TJ(r,t,e,a){for(var n=t.targetVisuals[a],i=We.prepareVisualTypes(n),o={color:Fc(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=n[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(e,f,v)}return o.color;function f(d){return o[d]}function v(d,h){o[d]=h}}var CI=A;function AJ(r){var t=r&&r.visualMap;K(t)||(t=t?[t]:[]),CI(t,function(e){if(e){Ts(e,"splitList")&&!Ts(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&K(a)&&CI(a,function(n){St(n)&&(Ts(n,"start")&&!Ts(n,"min")&&(n.min=n.start),Ts(n,"end")&&!Ts(n,"max")&&(n.max=n.end))})}})}function Ts(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var II=!1;function Y3(r){II||(II=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(MJ,CJ),A(IJ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(AJ))}function U3(r){r.registerComponentModel(yJ),r.registerComponentView(wJ),Y3(r)}var DJ=function(r){G(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,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],LJ[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=Mt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Q(this._pieceList,function(l){return l=Mt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=We.listVisualTypes(),i=this.isCategory();A(e.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(c){u=u||o(e,c,l)||o(e.target,c,l)},this),!u&&A(this.stateList,function(c){(e[c]||(e[c]={}))[l]=H3.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,A(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=Mt(e)},t.prototype.getValueState=function(e){var a=We.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=We.findPieceIndex(l,n);c===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(c,f){var v=i.getRepresentValue({interval:c});f||(f=i.getValueState(v));var d=e(v,f);c[0]===-1/0?n[0]=d:c[1]===1/0?n[1]=d:a.push({value:c[0],color:d},{value:c[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=zi(Nd.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}(Nd),LJ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),xx(r),A(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;A(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),TI(t,r)},pieces:function(r){var t=this.option;A(t.pieces,function(e,a){St(e)||(e={value:e});var n={text:"",index:a};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var v=[["gte","gt","min"],["lte","lt","max"]][f],d=0;d<3&&o[f]==null;d++)o[f]=e[v[d]],s[f]=l[d],c[f]=d===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=We.retrieveVisuals(e),r.push(n)},this),TI(t,r),xx(r),A(r,function(e){var a=e.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function TI(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var kJ=function(r){G(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 a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,c=this._getViewData(),f=c.endsText,v=je(a.get("showLabel",!0),!f),d=!a.get("selectedMode");f&&this._renderEndsText(e,f[0],u,v,l),A(c.viewPieceList,function(h){var g=h.piece,m=new It;m.onclick=dt(this._onItemClick,this,g),this._enableHoverLink(m,h.indexInModelPieceList);var y=a.getRepresentValue(g);if(this._createItemSymbol(m,y,[0,0,u[0],u[1]],d),v){var _=this.visualMapModel.getValueState(y);m.add(new Kt({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:g.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:_==="outOfRange"?.5:1},silent:d}))}e.add(m)},this),f&&this._renderEndsText(e,f[1],u,v,l),Bo(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Ev(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return Z3(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new It,l=this.visualMapModel.textStyleModel;s.add(new Kt({style:be(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=Q(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=$e(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=Mt(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(W3);function j3(r){r.registerComponentModel(DJ),r.registerComponentView(kJ),Y3(r)}function PJ(r){Bt(U3),Bt(j3)}var RJ={label:{enabled:!0},decal:{show:!1}},AI=qt(),EJ={};function NJ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=Mt(RJ);Lt(a.label,r.getLocaleModel().get("aria"),!1),Lt(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),c=u.get("show");if(c){var f=mt();r.eachSeries(function(v){if(!v.isColorBySeries()){var d=f.get(v.type);d||(d={},f.set(v.type,d)),AI(v).scope=d}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(xt(v.enableAriaDecal)){v.enableAriaDecal();return}var d=v.getData();if(v.isColorBySeries()){var _=yy(v.ecModel,v.name,EJ,r.getSeriesCount()),b=d.getVisual("decal");d.setVisual("decal",x(b,_))}else{var h=v.getRawData(),g={},m=AI(v).scope;d.each(function(w){var S=d.getRawIndex(w);g[S]=w});var y=h.count();h.each(function(w){var S=g[w],M=h.getName(w)||w+"",C=yy(v.ecModel,M,m,y),I=d.getItemVisual(S,"decal");d.setItemVisual(S,"decal",x(I,C))})}function x(w,S){var M=w?Y(Y({},S),w):S;return M.dirty=!0,M}})}}function i(){var u=t.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=wt(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var v=r.getSeriesCount(),d=f.get(["data","maxCount"])||10,h=f.get(["series","maxCount"])||10,g=Math.min(v,h),m;if(!(v<1)){var y=s();if(y){var _=f.get(["general","withTitle"]);m=o(_,{title:y})}else m=f.get(["general","withoutTitle"]);var b=[],x=v>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(x,{seriesCount:v}),r.eachSeries(function(C,I){if(I<g){var T=void 0,D=C.get("name"),E=D?"withName":"withoutName";T=v>1?f.get(["series","multiple",E]):f.get(["series","single",E]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var R=C.getData();if(R.count()>d){var k=f.get(["data","partialData"]);T+=o(k,{displayCnt:d})}else T+=f.get(["data","allData"]);for(var N=f.get(["data","separator","middle"]),O=f.get(["data","separator","end"]),V=f.get(["data","excludeDimensionId"]),B=[],Z=0;Z<R.count();Z++)if(Z<d){var X=R.getName(Z),et=V?ne(R.getValues(Z),function(yt,_t){return Nt(V,_t)===-1}):R.getValues(Z),it=f.get(["data",X?"withName":"withoutName"]);B.push(o(it,{name:X,value:et.join(N)}))}T+=B.join(N)+O,b.push(T)}});var w=f.getModel(["series","multiple","separator"]),S=w.get("middle"),M=w.get("end");m+=b.join(S)+M,u.setAttribute("aria-label",m)}}}}function o(u,c){if(!ft(u))return u;var f=u;return A(c,function(v,d){f=f.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),v)}),f}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function $J(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},A(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function OJ(r){r.registerPreprocessor($J),r.registerVisual(r.PRIORITY.VISUAL.ARIA,NJ)}var DI={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},zJ=function(){function r(t){var e=this._condVal=ft(t)?new RegExp(t):a6(t)?t:null;if(e==null){var a="";ae(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return ft(e)?this._condVal.test(t):Qt(e)?this._condVal.test(t+""):!1},r}(),BJ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),VJ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),GJ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),FJ=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),HJ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,a=e(this.valueGetterParam),n=t?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:a))return!1;return!0},r}();function j_(r,t){if(r===!0||r===!1){var e=new BJ;return e.value=r,e}var a="";return X3(r)||ae(a),r.and?LI("and",r,t):r.or?LI("or",r,t):r.not?WJ(r,t):ZJ(r,t)}function LI(r,t,e){var a=t[r],n="";K(a)||ae(n),a.length||ae(n);var i=r==="and"?new VJ:new GJ;return i.children=Q(a,function(o){return j_(o,e)}),i.children.length||ae(n),i}function WJ(r,t){var e=r.not,a="";X3(e)||ae(a);var n=new FJ;return n.child=j_(e,t),n.child||ae(a),n}function ZJ(r,t){for(var e="",a=t.prepareGetValue(r),n=[],i=Ut(r),o=r.parser,s=o?x5(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=gt(DI,u)?DI[u]:u,f=r[u],v=s?s(f):f,d=Wz(c,v)||c==="reg"&&new zJ(v);d||ae(e),n.push(d)}}n.length||ae(e);var h=new HJ;return h.valueGetterParam=a,h.valueParser=s,h.getValue=t.getValue,h.subCondList=n,h}function X3(r){return St(r)&&!ur(r)}var YJ=function(){function r(t,e){this._cond=j_(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function UJ(r,t){return new YJ(r,t)}var jJ={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,a=UJ(r.config,{valueGetterAttrMap:mt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;gt(s,"dimension")||ae(l);var c=t.getDimensionInfo(u);return c||ae(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),n=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),a.evaluate()&&n.push(e);return{data:n}}},XJ={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,a="",n=ue(e);n.length||ae(a);var i=[];A(n,function(c){var f=c.dimension,v=c.order,d=c.parser,h=c.incomparable;if(f==null&&ae(a),v!=="asc"&&v!=="desc"&&ae(a),h&&h!=="min"&&h!=="max"){var g="";ae(g)}if(v!=="asc"&&v!=="desc"){var m="";ae(m)}var y=t.getDimensionInfo(f);y||ae(a);var _=d?x5(d):null;d&&!_&&ae(a),i.push({dimIdx:y.index,parser:_,comparator:new S5(v,h)})});var o=t.sourceFormat;o!==cr&&o!==pa&&ae(a);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var v=0;v<i.length;v++){var d=i[v],h=t.retrieveValueFromItem(c,d.dimIdx),g=t.retrieveValueFromItem(f,d.dimIdx);d.parser&&(h=d.parser(h),g=d.parser(g));var m=d.comparator.evaluate(h,g);if(m!==0)return m}return 0}),{data:s}}};function qJ(r){r.registerTransform(jJ),r.registerTransform(XJ)}var KJ=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,n){r.prototype.init.call(this,e,a,n),this._sourceManager=new T5(this),Ew(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),Ew(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:on},t}(Yt),JJ=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(De);function QJ(r){r.registerComponentModel(KJ),r.registerComponentView(JJ)}var Ha=dn.CMD;function Bs(r,t){return Math.abs(r-t)<1e-5}function b0(r){var t=r.data,e=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(R,k){n&&n.length>2&&a.push(n),n=[R,k]}function c(R,k,N,O){Bs(R,N)&&Bs(k,O)||n.push(R,k,N,O,N,O)}function f(R,k,N,O,V,B){var Z=Math.abs(k-R),X=Math.tan(Z/4)*4/3,et=k<R?-1:1,it=Math.cos(R),yt=Math.sin(R),_t=Math.cos(k),Ct=Math.sin(k),Wt=it*V+N,q=yt*B+O,rt=_t*V+N,j=Ct*B+O,ot=V*X*et,st=B*X*et;n.push(Wt-ot*yt,q+st*it,rt+ot*Ct,j-st*_t,rt,j)}for(var v,d,h,g,m=0;m<e;){var y=t[m++],_=m===1;switch(_&&(i=t[m],o=t[m+1],s=i,l=o,(y===Ha.L||y===Ha.C||y===Ha.Q)&&(n=[s,l])),y){case Ha.M:i=s=t[m++],o=l=t[m++],u(s,l);break;case Ha.L:v=t[m++],d=t[m++],c(i,o,v,d),i=v,o=d;break;case Ha.C:n.push(t[m++],t[m++],t[m++],t[m++],i=t[m++],o=t[m++]);break;case Ha.Q:v=t[m++],d=t[m++],h=t[m++],g=t[m++],n.push(i+2/3*(v-i),o+2/3*(d-o),h+2/3*(v-h),g+2/3*(d-g),h,g),i=h,o=g;break;case Ha.A:var b=t[m++],x=t[m++],w=t[m++],S=t[m++],M=t[m++],C=t[m++]+M;m+=1;var I=!t[m++];v=Math.cos(M)*w+b,d=Math.sin(M)*S+x,_?(s=v,l=d,u(s,l)):c(i,o,v,d),i=Math.cos(C)*w+b,o=Math.sin(C)*S+x;for(var T=(I?-1:1)*Math.PI/2,D=M;I?D>C:D<C;D+=T){var E=I?Math.max(D+T,C):Math.min(D+T,C);f(D,E,b,x,w,S)}break;case Ha.R:s=i=t[m++],l=o=t[m++],v=s+t[m++],d=l+t[m++],u(v,l),c(v,l,v,d),c(v,d,s,d),c(s,d,s,l),c(s,l,v,l);break;case Ha.Z:n&&c(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function x0(r,t,e,a,n,i,o,s,l,u){if(Bs(r,e)&&Bs(t,a)&&Bs(n,o)&&Bs(i,s)){l.push(o,s);return}var c=2/u,f=c*c,v=o-r,d=s-t,h=Math.sqrt(v*v+d*d);v/=h,d/=h;var g=e-r,m=a-t,y=n-o,_=i-s,b=g*g+m*m,x=y*y+_*_;if(b<f&&x<f){l.push(o,s);return}var w=v*g+d*m,S=-v*y-d*_,M=b-w*w,C=x-S*S;if(M<f&&w>=0&&C<f&&S>=0){l.push(o,s);return}var I=[],T=[];Di(r,e,n,o,.5,I),Di(t,a,i,s,.5,T),x0(I[0],T[0],I[1],T[1],I[2],T[2],I[3],T[3],l,u),x0(I[4],T[4],I[5],T[5],I[6],T[6],I[7],T[7],l,u)}function tQ(r,t){var e=b0(r),a=[];t=t||1;for(var n=0;n<e.length;n++){var i=e[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],v=i[u++],d=i[u++],h=i[u++],g=i[u++];x0(s,l,c,f,v,d,h,g,o,t),s=h,l=g}a.push(o)}return a}function q3(r,t,e){var a=r[t],n=r[1-t],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=e-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function kI(r,t,e){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,c=l>Math.abs(u),f=q3([l,u],c?0:1,t),v=(c?s:u)/f.length,d=0;d<f.length;d++)for(var h=(c?u:s)/f[d],g=0;g<f[d];g++){var m={};c?(m.startAngle=i+v*d,m.endAngle=i+v*(d+1),m.r0=a+h*g,m.r=a+h*(g+1)):(m.startAngle=i+h*g,m.endAngle=i+h*(g+1),m.r0=a+v*d,m.r=a+v*(d+1)),m.clockwise=r.clockwise,m.cx=r.cx,m.cy=r.cy,e.push(m)}}function eQ(r,t,e){for(var a=r.width,n=r.height,i=a>n,o=q3([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=r[s]/o.length,v=0;v<o.length;v++)for(var d=r[l]/o[v],h=0;h<o[v];h++){var g={};g[u]=v*f,g[c]=h*d,g[s]=f,g[l]=d,g.x+=r.x,g.y+=r.y,e.push(g)}}function PI(r,t,e,a){return r*a-e*t}function rQ(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,f=s-i,v=PI(c,f,l,u);if(Math.abs(v)<1e-6)return null;var d=r-n,h=t-i,g=PI(d,h,c,f)/v;return g<0||g>1?null:new kt(g*l+r,g*u+t)}function aQ(r,t,e){var a=new kt;kt.sub(a,e,t),a.normalize();var n=new kt;kt.sub(n,r,t);var i=n.dot(a);return i}function As(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function nQ(r,t,e){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=rQ(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&n.push({projPt:aQ(l,t,e),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(m,y){return m.projPt-y.projPt});var u=n[0],c=n[n.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var v=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],h=[v],g=[d],i=u.idx+1;i<=c.idx;i++)As(h,r[i].slice());As(h,d),As(h,v);for(var i=c.idx+1;i<=u.idx+a;i++)As(g,r[i%a].slice());return As(g,v),As(g,d),[{points:h},{points:g}]}function RI(r){var t=r.points,e=[],a=[];lh(t,e,a);var n=new Pt(e[0],e[1],a[0]-e[0],a[1]-e[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new kt,c=new kt;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),nQ(t,u,c)}function $d(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);$d(r,i[0],n,a),$d(r,i[1],e-n,a)}return a}function iQ(r,t){for(var e=[],a=0;a<t;a++)e.push(d1(r));return e}function oQ(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function sQ(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function lQ(r,t){var e=[],a=r.shape,n;switch(r.type){case"rect":eQ(a,t,e),n=Xt;break;case"sector":kI(a,t,e),n=Mr;break;case"circle":kI({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},t,e),n=Mr;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=Q(tQ(r.getUpdatedPathProxy(),o),function(y){return sQ(y)}),l=s.length;if(l===0)$d(RI,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var c=0,f=Q(s,function(y){var _=[],b=[];lh(y,_,b);var x=(b[1]-_[1])*(b[0]-_[0]);return c+=x,{poly:y,area:x}});f.sort(function(y,_){return _.area-y.area});for(var v=t,u=0;u<l;u++){var d=f[u];if(v<=0)break;var h=u===l-1?v:Math.ceil(d.area/c*t);h<0||($d(RI,{points:d.poly},h,e),v-=h)}}n=Cr;break}if(!n)return iQ(r,t);for(var g=[],u=0;u<e.length;u++){var m=new n;m.setShape(e[u]),oQ(r,m),g.push(m)}return g}function uQ(r,t){var e=r.length,a=t.length;if(e===a)return[r,t];for(var n=[],i=[],o=e<a?r:t,s=Math.min(e,a),l=Math.abs(a-e)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],v=l,d=2;d<s;){var h=o[d-2],g=o[d-1],m=o[d++],y=o[d++],_=o[d++],b=o[d++],x=o[d++],w=o[d++];if(v<=0){f.push(m,y,_,b,x,w);continue}for(var S=Math.min(v,c-1)+1,M=1;M<=S;M++){var C=M/S;Di(h,m,_,x,C,n),Di(g,y,b,w,C,i),h=n[3],g=i[3],f.push(n[1],i[1],n[2],i[2],h,g),m=n[5],y=i[5],_=n[6],b=i[6]}v-=S-1}return o===r?[f,t]:[r,f]}function EI(r,t){for(var e=r.length,a=r[e-2],n=r[e-1],i=[],o=0;o<t.length;)i[o++]=a,i[o++]=n;return i}function cQ(r,t){for(var e,a,n,i=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],c=void 0,f=void 0;l?u?(e=uQ(l,u),c=e[0],f=e[1],a=c,n=f):(f=EI(n||l,l),c=l):(c=EI(a||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function NI(r){for(var t=0,e=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],c=r[i+1],f=s*c-u*l;t+=f,e+=(s+u)*f,a+=(l+c)*f}return t===0?[r[0]||0,r[1]||0]:[e/t/3,a/t/3,t]}function fQ(r,t,e,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var c=u*6,f=0,v=0;v<s;v+=2){var d=v===0?c:(c+v-2)%l+2,h=r[d]-e[0],g=r[d+1]-e[1],m=t[v]-a[0],y=t[v+1]-a[1],_=m-h,b=y-g;f+=_*_+b*b}f<i&&(i=f,o=u)}return o}function vQ(r){for(var t=[],e=r.length,a=0;a<e;a+=2)t[a]=r[e-a-2],t[a+1]=r[e-a-1];return t}function dQ(r,t,e,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=NI(s),c=NI(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],v=[],d=0,h=1/0,g=[],m=s.length;i&&(s=vQ(s));for(var y=fQ(s,l,u,c)*6,_=m-2,b=0;b<_;b+=2){var x=(y+b)%_+2;f[b+2]=s[x]-u[0],f[b+3]=s[x+1]-u[1]}f[0]=s[y]-u[0],f[1]=s[y+1]-u[1];for(var w=a/e,S=-a/2;S<=a/2;S+=w){for(var M=Math.sin(S),C=Math.cos(S),I=0,b=0;b<s.length;b+=2){var T=f[b],D=f[b+1],E=l[b]-c[0],R=l[b+1]-c[1],k=E*C-R*M,N=E*M+R*C;g[b]=k,g[b+1]=N;var O=k-T,V=N-D;I+=O*O+V*V}if(I<h){h=I,d=S;for(var B=0;B<g.length;B++)v[B]=g[B]}}n.push({from:f,to:v,fromCp:u,toCp:c,rotation:-d})}return n}function Od(r){return r.__isCombineMorphing}var K3="__mOriginal_";function zd(r,t,e){var a=K3+t,n=r[a]||r[t];r[a]||(r[a]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function Fu(r,t){var e=K3+t;r[e]&&(r[t]=r[e],r[e]=null)}function $I(r,t){for(var e=0;e<r.length;e++)for(var a=r[e],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=t[0]*i+t[2]*o+t[4],a[n++]=t[1]*i+t[3]*o+t[5]}}function J3(r,t){var e=r.getUpdatedPathProxy(),a=t.getUpdatedPathProxy(),n=cQ(b0(e),b0(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&$I(i,s),l&&$I(o,l),zd(t,"updateTransform",{replace:u}),t.transform=null;var c=dQ(i,o,10,Math.PI),f=[];zd(t,"buildPath",{replace:function(v){for(var d=t.__morphT,h=1-d,g=[],m=0;m<c.length;m++){var y=c[m],_=y.from,b=y.to,x=y.rotation*d,w=y.fromCp,S=y.toCp,M=Math.sin(x),C=Math.cos(x);pv(g,w,S,d);for(var I=0;I<_.length;I+=2){var T=_[I],D=_[I+1],E=b[I],R=b[I+1],k=T*h+E*d,N=D*h+R*d;f[I]=k*C-N*M+g[0],f[I+1]=k*M+N*C+g[1]}var O=f[0],V=f[1];v.moveTo(O,V);for(var I=2;I<_.length;){var E=f[I++],R=f[I++],B=f[I++],Z=f[I++],X=f[I++],et=f[I++];O===E&&V===R&&B===X&&Z===et?v.lineTo(X,et):v.bezierCurveTo(E,R,B,Z,X,et),O=X,V=et}}}})}function X_(r,t,e){if(!r||!t)return t;var a=e.done,n=e.during;J3(r,t),t.__morphT=0;function i(){Fu(t,"buildPath"),Fu(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},wt({during:function(o){t.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},e)),t}function hQ(r,t,e,a,n,i){var o=16;r=n===e?0:Math.round(32767*(r-e)/(n-e)),t=i===a?0:Math.round(32767*(t-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(r&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Bd(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=Q(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),e=Math.min(f,e),a=Math.max(c,a),n=Math.max(f,n),[c,f]}),o=Q(i,function(s,l){return{cp:s,z:hQ(s[0],s[1],t,e,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Q3(r){return lQ(r.path,r.count)}function w0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function pQ(r,t,e){var a=[];function n(w){for(var S=0;S<w.length;S++){var M=w[S];Od(M)?n(M.childrenRef()):M instanceof Vt&&a.push(M)}}n(r);var i=a.length;if(!i)return w0();var o=e.dividePath||Q3,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),w0();a=Bd(a),s=Bd(s);for(var l=e.done,u=e.during,c=e.individualDelay,f=new An,v=0;v<i;v++){var d=a[v],h=s[v];h.parent=t,h.copyTransform(f),c||J3(d,h)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(w){for(var S=0;S<s.length;S++)s[S].addSelfToZr(w)}zd(t,"addSelfToZr",{after:function(w){g(w)}}),zd(t,"removeSelfFromZr",{after:function(w){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(w)}});function m(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Fu(t,"addSelfToZr"),Fu(t,"removeSelfFromZr")}var y=s.length;if(c)for(var _=y,b=function(){_--,_===0&&(m(),l&&l())},v=0;v<y;v++){var x=c?wt({delay:(e.delay||0)+c(v,y,a[v],s[v]),done:b},e):e;X_(a[v],s[v],x)}else t.__morphT=0,t.animateTo({__morphT:1},wt({during:function(w){for(var S=0;S<y;S++){var M=s[S];M.__morphT=t.__morphT,M.dirtyShape()}u&&u(w)},done:function(){m();for(var w=0;w<r.length;w++)Fu(r[w],"updateTransform");l&&l()}},e));return t.__zr&&g(t.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}function gQ(r,t,e){var a=t.length,n=[],i=e.dividePath||Q3;function o(d){for(var h=0;h<d.length;h++){var g=d[h];Od(g)?o(g.childrenRef()):g instanceof Vt&&n.push(g)}}if(Od(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(d1(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var c=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(c);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),w0()}n=Bd(n),t=Bd(t);for(var f=e.individualDelay,u=0;u<a;u++){var v=f?wt({delay:(e.delay||0)+f(u,a,n[u],t[u])},e):e;X_(n[u],t[u],v)}return{fromIndividuals:n,toIndividuals:t,count:t.length}}function OI(r){return K(r[0])}function zI(r,t){for(var e=[],a=r.length,n=0;n<a;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var i=t[n].length,o=void 0;for(o=0;o<i;o++)e[o%a].many.push(t[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var mQ={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=d1(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function gm(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=yl("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;OI(r)&&(u=r,c=t),OI(t)&&(u=t,c=r);function f(y,_,b,x,w){var S=y.many,M=y.one;if(S.length===1&&!w){var C=_?S[0]:M,I=_?M:S[0];if(Od(C))f({many:[C],one:I},!0,b,x,!0);else{var T=s?wt({delay:s(b,x)},l):l;X_(C,I,T),i(C,I,C,I,T)}}else for(var D=wt({dividePath:mQ[e],individualDelay:s&&function(V,B,Z,X){return s(V+b,x)}},l),E=_?pQ(S,M,D):gQ(M,S,D),R=E.fromIndividuals,k=E.toIndividuals,N=R.length,O=0;O<N;O++){var T=s?wt({delay:s(O,N)},l):l;i(R[O],k[O],_?S[O]:y.one,_?y.one:S[O],T)}}for(var v=u?u===r:r.length>t.length,d=u?zI(c,u):zI(v?t:r,[v?r:t]),h=0,g=0;g<d.length;g++)h+=d[g].many.length;for(var m=0,g=0;g<d.length;g++)f(d[g],v,m,h),m+=d[g].many.length}function _o(r){if(!r)return[];if(K(r)){for(var t=[],e=0;e<r.length;e++)t.push(_o(r[e]));return t}var a=[];return r.traverse(function(n){n instanceof Vt&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var t4=1e4,yQ=0,BI=1,VI=2,_Q=qt();function bQ(r,t){for(var e=r.dimensions,a=0;a<e.length;a++){var n=r.getDimensionInfo(e[a]);if(n&&n.otherDims[t]===0)return e[a]}}function xQ(r,t,e){var a=r.getDimensionInfo(e),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,t);return n&&n.categories[i]||i+""}}function GI(r,t,e,a){var n=a?"itemChildGroupId":"itemGroupId",i=bQ(r,n);if(i){var o=xQ(r,t,i);return o}var s=r.getRawDataItem(t),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return e||r.getId(t)}function FI(r){var t=[];return A(r,function(e){var a=e.data,n=e.dataGroupId;if(!(a.count()>t4))for(var i=a.getIndices(),o=0;o<i.length;o++)t.push({data:a,groupId:GI(a,o,n,!1),childGroupId:GI(a,o,n,!0),divide:e.divide,dataIndex:o})}),t}function mm(r,t,e){r.traverse(function(a){a instanceof Vt&&Me(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function ym(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Ds(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function wQ(r,t,e){var a=yl("update",e,t);a&&r.traverse(function(n){if(n instanceof va){var i=TO(n);i&&n.animateFrom({style:i},a)}})}function SQ(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++){var n=r[a],i=t[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function e4(r,t,e){var a=FI(r),n=FI(t);function i(b,x,w,S,M){(w||b)&&x.animateFrom({style:w&&w!==b?Y(Y({},w.style),b.style):b.style},M)}var o=!1,s=yQ,l=mt(),u=mt();a.forEach(function(b){b.groupId&&l.set(b.groupId,!0),b.childGroupId&&u.set(b.childGroupId,!0)});for(var c=0;c<n.length;c++){var f=n[c].groupId;if(u.get(f)){s=BI;break}var v=n[c].childGroupId;if(v&&l.get(v)){s=VI;break}}function d(b,x){return function(w){var S=w.data,M=w.dataIndex;return x?S.getId(M):b?s===BI?w.childGroupId:w.groupId:s===VI?w.childGroupId:w.groupId}}var h=SQ(a,n),g={};if(!h)for(var c=0;c<n.length;c++){var m=n[c],y=m.data.getItemGraphicEl(m.dataIndex);y&&(g[y.id]=!0)}function _(b,x){var w=a[x],S=n[b],M=S.data.hostModel,C=w.data.getItemGraphicEl(w.dataIndex),I=S.data.getItemGraphicEl(S.dataIndex);if(C===I){I&&wQ(I,S.dataIndex,M);return}C&&g[C.id]||I&&(Ds(I),C?(Ds(C),ym(C),o=!0,gm(_o(C),_o(I),S.divide,M,b,i)):mm(I,M,b))}new Gn(a,n,d(!0,h),d(!1,h),null,"multiple").update(_).updateManyToOne(function(b,x){var w=n[b],S=w.data,M=S.hostModel,C=S.getItemGraphicEl(w.dataIndex),I=ne(Q(x,function(T){return a[T].data.getItemGraphicEl(a[T].dataIndex)}),function(T){return T&&T!==C&&!g[T.id]});C&&(Ds(C),I.length?(A(I,function(T){Ds(T),ym(T)}),o=!0,gm(_o(I),_o(C),w.divide,M,b,i)):mm(C,M,w.dataIndex))}).updateOneToMany(function(b,x){var w=a[x],S=w.data.getItemGraphicEl(w.dataIndex);if(!(S&&g[S.id])){var M=ne(Q(b,function(I){return n[I].data.getItemGraphicEl(n[I].dataIndex)}),function(I){return I&&I!==S}),C=n[b[0]].data.hostModel;M.length&&(A(M,function(I){return Ds(I)}),S?(Ds(S),ym(S),o=!0,gm(_o(S),_o(M),w.divide,C,b[0],i)):A(M,function(I){return mm(I,C,b[0])}))}}).updateManyToMany(function(b,x){new Gn(x,b,function(w){return a[w].data.getId(a[w].dataIndex)},function(w){return n[w].data.getId(n[w].dataIndex)}).update(function(w,S){_(b[w],x[S])}).execute()}).execute(),o&&A(t,function(b){var x=b.data,w=x.hostModel,S=w&&e.getViewOfSeriesModel(w),M=yl("update",w,0);S&&w.isAnimationEnabled()&&M&&M.duration>0&&S.group.traverse(function(C){C instanceof Vt&&!C.animators.length&&C.animateFrom({style:{opacity:0}},M)})})}function HI(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function WI(r){return K(r)?r.sort().join(","):r}function fi(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function MQ(r,t){var e=mt(),a=mt(),n=mt();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=HI(i),c=WI(u);a.set(c,{dataGroupId:s,data:l}),K(u)&&A(u,function(f){n.set(f,{key:c,dataGroupId:s,data:l})})}),A(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=HI(i),u=WI(l),c=a.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:fi(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:fi(s),data:s}]});else if(K(l)){var f=[];A(l,function(h){var g=a.get(h);g.data&&f.push({dataGroupId:g.dataGroupId,divide:fi(g.data),data:g.data})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:fi(s)}]})}else{var v=n.get(l);if(v){var d=e.get(v.key);d||(d={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:fi(v.data)}],newSeries:[]},e.set(v.key,d)),d.newSeries.push({dataGroupId:o,data:s,divide:fi(s)})}}}}),e}function ZI(r,t){for(var e=0;e<r.length;e++){var a=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(a)return e}}function CQ(r,t,e,a){var n=[],i=[];A(ue(r.from),function(o){var s=ZI(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:fi(t.oldData[s]),groupIdDim:o.dimension})}),A(ue(r.to),function(o){var s=ZI(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:fi(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&e4(n,i,a)}function IQ(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(ue(a.seriesTransition),function(n){A(ue(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Tv]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=_Q(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)A(ue(i),function(d){CQ(d,n,a,e)});else{var o=MQ(n,a);A(o.keys(),function(d){var h=o.get(d);e4(h.oldSeries,h.newSeries,e)})}A(a.updatedSeries,function(d){d[Tv]&&(d[Tv]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],f=0;f<s.length;f++){var v=s[f].getData();v.count()<t4&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(v))}})}Bt([ck]);Bt([GG]);Bt([bk,Sk,Ak,Bk,wF,lH,$H,_W,GW,UW,rZ,qZ,xY,PY,jY,JY,lU,pU,IU,PU,FU,Cj]);Bt(v3);Bt(pX);Bt(jk);Bt(AX);Bt(RP);Bt(PX);Bt(GX);Bt(Aq);Bt(A3);Bt(Qc);Bt(uK);Bt(k3);Bt(xK);Bt(AK);Bt(EK);Bt(VK);Bt(z3);Bt(F3);Bt(V3);Bt(G3);Bt(PJ);Bt(U3);Bt(j3);Bt(OJ);Bt(qJ);Bt(QJ);Bt(IQ);Bt(sG);/**
  69. * @license lucide-vue-next v0.475.0 - ISC
  70. *
  71. * This source code is licensed under the ISC license.
  72. * See the LICENSE file in the root directory of this source tree.
  73. */const TQ=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
  74. * @license lucide-vue-next v0.475.0 - ISC
  75. *
  76. * This source code is licensed under the ISC license.
  77. * See the LICENSE file in the root directory of this source tree.
  78. */var ov={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
  79. * @license lucide-vue-next v0.475.0 - ISC
  80. *
  81. * This source code is licensed under the ISC license.
  82. * See the LICENSE file in the root directory of this source tree.
  83. */const AQ=({size:r,strokeWidth:t=2,absoluteStrokeWidth:e,color:a,iconNode:n,name:i,class:o,...s},{slots:l})=>ju("svg",{...ov,width:r||ov.width,height:r||ov.height,stroke:a||ov.stroke,"stroke-width":e?Number(t)*24/Number(r):t,class:["lucide",`lucide-${TQ(i??"icon")}`],...s},[...n.map(u=>ju(...u)),...l.default?[l.default()]:[]]);/**
  84. * @license lucide-vue-next v0.475.0 - ISC
  85. *
  86. * This source code is licensed under the ISC license.
  87. * See the LICENSE file in the root directory of this source tree.
  88. */const me=(r,t)=>(e,{slots:a})=>ju(AQ,{...e,iconNode:t,name:r},a);/**
  89. * @license lucide-vue-next v0.475.0 - ISC
  90. *
  91. * This source code is licensed under the ISC license.
  92. * See the LICENSE file in the root directory of this source tree.
  93. */const r4=me("ActivityIcon",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
  94. * @license lucide-vue-next v0.475.0 - ISC
  95. *
  96. * This source code is licensed under the ISC license.
  97. * See the LICENSE file in the root directory of this source tree.
  98. */const $t=me("BellIcon",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
  99. * @license lucide-vue-next v0.475.0 - ISC
  100. *
  101. * This source code is licensed under the ISC license.
  102. * See the LICENSE file in the root directory of this source tree.
  103. */const DQ=me("CameraIcon",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
  104. * @license lucide-vue-next v0.475.0 - ISC
  105. *
  106. * This source code is licensed under the ISC license.
  107. * See the LICENSE file in the root directory of this source tree.
  108. */const LQ=me("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
  109. * @license lucide-vue-next v0.475.0 - ISC
  110. *
  111. * This source code is licensed under the ISC license.
  112. * See the LICENSE file in the root directory of this source tree.
  113. */const kQ=me("ChevronLeftIcon",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
  114. * @license lucide-vue-next v0.475.0 - ISC
  115. *
  116. * This source code is licensed under the ISC license.
  117. * See the LICENSE file in the root directory of this source tree.
  118. */const PQ=me("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
  119. * @license lucide-vue-next v0.475.0 - ISC
  120. *
  121. * This source code is licensed under the ISC license.
  122. * See the LICENSE file in the root directory of this source tree.
  123. */const RQ=me("ChevronUpIcon",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
  124. * @license lucide-vue-next v0.475.0 - ISC
  125. *
  126. * This source code is licensed under the ISC license.
  127. * See the LICENSE file in the root directory of this source tree.
  128. */const EQ=me("DownloadIcon",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
  129. * @license lucide-vue-next v0.475.0 - ISC
  130. *
  131. * This source code is licensed under the ISC license.
  132. * See the LICENSE file in the root directory of this source tree.
  133. */const pe=me("EllipsisVerticalIcon",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
  134. * @license lucide-vue-next v0.475.0 - ISC
  135. *
  136. * This source code is licensed under the ISC license.
  137. * See the LICENSE file in the root directory of this source tree.
  138. */const ka=me("HeartIcon",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
  139. * @license lucide-vue-next v0.475.0 - ISC
  140. *
  141. * This source code is licensed under the ISC license.
  142. * See the LICENSE file in the root directory of this source tree.
  143. */const we=me("HouseIcon",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
  144. * @license lucide-vue-next v0.475.0 - ISC
  145. *
  146. * This source code is licensed under the ISC license.
  147. * See the LICENSE file in the root directory of this source tree.
  148. */const NQ=me("ImageIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
  149. * @license lucide-vue-next v0.475.0 - ISC
  150. *
  151. * This source code is licensed under the ISC license.
  152. * See the LICENSE file in the root directory of this source tree.
  153. */const $r=me("InboxIcon",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
  154. * @license lucide-vue-next v0.475.0 - ISC
  155. *
  156. * This source code is licensed under the ISC license.
  157. * See the LICENSE file in the root directory of this source tree.
  158. */const mn=me("InfoIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
  159. * @license lucide-vue-next v0.475.0 - ISC
  160. *
  161. * This source code is licensed under the ISC license.
  162. * See the LICENSE file in the root directory of this source tree.
  163. */const a4=me("LoaderCircleIcon",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
  164. * @license lucide-vue-next v0.475.0 - ISC
  165. *
  166. * This source code is licensed under the ISC license.
  167. * See the LICENSE file in the root directory of this source tree.
  168. */const n4=me("LogOutIcon",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
  169. * @license lucide-vue-next v0.475.0 - ISC
  170. *
  171. * This source code is licensed under the ISC license.
  172. * See the LICENSE file in the root directory of this source tree.
  173. */const Tr=me("MenuIcon",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
  174. * @license lucide-vue-next v0.475.0 - ISC
  175. *
  176. * This source code is licensed under the ISC license.
  177. * See the LICENSE file in the root directory of this source tree.
  178. */const Pa=me("MessageSquareIcon",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
  179. * @license lucide-vue-next v0.475.0 - ISC
  180. *
  181. * This source code is licensed under the ISC license.
  182. * See the LICENSE file in the root directory of this source tree.
  183. */const ge=me("PlusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
  184. * @license lucide-vue-next v0.475.0 - ISC
  185. *
  186. * This source code is licensed under the ISC license.
  187. * See the LICENSE file in the root directory of this source tree.
  188. */const Ht=me("SearchIcon",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
  189. * @license lucide-vue-next v0.475.0 - ISC
  190. *
  191. * This source code is licensed under the ISC license.
  192. * See the LICENSE file in the root directory of this source tree.
  193. */const fr=me("SettingsIcon",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
  194. * @license lucide-vue-next v0.475.0 - ISC
  195. *
  196. * This source code is licensed under the ISC license.
  197. * See the LICENSE file in the root directory of this source tree.
  198. */const Ra=me("Share2Icon",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
  199. * @license lucide-vue-next v0.475.0 - ISC
  200. *
  201. * This source code is licensed under the ISC license.
  202. * See the LICENSE file in the root directory of this source tree.
  203. */const $Q=me("SquarePenIcon",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
  204. * @license lucide-vue-next v0.475.0 - ISC
  205. *
  206. * This source code is licensed under the ISC license.
  207. * See the LICENSE file in the root directory of this source tree.
  208. */const Or=me("StarIcon",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
  209. * @license lucide-vue-next v0.475.0 - ISC
  210. *
  211. * This source code is licensed under the ISC license.
  212. * See the LICENSE file in the root directory of this source tree.
  213. */const OQ=me("Trash2Icon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
  214. * @license lucide-vue-next v0.475.0 - ISC
  215. *
  216. * This source code is licensed under the ISC license.
  217. * See the LICENSE file in the root directory of this source tree.
  218. */const zQ=me("TrashIcon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
  219. * @license lucide-vue-next v0.475.0 - ISC
  220. *
  221. * This source code is licensed under the ISC license.
  222. * See the LICENSE file in the root directory of this source tree.
  223. */const BQ=me("UploadIcon",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
  224. * @license lucide-vue-next v0.475.0 - ISC
  225. *
  226. * This source code is licensed under the ISC license.
  227. * See the LICENSE file in the root directory of this source tree.
  228. */const Jt=me("UserIcon",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
  229. * @license lucide-vue-next v0.475.0 - ISC
  230. *
  231. * This source code is licensed under the ISC license.
  232. * See the LICENSE file in the root directory of this source tree.
  233. */const i4=me("UsersIcon",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
  234. * @license lucide-vue-next v0.475.0 - ISC
  235. *
  236. * This source code is licensed under the ISC license.
  237. * See the LICENSE file in the root directory of this source tree.
  238. */const te=me("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),VQ={class:"p-6"},GQ={class:"bg-white rounded-lg shadow p-6 mb-6"},FQ={class:"flex justify-between items-center"},HQ={class:"flex space-x-4"},WQ={class:"relative"},ZQ={class:"bg-white rounded-lg shadow p-6 mb-6"},YQ={class:"flex flex-wrap gap-4"},UQ={class:"relative flex-1 min-w-[200px]"},jQ={class:"relative flex-1 min-w-[200px]"},XQ={class:"relative flex-1 min-w-[200px]"},qQ={class:"relative flex-1 min-w-[200px]"},KQ={class:"relative flex-1 min-w-[200px]"},JQ={class:"bg-white rounded-lg shadow overflow-hidden"},QQ={class:"overflow-x-auto"},ttt={class:"min-w-full divide-y divide-gray-200"},ett={class:"bg-gray-50"},rtt={class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},att=["onClick"],ntt={class:"flex items-center"},itt={class:"ml-1"},ott={class:"bg-white divide-y divide-gray-200"},stt={class:"px-6 py-4 whitespace-nowrap"},ltt=["value"],utt={class:"px-6 py-4 whitespace-nowrap"},ctt={class:"px-6 py-4 whitespace-nowrap"},ftt={class:"px-6 py-4 whitespace-nowrap"},vtt={class:"px-6 py-4 whitespace-nowrap"},dtt={class:"px-6 py-4 whitespace-nowrap"},htt={class:"px-6 py-4 whitespace-nowrap"},ptt={class:"flex space-x-2"},gtt=["onClick"],mtt=["onClick"],ytt={key:0,class:"px-6 py-4 bg-gray-50 border-t border-gray-200"},_tt={class:"flex items-center justify-between"},btt={class:"text-sm text-gray-600"},xtt={class:"flex space-x-4"},wtt={class:"px-6 py-4 bg-gray-50 border-t border-gray-200"},Stt={class:"flex items-center justify-between"},Mtt={class:"flex items-center"},Ctt=["value"],Itt={class:"flex items-center space-x-2"},Ttt=["disabled"],Att={class:"text-sm text-gray-700"},Dtt=["disabled"],Ltt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center"},ktt={class:"bg-white rounded-lg shadow-xl w-1/2 max-w-2xl"},Ptt={class:"flex justify-between items-center p-6 border-b"},Rtt={class:"text-lg font-semibold"},Ett={class:"grid grid-cols-2 gap-6"},Ntt={class:"mt-6 flex justify-end space-x-4"},$tt={__name:"RawMaterialCategoryView",setup(r){Bt([k3,A3,z3,v3,F3,bk,Sk,Ak,Bk,ck]);const t={rawMaterials:{list:[{id:1,materialCode:"MAT001",materialGroup:"GROUP001",categoryOne:"CATEGORY001",categoryTwo:"CATEGORY002",rawMaterialCategory:"RAW001"},{id:2,materialCode:"MAT002",materialGroup:"GROUP002",categoryOne:"CATEGORY002",categoryTwo:"CATEGORY003",rawMaterialCategory:"RAW002"}],total:2}},e=nt(!1),a=nt({materialCode:"",materialGroup:"",categoryOne:"",categoryTwo:"",rawMaterialCategory:""}),n=nt(1),i=nt(10),o=nt(0),s=nt([]),l=nt(!1),u=nt(!1),c=nt(""),f=nt("asc"),v=nt(null),d=[{prop:"materialCode",label:"物料编码"},{prop:"materialGroup",label:"物料组"},{prop:"categoryOne",label:"类别一"},{prop:"categoryTwo",label:"类别二"},{prop:"rawMaterialCategory",label:"原料大类"}],h=Rr(()=>{let R=t.rawMaterials.list;return a.value.materialCode&&(R=R.filter(k=>k.materialCode.includes(a.value.materialCode))),a.value.materialGroup&&(R=R.filter(k=>k.materialGroup.includes(a.value.materialGroup))),a.value.categoryOne&&(R=R.filter(k=>k.categoryOne.includes(a.value.categoryOne))),a.value.categoryTwo&&(R=R.filter(k=>k.categoryTwo.includes(a.value.categoryTwo))),a.value.rawMaterialCategory&&(R=R.filter(k=>k.rawMaterialCategory.includes(a.value.rawMaterialCategory))),R}),g=Rr(()=>Math.ceil(o.value/i.value)),m=Rr({get:()=>s.value.length===h.value.length,set:R=>{s.value=R?h.value.map(k=>k.id):[]}}),y=()=>{n.value=1,E()},_=R=>{c.value===R?f.value=f.value==="asc"?"desc":"asc":(c.value=R,f.value="asc");const k=[...h.value];k.sort((N,O)=>{const V=N[R],B=O[R];return f.value==="asc"?V>B?1:-1:V<B?1:-1}),h.value=k},b=()=>{n.value=1,E()},x=()=>{a.value={materialCode:"",materialGroup:"",categoryOne:"",categoryTwo:"",rawMaterialCategory:""},y()},w=R=>{R.target.files[0]},S=()=>{},M=()=>{},C=()=>{},I=R=>{u.value=!0,addForm.value={...R},l.value=!0},T=R=>{},D=()=>{};TT(()=>{E()}),z0(()=>{v.value&&LV(v.value)});const E=async()=>{try{e.value=!0,await new Promise(R=>setTimeout(R,500)),o.value=t.rawMaterials.total}catch(R){console.error("获取数据失败:",R)}finally{e.value=!1}};return(R,k)=>(H(),W("div",VQ,[p("div",GQ,[p("div",FQ,[k[22]||(k[22]=p("h2",{class:"text-2xl font-bold text-gray-800"},"原料品类管理",-1)),p("div",HQ,[p("button",{onClick:k[0]||(k[0]=N=>l.value=!0),class:"flex items-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors"},[L(P(ge),{class:"w-5 h-5 mr-2"}),k[19]||(k[19]=vo(" 新增 "))]),p("button",{onClick:S,class:"flex items-center px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors"},[L(P(EQ),{class:"w-5 h-5 mr-2"}),k[20]||(k[20]=vo(" 导出数据 "))]),p("div",WQ,[p("input",{type:"file",class:"hidden",ref:"fileInput",onChange:w},null,544),p("button",{onClick:k[1]||(k[1]=N=>R.$refs.fileInput.click()),class:"flex items-center px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors"},[L(P(BQ),{class:"w-5 h-5 mr-2"}),k[21]||(k[21]=vo(" 导入数据 "))])])])])]),p("div",ZQ,[p("div",YQ,[p("div",UQ,[L(P(Ht),{class:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),hr(p("input",{"onUpdate:modelValue":k[2]||(k[2]=N=>a.value.materialCode=N),type:"text",placeholder:"物料编码",class:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",onInput:y},null,544),[[za,a.value.materialCode]])]),p("div",jQ,[L(P(Ht),{class:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),hr(p("input",{"onUpdate:modelValue":k[3]||(k[3]=N=>a.value.materialGroup=N),type:"text",placeholder:"物料组",class:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",onInput:y},null,544),[[za,a.value.materialGroup]])]),p("div",XQ,[L(P(Ht),{class:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),hr(p("input",{"onUpdate:modelValue":k[4]||(k[4]=N=>a.value.categoryOne=N),type:"text",placeholder:"类别一",class:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",onInput:y},null,544),[[za,a.value.categoryOne]])]),p("div",qQ,[L(P(Ht),{class:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),hr(p("input",{"onUpdate:modelValue":k[5]||(k[5]=N=>a.value.categoryTwo=N),type:"text",placeholder:"类别二",class:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",onInput:y},null,544),[[za,a.value.categoryTwo]])]),p("div",KQ,[L(P(Ht),{class:"absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),hr(p("input",{"onUpdate:modelValue":k[6]||(k[6]=N=>a.value.rawMaterialCategory=N),type:"text",placeholder:"原料大类",class:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",onInput:y},null,544),[[za,a.value.rawMaterialCategory]])]),p("div",{class:"flex items-center space-x-2"},[p("button",{onClick:x,class:"px-4 py-2 bg-gray-300 text-gray-700 rounded-lg hover:bg-gray-400"}," 重置 "),p("button",{onClick:y,class:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700"}," 查询 ")])])]),p("div",JQ,[p("div",QQ,[p("table",ttt,[p("thead",ett,[p("tr",null,[p("th",rtt,[hr(p("input",{type:"checkbox","onUpdate:modelValue":k[7]||(k[7]=N=>m.value=N),class:"rounded border-gray-300 text-blue-600 focus:ring-blue-500"},null,512),[[Wv,m.value]])]),(H(),W(Ft,null,re(d,N=>p("th",{key:N.prop,class:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider cursor-pointer",onClick:O=>_(N.prop)},[p("div",ntt,[vo(at(N.label)+" ",1),p("span",itt,[c.value===N.prop&&f.value==="asc"?(H(),Gv(P(RQ),{key:0,class:"h-4 w-4 inline-block"})):c.value===N.prop&&f.value==="desc"?(H(),Gv(P(LQ),{key:1,class:"h-4 w-4 inline-block"})):ct("",!0)])])],8,att)),64)),k[23]||(k[23]=p("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," 操作 ",-1))])]),p("tbody",ott,[(H(!0),W(Ft,null,re(h.value,N=>(H(),W("tr",{key:N.id,class:"hover:bg-gray-50"},[p("td",stt,[hr(p("input",{type:"checkbox","onUpdate:modelValue":k[8]||(k[8]=O=>s.value=O),value:N.id,class:"rounded border-gray-300 text-blue-600 focus:ring-blue-500"},null,8,ltt),[[Wv,s.value]])]),p("td",utt,at(N.materialCode),1),p("td",ctt,at(N.materialGroup),1),p("td",ftt,at(N.categoryOne),1),p("td",vtt,at(N.categoryTwo),1),p("td",dtt,at(N.rawMaterialCategory),1),p("td",htt,[p("div",ptt,[p("button",{onClick:O=>I(N),class:"px-3 py-1 text-sm text-green-600 hover:text-green-800"}," 修改 ",8,gtt),p("button",{onClick:O=>T(),class:"px-3 py-1 text-sm text-red-600 hover:text-red-800"}," 删除 ",8,mtt)])])]))),128))])])]),s.value.length>0?(H(),W("div",ytt,[p("div",_tt,[p("span",btt,"已选择 "+at(s.value.length)+" 项",1),p("div",xtt,[p("button",{onClick:M,class:"flex items-center px-4 py-2 text-sm text-blue-600 hover:text-blue-800"},[L(P($Q),{class:"w-4 h-4 mr-1"}),k[24]||(k[24]=vo(" 批量编辑 "))]),p("button",{onClick:C,class:"flex items-center px-4 py-2 text-sm text-red-600 hover:text-red-800"},[L(P(zQ),{class:"w-4 h-4 mr-1"}),k[25]||(k[25]=vo(" 批量删除 "))])])])])):ct("",!0),p("div",wtt,[p("div",Stt,[p("div",Mtt,[k[26]||(k[26]=p("span",{class:"text-sm text-gray-700 mr-4"},"每页显示",-1)),hr(p("select",{"onUpdate:modelValue":k[9]||(k[9]=N=>i.value=N),class:"px-2 py-1 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",onChange:b},[(H(),W(Ft,null,re([10,20,50,100],N=>p("option",{key:N,value:N},at(N),9,Ctt)),64))],544),[[_E,i.value]])]),p("div",Itt,[p("button",{onClick:k[10]||(k[10]=N=>n.value--),disabled:n.value===1,class:"px-3 py-1 border border-gray-300 rounded-md disabled:opacity-50"},[L(P(kQ),{class:"w-4 h-4"})],8,Ttt),p("span",Att," 第 "+at(n.value)+" 页 / 共 "+at(g.value)+" 页 ",1),p("button",{onClick:k[11]||(k[11]=N=>n.value++),disabled:n.value===g.value,class:"px-3 py-1 border border-gray-300 rounded-md disabled:opacity-50"},[L(P(PQ),{class:"w-4 h-4"})],8,Dtt)])])])]),l.value?(H(),W("div",Ltt,[p("div",ktt,[p("div",Ptt,[p("h3",Rtt,at(u.value?"编辑原料品类":"新增原料品类"),1),p("button",{onClick:k[12]||(k[12]=N=>l.value=!1),class:"text-gray-400 hover:text-gray-500"},[L(P(te),{class:"w-5 h-5"})])]),p("form",{onSubmit:wE(D,["prevent"]),class:"p-6"},[p("div",Ett,[p("div",null,[k[27]||(k[27]=p("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"物料编码",-1)),hr(p("input",{"onUpdate:modelValue":k[13]||(k[13]=N=>R.addForm.materialCode=N),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:""},null,512),[[za,R.addForm.materialCode]])]),p("div",null,[k[28]||(k[28]=p("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"物料组",-1)),hr(p("input",{"onUpdate:modelValue":k[14]||(k[14]=N=>R.addForm.materialGroup=N),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:""},null,512),[[za,R.addForm.materialGroup]])]),p("div",null,[k[29]||(k[29]=p("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"类别一",-1)),hr(p("input",{"onUpdate:modelValue":k[15]||(k[15]=N=>R.addForm.categoryOne=N),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:""},null,512),[[za,R.addForm.categoryOne]])]),p("div",null,[k[30]||(k[30]=p("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"类别二",-1)),hr(p("input",{"onUpdate:modelValue":k[16]||(k[16]=N=>R.addForm.categoryTwo=N),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:""},null,512),[[za,R.addForm.categoryTwo]])]),p("div",null,[k[31]||(k[31]=p("label",{class:"block text-sm font-medium text-gray-700 mb-1"},"原料大类",-1)),hr(p("input",{"onUpdate:modelValue":k[17]||(k[17]=N=>R.addForm.rawMaterialCategory=N),type:"text",class:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:""},null,512),[[za,R.addForm.rawMaterialCategory]])])]),p("div",Ntt,[p("button",{type:"button",onClick:k[18]||(k[18]=N=>l.value=!1),class:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50"}," 取消 "),k[32]||(k[32]=p("button",{type:"submit",class:"px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700"}," 确定 ",-1))])],32)])])):ct("",!0)]))}},Ott={class:"minimal-container min-h-screen bg-white"},ztt={class:"minimal-app-bar"},Btt={class:"container mx-auto px-4 py-3 flex items-center justify-between"},Vtt={class:"flex items-center"},Gtt={class:"flex items-center space-x-4"},Ftt={class:"minimal-icon-button"},Htt={class:"minimal-icon-button"},Wtt={class:"minimal-icon-button"},Ztt={class:"container mx-auto p-6"},Ytt={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},Utt={class:"minimal-card"},jtt={class:"p-4"},Xtt={class:"space-y-2"},qtt={href:"#",class:"minimal-nav-item active"},Ktt={href:"#",class:"minimal-nav-item"},Jtt={href:"#",class:"minimal-nav-item"},Qtt={href:"#",class:"minimal-nav-item"},tet={class:"md:col-span-2 space-y-6"},eet={class:"minimal-card"},ret={class:"p-4"},aet={class:"space-y-4"},net={class:"minimal-list-item"},iet={class:"minimal-icon-button"},oet={class:"minimal-list-item"},set={class:"minimal-icon-button"},uet={class:"minimal-card"},cet={class:"p-4"},fet={class:"flex flex-wrap gap-4"},vet={class:"minimal-button icon"},det={class:"minimal-card"},het={class:"p-4"},pet={class:"minimal-bottom-nav"},get={href:"#",class:"minimal-bottom-nav-item active"},met={href:"#",class:"minimal-bottom-nav-item"},yet={href:"#",class:"minimal-bottom-nav-item"},_et={href:"#",class:"minimal-bottom-nav-item"},bet={href:"#",class:"minimal-bottom-nav-item"},xet={key:0,class:"minimal-dialog-overlay"},wet={class:"minimal-dialog"},Met={class:"minimal-dialog-header"},Cet={class:"minimal-dialog-actions"},Iet={__name:"MinimalistView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",Ott,[p("div",ztt,[p("div",Btt,[p("div",Vtt,[L(P(Tr),{class:"w-5 h-5 text-gray-600 mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-gray-900"},"Minimalist",-1))]),p("div",Gtt,[p("button",Ftt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",Htt,[L(P($t),{class:"w-5 h-5"})]),p("button",Wtt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",Ztt,[p("div",Ytt,[p("div",Utt,[p("div",jtt,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"导航菜单",-1)),p("nav",Xtt,[p("a",qtt,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",Ktt,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"minimal-badge"},"12",-1))]),p("a",Jtt,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",Qtt,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",tet,[p("div",eet,[p("div",ret,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"卡片列表",-1)),p("div",aet,[p("div",net,[a[11]||(a[11]=p("div",{class:"minimal-avatar bg-gray-100"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-gray-900"},"卡片标题"),p("p",{class:"text-gray-600"},"卡片副标题")],-1)),p("button",iet,[L(P(pe),{class:"w-5 h-5"})])]),p("div",oet,[a[13]||(a[13]=p("div",{class:"minimal-avatar bg-gray-100"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-gray-900"},"另一个标题"),p("p",{class:"text-gray-600"},"另一个副标题")],-1)),p("button",set,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="minimal-card" data-v-c519d2be><div class="p-4" data-v-c519d2be><h2 class="text-lg font-medium mb-4 text-gray-900" data-v-c519d2be>表单元素</h2><div class="space-y-4" data-v-c519d2be><div class="minimal-input-group" data-v-c519d2be><label class="text-gray-700" data-v-c519d2be>文本输入</label><input type="text" placeholder="请输入内容" class="minimal-input" data-v-c519d2be></div><div class="minimal-input-group" data-v-c519d2be><label class="text-gray-700" data-v-c519d2be>密码输入</label><input type="password" placeholder="请输入密码" class="minimal-input" data-v-c519d2be></div><div class="minimal-input-group" data-v-c519d2be><label class="text-gray-700" data-v-c519d2be>下拉选择</label><select class="minimal-input" data-v-c519d2be><option data-v-c519d2be>选项 1</option><option data-v-c519d2be>选项 2</option><option data-v-c519d2be>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-c519d2be><label class="minimal-checkbox" data-v-c519d2be><input type="checkbox" data-v-c519d2be><span class="minimal-checkmark" data-v-c519d2be></span><span class="text-gray-700" data-v-c519d2be>复选框</span></label><label class="minimal-radio" data-v-c519d2be><input type="radio" name="radio" data-v-c519d2be><span class="minimal-radiomark" data-v-c519d2be></span><span class="text-gray-700" data-v-c519d2be>单选框</span></label></div><div class="minimal-switch" data-v-c519d2be><input type="checkbox" id="switch1" data-v-c519d2be><label for="switch1" class="text-gray-700" data-v-c519d2be>开关</label></div></div></div></div>',1)),p("div",uet,[p("div",cet,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"按钮样式",-1)),p("div",fet,[a[16]||(a[16]=p("button",{class:"minimal-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"minimal-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"minimal-button text"},"文本按钮",-1)),p("button",vet,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="minimal-card" data-v-c519d2be><div class="p-4" data-v-c519d2be><h2 class="text-lg font-medium mb-4 text-gray-900" data-v-c519d2be>进度指示器</h2><div class="space-y-4" data-v-c519d2be><div class="minimal-progress" data-v-c519d2be><div class="minimal-progress-bar" style="width:60%;" data-v-c519d2be></div></div><div class="minimal-progress circular" data-v-c519d2be><div class="minimal-progress-circle" data-v-c519d2be></div></div></div></div></div>',1)),p("div",det,[p("div",het,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"对话框示例",-1)),p("button",{class:"minimal-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",pet,[p("a",get,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",met,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",yet,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",_et,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",bet,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",xet,[p("div",wet,[p("div",Met,[a[28]||(a[28]=p("h3",{class:"text-gray-900"},"对话框标题",-1)),p("button",{class:"minimal-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"minimal-dialog-content"},[p("p",{class:"text-gray-600"},"这是一个极简风格的对话框示例。")],-1)),p("div",Cet,[p("button",{class:"minimal-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"minimal-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},Tet=Ce(Iet,[["__scopeId","data-v-c519d2be"]]),Aet={class:"dark-container min-h-screen bg-gray-900"},Det={class:"dark-app-bar"},Let={class:"container mx-auto px-4 py-3 flex items-center justify-between"},ket={class:"flex items-center"},Pet={class:"flex items-center space-x-4"},Ret={class:"dark-icon-button"},Eet={class:"dark-icon-button"},Net={class:"dark-icon-button"},$et={class:"container mx-auto p-6"},Oet={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},zet={class:"dark-card"},Bet={class:"p-4"},Vet={class:"space-y-2"},Get={href:"#",class:"dark-nav-item active"},Fet={href:"#",class:"dark-nav-item"},Het={href:"#",class:"dark-nav-item"},Wet={href:"#",class:"dark-nav-item"},Zet={class:"md:col-span-2 space-y-6"},Yet={class:"dark-card"},Uet={class:"p-4"},jet={class:"space-y-4"},Xet={class:"dark-list-item"},qet={class:"dark-icon-button"},Ket={class:"dark-list-item"},Jet={class:"dark-icon-button"},Qet={class:"dark-card"},trt={class:"p-4"},ert={class:"flex flex-wrap gap-4"},rrt={class:"dark-button icon"},art={class:"dark-card"},nrt={class:"p-4"},irt={class:"dark-bottom-nav"},ort={href:"#",class:"dark-bottom-nav-item active"},srt={href:"#",class:"dark-bottom-nav-item"},lrt={href:"#",class:"dark-bottom-nav-item"},urt={href:"#",class:"dark-bottom-nav-item"},crt={href:"#",class:"dark-bottom-nav-item"},frt={key:0,class:"dark-dialog-overlay"},vrt={class:"dark-dialog"},drt={class:"dark-dialog-header"},hrt={class:"dark-dialog-actions"},prt={__name:"DarkModeView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",Aet,[p("div",Det,[p("div",Let,[p("div",ket,[L(P(Tr),{class:"w-5 h-5 text-gray-300 mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-white"},"Dark Mode",-1))]),p("div",Pet,[p("button",Ret,[L(P(Ht),{class:"w-5 h-5"})]),p("button",Eet,[L(P($t),{class:"w-5 h-5"})]),p("button",Net,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",$et,[p("div",Oet,[p("div",zet,[p("div",Bet,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-white"},"导航菜单",-1)),p("nav",Vet,[p("a",Get,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",Fet,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"dark-badge"},"12",-1))]),p("a",Het,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",Wet,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",Zet,[p("div",Yet,[p("div",Uet,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-white"},"卡片列表",-1)),p("div",jet,[p("div",Xet,[a[11]||(a[11]=p("div",{class:"dark-avatar bg-blue-600"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-white"},"卡片标题"),p("p",{class:"text-gray-400"},"卡片副标题")],-1)),p("button",qet,[L(P(pe),{class:"w-5 h-5"})])]),p("div",Ket,[a[13]||(a[13]=p("div",{class:"dark-avatar bg-green-600"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-white"},"另一个标题"),p("p",{class:"text-gray-400"},"另一个副标题")],-1)),p("button",Jet,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="dark-card" data-v-0ed2360c><div class="p-4" data-v-0ed2360c><h2 class="text-lg font-medium mb-4 text-white" data-v-0ed2360c>表单元素</h2><div class="space-y-4" data-v-0ed2360c><div class="dark-input-group" data-v-0ed2360c><label class="text-gray-300" data-v-0ed2360c>文本输入</label><input type="text" placeholder="请输入内容" class="dark-input" data-v-0ed2360c></div><div class="dark-input-group" data-v-0ed2360c><label class="text-gray-300" data-v-0ed2360c>密码输入</label><input type="password" placeholder="请输入密码" class="dark-input" data-v-0ed2360c></div><div class="dark-input-group" data-v-0ed2360c><label class="text-gray-300" data-v-0ed2360c>下拉选择</label><select class="dark-input" data-v-0ed2360c><option data-v-0ed2360c>选项 1</option><option data-v-0ed2360c>选项 2</option><option data-v-0ed2360c>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-0ed2360c><label class="dark-checkbox" data-v-0ed2360c><input type="checkbox" data-v-0ed2360c><span class="dark-checkmark" data-v-0ed2360c></span><span class="text-gray-300" data-v-0ed2360c>复选框</span></label><label class="dark-radio" data-v-0ed2360c><input type="radio" name="radio" data-v-0ed2360c><span class="dark-radiomark" data-v-0ed2360c></span><span class="text-gray-300" data-v-0ed2360c>单选框</span></label></div><div class="dark-switch" data-v-0ed2360c><input type="checkbox" id="switch1" data-v-0ed2360c><label for="switch1" class="text-gray-300" data-v-0ed2360c>开关</label></div></div></div></div>',1)),p("div",Qet,[p("div",trt,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-white"},"按钮样式",-1)),p("div",ert,[a[16]||(a[16]=p("button",{class:"dark-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"dark-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"dark-button text"},"文本按钮",-1)),p("button",rrt,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="dark-card" data-v-0ed2360c><div class="p-4" data-v-0ed2360c><h2 class="text-lg font-medium mb-4 text-white" data-v-0ed2360c>进度指示器</h2><div class="space-y-4" data-v-0ed2360c><div class="dark-progress" data-v-0ed2360c><div class="dark-progress-bar" style="width:60%;" data-v-0ed2360c></div></div><div class="dark-progress circular" data-v-0ed2360c><div class="dark-progress-circle" data-v-0ed2360c></div></div></div></div></div>',1)),p("div",art,[p("div",nrt,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-white"},"对话框示例",-1)),p("button",{class:"dark-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",irt,[p("a",ort,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",srt,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",lrt,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",urt,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",crt,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",frt,[p("div",vrt,[p("div",drt,[a[28]||(a[28]=p("h3",{class:"text-white"},"对话框标题",-1)),p("button",{class:"dark-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"dark-dialog-content"},[p("p",{class:"text-gray-300"},"这是一个深色模式的对话框示例。")],-1)),p("div",hrt,[p("button",{class:"dark-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"dark-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},grt=Ce(prt,[["__scopeId","data-v-0ed2360c"]]),mrt={class:"retro-container min-h-screen bg-gradient-to-br from-orange-100 via-yellow-100 to-amber-100"},yrt={class:"retro-app-bar"},_rt={class:"container mx-auto px-4 py-3 flex items-center justify-between"},brt={class:"flex items-center"},xrt={class:"flex items-center space-x-4"},wrt={class:"retro-icon-button"},Srt={class:"retro-icon-button"},Mrt={class:"retro-icon-button"},Crt={class:"container mx-auto p-6"},Irt={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},Trt={class:"retro-card"},Art={class:"p-4"},Drt={class:"space-y-2"},Lrt={href:"#",class:"retro-nav-item active"},krt={href:"#",class:"retro-nav-item"},Prt={href:"#",class:"retro-nav-item"},Rrt={href:"#",class:"retro-nav-item"},Ert={class:"md:col-span-2 space-y-6"},Nrt={class:"retro-card"},$rt={class:"p-4"},Ort={class:"space-y-4"},zrt={class:"retro-list-item"},Brt={class:"retro-icon-button"},Vrt={class:"retro-list-item"},Grt={class:"retro-icon-button"},Frt={class:"retro-card"},Hrt={class:"p-4"},Wrt={class:"flex flex-wrap gap-4"},Zrt={class:"retro-button icon"},Yrt={class:"retro-card"},Urt={class:"p-4"},jrt={class:"retro-bottom-nav"},Xrt={href:"#",class:"retro-bottom-nav-item active"},qrt={href:"#",class:"retro-bottom-nav-item"},Krt={href:"#",class:"retro-bottom-nav-item"},Jrt={href:"#",class:"retro-bottom-nav-item"},Qrt={href:"#",class:"retro-bottom-nav-item"},tat={key:0,class:"retro-dialog-overlay"},eat={class:"retro-dialog"},rat={class:"retro-dialog-header"},aat={class:"retro-dialog-actions"},nat={__name:"RetroView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",mrt,[p("div",yrt,[p("div",_rt,[p("div",brt,[L(P(Tr),{class:"w-5 h-5 text-amber-900 mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-amber-900"},"Retro Design",-1))]),p("div",xrt,[p("button",wrt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",Srt,[L(P($t),{class:"w-5 h-5"})]),p("button",Mrt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",Crt,[p("div",Irt,[p("div",Trt,[p("div",Art,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-amber-900"},"导航菜单",-1)),p("nav",Drt,[p("a",Lrt,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",krt,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"retro-badge"},"12",-1))]),p("a",Prt,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",Rrt,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",Ert,[p("div",Nrt,[p("div",$rt,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-amber-900"},"卡片列表",-1)),p("div",Ort,[p("div",zrt,[a[11]||(a[11]=p("div",{class:"retro-avatar bg-gradient-to-br from-orange-400 to-yellow-400"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-amber-900"},"卡片标题"),p("p",{class:"text-amber-800"},"卡片副标题")],-1)),p("button",Brt,[L(P(pe),{class:"w-5 h-5"})])]),p("div",Vrt,[a[13]||(a[13]=p("div",{class:"retro-avatar bg-gradient-to-br from-yellow-400 to-amber-400"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-amber-900"},"另一个标题"),p("p",{class:"text-amber-800"},"另一个副标题")],-1)),p("button",Grt,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="retro-card" data-v-d46c4dbc><div class="p-4" data-v-d46c4dbc><h2 class="text-lg font-medium mb-4 text-amber-900" data-v-d46c4dbc>表单元素</h2><div class="space-y-4" data-v-d46c4dbc><div class="retro-input-group" data-v-d46c4dbc><label class="text-amber-800" data-v-d46c4dbc>文本输入</label><input type="text" placeholder="请输入内容" class="retro-input" data-v-d46c4dbc></div><div class="retro-input-group" data-v-d46c4dbc><label class="text-amber-800" data-v-d46c4dbc>密码输入</label><input type="password" placeholder="请输入密码" class="retro-input" data-v-d46c4dbc></div><div class="retro-input-group" data-v-d46c4dbc><label class="text-amber-800" data-v-d46c4dbc>下拉选择</label><select class="retro-input" data-v-d46c4dbc><option data-v-d46c4dbc>选项 1</option><option data-v-d46c4dbc>选项 2</option><option data-v-d46c4dbc>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-d46c4dbc><label class="retro-checkbox" data-v-d46c4dbc><input type="checkbox" data-v-d46c4dbc><span class="retro-checkmark" data-v-d46c4dbc></span><span class="text-amber-800" data-v-d46c4dbc>复选框</span></label><label class="retro-radio" data-v-d46c4dbc><input type="radio" name="radio" data-v-d46c4dbc><span class="retro-radiomark" data-v-d46c4dbc></span><span class="text-amber-800" data-v-d46c4dbc>单选框</span></label></div><div class="retro-switch" data-v-d46c4dbc><input type="checkbox" id="switch1" data-v-d46c4dbc><label for="switch1" class="text-amber-800" data-v-d46c4dbc>开关</label></div></div></div></div>',1)),p("div",Frt,[p("div",Hrt,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-amber-900"},"按钮样式",-1)),p("div",Wrt,[a[16]||(a[16]=p("button",{class:"retro-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"retro-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"retro-button text"},"文本按钮",-1)),p("button",Zrt,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="retro-card" data-v-d46c4dbc><div class="p-4" data-v-d46c4dbc><h2 class="text-lg font-medium mb-4 text-amber-900" data-v-d46c4dbc>进度指示器</h2><div class="space-y-4" data-v-d46c4dbc><div class="retro-progress" data-v-d46c4dbc><div class="retro-progress-bar" style="width:60%;" data-v-d46c4dbc></div></div><div class="retro-progress circular" data-v-d46c4dbc><div class="retro-progress-circle" data-v-d46c4dbc></div></div></div></div></div>',1)),p("div",Yrt,[p("div",Urt,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-amber-900"},"对话框示例",-1)),p("button",{class:"retro-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",jrt,[p("a",Xrt,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",qrt,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",Krt,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",Jrt,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",Qrt,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",tat,[p("div",eat,[p("div",rat,[a[28]||(a[28]=p("h3",{class:"text-amber-900"},"对话框标题",-1)),p("button",{class:"retro-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"retro-dialog-content"},[p("p",{class:"text-amber-800"},"这是一个复古风格的对话框示例。")],-1)),p("div",aat,[p("button",{class:"retro-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"retro-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},iat=Ce(nat,[["__scopeId","data-v-d46c4dbc"]]),oat={class:"three-d-container min-h-screen bg-gradient-to-br from-blue-900 to-purple-900"},sat={class:"three-d-header"},lat={class:"three-d-header-content"},uat={class:"three-d-header-actions"},cat={class:"three-d-btn text"},fat={class:"three-d-btn text"},vat={class:"three-d-btn text"},dat={class:"three-d-main"},hat={class:"three-d-card-list"},pat={class:"three-d-card-cover"},gat=["src","alt"],mat={class:"three-d-card-body"},yat={class:"three-d-card-meta"},_at={class:"three-d-card-meta-avatar"},bat={class:"three-d-card-meta-content"},xat={class:"three-d-card-meta-title"},wat={class:"three-d-card-meta-description"},Sat={class:"three-d-card-content"},Mat={class:"three-d-card-actions"},Cat={class:"three-d-btn text"},Iat={class:"three-d-btn text"},Tat={class:"three-d-btn text"},Aat={class:"three-d-tabs"},Dat={class:"three-d-tabs-nav"},Lat=["onClick"],kat={class:"three-d-tabs-content"},Pat={key:0,class:"three-d-tabs-tabpane"},Rat={key:1,class:"three-d-tabs-tabpane"},Eat={key:2,class:"three-d-tabs-tabpane"},Nat={key:0,class:"three-d-modal-mask"},$at={class:"three-d-modal-wrap"},Oat={class:"three-d-modal"},zat={class:"three-d-modal-content"},Bat={class:"three-d-modal-header"},Vat={class:"three-d-modal-footer"},Gat={key:1,class:"three-d-message"},Fat={class:"three-d-message-notice"},Hat={class:"three-d-message-notice-content"},Wat={key:2,class:"three-d-notification"},Zat={class:"three-d-notification-notice"},Yat={class:"three-d-notification-notice-content"},Uat={class:"three-d-notification-notice-icon"},jat="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTYgNEwwIDE2TDE2IDI4VDI4IDE2VDE2IDRaIiBmaWxsPSJ1cmwoI3BhaW50MCkiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MCIgeDE9IjAiIHkxPSIwIiB4Mj0iMzIiIHkyPSIzMiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiM0RjU1QjgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyRDM0NjAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",Xat={__name:"ThreeDDesignView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt("tab1"),i=nt([{id:1,title:"卡片标题",description:"副标题",content:"这是卡片的内容,可以包含多行文本。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2MCAyMEM4MC4yNjggMjAgMjAgODAuMjY4IDIwIDE2MEMyMCAyMzkuNzMyIDgwLjI2OCAzMDAgMTYwIDMwMEMyMzkuNzMyIDMwMCAzMDAgMjM5LjczMiAzMDAgMTYwQzMwMCA4MC4yNjggMjM5LjczMiAyMCAxNjAgMjBaIiBmaWxsPSJ1cmwoI3BhaW50MCkiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MCIgeDE9IjAiIHkxPSIwIiB4Mj0iMzIwIiB5Mj0iMjQwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzRGNTVCOCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzJEMzQ2MCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==",likes:42,comments:8,initials:"JD",avatarClass:"bg-blue-500"},{id:2,title:"另一个标题",description:"另一个副标题",content:"这是另一个卡片的内容。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2MCAyMEM4MC4yNjggMjAgMjAgODAuMjY4IDIwIDE2MEMyMCAyMzkuNzMyIDgwLjI2OCAzMDAgMTYwIDMwMEMyMzkuNzMyIDMwMCAzMDAgMjM5LjczMiAzMDAgMTYwQzMwMCA4MC4yNjggMjM5LjczMiAyMCAxNjAgMjBaIiBmaWxsPSJ1cmwoI3BhaW50MCkiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MCIgeDE9IjAiIHkxPSIwIiB4Mj0iMzIwIiB5Mj0iMjQwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzRGNTVCOCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzJEMzQ2MCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==",likes:36,comments:5,initials:"AB",avatarClass:"bg-blue-600"}]),o=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(s,l)=>(H(),W("div",oat,[p("div",sat,[p("div",lat,[p("div",{class:"three-d-logo"},[p("img",{src:jat,alt:"3D Design Logo",class:"three-d-logo-img"}),l[4]||(l[4]=p("span",{class:"three-d-logo-text"},"3D DESIGN",-1))]),l[5]||(l[5]=zt('<div class="three-d-nav" data-v-b59da191><a href="#" class="three-d-nav-item active" data-v-b59da191>首页</a><a href="#" class="three-d-nav-item" data-v-b59da191>组件</a><a href="#" class="three-d-nav-item" data-v-b59da191>文档</a><a href="#" class="three-d-nav-item" data-v-b59da191>主题</a></div>',1)),p("div",uat,[p("button",cat,[L(P(Ht),{class:"w-5 h-5"})]),p("button",fat,[L(P($t),{class:"w-5 h-5"})]),p("button",vat,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",dat,[p("div",hat,[(H(!0),W(Ft,null,re(i.value,u=>(H(),W("div",{key:u.id,class:"three-d-card"},[p("div",pat,[p("img",{src:u.cover,alt:u.title,class:"three-d-card-cover-img"},null,8,gat)]),p("div",mat,[p("div",yat,[p("div",_at,[p("div",{class:ie(["three-d-avatar",u.avatarClass])},at(u.initials),3)]),p("div",bat,[p("h3",xat,at(u.title),1),p("p",wat,at(u.description),1)])]),p("p",Sat,at(u.content),1),p("div",Mat,[p("button",Cat,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(u.likes),1)]),p("button",Iat,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(u.comments),1)]),p("button",Tat,[L(P(Ra),{class:"w-5 h-5"})])])])]))),128))]),l[14]||(l[14]=zt('<div class="three-d-form" data-v-b59da191><div class="three-d-form-item" data-v-b59da191><label class="three-d-form-item-label" data-v-b59da191>文本输入</label><div class="three-d-form-item-control" data-v-b59da191><input type="text" placeholder="请输入内容" class="three-d-input" data-v-b59da191></div></div><div class="three-d-form-item" data-v-b59da191><label class="three-d-form-item-label" data-v-b59da191>密码输入</label><div class="three-d-form-item-control" data-v-b59da191><input type="password" placeholder="请输入密码" class="three-d-input" data-v-b59da191></div></div><div class="three-d-form-item" data-v-b59da191><label class="three-d-form-item-label" data-v-b59da191>下拉选择</label><div class="three-d-form-item-control" data-v-b59da191><select class="three-d-select" data-v-b59da191><option data-v-b59da191>选项 1</option><option data-v-b59da191>选项 2</option><option data-v-b59da191>选项 3</option></select></div></div><div class="three-d-form-item" data-v-b59da191><label class="three-d-form-item-label" data-v-b59da191>开关</label><div class="three-d-form-item-control" data-v-b59da191><label class="three-d-switch" data-v-b59da191><input type="checkbox" data-v-b59da191><span class="three-d-switch-inner" data-v-b59da191></span></label></div></div></div><div class="three-d-btn-group" data-v-b59da191><button class="three-d-btn primary" data-v-b59da191>主要按钮</button><button class="three-d-btn secondary" data-v-b59da191>次要按钮</button><button class="three-d-btn outline" data-v-b59da191>轮廓按钮</button><button class="three-d-btn text" data-v-b59da191>文本按钮</button></div>',2)),p("div",Aat,[p("div",Dat,[(H(!0),W(Ft,null,re(o.value,u=>(H(),W("div",{key:u.id,class:ie(["three-d-tabs-tab",{active:n.value===u.id}]),onClick:c=>n.value=u.id},at(u.label),11,Lat))),128))]),p("div",kat,[n.value==="tab1"?(H(),W("div",Pat,l[6]||(l[6]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),n.value==="tab2"?(H(),W("div",Rat,l[7]||(l[7]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),n.value==="tab3"?(H(),W("div",Eat,l[8]||(l[8]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])]),t.value?(H(),W("div",Nat,[p("div",$at,[p("div",Oat,[p("div",zat,[p("div",Bat,[l[9]||(l[9]=p("div",{class:"three-d-modal-title"},"对话框标题",-1)),p("button",{class:"three-d-modal-close",onClick:l[0]||(l[0]=u=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),l[10]||(l[10]=p("div",{class:"three-d-modal-body"},[p("p",null,"这是一个3D风格的对话框示例。")],-1)),p("div",Vat,[p("button",{class:"three-d-btn",onClick:l[1]||(l[1]=u=>t.value=!1)},"取消"),p("button",{class:"three-d-btn primary",onClick:l[2]||(l[2]=u=>t.value=!1)},"确定")])])])])])):ct("",!0),e.value?(H(),W("div",Gat,[p("div",Fat,[p("div",Hat,[L(P(mn),{class:"w-5 h-5"}),l[11]||(l[11]=p("span",null,"这是一条消息提示",-1))])])])):ct("",!0),a.value?(H(),W("div",Wat,[p("div",Zat,[p("div",Yat,[p("div",Uat,[L(P($t),{class:"w-5 h-5"})]),l[12]||(l[12]=p("div",{class:"three-d-notification-notice-message"},"通知标题",-1)),l[13]||(l[13]=p("div",{class:"three-d-notification-notice-description"},"通知内容",-1))]),p("button",{class:"three-d-notification-notice-close",onClick:l[3]||(l[3]=u=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])])])):ct("",!0)])]))}},qat=Ce(Xat,[["__scopeId","data-v-b59da191"]]),Kat={class:"skeuomorphic-container min-h-screen bg-gradient-to-b from-gray-100 to-gray-200"},Jat={class:"skeuomorphic-app-bar"},Qat={class:"container mx-auto px-4 py-3 flex items-center justify-between"},tnt={class:"flex items-center"},ent={class:"flex items-center space-x-4"},rnt={class:"skeuomorphic-icon-button"},ant={class:"skeuomorphic-icon-button"},nnt={class:"skeuomorphic-icon-button"},int={class:"container mx-auto p-6"},ont={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},snt={class:"skeuomorphic-card"},lnt={class:"p-4"},unt={class:"space-y-2"},cnt={href:"#",class:"skeuomorphic-nav-item active"},fnt={href:"#",class:"skeuomorphic-nav-item"},vnt={href:"#",class:"skeuomorphic-nav-item"},dnt={href:"#",class:"skeuomorphic-nav-item"},hnt={class:"md:col-span-2 space-y-6"},pnt={class:"skeuomorphic-card"},gnt={class:"p-4"},mnt={class:"space-y-4"},ynt={class:"skeuomorphic-list-item"},_nt={class:"skeuomorphic-icon-button"},bnt={class:"skeuomorphic-list-item"},xnt={class:"skeuomorphic-icon-button"},wnt={class:"skeuomorphic-card"},Snt={class:"p-4"},Mnt={class:"flex flex-wrap gap-4"},Cnt={class:"skeuomorphic-button icon"},Int={class:"skeuomorphic-card"},Tnt={class:"p-4"},Ant={class:"skeuomorphic-bottom-nav"},Dnt={href:"#",class:"skeuomorphic-bottom-nav-item active"},Lnt={href:"#",class:"skeuomorphic-bottom-nav-item"},knt={href:"#",class:"skeuomorphic-bottom-nav-item"},Pnt={href:"#",class:"skeuomorphic-bottom-nav-item"},Rnt={href:"#",class:"skeuomorphic-bottom-nav-item"},Ent={key:0,class:"skeuomorphic-dialog-overlay"},Nnt={class:"skeuomorphic-dialog"},$nt={class:"skeuomorphic-dialog-header"},Ont={class:"skeuomorphic-dialog-actions"},znt={__name:"SkeuomorphicView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",Kat,[p("div",Jat,[p("div",Qat,[p("div",tnt,[L(P(Tr),{class:"w-5 h-5 text-gray-700 mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-gray-700"},"Skeuomorphic Design",-1))]),p("div",ent,[p("button",rnt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",ant,[L(P($t),{class:"w-5 h-5"})]),p("button",nnt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",int,[p("div",ont,[p("div",snt,[p("div",lnt,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-gray-700"},"导航菜单",-1)),p("nav",unt,[p("a",cnt,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",fnt,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"skeuomorphic-badge"},"12",-1))]),p("a",vnt,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",dnt,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",hnt,[p("div",pnt,[p("div",gnt,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-gray-700"},"卡片列表",-1)),p("div",mnt,[p("div",ynt,[a[11]||(a[11]=p("div",{class:"skeuomorphic-avatar bg-blue-500"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-gray-700"},"卡片标题"),p("p",{class:"text-gray-600"},"卡片副标题")],-1)),p("button",_nt,[L(P(pe),{class:"w-5 h-5"})])]),p("div",bnt,[a[13]||(a[13]=p("div",{class:"skeuomorphic-avatar bg-indigo-500"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-gray-700"},"另一个标题"),p("p",{class:"text-gray-600"},"另一个副标题")],-1)),p("button",xnt,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="skeuomorphic-card" data-v-8015740b><div class="p-4" data-v-8015740b><h2 class="text-lg font-medium mb-4 text-gray-700" data-v-8015740b>表单元素</h2><div class="space-y-4" data-v-8015740b><div class="skeuomorphic-input-group" data-v-8015740b><label class="text-gray-700" data-v-8015740b>文本输入</label><input type="text" placeholder="请输入内容" class="skeuomorphic-input" data-v-8015740b></div><div class="skeuomorphic-input-group" data-v-8015740b><label class="text-gray-700" data-v-8015740b>密码输入</label><input type="password" placeholder="请输入密码" class="skeuomorphic-input" data-v-8015740b></div><div class="skeuomorphic-input-group" data-v-8015740b><label class="text-gray-700" data-v-8015740b>下拉选择</label><select class="skeuomorphic-input" data-v-8015740b><option data-v-8015740b>选项 1</option><option data-v-8015740b>选项 2</option><option data-v-8015740b>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-8015740b><label class="skeuomorphic-checkbox" data-v-8015740b><input type="checkbox" data-v-8015740b><span class="skeuomorphic-checkmark" data-v-8015740b></span><span class="text-gray-700" data-v-8015740b>复选框</span></label><label class="skeuomorphic-radio" data-v-8015740b><input type="radio" name="radio" data-v-8015740b><span class="skeuomorphic-radiomark" data-v-8015740b></span><span class="text-gray-700" data-v-8015740b>单选框</span></label></div><div class="skeuomorphic-switch" data-v-8015740b><input type="checkbox" id="switch1" data-v-8015740b><label for="switch1" class="text-gray-700" data-v-8015740b>开关</label></div></div></div></div>',1)),p("div",wnt,[p("div",Snt,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-gray-700"},"按钮样式",-1)),p("div",Mnt,[a[16]||(a[16]=p("button",{class:"skeuomorphic-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"skeuomorphic-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"skeuomorphic-button text"},"文本按钮",-1)),p("button",Cnt,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="skeuomorphic-card" data-v-8015740b><div class="p-4" data-v-8015740b><h2 class="text-lg font-medium mb-4 text-gray-700" data-v-8015740b>进度指示器</h2><div class="space-y-4" data-v-8015740b><div class="skeuomorphic-progress" data-v-8015740b><div class="skeuomorphic-progress-bar" style="width:60%;" data-v-8015740b></div></div><div class="skeuomorphic-progress circular" data-v-8015740b><div class="skeuomorphic-progress-circle" data-v-8015740b></div></div></div></div></div>',1)),p("div",Int,[p("div",Tnt,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-gray-700"},"对话框示例",-1)),p("button",{class:"skeuomorphic-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",Ant,[p("a",Dnt,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",Lnt,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",knt,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",Pnt,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",Rnt,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",Ent,[p("div",Nnt,[p("div",$nt,[a[28]||(a[28]=p("h3",{class:"text-gray-700"},"对话框标题",-1)),p("button",{class:"skeuomorphic-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"skeuomorphic-dialog-content"},[p("p",{class:"text-gray-600"},"这是一个拟物化设计风格的对话框示例。")],-1)),p("div",Ont,[p("button",{class:"skeuomorphic-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"skeuomorphic-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},Bnt=Ce(znt,[["__scopeId","data-v-8015740b"]]),Vnt={class:"material-container min-h-screen bg-gray-50"},Gnt={class:"material-app-bar"},Fnt={class:"container mx-auto px-4 py-3 flex items-center justify-between"},Hnt={class:"flex items-center"},Wnt={class:"flex items-center space-x-4"},Znt={class:"material-icon-button"},Ynt={class:"material-icon-button"},Unt={class:"material-icon-button"},jnt={class:"container mx-auto p-6"},Xnt={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},qnt={class:"material-card"},Knt={class:"p-4"},Jnt={class:"space-y-2"},Qnt={href:"#",class:"material-nav-item active"},tit={href:"#",class:"material-nav-item"},eit={href:"#",class:"material-nav-item"},rit={href:"#",class:"material-nav-item"},ait={class:"md:col-span-2 space-y-6"},nit={class:"material-card"},iit={class:"p-4"},oit={class:"space-y-4"},sit={class:"material-list-item"},lit={class:"material-icon-button"},uit={class:"material-list-item"},cit={class:"material-icon-button"},fit={class:"material-card"},vit={class:"p-4"},dit={class:"flex flex-wrap gap-4"},hit={class:"material-button icon"},pit={class:"material-card"},git={class:"p-4"},mit={class:"material-bottom-nav"},yit={href:"#",class:"material-bottom-nav-item active"},_it={href:"#",class:"material-bottom-nav-item"},bit={href:"#",class:"material-bottom-nav-item"},xit={href:"#",class:"material-bottom-nav-item"},wit={href:"#",class:"material-bottom-nav-item"},Sit={key:0,class:"material-dialog-overlay"},Mit={class:"material-dialog"},Cit={class:"material-dialog-header"},Iit={class:"material-dialog-actions"},Tit={__name:"MaterialView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",Vnt,[p("div",Gnt,[p("div",Fnt,[p("div",Hnt,[L(P(Tr),{class:"w-5 h-5 text-white mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-white"},"Material Design",-1))]),p("div",Wnt,[p("button",Znt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",Ynt,[L(P($t),{class:"w-5 h-5"})]),p("button",Unt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",jnt,[p("div",Xnt,[p("div",qnt,[p("div",Knt,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"导航菜单",-1)),p("nav",Jnt,[p("a",Qnt,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",tit,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"material-badge"},"12",-1))]),p("a",eit,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",rit,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",ait,[p("div",nit,[p("div",iit,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"卡片列表",-1)),p("div",oit,[p("div",sit,[a[11]||(a[11]=p("div",{class:"material-avatar bg-blue-500"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-gray-900"},"卡片标题"),p("p",{class:"text-gray-600"},"卡片副标题")],-1)),p("button",lit,[L(P(pe),{class:"w-5 h-5"})])]),p("div",uit,[a[13]||(a[13]=p("div",{class:"material-avatar bg-indigo-500"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-gray-900"},"另一个标题"),p("p",{class:"text-gray-600"},"另一个副标题")],-1)),p("button",cit,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="material-card" data-v-63f28765><div class="p-4" data-v-63f28765><h2 class="text-lg font-medium mb-4 text-gray-900" data-v-63f28765>表单元素</h2><div class="space-y-4" data-v-63f28765><div class="material-input-group" data-v-63f28765><label class="text-gray-700" data-v-63f28765>文本输入</label><input type="text" placeholder="请输入内容" class="material-input" data-v-63f28765></div><div class="material-input-group" data-v-63f28765><label class="text-gray-700" data-v-63f28765>密码输入</label><input type="password" placeholder="请输入密码" class="material-input" data-v-63f28765></div><div class="material-input-group" data-v-63f28765><label class="text-gray-700" data-v-63f28765>下拉选择</label><select class="material-input" data-v-63f28765><option data-v-63f28765>选项 1</option><option data-v-63f28765>选项 2</option><option data-v-63f28765>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-63f28765><label class="material-checkbox" data-v-63f28765><input type="checkbox" data-v-63f28765><span class="material-checkmark" data-v-63f28765></span><span class="text-gray-700" data-v-63f28765>复选框</span></label><label class="material-radio" data-v-63f28765><input type="radio" name="radio" data-v-63f28765><span class="material-radiomark" data-v-63f28765></span><span class="text-gray-700" data-v-63f28765>单选框</span></label></div><div class="material-switch" data-v-63f28765><input type="checkbox" id="switch1" data-v-63f28765><label for="switch1" class="text-gray-700" data-v-63f28765>开关</label></div></div></div></div>',1)),p("div",fit,[p("div",vit,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"按钮样式",-1)),p("div",dit,[a[16]||(a[16]=p("button",{class:"material-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"material-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"material-button text"},"文本按钮",-1)),p("button",hit,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="material-card" data-v-63f28765><div class="p-4" data-v-63f28765><h2 class="text-lg font-medium mb-4 text-gray-900" data-v-63f28765>进度指示器</h2><div class="space-y-4" data-v-63f28765><div class="material-progress" data-v-63f28765><div class="material-progress-bar" style="width:60%;" data-v-63f28765></div></div><div class="material-progress circular" data-v-63f28765><div class="material-progress-circle" data-v-63f28765></div></div></div></div></div>',1)),p("div",pit,[p("div",git,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"对话框示例",-1)),p("button",{class:"material-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",mit,[p("a",yit,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",_it,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",bit,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",xit,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",wit,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",Sit,[p("div",Mit,[p("div",Cit,[a[28]||(a[28]=p("h3",{class:"text-gray-900"},"对话框标题",-1)),p("button",{class:"material-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"material-dialog-content"},[p("p",{class:"text-gray-600"},"这是一个 Material Design 风格的对话框示例。")],-1)),p("div",Iit,[p("button",{class:"material-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"material-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},Ait=Ce(Tit,[["__scopeId","data-v-63f28765"]]),Dit={class:"ios-container min-h-screen bg-gray-50"},Lit={class:"ios-nav-bar"},kit={class:"ios-nav-bar-content"},Pit={key:0,class:"ios-search-bar"},Rit={class:"ios-search-input"},Eit={class:"ios-content"},Nit={class:"ios-card-list"},$it={class:"ios-card-header"},Oit={class:"ios-card-info"},zit={class:"ios-card-title"},Bit={class:"ios-card-subtitle"},Vit={class:"ios-card-action"},Git={class:"ios-card-content"},Fit={class:"ios-card-footer"},Hit={class:"ios-button"},Wit={class:"ios-button"},Zit={class:"ios-button"},Yit={class:"ios-tabs"},Uit={class:"ios-tab-header"},jit=["onClick"],Xit={class:"ios-tab-content"},qit={key:0,class:"ios-tab-pane"},Kit={key:1,class:"ios-tab-pane"},Jit={key:2,class:"ios-tab-pane"},Qit={class:"ios-tab-bar"},tot={href:"#",class:"ios-tab-bar-item active"},eot={href:"#",class:"ios-tab-bar-item"},rot={href:"#",class:"ios-tab-bar-item"},aot={href:"#",class:"ios-tab-bar-item"},not={href:"#",class:"ios-tab-bar-item"},iot={key:1,class:"ios-dialog-overlay"},oot={class:"ios-dialog"},sot={class:"ios-dialog-actions"},lot={key:2,class:"ios-action-sheet"},uot={class:"ios-action-sheet-content"},cot={class:"ios-action-sheet-item"},fot={class:"ios-action-sheet-item"},vot={class:"ios-action-sheet-item destructive"},dot={__name:"IOSDesignView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt(!1),i=nt("tab1"),o=nt([{id:1,title:"卡片标题",subtitle:"副标题",content:"这是卡片的内容,可以包含多行文本。",likes:42,comments:8,initials:"JD",avatarClass:"bg-blue-500"},{id:2,title:"另一个标题",subtitle:"另一个副标题",content:"这是另一个卡片的内容。",likes:36,comments:5,initials:"AB",avatarClass:"bg-green-500"}]),s=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(l,u)=>(H(),W("div",Dit,[u[22]||(u[22]=zt('<div class="ios-status-bar" data-v-aa81dc6c><div class="ios-status-bar-time" data-v-aa81dc6c>9:41</div><div class="ios-status-bar-icons" data-v-aa81dc6c><div class="ios-signal" data-v-aa81dc6c></div><div class="ios-wifi" data-v-aa81dc6c></div><div class="ios-battery" data-v-aa81dc6c></div></div></div>',1)),p("div",Lit,[p("div",kit,[p("button",{class:"ios-nav-button",onClick:u[0]||(u[0]=c=>n.value=!n.value)},[L(P(Tr),{class:"w-5 h-5"})]),u[6]||(u[6]=p("h1",{class:"ios-nav-title"},"iOS Design",-1)),p("button",{class:"ios-nav-button",onClick:u[1]||(u[1]=c=>a.value=!a.value)},[L(P(Ht),{class:"w-5 h-5"})])])]),a.value?(H(),W("div",Pit,[p("div",Rit,[L(P(Ht),{class:"w-5 h-5 text-gray-400"}),u[7]||(u[7]=p("input",{type:"text",placeholder:"搜索",class:"ios-search-field"},null,-1)),p("button",{class:"ios-search-cancel",onClick:u[2]||(u[2]=c=>a.value=!1)},"取消")])])):ct("",!0),p("div",Eit,[p("div",Nit,[(H(!0),W(Ft,null,re(o.value,c=>(H(),W("div",{key:c.id,class:"ios-card"},[p("div",$it,[p("div",{class:ie(["ios-avatar",c.avatarClass])},at(c.initials),3),p("div",Oit,[p("h3",zit,at(c.title),1),p("p",Bit,at(c.subtitle),1)]),p("button",Vit,[L(P(pe),{class:"w-5 h-5"})])]),p("div",Git,[p("p",null,at(c.content),1)]),p("div",Fit,[p("button",Hit,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(c.likes),1)]),p("button",Wit,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(c.comments),1)]),p("button",Zit,[L(P(Ra),{class:"w-5 h-5"})])])]))),128))]),u[11]||(u[11]=zt('<div class="ios-form" data-v-aa81dc6c><div class="ios-form-group" data-v-aa81dc6c><label class="ios-label" data-v-aa81dc6c>文本输入</label><input type="text" placeholder="请输入内容" class="ios-input" data-v-aa81dc6c></div><div class="ios-form-group" data-v-aa81dc6c><label class="ios-label" data-v-aa81dc6c>密码输入</label><input type="password" placeholder="请输入密码" class="ios-input" data-v-aa81dc6c></div><div class="ios-form-group" data-v-aa81dc6c><label class="ios-label" data-v-aa81dc6c>下拉选择</label><select class="ios-input" data-v-aa81dc6c><option data-v-aa81dc6c>选项 1</option><option data-v-aa81dc6c>选项 2</option><option data-v-aa81dc6c>选项 3</option></select></div><div class="ios-form-group" data-v-aa81dc6c><label class="ios-switch" data-v-aa81dc6c><input type="checkbox" data-v-aa81dc6c><span class="ios-switch-slider" data-v-aa81dc6c></span><span class="ios-switch-label" data-v-aa81dc6c>开关</span></label></div></div><div class="ios-button-group" data-v-aa81dc6c><button class="ios-button primary" data-v-aa81dc6c>主要按钮</button><button class="ios-button secondary" data-v-aa81dc6c>次要按钮</button><button class="ios-button destructive" data-v-aa81dc6c>危险按钮</button></div>',2)),p("div",Yit,[p("div",Uit,[(H(!0),W(Ft,null,re(s.value,c=>(H(),W("button",{key:c.id,class:ie(["ios-tab",{active:i.value===c.id}]),onClick:f=>i.value=c.id},at(c.label),11,jit))),128))]),p("div",Xit,[i.value==="tab1"?(H(),W("div",qit,u[8]||(u[8]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),i.value==="tab2"?(H(),W("div",Kit,u[9]||(u[9]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),i.value==="tab3"?(H(),W("div",Jit,u[10]||(u[10]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])])]),p("div",Qit,[p("a",tot,[L(P(we),{class:"w-6 h-6"}),u[12]||(u[12]=p("span",null,"首页",-1))]),p("a",eot,[L(P(Ht),{class:"w-6 h-6"}),u[13]||(u[13]=p("span",null,"搜索",-1))]),p("a",rot,[L(P(ge),{class:"w-6 h-6"}),u[14]||(u[14]=p("span",null,"添加",-1))]),p("a",aot,[L(P($t),{class:"w-6 h-6"}),u[15]||(u[15]=p("span",null,"通知",-1))]),p("a",not,[L(P(Jt),{class:"w-6 h-6"}),u[16]||(u[16]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",iot,[p("div",oot,[u[17]||(u[17]=p("div",{class:"ios-dialog-header"},[p("h3",{class:"ios-dialog-title"},"对话框标题"),p("p",{class:"ios-dialog-message"},"这是一个 iOS 风格的对话框示例。")],-1)),p("div",sot,[p("button",{class:"ios-dialog-button cancel",onClick:u[3]||(u[3]=c=>t.value=!1)},"取消"),p("button",{class:"ios-dialog-button confirm",onClick:u[4]||(u[4]=c=>t.value=!1)},"确定")])])])):ct("",!0),e.value?(H(),W("div",lot,[p("div",uot,[u[21]||(u[21]=p("div",{class:"ios-action-sheet-title"},"选择操作",-1)),p("button",cot,[L(P(DQ),{class:"w-5 h-5"}),u[18]||(u[18]=p("span",null,"拍照",-1))]),p("button",fot,[L(P(NQ),{class:"w-5 h-5"}),u[19]||(u[19]=p("span",null,"从相册选择",-1))]),p("button",vot,[L(P(OQ),{class:"w-5 h-5"}),u[20]||(u[20]=p("span",null,"删除",-1))])]),p("button",{class:"ios-action-sheet-cancel",onClick:u[5]||(u[5]=c=>e.value=!1)},"取消")])):ct("",!0)]))}},hot=Ce(dot,[["__scopeId","data-v-aa81dc6c"]]),pot={class:"fluent-container min-h-screen bg-gray-50"},got={class:"fluent-app-bar"},mot={class:"container mx-auto px-4 py-3 flex items-center justify-between"},yot={class:"flex items-center"},_ot={class:"flex items-center space-x-4"},bot={class:"fluent-search-box"},xot={key:0,class:"fluent-badge"},wot={class:"space-y-2"},Sot={href:"#",class:"fluent-nav-item active"},Mot={href:"#",class:"fluent-nav-item"},Cot={href:"#",class:"fluent-nav-item"},Iot={href:"#",class:"fluent-nav-item"},Tot={class:"container mx-auto p-6"},Aot={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},Dot={class:"fluent-card"},Lot={class:"p-4"},kot={class:"grid grid-cols-2 gap-4"},Pot={class:"fluent-stat-card"},Rot={class:"fluent-stat-icon"},Eot={class:"fluent-stat-card"},Not={class:"fluent-stat-icon"},$ot={class:"fluent-card md:col-span-2"},Oot={class:"p-4"},zot={class:"fluent-chart"},Bot={class:"h-48 flex items-end space-x-2"},Vot={class:"fluent-card"},Got={class:"p-4"},Fot={class:"space-y-4"},Hot={class:"fluent-checkbox"},Wot=["onUpdate:modelValue"],Zot={class:"flex-1"},Yot={class:"text-sm text-gray-500"},Uot={class:"fluent-icon-button"},jot={class:"fluent-card md:col-span-2"},Xot={class:"p-4"},qot={class:"space-y-4"},Kot={class:"flex-1"},Jot={class:"flex justify-between"},Qot={class:"font-medium"},tst={class:"text-sm text-gray-500"},est={class:"text-gray-600"},rst={class:"fluent-icon-button"},ast={class:"fluent-card"},nst={class:"p-4"},ist={class:"space-y-4"},ost={class:"flex flex-wrap gap-4"},sst={class:"fluent-button icon"},lst={class:"flex flex-wrap gap-4"},ust={class:"fluent-button loading"},cst={class:"fluent-card md:col-span-3"},fst={class:"p-4"},vst={class:"fluent-tabs"},dst=["onClick"],hst={class:"mt-4"},pst={key:0,class:"fluent-tab-content"},gst={key:1,class:"fluent-tab-content"},mst={key:2,class:"fluent-tab-content"},yst={class:"fluent-bottom-nav"},_st={href:"#",class:"fluent-bottom-nav-item active"},bst={href:"#",class:"fluent-bottom-nav-item"},xst={href:"#",class:"fluent-bottom-nav-item"},wst={href:"#",class:"fluent-bottom-nav-item"},Sst={href:"#",class:"fluent-bottom-nav-item"},Mst={key:0,class:"fluent-dialog-overlay"},Cst={class:"fluent-dialog"},Ist={class:"fluent-dialog-header"},Tst={class:"fluent-dialog-actions"},Ast={key:1,class:"fluent-notification-panel"},Dst={class:"fluent-notification-header"},Lst={class:"fluent-notification-list"},kst={class:"fluent-notification-icon"},Pst={class:"flex-1"},Rst={class:"font-medium"},Est={class:"text-sm text-gray-500"},Nst={class:"text-xs text-gray-400"},$st={key:2,class:"fluent-profile-panel"},Ost={class:"fluent-profile-header"},zst={class:"fluent-profile-menu"},Bst={href:"#",class:"fluent-profile-menu-item"},Vst={href:"#",class:"fluent-profile-menu-item"},Gst={href:"#",class:"fluent-profile-menu-item"},Fst={__name:"FluentDesignView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt(!1),i=nt("tab1"),o=nt(3),s=nt([{id:1,title:"完成项目报告",dueDate:"今天",completed:!1},{id:2,title:"回复客户邮件",dueDate:"明天",completed:!0},{id:3,title:"准备会议材料",dueDate:"后天",completed:!1}]),l=nt([{id:1,sender:"Alice",content:"你好,请问项目进展如何?",time:"10:30",initials:"A",avatarClass:"bg-blue-500"},{id:2,sender:"Bob",content:"会议时间改到下午3点",time:"09:15",initials:"B",avatarClass:"bg-green-500"}]),u=nt([{id:1,title:"新消息",content:"Alice 给你发送了一条消息",time:"刚刚"},{id:2,title:"系统通知",content:"系统将在今晚进行维护",time:"1小时前"}]),c=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(f,v)=>(H(),W("div",pot,[p("div",got,[p("div",mot,[p("div",yot,[p("button",{class:"fluent-icon-button",onClick:v[0]||(v[0]=d=>n.value=!n.value)},[L(P(Tr),{class:"w-5 h-5"})]),v[8]||(v[8]=p("h1",{class:"text-xl font-medium text-gray-900 ml-4"},"Fluent Design",-1))]),p("div",_ot,[p("div",bot,[L(P(Ht),{class:"w-5 h-5 text-gray-500"}),v[9]||(v[9]=p("input",{type:"text",placeholder:"搜索...",class:"fluent-search-input"},null,-1))]),p("button",{class:"fluent-icon-button",onClick:v[1]||(v[1]=d=>e.value=!e.value)},[L(P($t),{class:"w-5 h-5"}),o.value>0?(H(),W("span",xot,at(o.value),1)):ct("",!0)]),p("button",{class:"fluent-icon-button",onClick:v[2]||(v[2]=d=>a.value=!a.value)},[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",{class:ie(["fluent-side-menu",{"is-open":n.value}])},[p("nav",wot,[p("a",Sot,[L(P(we),{class:"w-5 h-5"}),v[10]||(v[10]=p("span",null,"首页",-1))]),p("a",Mot,[L(P($r),{class:"w-5 h-5"}),v[11]||(v[11]=p("span",null,"收件箱",-1)),v[12]||(v[12]=p("span",{class:"fluent-badge"},"12",-1))]),p("a",Cot,[L(P(Or),{class:"w-5 h-5"}),v[13]||(v[13]=p("span",null,"收藏",-1))]),p("a",Iot,[L(P(fr),{class:"w-5 h-5"}),v[14]||(v[14]=p("span",null,"设置",-1))])])],2),p("div",Tot,[p("div",Aot,[p("div",Dot,[p("div",Lot,[v[17]||(v[17]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"数据统计",-1)),p("div",kot,[p("div",Pot,[p("div",Rot,[L(P(i4),{class:"w-6 h-6"})]),v[15]||(v[15]=p("div",{class:"fluent-stat-content"},[p("span",{class:"text-gray-500"},"用户数"),p("span",{class:"text-2xl font-bold"},"1,234")],-1))]),p("div",Eot,[p("div",Not,[L(P(r4),{class:"w-6 h-6"})]),v[16]||(v[16]=p("div",{class:"fluent-stat-content"},[p("span",{class:"text-gray-500"},"活跃度"),p("span",{class:"text-2xl font-bold"},"89%")],-1))])])])]),p("div",$ot,[p("div",Oot,[v[18]||(v[18]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"数据趋势",-1)),p("div",zot,[p("div",Bot,[(H(),W(Ft,null,re(7,d=>p("div",{key:d,class:"fluent-chart-bar",style:Ac({height:`${Math.random()*100}%`})},null,4)),64))])])])]),p("div",Vot,[p("div",Got,[v[20]||(v[20]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"任务列表",-1)),p("div",Fot,[(H(!0),W(Ft,null,re(s.value,d=>(H(),W("div",{key:d.id,class:"fluent-task-item"},[p("label",Hot,[hr(p("input",{type:"checkbox","onUpdate:modelValue":h=>d.completed=h},null,8,Wot),[[Wv,d.completed]]),v[19]||(v[19]=p("span",{class:"fluent-checkmark"},null,-1))]),p("div",Zot,[p("h3",{class:ie(["font-medium",{"line-through text-gray-400":d.completed}])},at(d.title),3),p("p",Yot,at(d.dueDate),1)]),p("button",Uot,[L(P(pe),{class:"w-5 h-5"})])]))),128))])])]),p("div",jot,[p("div",Xot,[v[21]||(v[21]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"消息列表",-1)),p("div",qot,[(H(!0),W(Ft,null,re(l.value,d=>(H(),W("div",{key:d.id,class:"fluent-message-item"},[p("div",{class:ie(["fluent-avatar",d.avatarClass])},at(d.initials),3),p("div",Kot,[p("div",Jot,[p("h3",Qot,at(d.sender),1),p("span",tst,at(d.time),1)]),p("p",est,at(d.content),1)]),p("button",rst,[L(P(pe),{class:"w-5 h-5"})])]))),128))])])]),v[32]||(v[32]=zt('<div class="fluent-card" data-v-0a64c6d6><div class="p-4" data-v-0a64c6d6><h2 class="text-lg font-medium mb-4 text-gray-900" data-v-0a64c6d6>表单元素</h2><div class="space-y-4" data-v-0a64c6d6><div class="fluent-input-group" data-v-0a64c6d6><label class="text-gray-600" data-v-0a64c6d6>文本输入</label><input type="text" placeholder="请输入内容" class="fluent-input" data-v-0a64c6d6></div><div class="fluent-input-group" data-v-0a64c6d6><label class="text-gray-600" data-v-0a64c6d6>密码输入</label><input type="password" placeholder="请输入密码" class="fluent-input" data-v-0a64c6d6></div><div class="fluent-input-group" data-v-0a64c6d6><label class="text-gray-600" data-v-0a64c6d6>下拉选择</label><select class="fluent-input" data-v-0a64c6d6><option data-v-0a64c6d6>选项 1</option><option data-v-0a64c6d6>选项 2</option><option data-v-0a64c6d6>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-0a64c6d6><label class="fluent-checkbox" data-v-0a64c6d6><input type="checkbox" data-v-0a64c6d6><span class="fluent-checkmark" data-v-0a64c6d6></span><span class="text-gray-600" data-v-0a64c6d6>复选框</span></label><label class="fluent-radio" data-v-0a64c6d6><input type="radio" name="radio" data-v-0a64c6d6><span class="fluent-radiomark" data-v-0a64c6d6></span><span class="text-gray-600" data-v-0a64c6d6>单选框</span></label></div><div class="fluent-switch" data-v-0a64c6d6><input type="checkbox" id="switch1" data-v-0a64c6d6><label for="switch1" class="text-gray-600" data-v-0a64c6d6>开关</label></div></div></div></div>',1)),p("div",ast,[p("div",nst,[v[27]||(v[27]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"按钮样式",-1)),p("div",ist,[p("div",ost,[v[22]||(v[22]=p("button",{class:"fluent-button"},"主要按钮",-1)),v[23]||(v[23]=p("button",{class:"fluent-button outlined"},"次要按钮",-1)),v[24]||(v[24]=p("button",{class:"fluent-button text"},"文本按钮",-1)),p("button",sst,[L(P(ge),{class:"w-5 h-5"})])]),p("div",lst,[v[25]||(v[25]=p("button",{class:"fluent-button small"},"小按钮",-1)),v[26]||(v[26]=p("button",{class:"fluent-button large"},"大按钮",-1)),p("button",ust,[L(P(a4),{class:"w-5 h-5 animate-spin"})])])])])]),v[33]||(v[33]=zt('<div class="fluent-card" data-v-0a64c6d6><div class="p-4" data-v-0a64c6d6><h2 class="text-lg font-medium mb-4 text-gray-900" data-v-0a64c6d6>进度指示器</h2><div class="space-y-4" data-v-0a64c6d6><div class="fluent-progress" data-v-0a64c6d6><div class="fluent-progress-bar" style="width:60%;" data-v-0a64c6d6></div></div><div class="fluent-progress circular" data-v-0a64c6d6><div class="fluent-progress-circle" data-v-0a64c6d6></div></div><div class="flex justify-between text-sm text-gray-500" data-v-0a64c6d6><span data-v-0a64c6d6>0%</span><span data-v-0a64c6d6>60%</span><span data-v-0a64c6d6>100%</span></div></div></div></div>',1)),p("div",cst,[p("div",fst,[v[31]||(v[31]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"标签页",-1)),p("div",vst,[(H(!0),W(Ft,null,re(c.value,d=>(H(),W("button",{key:d.id,class:ie(["fluent-tab",{active:i.value===d.id}]),onClick:h=>i.value=d.id},at(d.label),11,dst))),128))]),p("div",hst,[i.value==="tab1"?(H(),W("div",pst,v[28]||(v[28]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),i.value==="tab2"?(H(),W("div",gst,v[29]||(v[29]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),i.value==="tab3"?(H(),W("div",mst,v[30]||(v[30]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])])])])]),p("div",yst,[p("a",_st,[L(P(we),{class:"w-6 h-6"}),v[34]||(v[34]=p("span",null,"首页",-1))]),p("a",bst,[L(P(Ht),{class:"w-6 h-6"}),v[35]||(v[35]=p("span",null,"搜索",-1))]),p("a",xst,[L(P(ge),{class:"w-6 h-6"}),v[36]||(v[36]=p("span",null,"添加",-1))]),p("a",wst,[L(P($t),{class:"w-6 h-6"}),v[37]||(v[37]=p("span",null,"通知",-1))]),p("a",Sst,[L(P(Jt),{class:"w-6 h-6"}),v[38]||(v[38]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",Mst,[p("div",Cst,[p("div",Ist,[v[39]||(v[39]=p("h3",{class:"text-gray-900"},"对话框标题",-1)),p("button",{class:"fluent-icon-button",onClick:v[3]||(v[3]=d=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),v[40]||(v[40]=p("div",{class:"fluent-dialog-content"},[p("p",{class:"text-gray-600"},"这是一个 Fluent Design 风格的对话框示例。")],-1)),p("div",Tst,[p("button",{class:"fluent-button text",onClick:v[4]||(v[4]=d=>t.value=!1)},"取消"),p("button",{class:"fluent-button",onClick:v[5]||(v[5]=d=>t.value=!1)},"确定")])])])):ct("",!0),e.value?(H(),W("div",Ast,[p("div",Dst,[v[41]||(v[41]=p("h3",{class:"text-gray-900"},"通知",-1)),p("button",{class:"fluent-icon-button",onClick:v[6]||(v[6]=d=>e.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),p("div",Lst,[(H(!0),W(Ft,null,re(u.value,d=>(H(),W("div",{key:d.id,class:"fluent-notification-item"},[p("div",kst,[L(P($t),{class:"w-5 h-5"})]),p("div",Pst,[p("h4",Rst,at(d.title),1),p("p",Est,at(d.content),1)]),p("span",Nst,at(d.time),1)]))),128))])])):ct("",!0),a.value?(H(),W("div",$st,[p("div",Ost,[v[42]||(v[42]=p("div",{class:"fluent-avatar large"},"JD",-1)),v[43]||(v[43]=p("div",{class:"ml-4"},[p("h3",{class:"font-medium"},"John Doe"),p("p",{class:"text-sm text-gray-500"},"john.doe@example.com")],-1)),p("button",{class:"fluent-icon-button",onClick:v[7]||(v[7]=d=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),p("div",zst,[p("a",Bst,[L(P(Jt),{class:"w-5 h-5"}),v[44]||(v[44]=p("span",null,"个人资料",-1))]),p("a",Vst,[L(P(fr),{class:"w-5 h-5"}),v[45]||(v[45]=p("span",null,"设置",-1))]),p("a",Gst,[L(P(n4),{class:"w-5 h-5"}),v[46]||(v[46]=p("span",null,"退出登录",-1))])])])):ct("",!0)]))}},Hst=Ce(Fst,[["__scopeId","data-v-0a64c6d6"]]),Wst={class:"neu-container min-h-screen bg-gray-100"},Zst={class:"neu-app-bar"},Yst={class:"container mx-auto px-4 py-3 flex items-center justify-between"},Ust={class:"flex items-center"},jst={class:"flex items-center space-x-4"},Xst={class:"neu-search-box"},qst={key:0,class:"neu-badge"},Kst={class:"space-y-2"},Jst={href:"#",class:"neu-nav-item active"},Qst={href:"#",class:"neu-nav-item"},tlt={href:"#",class:"neu-nav-item"},elt={href:"#",class:"neu-nav-item"},rlt={class:"container mx-auto p-6"},alt={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},nlt={class:"neu-card"},ilt={class:"p-4"},olt={class:"grid grid-cols-2 gap-4"},slt={class:"neu-stat-card"},llt={class:"neu-stat-icon"},ult={class:"neu-stat-card"},clt={class:"neu-stat-icon"},flt={class:"neu-card md:col-span-2"},vlt={class:"p-4"},dlt={class:"neu-chart"},hlt={class:"h-48 flex items-end space-x-2"},plt={class:"neu-card"},glt={class:"p-4"},mlt={class:"space-y-4"},ylt={class:"neu-checkbox"},_lt=["onUpdate:modelValue"],blt={class:"flex-1"},xlt={class:"text-sm text-gray-500"},wlt={class:"neu-icon-button"},Slt={class:"neu-card md:col-span-2"},Mlt={class:"p-4"},Clt={class:"space-y-4"},Ilt={class:"flex-1"},Tlt={class:"flex justify-between"},Alt={class:"font-medium"},Dlt={class:"text-sm text-gray-500"},Llt={class:"text-gray-600"},klt={class:"neu-icon-button"},Plt={class:"neu-card"},Rlt={class:"p-4"},Elt={class:"space-y-4"},Nlt={class:"flex flex-wrap gap-4"},$lt={class:"neu-button icon"},Olt={class:"flex flex-wrap gap-4"},zlt={class:"neu-button loading"},Blt={class:"neu-card md:col-span-3"},Vlt={class:"p-4"},Glt={class:"neu-tabs"},Flt=["onClick"],Hlt={class:"mt-4"},Wlt={key:0,class:"neu-tab-content"},Zlt={key:1,class:"neu-tab-content"},Ylt={key:2,class:"neu-tab-content"},Ult={class:"neu-bottom-nav"},jlt={href:"#",class:"neu-bottom-nav-item active"},Xlt={href:"#",class:"neu-bottom-nav-item"},qlt={href:"#",class:"neu-bottom-nav-item"},Klt={href:"#",class:"neu-bottom-nav-item"},Jlt={href:"#",class:"neu-bottom-nav-item"},Qlt={key:0,class:"neu-dialog-overlay"},tut={class:"neu-dialog"},eut={class:"neu-dialog-header"},rut={class:"neu-dialog-actions"},aut={key:1,class:"neu-notification-panel"},nut={class:"neu-notification-header"},iut={class:"neu-notification-list"},out={class:"neu-notification-icon"},sut={class:"flex-1"},lut={class:"font-medium"},uut={class:"text-sm text-gray-500"},cut={class:"text-xs text-gray-400"},fut={key:2,class:"neu-profile-panel"},vut={class:"neu-profile-header"},dut={class:"neu-profile-menu"},hut={href:"#",class:"neu-profile-menu-item"},put={href:"#",class:"neu-profile-menu-item"},gut={href:"#",class:"neu-profile-menu-item"},mut={__name:"NeumorphismView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt(!1),i=nt("tab1"),o=nt(3),s=nt([{id:1,title:"完成项目报告",dueDate:"今天",completed:!1},{id:2,title:"回复客户邮件",dueDate:"明天",completed:!0},{id:3,title:"准备会议材料",dueDate:"后天",completed:!1}]),l=nt([{id:1,sender:"Alice",content:"你好,请问项目进展如何?",time:"10:30",initials:"A",avatarClass:"bg-blue-500"},{id:2,sender:"Bob",content:"会议时间改到下午3点",time:"09:15",initials:"B",avatarClass:"bg-green-500"}]),u=nt([{id:1,title:"新消息",content:"Alice 给你发送了一条消息",time:"刚刚"},{id:2,title:"系统通知",content:"系统将在今晚进行维护",time:"1小时前"}]),c=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(f,v)=>(H(),W("div",Wst,[p("div",Zst,[p("div",Yst,[p("div",Ust,[p("button",{class:"neu-icon-button",onClick:v[0]||(v[0]=d=>n.value=!n.value)},[L(P(Tr),{class:"w-5 h-5"})]),v[8]||(v[8]=p("h1",{class:"text-xl font-medium text-gray-700 ml-4"},"Neumorphism",-1))]),p("div",jst,[p("div",Xst,[L(P(Ht),{class:"w-5 h-5 text-gray-500"}),v[9]||(v[9]=p("input",{type:"text",placeholder:"搜索...",class:"neu-search-input"},null,-1))]),p("button",{class:"neu-icon-button",onClick:v[1]||(v[1]=d=>e.value=!e.value)},[L(P($t),{class:"w-5 h-5"}),o.value>0?(H(),W("span",qst,at(o.value),1)):ct("",!0)]),p("button",{class:"neu-icon-button",onClick:v[2]||(v[2]=d=>a.value=!a.value)},[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",{class:ie(["neu-side-menu",{"is-open":n.value}])},[p("nav",Kst,[p("a",Jst,[L(P(we),{class:"w-5 h-5"}),v[10]||(v[10]=p("span",null,"首页",-1))]),p("a",Qst,[L(P($r),{class:"w-5 h-5"}),v[11]||(v[11]=p("span",null,"收件箱",-1)),v[12]||(v[12]=p("span",{class:"neu-badge"},"12",-1))]),p("a",tlt,[L(P(Or),{class:"w-5 h-5"}),v[13]||(v[13]=p("span",null,"收藏",-1))]),p("a",elt,[L(P(fr),{class:"w-5 h-5"}),v[14]||(v[14]=p("span",null,"设置",-1))])])],2),p("div",rlt,[p("div",alt,[p("div",nlt,[p("div",ilt,[v[17]||(v[17]=p("h2",{class:"text-lg font-medium mb-4 text-gray-700"},"数据统计",-1)),p("div",olt,[p("div",slt,[p("div",llt,[L(P(i4),{class:"w-6 h-6"})]),v[15]||(v[15]=p("div",{class:"neu-stat-content"},[p("span",{class:"text-gray-500"},"用户数"),p("span",{class:"text-2xl font-bold"},"1,234")],-1))]),p("div",ult,[p("div",clt,[L(P(r4),{class:"w-6 h-6"})]),v[16]||(v[16]=p("div",{class:"neu-stat-content"},[p("span",{class:"text-gray-500"},"活跃度"),p("span",{class:"text-2xl font-bold"},"89%")],-1))])])])]),p("div",flt,[p("div",vlt,[v[18]||(v[18]=p("h2",{class:"text-lg font-medium mb-4 text-gray-700"},"数据趋势",-1)),p("div",dlt,[p("div",hlt,[(H(),W(Ft,null,re(7,d=>p("div",{key:d,class:"neu-chart-bar",style:Ac({height:`${Math.random()*100}%`})},null,4)),64))])])])]),p("div",plt,[p("div",glt,[v[20]||(v[20]=p("h2",{class:"text-lg font-medium mb-4 text-gray-700"},"任务列表",-1)),p("div",mlt,[(H(!0),W(Ft,null,re(s.value,d=>(H(),W("div",{key:d.id,class:"neu-task-item"},[p("label",ylt,[hr(p("input",{type:"checkbox","onUpdate:modelValue":h=>d.completed=h},null,8,_lt),[[Wv,d.completed]]),v[19]||(v[19]=p("span",{class:"neu-checkmark"},null,-1))]),p("div",blt,[p("h3",{class:ie(["font-medium",{"line-through text-gray-400":d.completed}])},at(d.title),3),p("p",xlt,at(d.dueDate),1)]),p("button",wlt,[L(P(pe),{class:"w-5 h-5"})])]))),128))])])]),p("div",Slt,[p("div",Mlt,[v[21]||(v[21]=p("h2",{class:"text-lg font-medium mb-4 text-gray-700"},"消息列表",-1)),p("div",Clt,[(H(!0),W(Ft,null,re(l.value,d=>(H(),W("div",{key:d.id,class:"neu-message-item"},[p("div",{class:ie(["neu-avatar",d.avatarClass])},at(d.initials),3),p("div",Ilt,[p("div",Tlt,[p("h3",Alt,at(d.sender),1),p("span",Dlt,at(d.time),1)]),p("p",Llt,at(d.content),1)]),p("button",klt,[L(P(pe),{class:"w-5 h-5"})])]))),128))])])]),v[32]||(v[32]=zt('<div class="neu-card" data-v-2eec1b47><div class="p-4" data-v-2eec1b47><h2 class="text-lg font-medium mb-4 text-gray-700" data-v-2eec1b47>表单元素</h2><div class="space-y-4" data-v-2eec1b47><div class="neu-input-group" data-v-2eec1b47><label class="text-gray-600" data-v-2eec1b47>文本输入</label><input type="text" placeholder="请输入内容" class="neu-input" data-v-2eec1b47></div><div class="neu-input-group" data-v-2eec1b47><label class="text-gray-600" data-v-2eec1b47>密码输入</label><input type="password" placeholder="请输入密码" class="neu-input" data-v-2eec1b47></div><div class="neu-input-group" data-v-2eec1b47><label class="text-gray-600" data-v-2eec1b47>下拉选择</label><select class="neu-input" data-v-2eec1b47><option data-v-2eec1b47>选项 1</option><option data-v-2eec1b47>选项 2</option><option data-v-2eec1b47>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-2eec1b47><label class="neu-checkbox" data-v-2eec1b47><input type="checkbox" data-v-2eec1b47><span class="neu-checkmark" data-v-2eec1b47></span><span class="text-gray-600" data-v-2eec1b47>复选框</span></label><label class="neu-radio" data-v-2eec1b47><input type="radio" name="radio" data-v-2eec1b47><span class="neu-radiomark" data-v-2eec1b47></span><span class="text-gray-600" data-v-2eec1b47>单选框</span></label></div><div class="neu-switch" data-v-2eec1b47><input type="checkbox" id="switch1" data-v-2eec1b47><label for="switch1" class="text-gray-600" data-v-2eec1b47>开关</label></div></div></div></div>',1)),p("div",Plt,[p("div",Rlt,[v[27]||(v[27]=p("h2",{class:"text-lg font-medium mb-4 text-gray-700"},"按钮样式",-1)),p("div",Elt,[p("div",Nlt,[v[22]||(v[22]=p("button",{class:"neu-button"},"主要按钮",-1)),v[23]||(v[23]=p("button",{class:"neu-button outlined"},"次要按钮",-1)),v[24]||(v[24]=p("button",{class:"neu-button text"},"文本按钮",-1)),p("button",$lt,[L(P(ge),{class:"w-5 h-5"})])]),p("div",Olt,[v[25]||(v[25]=p("button",{class:"neu-button small"},"小按钮",-1)),v[26]||(v[26]=p("button",{class:"neu-button large"},"大按钮",-1)),p("button",zlt,[L(P(a4),{class:"w-5 h-5 animate-spin"})])])])])]),v[33]||(v[33]=zt('<div class="neu-card" data-v-2eec1b47><div class="p-4" data-v-2eec1b47><h2 class="text-lg font-medium mb-4 text-gray-700" data-v-2eec1b47>进度指示器</h2><div class="space-y-4" data-v-2eec1b47><div class="neu-progress" data-v-2eec1b47><div class="neu-progress-bar" style="width:60%;" data-v-2eec1b47></div></div><div class="neu-progress circular" data-v-2eec1b47><div class="neu-progress-circle" data-v-2eec1b47></div></div><div class="flex justify-between text-sm text-gray-500" data-v-2eec1b47><span data-v-2eec1b47>0%</span><span data-v-2eec1b47>60%</span><span data-v-2eec1b47>100%</span></div></div></div></div>',1)),p("div",Blt,[p("div",Vlt,[v[31]||(v[31]=p("h2",{class:"text-lg font-medium mb-4 text-gray-700"},"标签页",-1)),p("div",Glt,[(H(!0),W(Ft,null,re(c.value,d=>(H(),W("button",{key:d.id,class:ie(["neu-tab",{active:i.value===d.id}]),onClick:h=>i.value=d.id},at(d.label),11,Flt))),128))]),p("div",Hlt,[i.value==="tab1"?(H(),W("div",Wlt,v[28]||(v[28]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),i.value==="tab2"?(H(),W("div",Zlt,v[29]||(v[29]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),i.value==="tab3"?(H(),W("div",Ylt,v[30]||(v[30]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])])])])]),p("div",Ult,[p("a",jlt,[L(P(we),{class:"w-6 h-6"}),v[34]||(v[34]=p("span",null,"首页",-1))]),p("a",Xlt,[L(P(Ht),{class:"w-6 h-6"}),v[35]||(v[35]=p("span",null,"搜索",-1))]),p("a",qlt,[L(P(ge),{class:"w-6 h-6"}),v[36]||(v[36]=p("span",null,"添加",-1))]),p("a",Klt,[L(P($t),{class:"w-6 h-6"}),v[37]||(v[37]=p("span",null,"通知",-1))]),p("a",Jlt,[L(P(Jt),{class:"w-6 h-6"}),v[38]||(v[38]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",Qlt,[p("div",tut,[p("div",eut,[v[39]||(v[39]=p("h3",{class:"text-gray-700"},"对话框标题",-1)),p("button",{class:"neu-icon-button",onClick:v[3]||(v[3]=d=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),v[40]||(v[40]=p("div",{class:"neu-dialog-content"},[p("p",{class:"text-gray-600"},"这是一个 Neumorphism 风格的对话框示例。")],-1)),p("div",rut,[p("button",{class:"neu-button text",onClick:v[4]||(v[4]=d=>t.value=!1)},"取消"),p("button",{class:"neu-button",onClick:v[5]||(v[5]=d=>t.value=!1)},"确定")])])])):ct("",!0),e.value?(H(),W("div",aut,[p("div",nut,[v[41]||(v[41]=p("h3",{class:"text-gray-700"},"通知",-1)),p("button",{class:"neu-icon-button",onClick:v[6]||(v[6]=d=>e.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),p("div",iut,[(H(!0),W(Ft,null,re(u.value,d=>(H(),W("div",{key:d.id,class:"neu-notification-item"},[p("div",out,[L(P($t),{class:"w-5 h-5"})]),p("div",sut,[p("h4",lut,at(d.title),1),p("p",uut,at(d.content),1)]),p("span",cut,at(d.time),1)]))),128))])])):ct("",!0),a.value?(H(),W("div",fut,[p("div",vut,[v[42]||(v[42]=p("div",{class:"neu-avatar large"},"JD",-1)),v[43]||(v[43]=p("div",{class:"ml-4"},[p("h3",{class:"font-medium"},"John Doe"),p("p",{class:"text-sm text-gray-500"},"john.doe@example.com")],-1)),p("button",{class:"neu-icon-button",onClick:v[7]||(v[7]=d=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),p("div",dut,[p("a",hut,[L(P(Jt),{class:"w-5 h-5"}),v[44]||(v[44]=p("span",null,"个人资料",-1))]),p("a",put,[L(P(fr),{class:"w-5 h-5"}),v[45]||(v[45]=p("span",null,"设置",-1))]),p("a",gut,[L(P(n4),{class:"w-5 h-5"}),v[46]||(v[46]=p("span",null,"退出登录",-1))])])])):ct("",!0)]))}},yut=Ce(mut,[["__scopeId","data-v-2eec1b47"]]),_ut={class:"glass-container min-h-screen bg-gradient-to-br from-purple-500 to-pink-500"},but={class:"glass-app-bar"},xut={class:"container mx-auto px-4 py-3 flex items-center justify-between"},wut={class:"flex items-center"},Sut={class:"flex items-center space-x-4"},Mut={class:"glass-icon-button"},Cut={class:"glass-icon-button"},Iut={class:"glass-icon-button"},Tut={class:"container mx-auto p-6"},Aut={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},Dut={class:"glass-card"},Lut={class:"p-4"},kut={class:"space-y-2"},Put={href:"#",class:"glass-nav-item active"},Rut={href:"#",class:"glass-nav-item"},Eut={href:"#",class:"glass-nav-item"},Nut={href:"#",class:"glass-nav-item"},$ut={class:"md:col-span-2 space-y-6"},Out={class:"glass-card"},zut={class:"p-4"},But={class:"space-y-4"},Vut={class:"glass-list-item"},Gut={class:"glass-icon-button"},Fut={class:"glass-list-item"},Hut={class:"glass-icon-button"},Wut={class:"glass-card"},Zut={class:"p-4"},Yut={class:"flex flex-wrap gap-4"},Uut={class:"glass-button icon"},jut={class:"glass-card"},Xut={class:"p-4"},qut={class:"glass-bottom-nav"},Kut={href:"#",class:"glass-bottom-nav-item active"},Jut={href:"#",class:"glass-bottom-nav-item"},Qut={href:"#",class:"glass-bottom-nav-item"},tct={href:"#",class:"glass-bottom-nav-item"},ect={href:"#",class:"glass-bottom-nav-item"},rct={key:0,class:"glass-dialog-overlay"},act={class:"glass-dialog"},nct={class:"glass-dialog-header"},ict={class:"glass-dialog-actions"},oct={__name:"GlassmorphismView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",_ut,[a[30]||(a[30]=p("div",{class:"glass-bg-decorations"},[p("div",{class:"glass-bg-circle circle-1"}),p("div",{class:"glass-bg-circle circle-2"}),p("div",{class:"glass-bg-circle circle-3"})],-1)),p("div",but,[p("div",xut,[p("div",wut,[L(P(Tr),{class:"w-5 h-5 text-white mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-white"},"Glassmorphism",-1))]),p("div",Sut,[p("button",Mut,[L(P(Ht),{class:"w-5 h-5"})]),p("button",Cut,[L(P($t),{class:"w-5 h-5"})]),p("button",Iut,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",Tut,[p("div",Aut,[p("div",Dut,[p("div",Lut,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-white"},"导航菜单",-1)),p("nav",kut,[p("a",Put,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",Rut,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"glass-badge"},"12",-1))]),p("a",Eut,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",Nut,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",$ut,[p("div",Out,[p("div",zut,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-white"},"卡片列表",-1)),p("div",But,[p("div",Vut,[a[11]||(a[11]=p("div",{class:"glass-avatar bg-white/20"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-white"},"卡片标题"),p("p",{class:"text-white/80"},"卡片副标题")],-1)),p("button",Gut,[L(P(pe),{class:"w-5 h-5"})])]),p("div",Fut,[a[13]||(a[13]=p("div",{class:"glass-avatar bg-white/20"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-white"},"另一个标题"),p("p",{class:"text-white/80"},"另一个副标题")],-1)),p("button",Hut,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="glass-card" data-v-391d6a55><div class="p-4" data-v-391d6a55><h2 class="text-lg font-medium mb-4 text-white" data-v-391d6a55>表单元素</h2><div class="space-y-4" data-v-391d6a55><div class="glass-input-group" data-v-391d6a55><label class="text-white/80" data-v-391d6a55>文本输入</label><input type="text" placeholder="请输入内容" class="glass-input" data-v-391d6a55></div><div class="glass-input-group" data-v-391d6a55><label class="text-white/80" data-v-391d6a55>密码输入</label><input type="password" placeholder="请输入密码" class="glass-input" data-v-391d6a55></div><div class="glass-input-group" data-v-391d6a55><label class="text-white/80" data-v-391d6a55>下拉选择</label><select class="glass-input" data-v-391d6a55><option data-v-391d6a55>选项 1</option><option data-v-391d6a55>选项 2</option><option data-v-391d6a55>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-391d6a55><label class="glass-checkbox" data-v-391d6a55><input type="checkbox" data-v-391d6a55><span class="glass-checkmark" data-v-391d6a55></span><span class="text-white/80" data-v-391d6a55>复选框</span></label><label class="glass-radio" data-v-391d6a55><input type="radio" name="radio" data-v-391d6a55><span class="glass-radiomark" data-v-391d6a55></span><span class="text-white/80" data-v-391d6a55>单选框</span></label></div><div class="glass-switch" data-v-391d6a55><input type="checkbox" id="switch1" data-v-391d6a55><label for="switch1" class="text-white/80" data-v-391d6a55>开关</label></div></div></div></div>',1)),p("div",Wut,[p("div",Zut,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-white"},"按钮样式",-1)),p("div",Yut,[a[16]||(a[16]=p("button",{class:"glass-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"glass-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"glass-button text"},"文本按钮",-1)),p("button",Uut,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="glass-card" data-v-391d6a55><div class="p-4" data-v-391d6a55><h2 class="text-lg font-medium mb-4 text-white" data-v-391d6a55>进度指示器</h2><div class="space-y-4" data-v-391d6a55><div class="glass-progress" data-v-391d6a55><div class="glass-progress-bar" style="width:60%;" data-v-391d6a55></div></div><div class="glass-progress circular" data-v-391d6a55><div class="glass-progress-circle" data-v-391d6a55></div></div></div></div></div>',1)),p("div",jut,[p("div",Xut,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-white"},"对话框示例",-1)),p("button",{class:"glass-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",qut,[p("a",Kut,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",Jut,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",Qut,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",tct,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",ect,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",rct,[p("div",act,[p("div",nct,[a[28]||(a[28]=p("h3",{class:"text-white"},"对话框标题",-1)),p("button",{class:"glass-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"glass-dialog-content"},[p("p",{class:"text-white/80"},"这是一个 Glassmorphism 风格的对话框示例。")],-1)),p("div",ict,[p("button",{class:"glass-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"glass-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},sct=Ce(oct,[["__scopeId","data-v-391d6a55"]]),lct={class:"brutal-container min-h-screen bg-yellow-50"},uct={class:"brutal-header"},cct={class:"brutal-header-content"},fct={class:"brutal-header-actions"},vct={class:"brutal-btn text"},dct={class:"brutal-btn text"},hct={class:"brutal-btn text"},pct={class:"brutal-main"},gct={class:"brutal-card-list"},mct={class:"brutal-card-cover"},yct=["src","alt"],_ct={class:"brutal-card-body"},bct={class:"brutal-card-meta"},xct={class:"brutal-card-meta-avatar"},wct={class:"brutal-card-meta-content"},Sct={class:"brutal-card-meta-title"},Mct={class:"brutal-card-meta-description"},Cct={class:"brutal-card-content"},Ict={class:"brutal-card-actions"},Tct={class:"brutal-btn text"},Act={class:"brutal-btn text"},Dct={class:"brutal-btn text"},Lct={class:"brutal-tabs"},kct={class:"brutal-tabs-nav"},Pct=["onClick"],Rct={class:"brutal-tabs-content"},Ect={key:0,class:"brutal-tabs-tabpane"},Nct={key:1,class:"brutal-tabs-tabpane"},$ct={key:2,class:"brutal-tabs-tabpane"},Oct={key:0,class:"brutal-modal-mask"},zct={class:"brutal-modal-wrap"},Bct={class:"brutal-modal"},Vct={class:"brutal-modal-content"},Gct={class:"brutal-modal-header"},Fct={class:"brutal-modal-footer"},Hct={key:1,class:"brutal-message"},Wct={class:"brutal-message-notice"},Zct={class:"brutal-message-notice-content"},Yct={key:2,class:"brutal-notification"},Uct={class:"brutal-notification-notice"},jct={class:"brutal-notification-notice-content"},Xct={class:"brutal-notification-notice-icon"},qct="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9IiNGRkZGRkYiLz48cmVjdCB4PSI0IiB5PSI0IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9IiMwMDAwMDAiLz48L3N2Zz4=",Kct={__name:"BrutalismView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt("tab1"),i=nt([{id:1,title:"卡片标题",description:"副标题",content:"这是卡片的内容,可以包含多行文本。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiNGRkZGRkYiLz48cmVjdCB4PSI0MCIgeT0iNDAiIHdpZHRoPSIyNDAiIGhlaWdodD0iMTYwIiBmaWxsPSIjMDAwMDAwIi8+PC9zdmc+",likes:42,comments:8,initials:"JD",avatarClass:"bg-black"},{id:2,title:"另一个标题",description:"另一个副标题",content:"这是另一个卡片的内容。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiNGRkZGRkYiLz48cmVjdCB4PSI0MCIgeT0iNDAiIHdpZHRoPSIyNDAiIGhlaWdodD0iMTYwIiBmaWxsPSIjMDAwMDAwIi8+PC9zdmc+",likes:36,comments:5,initials:"AB",avatarClass:"bg-black"}]),o=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(s,l)=>(H(),W("div",lct,[p("div",uct,[p("div",cct,[p("div",{class:"brutal-logo"},[p("img",{src:qct,alt:"Brutalism Logo",class:"brutal-logo-img"}),l[4]||(l[4]=p("span",{class:"brutal-logo-text"},"BRUTALISM",-1))]),l[5]||(l[5]=zt('<div class="brutal-nav" data-v-4868d9fe><a href="#" class="brutal-nav-item active" data-v-4868d9fe>首页</a><a href="#" class="brutal-nav-item" data-v-4868d9fe>组件</a><a href="#" class="brutal-nav-item" data-v-4868d9fe>文档</a><a href="#" class="brutal-nav-item" data-v-4868d9fe>主题</a></div>',1)),p("div",fct,[p("button",vct,[L(P(Ht),{class:"w-5 h-5"})]),p("button",dct,[L(P($t),{class:"w-5 h-5"})]),p("button",hct,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",pct,[p("div",gct,[(H(!0),W(Ft,null,re(i.value,u=>(H(),W("div",{key:u.id,class:"brutal-card"},[p("div",mct,[p("img",{src:u.cover,alt:u.title,class:"brutal-card-cover-img"},null,8,yct)]),p("div",_ct,[p("div",bct,[p("div",xct,[p("div",{class:ie(["brutal-avatar",u.avatarClass])},at(u.initials),3)]),p("div",wct,[p("h3",Sct,at(u.title),1),p("p",Mct,at(u.description),1)])]),p("p",Cct,at(u.content),1),p("div",Ict,[p("button",Tct,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(u.likes),1)]),p("button",Act,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(u.comments),1)]),p("button",Dct,[L(P(Ra),{class:"w-5 h-5"})])])])]))),128))]),l[14]||(l[14]=zt('<div class="brutal-form" data-v-4868d9fe><div class="brutal-form-item" data-v-4868d9fe><label class="brutal-form-item-label" data-v-4868d9fe>文本输入</label><div class="brutal-form-item-control" data-v-4868d9fe><input type="text" placeholder="请输入内容" class="brutal-input" data-v-4868d9fe></div></div><div class="brutal-form-item" data-v-4868d9fe><label class="brutal-form-item-label" data-v-4868d9fe>密码输入</label><div class="brutal-form-item-control" data-v-4868d9fe><input type="password" placeholder="请输入密码" class="brutal-input" data-v-4868d9fe></div></div><div class="brutal-form-item" data-v-4868d9fe><label class="brutal-form-item-label" data-v-4868d9fe>下拉选择</label><div class="brutal-form-item-control" data-v-4868d9fe><select class="brutal-select" data-v-4868d9fe><option data-v-4868d9fe>选项 1</option><option data-v-4868d9fe>选项 2</option><option data-v-4868d9fe>选项 3</option></select></div></div><div class="brutal-form-item" data-v-4868d9fe><label class="brutal-form-item-label" data-v-4868d9fe>开关</label><div class="brutal-form-item-control" data-v-4868d9fe><label class="brutal-switch" data-v-4868d9fe><input type="checkbox" data-v-4868d9fe><span class="brutal-switch-inner" data-v-4868d9fe></span></label></div></div></div><div class="brutal-btn-group" data-v-4868d9fe><button class="brutal-btn primary" data-v-4868d9fe>主要按钮</button><button class="brutal-btn secondary" data-v-4868d9fe>次要按钮</button><button class="brutal-btn outline" data-v-4868d9fe>轮廓按钮</button><button class="brutal-btn text" data-v-4868d9fe>文本按钮</button></div>',2)),p("div",Lct,[p("div",kct,[(H(!0),W(Ft,null,re(o.value,u=>(H(),W("div",{key:u.id,class:ie(["brutal-tabs-tab",{active:n.value===u.id}]),onClick:c=>n.value=u.id},at(u.label),11,Pct))),128))]),p("div",Rct,[n.value==="tab1"?(H(),W("div",Ect,l[6]||(l[6]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),n.value==="tab2"?(H(),W("div",Nct,l[7]||(l[7]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),n.value==="tab3"?(H(),W("div",$ct,l[8]||(l[8]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])]),t.value?(H(),W("div",Oct,[p("div",zct,[p("div",Bct,[p("div",Vct,[p("div",Gct,[l[9]||(l[9]=p("div",{class:"brutal-modal-title"},"对话框标题",-1)),p("button",{class:"brutal-modal-close",onClick:l[0]||(l[0]=u=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),l[10]||(l[10]=p("div",{class:"brutal-modal-body"},[p("p",null,"这是一个粗野主义风格的对话框示例。")],-1)),p("div",Fct,[p("button",{class:"brutal-btn",onClick:l[1]||(l[1]=u=>t.value=!1)},"取消"),p("button",{class:"brutal-btn primary",onClick:l[2]||(l[2]=u=>t.value=!1)},"确定")])])])])])):ct("",!0),e.value?(H(),W("div",Hct,[p("div",Wct,[p("div",Zct,[L(P(mn),{class:"w-5 h-5"}),l[11]||(l[11]=p("span",null,"这是一条消息提示",-1))])])])):ct("",!0),a.value?(H(),W("div",Yct,[p("div",Uct,[p("div",jct,[p("div",Xct,[L(P($t),{class:"w-5 h-5"})]),l[12]||(l[12]=p("div",{class:"brutal-notification-notice-message"},"通知标题",-1)),l[13]||(l[13]=p("div",{class:"brutal-notification-notice-description"},"通知内容",-1))]),p("button",{class:"brutal-notification-notice-close",onClick:l[3]||(l[3]=u=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])])])):ct("",!0)])]))}},Jct=Ce(Kct,[["__scopeId","data-v-4868d9fe"]]),Qct={class:"cyberpunk-container min-h-screen bg-gradient-to-br from-purple-900 via-pink-900 to-blue-900"},tft={class:"cyberpunk-app-bar"},eft={class:"container mx-auto px-4 py-3 flex items-center justify-between"},rft={class:"flex items-center"},aft={class:"flex items-center space-x-4"},nft={class:"cyberpunk-icon-button"},ift={class:"cyberpunk-icon-button"},oft={class:"cyberpunk-icon-button"},sft={class:"container mx-auto p-6"},lft={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},uft={class:"cyberpunk-card"},cft={class:"p-4"},fft={class:"space-y-2"},vft={href:"#",class:"cyberpunk-nav-item active"},dft={href:"#",class:"cyberpunk-nav-item"},hft={href:"#",class:"cyberpunk-nav-item"},pft={href:"#",class:"cyberpunk-nav-item"},gft={class:"md:col-span-2 space-y-6"},mft={class:"cyberpunk-card"},yft={class:"p-4"},_ft={class:"space-y-4"},bft={class:"cyberpunk-list-item"},xft={class:"cyberpunk-icon-button"},wft={class:"cyberpunk-list-item"},Sft={class:"cyberpunk-icon-button"},Mft={class:"cyberpunk-card"},Cft={class:"p-4"},Ift={class:"flex flex-wrap gap-4"},Tft={class:"cyberpunk-button icon"},Aft={class:"cyberpunk-card"},Dft={class:"p-4"},Lft={class:"cyberpunk-bottom-nav"},kft={href:"#",class:"cyberpunk-bottom-nav-item active"},Pft={href:"#",class:"cyberpunk-bottom-nav-item"},Rft={href:"#",class:"cyberpunk-bottom-nav-item"},Eft={href:"#",class:"cyberpunk-bottom-nav-item"},Nft={href:"#",class:"cyberpunk-bottom-nav-item"},$ft={key:0,class:"cyberpunk-dialog-overlay"},Oft={class:"cyberpunk-dialog"},zft={class:"cyberpunk-dialog-header"},Bft={class:"cyberpunk-dialog-actions"},Vft={__name:"CyberpunkView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",Qct,[p("div",tft,[p("div",eft,[p("div",rft,[L(P(Tr),{class:"w-5 h-5 text-pink-200 mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-pink-100"},"Cyberpunk Design",-1))]),p("div",aft,[p("button",nft,[L(P(Ht),{class:"w-5 h-5"})]),p("button",ift,[L(P($t),{class:"w-5 h-5"})]),p("button",oft,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",sft,[p("div",lft,[p("div",uft,[p("div",cft,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-pink-100"},"导航菜单",-1)),p("nav",fft,[p("a",vft,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",dft,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"cyberpunk-badge"},"12",-1))]),p("a",hft,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",pft,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",gft,[p("div",mft,[p("div",yft,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-pink-100"},"卡片列表",-1)),p("div",_ft,[p("div",bft,[a[11]||(a[11]=p("div",{class:"cyberpunk-avatar bg-gradient-to-br from-purple-600 to-pink-600"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-pink-100"},"卡片标题"),p("p",{class:"text-pink-200"},"卡片副标题")],-1)),p("button",xft,[L(P(pe),{class:"w-5 h-5"})])]),p("div",wft,[a[13]||(a[13]=p("div",{class:"cyberpunk-avatar bg-gradient-to-br from-pink-600 to-blue-600"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-pink-100"},"另一个标题"),p("p",{class:"text-pink-200"},"另一个副标题")],-1)),p("button",Sft,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="cyberpunk-card" data-v-bbc77969><div class="p-4" data-v-bbc77969><h2 class="text-lg font-medium mb-4 text-pink-100" data-v-bbc77969>表单元素</h2><div class="space-y-4" data-v-bbc77969><div class="cyberpunk-input-group" data-v-bbc77969><label class="text-pink-200" data-v-bbc77969>文本输入</label><input type="text" placeholder="请输入内容" class="cyberpunk-input" data-v-bbc77969></div><div class="cyberpunk-input-group" data-v-bbc77969><label class="text-pink-200" data-v-bbc77969>密码输入</label><input type="password" placeholder="请输入密码" class="cyberpunk-input" data-v-bbc77969></div><div class="cyberpunk-input-group" data-v-bbc77969><label class="text-pink-200" data-v-bbc77969>下拉选择</label><select class="cyberpunk-input" data-v-bbc77969><option data-v-bbc77969>选项 1</option><option data-v-bbc77969>选项 2</option><option data-v-bbc77969>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-bbc77969><label class="cyberpunk-checkbox" data-v-bbc77969><input type="checkbox" data-v-bbc77969><span class="cyberpunk-checkmark" data-v-bbc77969></span><span class="text-pink-200" data-v-bbc77969>复选框</span></label><label class="cyberpunk-radio" data-v-bbc77969><input type="radio" name="radio" data-v-bbc77969><span class="cyberpunk-radiomark" data-v-bbc77969></span><span class="text-pink-200" data-v-bbc77969>单选框</span></label></div><div class="cyberpunk-switch" data-v-bbc77969><input type="checkbox" id="switch1" data-v-bbc77969><label for="switch1" class="text-pink-200" data-v-bbc77969>开关</label></div></div></div></div>',1)),p("div",Mft,[p("div",Cft,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-pink-100"},"按钮样式",-1)),p("div",Ift,[a[16]||(a[16]=p("button",{class:"cyberpunk-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"cyberpunk-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"cyberpunk-button text"},"文本按钮",-1)),p("button",Tft,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="cyberpunk-card" data-v-bbc77969><div class="p-4" data-v-bbc77969><h2 class="text-lg font-medium mb-4 text-pink-100" data-v-bbc77969>进度指示器</h2><div class="space-y-4" data-v-bbc77969><div class="cyberpunk-progress" data-v-bbc77969><div class="cyberpunk-progress-bar" style="width:60%;" data-v-bbc77969></div></div><div class="cyberpunk-progress circular" data-v-bbc77969><div class="cyberpunk-progress-circle" data-v-bbc77969></div></div></div></div></div>',1)),p("div",Aft,[p("div",Dft,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-pink-100"},"对话框示例",-1)),p("button",{class:"cyberpunk-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",Lft,[p("a",kft,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",Pft,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",Rft,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",Eft,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",Nft,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",$ft,[p("div",Oft,[p("div",zft,[a[28]||(a[28]=p("h3",{class:"text-pink-100"},"对话框标题",-1)),p("button",{class:"cyberpunk-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"cyberpunk-dialog-content"},[p("p",{class:"text-pink-200"},"这是一个赛博朋克风格的对话框示例。")],-1)),p("div",Bft,[p("button",{class:"cyberpunk-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"cyberpunk-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},Gft=Ce(Vft,[["__scopeId","data-v-bbc77969"]]),Fft={class:"organic-container min-h-screen bg-gradient-to-br from-green-50 to-emerald-50"},Hft={class:"organic-header"},Wft={class:"organic-header-content"},Zft={class:"organic-header-actions"},Yft={class:"organic-btn text"},Uft={class:"organic-btn text"},jft={class:"organic-btn text"},Xft={class:"organic-main"},qft={class:"organic-card-list"},Kft={class:"organic-card-cover"},Jft=["src","alt"],Qft={class:"organic-card-body"},tvt={class:"organic-card-meta"},evt={class:"organic-card-meta-avatar"},rvt={class:"organic-card-meta-content"},avt={class:"organic-card-meta-title"},nvt={class:"organic-card-meta-description"},ivt={class:"organic-card-content"},ovt={class:"organic-card-actions"},svt={class:"organic-btn text"},lvt={class:"organic-btn text"},uvt={class:"organic-btn text"},cvt={class:"organic-tabs"},fvt={class:"organic-tabs-nav"},vvt=["onClick"],dvt={class:"organic-tabs-content"},hvt={key:0,class:"organic-tabs-tabpane"},pvt={key:1,class:"organic-tabs-tabpane"},gvt={key:2,class:"organic-tabs-tabpane"},mvt={key:0,class:"organic-modal-mask"},yvt={class:"organic-modal-wrap"},_vt={class:"organic-modal"},bvt={class:"organic-modal-content"},xvt={class:"organic-modal-header"},wvt={class:"organic-modal-footer"},Svt={key:1,class:"organic-message"},Mvt={class:"organic-message-notice"},Cvt={class:"organic-message-notice-content"},Ivt={key:2,class:"organic-notification"},Tvt={class:"organic-notification-notice"},Avt={class:"organic-notification-notice-content"},Dvt={class:"organic-notification-notice-icon"},Lvt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9IiM0MEYyQTUiLz48L3N2Zz4=",kvt={__name:"OrganicDesignView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt("tab1"),i=nt([{id:1,title:"卡片标题",description:"副标题",content:"这是卡片的内容,可以包含多行文本。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiM0MEYyQTUiLz48L3N2Zz4=",likes:42,comments:8,initials:"JD",avatarClass:"bg-green-500"},{id:2,title:"另一个标题",description:"另一个副标题",content:"这是另一个卡片的内容。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiMyRDg4NUYiLz48L3N2Zz4=",likes:36,comments:5,initials:"AB",avatarClass:"bg-green-600"}]),o=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(s,l)=>(H(),W("div",Fft,[p("div",Hft,[p("div",Wft,[p("div",{class:"organic-logo"},[p("img",{src:Lvt,alt:"Organic Design Logo",class:"organic-logo-img"}),l[4]||(l[4]=p("span",{class:"organic-logo-text"},"ORGANIC",-1))]),l[5]||(l[5]=zt('<div class="organic-nav" data-v-3c572959><a href="#" class="organic-nav-item active" data-v-3c572959>首页</a><a href="#" class="organic-nav-item" data-v-3c572959>组件</a><a href="#" class="organic-nav-item" data-v-3c572959>文档</a><a href="#" class="organic-nav-item" data-v-3c572959>主题</a></div>',1)),p("div",Zft,[p("button",Yft,[L(P(Ht),{class:"w-5 h-5"})]),p("button",Uft,[L(P($t),{class:"w-5 h-5"})]),p("button",jft,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",Xft,[p("div",qft,[(H(!0),W(Ft,null,re(i.value,u=>(H(),W("div",{key:u.id,class:"organic-card"},[p("div",Kft,[p("img",{src:u.cover,alt:u.title,class:"organic-card-cover-img"},null,8,Jft)]),p("div",Qft,[p("div",tvt,[p("div",evt,[p("div",{class:ie(["organic-avatar",u.avatarClass])},at(u.initials),3)]),p("div",rvt,[p("h3",avt,at(u.title),1),p("p",nvt,at(u.description),1)])]),p("p",ivt,at(u.content),1),p("div",ovt,[p("button",svt,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(u.likes),1)]),p("button",lvt,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(u.comments),1)]),p("button",uvt,[L(P(Ra),{class:"w-5 h-5"})])])])]))),128))]),l[14]||(l[14]=zt('<div class="organic-form" data-v-3c572959><div class="organic-form-item" data-v-3c572959><label class="organic-form-item-label" data-v-3c572959>文本输入</label><div class="organic-form-item-control" data-v-3c572959><input type="text" placeholder="请输入内容" class="organic-input" data-v-3c572959></div></div><div class="organic-form-item" data-v-3c572959><label class="organic-form-item-label" data-v-3c572959>密码输入</label><div class="organic-form-item-control" data-v-3c572959><input type="password" placeholder="请输入密码" class="organic-input" data-v-3c572959></div></div><div class="organic-form-item" data-v-3c572959><label class="organic-form-item-label" data-v-3c572959>下拉选择</label><div class="organic-form-item-control" data-v-3c572959><select class="organic-select" data-v-3c572959><option data-v-3c572959>选项 1</option><option data-v-3c572959>选项 2</option><option data-v-3c572959>选项 3</option></select></div></div><div class="organic-form-item" data-v-3c572959><label class="organic-form-item-label" data-v-3c572959>开关</label><div class="organic-form-item-control" data-v-3c572959><label class="organic-switch" data-v-3c572959><input type="checkbox" data-v-3c572959><span class="organic-switch-inner" data-v-3c572959></span></label></div></div></div><div class="organic-btn-group" data-v-3c572959><button class="organic-btn primary" data-v-3c572959>主要按钮</button><button class="organic-btn secondary" data-v-3c572959>次要按钮</button><button class="organic-btn outline" data-v-3c572959>轮廓按钮</button><button class="organic-btn text" data-v-3c572959>文本按钮</button></div>',2)),p("div",cvt,[p("div",fvt,[(H(!0),W(Ft,null,re(o.value,u=>(H(),W("div",{key:u.id,class:ie(["organic-tabs-tab",{active:n.value===u.id}]),onClick:c=>n.value=u.id},at(u.label),11,vvt))),128))]),p("div",dvt,[n.value==="tab1"?(H(),W("div",hvt,l[6]||(l[6]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),n.value==="tab2"?(H(),W("div",pvt,l[7]||(l[7]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),n.value==="tab3"?(H(),W("div",gvt,l[8]||(l[8]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])]),t.value?(H(),W("div",mvt,[p("div",yvt,[p("div",_vt,[p("div",bvt,[p("div",xvt,[l[9]||(l[9]=p("div",{class:"organic-modal-title"},"对话框标题",-1)),p("button",{class:"organic-modal-close",onClick:l[0]||(l[0]=u=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),l[10]||(l[10]=p("div",{class:"organic-modal-body"},[p("p",null,"这是一个有机设计风格的对话框示例。")],-1)),p("div",wvt,[p("button",{class:"organic-btn",onClick:l[1]||(l[1]=u=>t.value=!1)},"取消"),p("button",{class:"organic-btn primary",onClick:l[2]||(l[2]=u=>t.value=!1)},"确定")])])])])])):ct("",!0),e.value?(H(),W("div",Svt,[p("div",Mvt,[p("div",Cvt,[L(P(mn),{class:"w-5 h-5"}),l[11]||(l[11]=p("span",null,"这是一条消息提示",-1))])])])):ct("",!0),a.value?(H(),W("div",Ivt,[p("div",Tvt,[p("div",Avt,[p("div",Dvt,[L(P($t),{class:"w-5 h-5"})]),l[12]||(l[12]=p("div",{class:"organic-notification-notice-message"},"通知标题",-1)),l[13]||(l[13]=p("div",{class:"organic-notification-notice-description"},"通知内容",-1))]),p("button",{class:"organic-notification-notice-close",onClick:l[3]||(l[3]=u=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])])])):ct("",!0)])]))}},Pvt=Ce(kvt,[["__scopeId","data-v-3c572959"]]),Rvt={class:"pixel-container min-h-screen bg-indigo-900"},Evt={class:"pixel-header"},Nvt={class:"pixel-header-content"},$vt={class:"pixel-header-actions"},Ovt={class:"pixel-btn text"},zvt={class:"pixel-btn text"},Bvt={class:"pixel-btn text"},Vvt={class:"pixel-main"},Gvt={class:"pixel-card-list"},Fvt={class:"pixel-card-cover"},Hvt=["src","alt"],Wvt={class:"pixel-card-body"},Zvt={class:"pixel-card-meta"},Yvt={class:"pixel-card-meta-avatar"},Uvt={class:"pixel-card-meta-content"},jvt={class:"pixel-card-meta-title"},Xvt={class:"pixel-card-meta-description"},qvt={class:"pixel-card-content"},Kvt={class:"pixel-card-actions"},Jvt={class:"pixel-btn text"},Qvt={class:"pixel-btn text"},tdt={class:"pixel-btn text"},edt={class:"pixel-tabs"},rdt={class:"pixel-tabs-nav"},adt=["onClick"],ndt={class:"pixel-tabs-content"},idt={key:0,class:"pixel-tabs-tabpane"},odt={key:1,class:"pixel-tabs-tabpane"},sdt={key:2,class:"pixel-tabs-tabpane"},ldt={key:0,class:"pixel-modal-mask"},udt={class:"pixel-modal-wrap"},cdt={class:"pixel-modal"},fdt={class:"pixel-modal-content"},vdt={class:"pixel-modal-header"},ddt={class:"pixel-modal-footer"},hdt={key:1,class:"pixel-message"},pdt={class:"pixel-message-notice"},gdt={class:"pixel-message-notice-content"},mdt={key:2,class:"pixel-notification"},ydt={class:"pixel-notification-notice"},_dt={class:"pixel-notification-notice-content"},bdt={class:"pixel-notification-notice-icon"},xdt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9IiNGRkZGRkYiLz48cmVjdCB4PSI0IiB5PSI0IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9IiMwMDAwMDAiLz48L3N2Zz4=",wdt={__name:"PixelArtView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt("tab1"),i=nt([{id:1,title:"卡片标题",description:"副标题",content:"这是卡片的内容,可以包含多行文本。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiNGRkZGRkYiLz48cmVjdCB4PSI0MCIgeT0iNDAiIHdpZHRoPSIyNDAiIGhlaWdodD0iMTYwIiBmaWxsPSIjMDAwMDAwIi8+PC9zdmc+",likes:42,comments:8,initials:"JD",avatarClass:"bg-black"},{id:2,title:"另一个标题",description:"另一个副标题",content:"这是另一个卡片的内容。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiNGRkZGRkYiLz48cmVjdCB4PSI0MCIgeT0iNDAiIHdpZHRoPSIyNDAiIGhlaWdodD0iMTYwIiBmaWxsPSIjMDAwMDAwIi8+PC9zdmc+",likes:36,comments:5,initials:"AB",avatarClass:"bg-black"}]),o=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(s,l)=>(H(),W("div",Rvt,[p("div",Evt,[p("div",Nvt,[p("div",{class:"pixel-logo"},[p("img",{src:xdt,alt:"Pixel Art Logo",class:"pixel-logo-img"}),l[4]||(l[4]=p("span",{class:"pixel-logo-text"},"PIXEL ART",-1))]),l[5]||(l[5]=zt('<div class="pixel-nav" data-v-4aaea49c><a href="#" class="pixel-nav-item active" data-v-4aaea49c>首页</a><a href="#" class="pixel-nav-item" data-v-4aaea49c>组件</a><a href="#" class="pixel-nav-item" data-v-4aaea49c>文档</a><a href="#" class="pixel-nav-item" data-v-4aaea49c>主题</a></div>',1)),p("div",$vt,[p("button",Ovt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",zvt,[L(P($t),{class:"w-5 h-5"})]),p("button",Bvt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",Vvt,[p("div",Gvt,[(H(!0),W(Ft,null,re(i.value,u=>(H(),W("div",{key:u.id,class:"pixel-card"},[p("div",Fvt,[p("img",{src:u.cover,alt:u.title,class:"pixel-card-cover-img"},null,8,Hvt)]),p("div",Wvt,[p("div",Zvt,[p("div",Yvt,[p("div",{class:ie(["pixel-avatar",u.avatarClass])},at(u.initials),3)]),p("div",Uvt,[p("h3",jvt,at(u.title),1),p("p",Xvt,at(u.description),1)])]),p("p",qvt,at(u.content),1),p("div",Kvt,[p("button",Jvt,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(u.likes),1)]),p("button",Qvt,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(u.comments),1)]),p("button",tdt,[L(P(Ra),{class:"w-5 h-5"})])])])]))),128))]),l[14]||(l[14]=zt('<div class="pixel-form" data-v-4aaea49c><div class="pixel-form-item" data-v-4aaea49c><label class="pixel-form-item-label" data-v-4aaea49c>文本输入</label><div class="pixel-form-item-control" data-v-4aaea49c><input type="text" placeholder="请输入内容" class="pixel-input" data-v-4aaea49c></div></div><div class="pixel-form-item" data-v-4aaea49c><label class="pixel-form-item-label" data-v-4aaea49c>密码输入</label><div class="pixel-form-item-control" data-v-4aaea49c><input type="password" placeholder="请输入密码" class="pixel-input" data-v-4aaea49c></div></div><div class="pixel-form-item" data-v-4aaea49c><label class="pixel-form-item-label" data-v-4aaea49c>下拉选择</label><div class="pixel-form-item-control" data-v-4aaea49c><select class="pixel-select" data-v-4aaea49c><option data-v-4aaea49c>选项 1</option><option data-v-4aaea49c>选项 2</option><option data-v-4aaea49c>选项 3</option></select></div></div><div class="pixel-form-item" data-v-4aaea49c><label class="pixel-form-item-label" data-v-4aaea49c>开关</label><div class="pixel-form-item-control" data-v-4aaea49c><label class="pixel-switch" data-v-4aaea49c><input type="checkbox" data-v-4aaea49c><span class="pixel-switch-inner" data-v-4aaea49c></span></label></div></div></div><div class="pixel-btn-group" data-v-4aaea49c><button class="pixel-btn primary" data-v-4aaea49c>主要按钮</button><button class="pixel-btn secondary" data-v-4aaea49c>次要按钮</button><button class="pixel-btn outline" data-v-4aaea49c>轮廓按钮</button><button class="pixel-btn text" data-v-4aaea49c>文本按钮</button></div>',2)),p("div",edt,[p("div",rdt,[(H(!0),W(Ft,null,re(o.value,u=>(H(),W("div",{key:u.id,class:ie(["pixel-tabs-tab",{active:n.value===u.id}]),onClick:c=>n.value=u.id},at(u.label),11,adt))),128))]),p("div",ndt,[n.value==="tab1"?(H(),W("div",idt,l[6]||(l[6]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),n.value==="tab2"?(H(),W("div",odt,l[7]||(l[7]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),n.value==="tab3"?(H(),W("div",sdt,l[8]||(l[8]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])]),t.value?(H(),W("div",ldt,[p("div",udt,[p("div",cdt,[p("div",fdt,[p("div",vdt,[l[9]||(l[9]=p("div",{class:"pixel-modal-title"},"对话框标题",-1)),p("button",{class:"pixel-modal-close",onClick:l[0]||(l[0]=u=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),l[10]||(l[10]=p("div",{class:"pixel-modal-body"},[p("p",null,"这是一个像素艺术风格的对话框示例。")],-1)),p("div",ddt,[p("button",{class:"pixel-btn",onClick:l[1]||(l[1]=u=>t.value=!1)},"取消"),p("button",{class:"pixel-btn primary",onClick:l[2]||(l[2]=u=>t.value=!1)},"确定")])])])])])):ct("",!0),e.value?(H(),W("div",hdt,[p("div",pdt,[p("div",gdt,[L(P(mn),{class:"w-5 h-5"}),l[11]||(l[11]=p("span",null,"这是一条消息提示",-1))])])])):ct("",!0),a.value?(H(),W("div",mdt,[p("div",ydt,[p("div",_dt,[p("div",bdt,[L(P($t),{class:"w-5 h-5"})]),l[12]||(l[12]=p("div",{class:"pixel-notification-notice-message"},"通知标题",-1)),l[13]||(l[13]=p("div",{class:"pixel-notification-notice-description"},"通知内容",-1))]),p("button",{class:"pixel-notification-notice-close",onClick:l[3]||(l[3]=u=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])])])):ct("",!0)])]))}},Sdt=Ce(wdt,[["__scopeId","data-v-4aaea49c"]]),Mdt={class:"morphism-container min-h-screen bg-gradient-to-br from-purple-100 to-blue-100"},Cdt={class:"morphism-header"},Idt={class:"morphism-header-content"},Tdt={class:"morphism-header-actions"},Adt={class:"morphism-btn text"},Ddt={class:"morphism-btn text"},Ldt={class:"morphism-btn text"},kdt={class:"morphism-main"},Pdt={class:"morphism-card-list"},Rdt={class:"morphism-card-cover"},Edt=["src","alt"],Ndt={class:"morphism-card-body"},$dt={class:"morphism-card-meta"},Odt={class:"morphism-card-meta-avatar"},zdt={class:"morphism-card-meta-content"},Bdt={class:"morphism-card-meta-title"},Vdt={class:"morphism-card-meta-description"},Gdt={class:"morphism-card-content"},Fdt={class:"morphism-card-actions"},Hdt={class:"morphism-btn text"},Wdt={class:"morphism-btn text"},Zdt={class:"morphism-btn text"},Ydt={class:"morphism-tabs"},Udt={class:"morphism-tabs-nav"},jdt=["onClick"],Xdt={class:"morphism-tabs-content"},qdt={key:0,class:"morphism-tabs-tabpane"},Kdt={key:1,class:"morphism-tabs-tabpane"},Jdt={key:2,class:"morphism-tabs-tabpane"},Qdt={key:0,class:"morphism-modal-mask"},tht={class:"morphism-modal-wrap"},eht={class:"morphism-modal"},rht={class:"morphism-modal-content"},aht={class:"morphism-modal-header"},nht={class:"morphism-modal-footer"},iht={key:1,class:"morphism-message"},oht={class:"morphism-message-notice"},sht={class:"morphism-message-notice-content"},lht={key:2,class:"morphism-notification"},uht={class:"morphism-notification-notice"},cht={class:"morphism-notification-notice-content"},fht={class:"morphism-notification-notice-icon"},vht="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIgZmlsbD0idXJsKCNwYWludDApIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJwYWludDAiIHgxPSIwIiB5MT0iMCIgeDI9IjMyIiB5Mj0iMzIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjQjQ3RkZGIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkY3RkJGIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+",dht={__name:"MorphismView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt("tab1"),i=nt([{id:1,title:"卡片标题",description:"副标题",content:"这是卡片的内容,可以包含多行文本。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiNlNmYwZmYiLz48cGF0aCBkPSJNMTYwIDYwQzEzMy40MzEgNjAgMTEyIDgxLjQzMSAxMTIgMTA4QzExMiAxMzQuNTY5IDEzMy40MzEgMTU2IDE2MCAxNTZDMTg2LjU2OSAxNTYgMjA4IDEzNC41NjkgMjA4IDEwOEMyMDggODEuNDMxIDE4Ni41NjkgNjAgMTYwIDYwWiIgZmlsbD0iI2I0N2ZmZiIvPjxwYXRoIGQ9Ik0xNjAgMTgwQzEzMy40MzEgMTgwIDExMiAyMDEuNDMxIDExMiAyMjhDMTEyIDI1NC41NjkgMTMzLjQzMSAyNzYgMTYwIDI3NkMxODYuNTY5IDI3NiAyMDggMjU0LjU2OSAyMDggMjI4QzIwOCAyMDEuNDMxIDE4Ni41NjkgMTgwIDE2MCAxODBaIiBmaWxsPSIjZmY3ZmJmIi8+PC9zdmc+",likes:42,comments:8,initials:"JD",avatarClass:"bg-purple-500"},{id:2,title:"另一个标题",description:"另一个副标题",content:"这是另一个卡片的内容。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiNlNmYwZmYiLz48cGF0aCBkPSJNMTYwIDYwQzEzMy40MzEgNjAgMTEyIDgxLjQzMSAxMTIgMTA4QzExMiAxMzQuNTY5IDEzMy40MzEgMTU2IDE2MCAxNTZDMTg2LjU2OSAxNTYgMjA4IDEzNC41NjkgMjA4IDEwOEMyMDggODEuNDMxIDE4Ni41NjkgNjAgMTYwIDYwWiIgZmlsbD0iI2ZmN2ZiZiIvPjxwYXRoIGQ9Ik0xNjAgMTgwQzEzMy40MzEgMTgwIDExMiAyMDEuNDMxIDExMiAyMjhDMTEyIDI1NC41NjkgMTMzLjQzMSAyNzYgMTYwIDI3NkMxODYuNTY5IDI3NiAyMDggMjU0LjU2OSAyMDggMjI4QzIwOCAyMDEuNDMxIDE4Ni41NjkgMTgwIDE2MCAxODBaIiBmaWxsPSIjYjQ3ZmZmIi8+PC9zdmc+",likes:36,comments:5,initials:"AB",avatarClass:"bg-blue-500"}]),o=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(s,l)=>(H(),W("div",Mdt,[p("div",Cdt,[p("div",Idt,[p("div",{class:"morphism-logo"},[p("img",{src:vht,alt:"Morphism Logo",class:"morphism-logo-img"}),l[4]||(l[4]=p("span",{class:"morphism-logo-text"},"Morphism",-1))]),l[5]||(l[5]=zt('<div class="morphism-nav" data-v-66706a9a><a href="#" class="morphism-nav-item active" data-v-66706a9a>首页</a><a href="#" class="morphism-nav-item" data-v-66706a9a>组件</a><a href="#" class="morphism-nav-item" data-v-66706a9a>文档</a><a href="#" class="morphism-nav-item" data-v-66706a9a>主题</a></div>',1)),p("div",Tdt,[p("button",Adt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",Ddt,[L(P($t),{class:"w-5 h-5"})]),p("button",Ldt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",kdt,[p("div",Pdt,[(H(!0),W(Ft,null,re(i.value,u=>(H(),W("div",{key:u.id,class:"morphism-card"},[p("div",Rdt,[p("img",{src:u.cover,alt:u.title,class:"morphism-card-cover-img"},null,8,Edt)]),p("div",Ndt,[p("div",$dt,[p("div",Odt,[p("div",{class:ie(["morphism-avatar",u.avatarClass])},at(u.initials),3)]),p("div",zdt,[p("h3",Bdt,at(u.title),1),p("p",Vdt,at(u.description),1)])]),p("p",Gdt,at(u.content),1),p("div",Fdt,[p("button",Hdt,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(u.likes),1)]),p("button",Wdt,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(u.comments),1)]),p("button",Zdt,[L(P(Ra),{class:"w-5 h-5"})])])])]))),128))]),l[14]||(l[14]=zt('<div class="morphism-form" data-v-66706a9a><div class="morphism-form-item" data-v-66706a9a><label class="morphism-form-item-label" data-v-66706a9a>文本输入</label><div class="morphism-form-item-control" data-v-66706a9a><input type="text" placeholder="请输入内容" class="morphism-input" data-v-66706a9a></div></div><div class="morphism-form-item" data-v-66706a9a><label class="morphism-form-item-label" data-v-66706a9a>密码输入</label><div class="morphism-form-item-control" data-v-66706a9a><input type="password" placeholder="请输入密码" class="morphism-input" data-v-66706a9a></div></div><div class="morphism-form-item" data-v-66706a9a><label class="morphism-form-item-label" data-v-66706a9a>下拉选择</label><div class="morphism-form-item-control" data-v-66706a9a><select class="morphism-select" data-v-66706a9a><option data-v-66706a9a>选项 1</option><option data-v-66706a9a>选项 2</option><option data-v-66706a9a>选项 3</option></select></div></div><div class="morphism-form-item" data-v-66706a9a><label class="morphism-form-item-label" data-v-66706a9a>开关</label><div class="morphism-form-item-control" data-v-66706a9a><label class="morphism-switch" data-v-66706a9a><input type="checkbox" data-v-66706a9a><span class="morphism-switch-inner" data-v-66706a9a></span></label></div></div></div><div class="morphism-btn-group" data-v-66706a9a><button class="morphism-btn primary" data-v-66706a9a>主要按钮</button><button class="morphism-btn secondary" data-v-66706a9a>次要按钮</button><button class="morphism-btn outline" data-v-66706a9a>轮廓按钮</button><button class="morphism-btn text" data-v-66706a9a>文本按钮</button></div>',2)),p("div",Ydt,[p("div",Udt,[(H(!0),W(Ft,null,re(o.value,u=>(H(),W("div",{key:u.id,class:ie(["morphism-tabs-tab",{active:n.value===u.id}]),onClick:c=>n.value=u.id},at(u.label),11,jdt))),128))]),p("div",Xdt,[n.value==="tab1"?(H(),W("div",qdt,l[6]||(l[6]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),n.value==="tab2"?(H(),W("div",Kdt,l[7]||(l[7]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),n.value==="tab3"?(H(),W("div",Jdt,l[8]||(l[8]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])]),t.value?(H(),W("div",Qdt,[p("div",tht,[p("div",eht,[p("div",rht,[p("div",aht,[l[9]||(l[9]=p("div",{class:"morphism-modal-title"},"对话框标题",-1)),p("button",{class:"morphism-modal-close",onClick:l[0]||(l[0]=u=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),l[10]||(l[10]=p("div",{class:"morphism-modal-body"},[p("p",null,"这是一个 Morphism 风格的对话框示例。")],-1)),p("div",nht,[p("button",{class:"morphism-btn",onClick:l[1]||(l[1]=u=>t.value=!1)},"取消"),p("button",{class:"morphism-btn primary",onClick:l[2]||(l[2]=u=>t.value=!1)},"确定")])])])])])):ct("",!0),e.value?(H(),W("div",iht,[p("div",oht,[p("div",sht,[L(P(mn),{class:"w-5 h-5"}),l[11]||(l[11]=p("span",null,"这是一条消息提示",-1))])])])):ct("",!0),a.value?(H(),W("div",lht,[p("div",uht,[p("div",cht,[p("div",fht,[L(P($t),{class:"w-5 h-5"})]),l[12]||(l[12]=p("div",{class:"morphism-notification-notice-message"},"通知标题",-1)),l[13]||(l[13]=p("div",{class:"morphism-notification-notice-description"},"通知内容",-1))]),p("button",{class:"morphism-notification-notice-close",onClick:l[3]||(l[3]=u=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])])])):ct("",!0)])]))}},hht=Ce(dht,[["__scopeId","data-v-66706a9a"]]),pht={class:"aurora-container min-h-screen bg-gradient-to-br from-purple-900 via-indigo-900 to-blue-900"},ght={class:"aurora-app-bar"},mht={class:"container mx-auto px-4 py-3 flex items-center justify-between"},yht={class:"flex items-center"},_ht={class:"flex items-center space-x-4"},bht={class:"aurora-icon-button"},xht={class:"aurora-icon-button"},wht={class:"aurora-icon-button"},Sht={class:"container mx-auto p-6"},Mht={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},Cht={class:"aurora-card"},Iht={class:"p-4"},Tht={class:"space-y-2"},Aht={href:"#",class:"aurora-nav-item active"},Dht={href:"#",class:"aurora-nav-item"},Lht={href:"#",class:"aurora-nav-item"},kht={href:"#",class:"aurora-nav-item"},Pht={class:"md:col-span-2 space-y-6"},Rht={class:"aurora-card"},Eht={class:"p-4"},Nht={class:"space-y-4"},$ht={class:"aurora-list-item"},Oht={class:"aurora-icon-button"},zht={class:"aurora-list-item"},Bht={class:"aurora-icon-button"},Vht={class:"aurora-card"},Ght={class:"p-4"},Fht={class:"flex flex-wrap gap-4"},Hht={class:"aurora-button icon"},Wht={class:"aurora-card"},Zht={class:"p-4"},Yht={class:"aurora-bottom-nav"},Uht={href:"#",class:"aurora-bottom-nav-item active"},jht={href:"#",class:"aurora-bottom-nav-item"},Xht={href:"#",class:"aurora-bottom-nav-item"},qht={href:"#",class:"aurora-bottom-nav-item"},Kht={href:"#",class:"aurora-bottom-nav-item"},Jht={key:0,class:"aurora-dialog-overlay"},Qht={class:"aurora-dialog"},tpt={class:"aurora-dialog-header"},ept={class:"aurora-dialog-actions"},rpt={__name:"AuroraView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",pht,[p("div",ght,[p("div",mht,[p("div",yht,[L(P(Tr),{class:"w-5 h-5 text-purple-200 mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-purple-100"},"Aurora Design",-1))]),p("div",_ht,[p("button",bht,[L(P(Ht),{class:"w-5 h-5"})]),p("button",xht,[L(P($t),{class:"w-5 h-5"})]),p("button",wht,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",Sht,[p("div",Mht,[p("div",Cht,[p("div",Iht,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-purple-100"},"导航菜单",-1)),p("nav",Tht,[p("a",Aht,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",Dht,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"aurora-badge"},"12",-1))]),p("a",Lht,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",kht,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",Pht,[p("div",Rht,[p("div",Eht,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-purple-100"},"卡片列表",-1)),p("div",Nht,[p("div",$ht,[a[11]||(a[11]=p("div",{class:"aurora-avatar bg-gradient-to-br from-purple-500 to-indigo-500"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-purple-100"},"卡片标题"),p("p",{class:"text-purple-200"},"卡片副标题")],-1)),p("button",Oht,[L(P(pe),{class:"w-5 h-5"})])]),p("div",zht,[a[13]||(a[13]=p("div",{class:"aurora-avatar bg-gradient-to-br from-indigo-500 to-blue-500"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-purple-100"},"另一个标题"),p("p",{class:"text-purple-200"},"另一个副标题")],-1)),p("button",Bht,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="aurora-card" data-v-abe9da3a><div class="p-4" data-v-abe9da3a><h2 class="text-lg font-medium mb-4 text-purple-100" data-v-abe9da3a>表单元素</h2><div class="space-y-4" data-v-abe9da3a><div class="aurora-input-group" data-v-abe9da3a><label class="text-purple-200" data-v-abe9da3a>文本输入</label><input type="text" placeholder="请输入内容" class="aurora-input" data-v-abe9da3a></div><div class="aurora-input-group" data-v-abe9da3a><label class="text-purple-200" data-v-abe9da3a>密码输入</label><input type="password" placeholder="请输入密码" class="aurora-input" data-v-abe9da3a></div><div class="aurora-input-group" data-v-abe9da3a><label class="text-purple-200" data-v-abe9da3a>下拉选择</label><select class="aurora-input" data-v-abe9da3a><option data-v-abe9da3a>选项 1</option><option data-v-abe9da3a>选项 2</option><option data-v-abe9da3a>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-abe9da3a><label class="aurora-checkbox" data-v-abe9da3a><input type="checkbox" data-v-abe9da3a><span class="aurora-checkmark" data-v-abe9da3a></span><span class="text-purple-200" data-v-abe9da3a>复选框</span></label><label class="aurora-radio" data-v-abe9da3a><input type="radio" name="radio" data-v-abe9da3a><span class="aurora-radiomark" data-v-abe9da3a></span><span class="text-purple-200" data-v-abe9da3a>单选框</span></label></div><div class="aurora-switch" data-v-abe9da3a><input type="checkbox" id="switch1" data-v-abe9da3a><label for="switch1" class="text-purple-200" data-v-abe9da3a>开关</label></div></div></div></div>',1)),p("div",Vht,[p("div",Ght,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-purple-100"},"按钮样式",-1)),p("div",Fht,[a[16]||(a[16]=p("button",{class:"aurora-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"aurora-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"aurora-button text"},"文本按钮",-1)),p("button",Hht,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="aurora-card" data-v-abe9da3a><div class="p-4" data-v-abe9da3a><h2 class="text-lg font-medium mb-4 text-purple-100" data-v-abe9da3a>进度指示器</h2><div class="space-y-4" data-v-abe9da3a><div class="aurora-progress" data-v-abe9da3a><div class="aurora-progress-bar" style="width:60%;" data-v-abe9da3a></div></div><div class="aurora-progress circular" data-v-abe9da3a><div class="aurora-progress-circle" data-v-abe9da3a></div></div></div></div></div>',1)),p("div",Wht,[p("div",Zht,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-purple-100"},"对话框示例",-1)),p("button",{class:"aurora-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",Yht,[p("a",Uht,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",jht,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",Xht,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",qht,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",Kht,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",Jht,[p("div",Qht,[p("div",tpt,[a[28]||(a[28]=p("h3",{class:"text-purple-100"},"对话框标题",-1)),p("button",{class:"aurora-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"aurora-dialog-content"},[p("p",{class:"text-purple-200"},"这是一个极光风格的对话框示例。")],-1)),p("div",ept,[p("button",{class:"aurora-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"aurora-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},apt=Ce(rpt,[["__scopeId","data-v-abe9da3a"]]),npt={class:"neon-container min-h-screen bg-black"},ipt={class:"neon-header"},opt={class:"neon-header-content"},spt={class:"neon-header-actions"},lpt={class:"neon-btn text"},upt={class:"neon-btn text"},cpt={class:"neon-btn text"},fpt={class:"neon-main"},vpt={class:"neon-card-list"},dpt={class:"neon-card-cover"},hpt=["src","alt"],ppt={class:"neon-card-body"},gpt={class:"neon-card-meta"},mpt={class:"neon-card-meta-avatar"},ypt={class:"neon-card-meta-content"},_pt={class:"neon-card-meta-title"},bpt={class:"neon-card-meta-description"},xpt={class:"neon-card-content"},wpt={class:"neon-card-actions"},Spt={class:"neon-btn text"},Mpt={class:"neon-btn text"},Cpt={class:"neon-btn text"},Ipt={class:"neon-tabs"},Tpt={class:"neon-tabs-nav"},Apt=["onClick"],Dpt={class:"neon-tabs-content"},Lpt={key:0,class:"neon-tabs-tabpane"},kpt={key:1,class:"neon-tabs-tabpane"},Ppt={key:2,class:"neon-tabs-tabpane"},Rpt={key:0,class:"neon-modal-mask"},Ept={class:"neon-modal-wrap"},Npt={class:"neon-modal"},$pt={class:"neon-modal-content"},Opt={class:"neon-modal-header"},zpt={class:"neon-modal-footer"},Bpt={key:1,class:"neon-message"},Vpt={class:"neon-message-notice"},Gpt={class:"neon-message-notice-content"},Fpt={key:2,class:"neon-notification"},Hpt={class:"neon-notification-notice"},Wpt={class:"neon-notification-notice-content"},Zpt={class:"neon-notification-notice-icon"},Ypt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIgZmlsbD0idXJsKCNwYWludDApIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJwYWludDAiIHgxPSIwIiB5MT0iMCIgeDI9IjMyIiB5Mj0iMzIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjMDBGRkZGIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkYwMEZGIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+",Upt={__name:"NeonView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt("tab1"),i=nt([{id:1,title:"卡片标题",description:"副标题",content:"这是卡片的内容,可以包含多行文本。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiMwMDAwMDAiLz48cGF0aCBkPSJNMTYwIDYwQzEzMy40MzEgNjAgMTEyIDgxLjQzMSAxMTIgMTA4QzExMiAxMzQuNTY5IDEzMy40MzEgMTU2IDE2MCAxNTZDMTg2LjU2OSAxNTYgMjA4IDEzNC41NjkgMjA4IDEwOEMyMDggODEuNDMxIDE4Ni41NjkgNjAgMTYwIDYwWiIgZmlsbD0iIzAwRkZGRiIvPjxwYXRoIGQ9Ik0xNjAgMTgwQzEzMy40MzEgMTgwIDExMiAyMDEuNDMxIDExMiAyMjhDMTEyIDI1NC41NjkgMTMzLjQzMSAyNzYgMTYwIDI3NkMxODYuNTY5IDI3NiAyMDggMjU0LjU2OSAyMDggMjI4QzIwOCAyMDEuNDMxIDE4Ni41NjkgMTgwIDE2MCAxODBaIiBmaWxsPSIjRkYwMEZGIi8+PC9zdmc+",likes:42,comments:8,initials:"JD",avatarClass:"bg-cyan-500"},{id:2,title:"另一个标题",description:"另一个副标题",content:"这是另一个卡片的内容。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiMwMDAwMDAiLz48cGF0aCBkPSJNMTYwIDYwQzEzMy40MzEgNjAgMTEyIDgxLjQzMSAxMTIgMTA4QzExMiAxMzQuNTY5IDEzMy40MzEgMTU2IDE2MCAxNTZDMTg2LjU2OSAxNTYgMjA4IDEzNC41NjkgMjA4IDEwOEMyMDggODEuNDMxIDE4Ni41NjkgNjAgMTYwIDYwWiIgZmlsbD0iI0ZGMDBCQiIvPjxwYXRoIGQ9Ik0xNjAgMTgwQzEzMy40MzEgMTgwIDExMiAyMDEuNDMxIDExMiAyMjhDMTEyIDI1NC41NjkgMTMzLjQzMSAyNzYgMTYwIDI3NkMxODYuNTY5IDI3NiAyMDggMjU0LjU2OSAyMDggMjI4QzIwOCAyMDEuNDMxIDE4Ni41NjkgMTgwIDE2MCAxODBaIiBmaWxsPSIjMDBGRkZGIi8+PC9zdmc+",likes:36,comments:5,initials:"AB",avatarClass:"bg-pink-500"}]),o=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(s,l)=>(H(),W("div",npt,[p("div",ipt,[p("div",opt,[p("div",{class:"neon-logo"},[p("img",{src:Ypt,alt:"Neon Logo",class:"neon-logo-img"}),l[4]||(l[4]=p("span",{class:"neon-logo-text"},"NEON",-1))]),l[5]||(l[5]=zt('<div class="neon-nav" data-v-499287f4><a href="#" class="neon-nav-item active" data-v-499287f4>首页</a><a href="#" class="neon-nav-item" data-v-499287f4>组件</a><a href="#" class="neon-nav-item" data-v-499287f4>文档</a><a href="#" class="neon-nav-item" data-v-499287f4>主题</a></div>',1)),p("div",spt,[p("button",lpt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",upt,[L(P($t),{class:"w-5 h-5"})]),p("button",cpt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",fpt,[p("div",vpt,[(H(!0),W(Ft,null,re(i.value,u=>(H(),W("div",{key:u.id,class:"neon-card"},[p("div",dpt,[p("img",{src:u.cover,alt:u.title,class:"neon-card-cover-img"},null,8,hpt)]),p("div",ppt,[p("div",gpt,[p("div",mpt,[p("div",{class:ie(["neon-avatar",u.avatarClass])},at(u.initials),3)]),p("div",ypt,[p("h3",_pt,at(u.title),1),p("p",bpt,at(u.description),1)])]),p("p",xpt,at(u.content),1),p("div",wpt,[p("button",Spt,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(u.likes),1)]),p("button",Mpt,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(u.comments),1)]),p("button",Cpt,[L(P(Ra),{class:"w-5 h-5"})])])])]))),128))]),l[14]||(l[14]=zt('<div class="neon-form" data-v-499287f4><div class="neon-form-item" data-v-499287f4><label class="neon-form-item-label" data-v-499287f4>文本输入</label><div class="neon-form-item-control" data-v-499287f4><input type="text" placeholder="请输入内容" class="neon-input" data-v-499287f4></div></div><div class="neon-form-item" data-v-499287f4><label class="neon-form-item-label" data-v-499287f4>密码输入</label><div class="neon-form-item-control" data-v-499287f4><input type="password" placeholder="请输入密码" class="neon-input" data-v-499287f4></div></div><div class="neon-form-item" data-v-499287f4><label class="neon-form-item-label" data-v-499287f4>下拉选择</label><div class="neon-form-item-control" data-v-499287f4><select class="neon-select" data-v-499287f4><option data-v-499287f4>选项 1</option><option data-v-499287f4>选项 2</option><option data-v-499287f4>选项 3</option></select></div></div><div class="neon-form-item" data-v-499287f4><label class="neon-form-item-label" data-v-499287f4>开关</label><div class="neon-form-item-control" data-v-499287f4><label class="neon-switch" data-v-499287f4><input type="checkbox" data-v-499287f4><span class="neon-switch-inner" data-v-499287f4></span></label></div></div></div><div class="neon-btn-group" data-v-499287f4><button class="neon-btn primary" data-v-499287f4>主要按钮</button><button class="neon-btn secondary" data-v-499287f4>次要按钮</button><button class="neon-btn outline" data-v-499287f4>轮廓按钮</button><button class="neon-btn text" data-v-499287f4>文本按钮</button></div>',2)),p("div",Ipt,[p("div",Tpt,[(H(!0),W(Ft,null,re(o.value,u=>(H(),W("div",{key:u.id,class:ie(["neon-tabs-tab",{active:n.value===u.id}]),onClick:c=>n.value=u.id},at(u.label),11,Apt))),128))]),p("div",Dpt,[n.value==="tab1"?(H(),W("div",Lpt,l[6]||(l[6]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),n.value==="tab2"?(H(),W("div",kpt,l[7]||(l[7]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),n.value==="tab3"?(H(),W("div",Ppt,l[8]||(l[8]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])]),t.value?(H(),W("div",Rpt,[p("div",Ept,[p("div",Npt,[p("div",$pt,[p("div",Opt,[l[9]||(l[9]=p("div",{class:"neon-modal-title"},"对话框标题",-1)),p("button",{class:"neon-modal-close",onClick:l[0]||(l[0]=u=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),l[10]||(l[10]=p("div",{class:"neon-modal-body"},[p("p",null,"这是一个霓虹灯风格的对话框示例。")],-1)),p("div",zpt,[p("button",{class:"neon-btn",onClick:l[1]||(l[1]=u=>t.value=!1)},"取消"),p("button",{class:"neon-btn primary",onClick:l[2]||(l[2]=u=>t.value=!1)},"确定")])])])])])):ct("",!0),e.value?(H(),W("div",Bpt,[p("div",Vpt,[p("div",Gpt,[L(P(mn),{class:"w-5 h-5"}),l[11]||(l[11]=p("span",null,"这是一条消息提示",-1))])])])):ct("",!0),a.value?(H(),W("div",Fpt,[p("div",Hpt,[p("div",Wpt,[p("div",Zpt,[L(P($t),{class:"w-5 h-5"})]),l[12]||(l[12]=p("div",{class:"neon-notification-notice-message"},"通知标题",-1)),l[13]||(l[13]=p("div",{class:"neon-notification-notice-description"},"通知内容",-1))]),p("button",{class:"neon-notification-notice-close",onClick:l[3]||(l[3]=u=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])])])):ct("",!0)])]))}},jpt=Ce(Upt,[["__scopeId","data-v-499287f4"]]),Xpt={class:"steampunk-container min-h-screen bg-gradient-to-br from-amber-900 via-yellow-900 to-brown-900"},qpt={class:"steampunk-app-bar"},Kpt={class:"container mx-auto px-4 py-3 flex items-center justify-between"},Jpt={class:"flex items-center"},Qpt={class:"flex items-center space-x-4"},tgt={class:"steampunk-icon-button"},egt={class:"steampunk-icon-button"},rgt={class:"steampunk-icon-button"},agt={class:"container mx-auto p-6"},ngt={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},igt={class:"steampunk-card"},ogt={class:"p-4"},sgt={class:"space-y-2"},lgt={href:"#",class:"steampunk-nav-item active"},ugt={href:"#",class:"steampunk-nav-item"},cgt={href:"#",class:"steampunk-nav-item"},fgt={href:"#",class:"steampunk-nav-item"},vgt={class:"md:col-span-2 space-y-6"},dgt={class:"steampunk-card"},hgt={class:"p-4"},pgt={class:"space-y-4"},ggt={class:"steampunk-list-item"},mgt={class:"steampunk-icon-button"},ygt={class:"steampunk-list-item"},_gt={class:"steampunk-icon-button"},bgt={class:"steampunk-card"},xgt={class:"p-4"},wgt={class:"flex flex-wrap gap-4"},Sgt={class:"steampunk-button icon"},Mgt={class:"steampunk-card"},Cgt={class:"p-4"},Igt={class:"steampunk-bottom-nav"},Tgt={href:"#",class:"steampunk-bottom-nav-item active"},Agt={href:"#",class:"steampunk-bottom-nav-item"},Dgt={href:"#",class:"steampunk-bottom-nav-item"},Lgt={href:"#",class:"steampunk-bottom-nav-item"},kgt={href:"#",class:"steampunk-bottom-nav-item"},Pgt={key:0,class:"steampunk-dialog-overlay"},Rgt={class:"steampunk-dialog"},Egt={class:"steampunk-dialog-header"},Ngt={class:"steampunk-dialog-actions"},$gt={__name:"SteampunkView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",Xpt,[p("div",qpt,[p("div",Kpt,[p("div",Jpt,[L(P(Tr),{class:"w-5 h-5 text-amber-200 mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-amber-100"},"Steampunk Design",-1))]),p("div",Qpt,[p("button",tgt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",egt,[L(P($t),{class:"w-5 h-5"})]),p("button",rgt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",agt,[p("div",ngt,[p("div",igt,[p("div",ogt,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-amber-100"},"导航菜单",-1)),p("nav",sgt,[p("a",lgt,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",ugt,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"steampunk-badge"},"12",-1))]),p("a",cgt,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",fgt,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",vgt,[p("div",dgt,[p("div",hgt,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-amber-100"},"卡片列表",-1)),p("div",pgt,[p("div",ggt,[a[11]||(a[11]=p("div",{class:"steampunk-avatar bg-gradient-to-br from-amber-600 to-yellow-600"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-amber-100"},"卡片标题"),p("p",{class:"text-amber-200"},"卡片副标题")],-1)),p("button",mgt,[L(P(pe),{class:"w-5 h-5"})])]),p("div",ygt,[a[13]||(a[13]=p("div",{class:"steampunk-avatar bg-gradient-to-br from-yellow-600 to-brown-600"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-amber-100"},"另一个标题"),p("p",{class:"text-amber-200"},"另一个副标题")],-1)),p("button",_gt,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="steampunk-card" data-v-909f2f59><div class="p-4" data-v-909f2f59><h2 class="text-lg font-medium mb-4 text-amber-100" data-v-909f2f59>表单元素</h2><div class="space-y-4" data-v-909f2f59><div class="steampunk-input-group" data-v-909f2f59><label class="text-amber-200" data-v-909f2f59>文本输入</label><input type="text" placeholder="请输入内容" class="steampunk-input" data-v-909f2f59></div><div class="steampunk-input-group" data-v-909f2f59><label class="text-amber-200" data-v-909f2f59>密码输入</label><input type="password" placeholder="请输入密码" class="steampunk-input" data-v-909f2f59></div><div class="steampunk-input-group" data-v-909f2f59><label class="text-amber-200" data-v-909f2f59>下拉选择</label><select class="steampunk-input" data-v-909f2f59><option data-v-909f2f59>选项 1</option><option data-v-909f2f59>选项 2</option><option data-v-909f2f59>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-909f2f59><label class="steampunk-checkbox" data-v-909f2f59><input type="checkbox" data-v-909f2f59><span class="steampunk-checkmark" data-v-909f2f59></span><span class="text-amber-200" data-v-909f2f59>复选框</span></label><label class="steampunk-radio" data-v-909f2f59><input type="radio" name="radio" data-v-909f2f59><span class="steampunk-radiomark" data-v-909f2f59></span><span class="text-amber-200" data-v-909f2f59>单选框</span></label></div><div class="steampunk-switch" data-v-909f2f59><input type="checkbox" id="switch1" data-v-909f2f59><label for="switch1" class="text-amber-200" data-v-909f2f59>开关</label></div></div></div></div>',1)),p("div",bgt,[p("div",xgt,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-amber-100"},"按钮样式",-1)),p("div",wgt,[a[16]||(a[16]=p("button",{class:"steampunk-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"steampunk-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"steampunk-button text"},"文本按钮",-1)),p("button",Sgt,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="steampunk-card" data-v-909f2f59><div class="p-4" data-v-909f2f59><h2 class="text-lg font-medium mb-4 text-amber-100" data-v-909f2f59>进度指示器</h2><div class="space-y-4" data-v-909f2f59><div class="steampunk-progress" data-v-909f2f59><div class="steampunk-progress-bar" style="width:60%;" data-v-909f2f59></div></div><div class="steampunk-progress circular" data-v-909f2f59><div class="steampunk-progress-circle" data-v-909f2f59></div></div></div></div></div>',1)),p("div",Mgt,[p("div",Cgt,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-amber-100"},"对话框示例",-1)),p("button",{class:"steampunk-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",Igt,[p("a",Tgt,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",Agt,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",Dgt,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",Lgt,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",kgt,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",Pgt,[p("div",Rgt,[p("div",Egt,[a[28]||(a[28]=p("h3",{class:"text-amber-100"},"对话框标题",-1)),p("button",{class:"steampunk-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"steampunk-dialog-content"},[p("p",{class:"text-amber-200"},"这是一个蒸汽朋克风格的对话框示例。")],-1)),p("div",Ngt,[p("button",{class:"steampunk-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"steampunk-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},Ogt=Ce($gt,[["__scopeId","data-v-909f2f59"]]),zgt={class:"holographic-container min-h-screen bg-gradient-to-br from-blue-900 to-purple-900"},Bgt={class:"holographic-header"},Vgt={class:"holographic-header-content"},Ggt={class:"holographic-header-actions"},Fgt={class:"holographic-btn text"},Hgt={class:"holographic-btn text"},Wgt={class:"holographic-btn text"},Zgt={class:"holographic-main"},Ygt={class:"holographic-card-list"},Ugt={class:"holographic-card-cover"},jgt=["src","alt"],Xgt={class:"holographic-card-body"},qgt={class:"holographic-card-meta"},Kgt={class:"holographic-card-meta-avatar"},Jgt={class:"holographic-card-meta-content"},Qgt={class:"holographic-card-meta-title"},tmt={class:"holographic-card-meta-description"},emt={class:"holographic-card-content"},rmt={class:"holographic-card-actions"},amt={class:"holographic-btn text"},nmt={class:"holographic-btn text"},imt={class:"holographic-btn text"},omt={class:"holographic-tabs"},smt={class:"holographic-tabs-nav"},lmt=["onClick"],umt={class:"holographic-tabs-content"},cmt={key:0,class:"holographic-tabs-tabpane"},fmt={key:1,class:"holographic-tabs-tabpane"},vmt={key:2,class:"holographic-tabs-tabpane"},dmt={key:0,class:"holographic-modal-mask"},hmt={class:"holographic-modal-wrap"},pmt={class:"holographic-modal"},gmt={class:"holographic-modal-content"},mmt={class:"holographic-modal-header"},ymt={class:"holographic-modal-footer"},_mt={key:1,class:"holographic-message"},bmt={class:"holographic-message-notice"},xmt={class:"holographic-message-notice-content"},wmt={key:2,class:"holographic-notification"},Smt={class:"holographic-notification-notice"},Mmt={class:"holographic-notification-notice-content"},Cmt={class:"holographic-notification-notice-icon"},Imt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIgZmlsbD0idXJsKCNwYWludDApIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJwYWludDAiIHgxPSIwIiB5MT0iMCIgeDI9IjMyIiB5Mj0iMzIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjMDA2NkZGIi8+PHN0b3Agb2Zmc2V0PSIwLjUiIHN0b3AtY29sb3I9IiNGRjAwRkYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRkZGMDAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",Tmt={__name:"HolographicView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt("tab1"),i=nt([{id:1,title:"卡片标题",description:"副标题",content:"这是卡片的内容,可以包含多行文本。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2MCAyMEM4MC4yNjggMjAgMjAgODAuMjY4IDIwIDE2MEMyMCAyMzkuNzMyIDgwLjI2OCAzMDAgMTYwIDMwMEMyMzkuNzMyIDMwMCAzMDAgMjM5LjczMiAzMDAgMTYwQzMwMCA4MC4yNjggMjM5LjczMiAyMCAxNjAgMjBaIiBmaWxsPSJ1cmwoI3BhaW50MCkiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MCIgeDE9IjAiIHkxPSIwIiB4Mj0iMzIwIiB5Mj0iMjQwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGQjRGRiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGODBGRiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==",likes:42,comments:8,initials:"JD",avatarClass:"bg-pink-500"},{id:2,title:"另一个标题",description:"另一个副标题",content:"这是另一个卡片的内容。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2MCAyMEM4MC4yNjggMjAgMjAgODAuMjY4IDIwIDE2MEMyMCAyMzkuNzMyIDgwLjI2OCAzMDAgMTYwIDMwMEMyMzkuNzMyIDMwMCAzMDAgMjM5LjczMiAzMDAgMTYwQzMwMCA4MC4yNjggMjM5LjczMiAyMCAxNjAgMjBaIiBmaWxsPSJ1cmwoI3BhaW50MCkiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MCIgeDE9IjAiIHkxPSIwIiB4Mj0iMzIwIiB5Mj0iMjQwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGQjRGRiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGODBGRiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==",likes:36,comments:5,initials:"AB",avatarClass:"bg-pink-600"}]),o=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(s,l)=>(H(),W("div",zgt,[p("div",Bgt,[p("div",Vgt,[p("div",{class:"holographic-logo"},[p("img",{src:Imt,alt:"Holographic Logo",class:"holographic-logo-img"}),l[4]||(l[4]=p("span",{class:"holographic-logo-text"},"Holographic",-1))]),l[5]||(l[5]=zt('<div class="holographic-nav" data-v-00f9da77><a href="#" class="holographic-nav-item active" data-v-00f9da77>首页</a><a href="#" class="holographic-nav-item" data-v-00f9da77>组件</a><a href="#" class="holographic-nav-item" data-v-00f9da77>文档</a><a href="#" class="holographic-nav-item" data-v-00f9da77>主题</a></div>',1)),p("div",Ggt,[p("button",Fgt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",Hgt,[L(P($t),{class:"w-5 h-5"})]),p("button",Wgt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",Zgt,[p("div",Ygt,[(H(!0),W(Ft,null,re(i.value,u=>(H(),W("div",{key:u.id,class:"holographic-card"},[p("div",Ugt,[p("img",{src:u.cover,alt:u.title,class:"holographic-card-cover-img"},null,8,jgt)]),p("div",Xgt,[p("div",qgt,[p("div",Kgt,[p("div",{class:ie(["holographic-avatar",u.avatarClass])},at(u.initials),3)]),p("div",Jgt,[p("h3",Qgt,at(u.title),1),p("p",tmt,at(u.description),1)])]),p("p",emt,at(u.content),1),p("div",rmt,[p("button",amt,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(u.likes),1)]),p("button",nmt,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(u.comments),1)]),p("button",imt,[L(P(Ra),{class:"w-5 h-5"})])])])]))),128))]),l[14]||(l[14]=zt('<div class="holographic-form" data-v-00f9da77><div class="holographic-form-item" data-v-00f9da77><label class="holographic-form-item-label" data-v-00f9da77>文本输入</label><div class="holographic-form-item-control" data-v-00f9da77><input type="text" placeholder="请输入内容" class="holographic-input" data-v-00f9da77></div></div><div class="holographic-form-item" data-v-00f9da77><label class="holographic-form-item-label" data-v-00f9da77>密码输入</label><div class="holographic-form-item-control" data-v-00f9da77><input type="password" placeholder="请输入密码" class="holographic-input" data-v-00f9da77></div></div><div class="holographic-form-item" data-v-00f9da77><label class="holographic-form-item-label" data-v-00f9da77>下拉选择</label><div class="holographic-form-item-control" data-v-00f9da77><select class="holographic-select" data-v-00f9da77><option data-v-00f9da77>选项 1</option><option data-v-00f9da77>选项 2</option><option data-v-00f9da77>选项 3</option></select></div></div><div class="holographic-form-item" data-v-00f9da77><label class="holographic-form-item-label" data-v-00f9da77>开关</label><div class="holographic-form-item-control" data-v-00f9da77><label class="holographic-switch" data-v-00f9da77><input type="checkbox" data-v-00f9da77><span class="holographic-switch-inner" data-v-00f9da77></span></label></div></div></div><div class="holographic-btn-group" data-v-00f9da77><button class="holographic-btn primary" data-v-00f9da77>主要按钮</button><button class="holographic-btn secondary" data-v-00f9da77>次要按钮</button><button class="holographic-btn outline" data-v-00f9da77>轮廓按钮</button><button class="holographic-btn text" data-v-00f9da77>文本按钮</button></div>',2)),p("div",omt,[p("div",smt,[(H(!0),W(Ft,null,re(o.value,u=>(H(),W("div",{key:u.id,class:ie(["holographic-tabs-tab",{active:n.value===u.id}]),onClick:c=>n.value=u.id},at(u.label),11,lmt))),128))]),p("div",umt,[n.value==="tab1"?(H(),W("div",cmt,l[6]||(l[6]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),n.value==="tab2"?(H(),W("div",fmt,l[7]||(l[7]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),n.value==="tab3"?(H(),W("div",vmt,l[8]||(l[8]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])]),t.value?(H(),W("div",dmt,[p("div",hmt,[p("div",pmt,[p("div",gmt,[p("div",mmt,[l[9]||(l[9]=p("div",{class:"holographic-modal-title"},"对话框标题",-1)),p("button",{class:"holographic-modal-close",onClick:l[0]||(l[0]=u=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),l[10]||(l[10]=p("div",{class:"holographic-modal-body"},[p("p",null,"这是一个全息投影风格的对话框示例。")],-1)),p("div",ymt,[p("button",{class:"holographic-btn",onClick:l[1]||(l[1]=u=>t.value=!1)},"取消"),p("button",{class:"holographic-btn primary",onClick:l[2]||(l[2]=u=>t.value=!1)},"确定")])])])])])):ct("",!0),e.value?(H(),W("div",_mt,[p("div",bmt,[p("div",xmt,[L(P(mn),{class:"w-5 h-5"}),l[11]||(l[11]=p("span",null,"这是一条消息提示",-1))])])])):ct("",!0),a.value?(H(),W("div",wmt,[p("div",Smt,[p("div",Mmt,[p("div",Cmt,[L(P($t),{class:"w-5 h-5"})]),l[12]||(l[12]=p("div",{class:"holographic-notification-notice-message"},"通知标题",-1)),l[13]||(l[13]=p("div",{class:"holographic-notification-notice-description"},"通知内容",-1))]),p("button",{class:"holographic-notification-notice-close",onClick:l[3]||(l[3]=u=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])])])):ct("",!0)])]))}},Amt=Ce(Tmt,[["__scopeId","data-v-00f9da77"]]),Dmt={class:"gradient-container min-h-screen bg-gradient-to-br from-pink-500 via-purple-500 to-indigo-500"},Lmt={class:"gradient-header"},kmt={class:"gradient-header-content"},Pmt={class:"gradient-header-actions"},Rmt={class:"gradient-btn text"},Emt={class:"gradient-btn text"},Nmt={class:"gradient-btn text"},$mt={class:"gradient-main"},Omt={class:"gradient-card-list"},zmt={class:"gradient-card-cover"},Bmt=["src","alt"],Vmt={class:"gradient-card-body"},Gmt={class:"gradient-card-meta"},Fmt={class:"gradient-card-meta-avatar"},Hmt={class:"gradient-card-meta-content"},Wmt={class:"gradient-card-meta-title"},Zmt={class:"gradient-card-meta-description"},Ymt={class:"gradient-card-content"},Umt={class:"gradient-card-actions"},jmt={class:"gradient-btn text"},Xmt={class:"gradient-btn text"},qmt={class:"gradient-btn text"},Kmt={class:"gradient-tabs"},Jmt={class:"gradient-tabs-nav"},Qmt=["onClick"],tyt={class:"gradient-tabs-content"},eyt={key:0,class:"gradient-tabs-tabpane"},ryt={key:1,class:"gradient-tabs-tabpane"},ayt={key:2,class:"gradient-tabs-tabpane"},nyt={key:0,class:"gradient-modal-mask"},iyt={class:"gradient-modal-wrap"},oyt={class:"gradient-modal"},syt={class:"gradient-modal-content"},lyt={class:"gradient-modal-header"},uyt={class:"gradient-modal-footer"},cyt={key:1,class:"gradient-message"},fyt={class:"gradient-message-notice"},vyt={class:"gradient-message-notice-content"},dyt={key:2,class:"gradient-notification"},hyt={class:"gradient-notification-notice"},pyt={class:"gradient-notification-notice-content"},gyt={class:"gradient-notification-notice-icon"},myt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIgZmlsbD0idXJsKCNwYWludDApIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJwYWludDAiIHgxPSIwIiB5MT0iMCIgeDI9IjMyIiB5Mj0iMzIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRkY2QjAwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkYwMDAwIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+",yyt={__name:"GradientView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt("tab1"),i=nt([{id:1,title:"卡片标题",description:"副标题",content:"这是卡片的内容,可以包含多行文本。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2MCAyMEM4MC4yNjggMjAgMjAgODAuMjY4IDIwIDE2MEMyMCAyMzkuNzMyIDgwLjI2OCAzMDAgMTYwIDMwMEMyMzkuNzMyIDMwMCAzMDAgMjM5LjczMiAzMDAgMTYwQzMwMCA4MC4yNjggMjM5LjczMiAyMCAxNjAgMjBaIiBmaWxsPSJ1cmwoI3BhaW50MCkiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MCIgeDE9IjAiIHkxPSIwIiB4Mj0iMzIwIiB5Mj0iMjQwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGNkIwMCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGMDAwMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==",likes:42,comments:8,initials:"JD",avatarClass:"bg-orange-500"},{id:2,title:"另一个标题",description:"另一个副标题",content:"这是另一个卡片的内容。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2MCAyMEM4MC4yNjggMjAgMjAgODAuMjY4IDIwIDE2MEMyMCAyMzkuNzMyIDgwLjI2OCAzMDAgMTYwIDMwMEMyMzkuNzMyIDMwMCAzMDAgMjM5LjczMiAzMDAgMTYwQzMwMCA4MC4yNjggMjM5LjczMiAyMCAxNjAgMjBaIiBmaWxsPSJ1cmwoI3BhaW50MCkiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MCIgeDE9IjAiIHkxPSIwIiB4Mj0iMzIwIiB5Mj0iMjQwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGNkIwMCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGMDAwMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==",likes:36,comments:5,initials:"AB",avatarClass:"bg-orange-600"}]),o=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(s,l)=>(H(),W("div",Dmt,[p("div",Lmt,[p("div",kmt,[p("div",{class:"gradient-logo"},[p("img",{src:myt,alt:"Gradient Logo",class:"gradient-logo-img"}),l[4]||(l[4]=p("span",{class:"gradient-logo-text"},"Gradient",-1))]),l[5]||(l[5]=zt('<div class="gradient-nav" data-v-83d9391a><a href="#" class="gradient-nav-item active" data-v-83d9391a>首页</a><a href="#" class="gradient-nav-item" data-v-83d9391a>组件</a><a href="#" class="gradient-nav-item" data-v-83d9391a>文档</a><a href="#" class="gradient-nav-item" data-v-83d9391a>主题</a></div>',1)),p("div",Pmt,[p("button",Rmt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",Emt,[L(P($t),{class:"w-5 h-5"})]),p("button",Nmt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",$mt,[p("div",Omt,[(H(!0),W(Ft,null,re(i.value,u=>(H(),W("div",{key:u.id,class:"gradient-card"},[p("div",zmt,[p("img",{src:u.cover,alt:u.title,class:"gradient-card-cover-img"},null,8,Bmt)]),p("div",Vmt,[p("div",Gmt,[p("div",Fmt,[p("div",{class:ie(["gradient-avatar",u.avatarClass])},at(u.initials),3)]),p("div",Hmt,[p("h3",Wmt,at(u.title),1),p("p",Zmt,at(u.description),1)])]),p("p",Ymt,at(u.content),1),p("div",Umt,[p("button",jmt,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(u.likes),1)]),p("button",Xmt,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(u.comments),1)]),p("button",qmt,[L(P(Ra),{class:"w-5 h-5"})])])])]))),128))]),l[14]||(l[14]=zt('<div class="gradient-form" data-v-83d9391a><div class="gradient-form-item" data-v-83d9391a><label class="gradient-form-item-label" data-v-83d9391a>文本输入</label><div class="gradient-form-item-control" data-v-83d9391a><input type="text" placeholder="请输入内容" class="gradient-input" data-v-83d9391a></div></div><div class="gradient-form-item" data-v-83d9391a><label class="gradient-form-item-label" data-v-83d9391a>密码输入</label><div class="gradient-form-item-control" data-v-83d9391a><input type="password" placeholder="请输入密码" class="gradient-input" data-v-83d9391a></div></div><div class="gradient-form-item" data-v-83d9391a><label class="gradient-form-item-label" data-v-83d9391a>下拉选择</label><div class="gradient-form-item-control" data-v-83d9391a><select class="gradient-select" data-v-83d9391a><option data-v-83d9391a>选项 1</option><option data-v-83d9391a>选项 2</option><option data-v-83d9391a>选项 3</option></select></div></div><div class="gradient-form-item" data-v-83d9391a><label class="gradient-form-item-label" data-v-83d9391a>开关</label><div class="gradient-form-item-control" data-v-83d9391a><label class="gradient-switch" data-v-83d9391a><input type="checkbox" data-v-83d9391a><span class="gradient-switch-inner" data-v-83d9391a></span></label></div></div></div><div class="gradient-btn-group" data-v-83d9391a><button class="gradient-btn primary" data-v-83d9391a>主要按钮</button><button class="gradient-btn secondary" data-v-83d9391a>次要按钮</button><button class="gradient-btn outline" data-v-83d9391a>轮廓按钮</button><button class="gradient-btn text" data-v-83d9391a>文本按钮</button></div>',2)),p("div",Kmt,[p("div",Jmt,[(H(!0),W(Ft,null,re(o.value,u=>(H(),W("div",{key:u.id,class:ie(["gradient-tabs-tab",{active:n.value===u.id}]),onClick:c=>n.value=u.id},at(u.label),11,Qmt))),128))]),p("div",tyt,[n.value==="tab1"?(H(),W("div",eyt,l[6]||(l[6]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),n.value==="tab2"?(H(),W("div",ryt,l[7]||(l[7]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),n.value==="tab3"?(H(),W("div",ayt,l[8]||(l[8]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])]),t.value?(H(),W("div",nyt,[p("div",iyt,[p("div",oyt,[p("div",syt,[p("div",lyt,[l[9]||(l[9]=p("div",{class:"gradient-modal-title"},"对话框标题",-1)),p("button",{class:"gradient-modal-close",onClick:l[0]||(l[0]=u=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),l[10]||(l[10]=p("div",{class:"gradient-modal-body"},[p("p",null,"这是一个渐变风格的对话框示例。")],-1)),p("div",uyt,[p("button",{class:"gradient-btn",onClick:l[1]||(l[1]=u=>t.value=!1)},"取消"),p("button",{class:"gradient-btn primary",onClick:l[2]||(l[2]=u=>t.value=!1)},"确定")])])])])])):ct("",!0),e.value?(H(),W("div",cyt,[p("div",fyt,[p("div",vyt,[L(P(mn),{class:"w-5 h-5"}),l[11]||(l[11]=p("span",null,"这是一条消息提示",-1))])])])):ct("",!0),a.value?(H(),W("div",dyt,[p("div",hyt,[p("div",pyt,[p("div",gyt,[L(P($t),{class:"w-5 h-5"})]),l[12]||(l[12]=p("div",{class:"gradient-notification-notice-message"},"通知标题",-1)),l[13]||(l[13]=p("div",{class:"gradient-notification-notice-description"},"通知内容",-1))]),p("button",{class:"gradient-notification-notice-close",onClick:l[3]||(l[3]=u=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])])])):ct("",!0)])]))}},_yt=Ce(yyt,[["__scopeId","data-v-83d9391a"]]),byt={class:"ant-container min-h-screen bg-gray-50"},xyt={class:"ant-header"},wyt={class:"ant-header-content"},Syt={class:"ant-header-actions"},Myt={class:"ant-btn text"},Cyt={class:"ant-btn text"},Iyt={class:"ant-btn text"},Tyt={class:"ant-main"},Ayt={class:"ant-card-list"},Dyt={class:"ant-card-cover"},Lyt=["src","alt"],kyt={class:"ant-card-body"},Pyt={class:"ant-card-meta"},Ryt={class:"ant-card-meta-avatar"},Eyt={class:"ant-card-meta-content"},Nyt={class:"ant-card-meta-title"},$yt={class:"ant-card-meta-description"},Oyt={class:"ant-card-content"},zyt={class:"ant-card-actions"},Byt={class:"ant-btn text"},Vyt={class:"ant-btn text"},Gyt={class:"ant-btn text"},Fyt={class:"ant-tabs"},Hyt={class:"ant-tabs-nav"},Wyt=["onClick"],Zyt={class:"ant-tabs-content"},Yyt={key:0,class:"ant-tabs-tabpane"},Uyt={key:1,class:"ant-tabs-tabpane"},jyt={key:2,class:"ant-tabs-tabpane"},Xyt={key:0,class:"ant-modal-mask"},qyt={class:"ant-modal-wrap"},Kyt={class:"ant-modal"},Jyt={class:"ant-modal-content"},Qyt={class:"ant-modal-header"},t0t={class:"ant-modal-footer"},e0t={key:1,class:"ant-message"},r0t={class:"ant-message-notice"},a0t={class:"ant-message-notice-content"},n0t={key:2,class:"ant-notification"},i0t={class:"ant-notification-notice"},o0t={class:"ant-notification-notice-content"},s0t={class:"ant-notification-notice-icon"},l0t="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIgZmlsbD0idXJsKCNwYWludDApIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJwYWludDAiIHgxPSIwIiB5MT0iMCIgeDI9IjMyIiB5Mj0iMzIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjMTg5MEZGIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDA2NkZGIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+",u0t={__name:"AntDesignView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt("tab1"),i=nt([{id:1,title:"卡片标题",description:"副标题",content:"这是卡片的内容,可以包含多行文本。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiNGRkZGRkYiLz48cGF0aCBkPSJNMTYwIDYwQzEzMy40MzEgNjAgMTEyIDgxLjQzMSAxMTIgMTA4QzExMiAxMzQuNTY5IDEzMy40MzEgMTU2IDE2MCAxNTZDMTg2LjU2OSAxNTYgMjA4IDEzNC41NjkgMjA4IDEwOEMyMDggODEuNDMxIDE4Ni41NjkgNjAgMTYwIDYwWiIgZmlsbD0iIzE4OTBGRiIvPjxwYXRoIGQ9Ik0xNjAgMTgwQzEzMy40MzEgMTgwIDExMiAyMDEuNDMxIDExMiAyMjhDMTEyIDI1NC41NjkgMTMzLjQzMSAyNzYgMTYwIDI3NkMxODYuNTY5IDI3NiAyMDggMjU0LjU2OSAyMDggMjI4QzIwOCAyMDEuNDMxIDE4Ni41NjkgMTgwIDE2MCAxODBaIiBmaWxsPSIjMDA2NkZGIi8+PC9zdmc+",likes:42,comments:8,initials:"JD",avatarClass:"bg-blue-500"},{id:2,title:"另一个标题",description:"另一个副标题",content:"这是另一个卡片的内容。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiNGRkZGRkYiLz48cGF0aCBkPSJNMTYwIDYwQzEzMy40MzEgNjAgMTEyIDgxLjQzMSAxMTIgMTA4QzExMiAxMzQuNTY5IDEzMy40MzEgMTU2IDE2MCAxNTZDMTg2LjU2OSAxNTYgMjA4IDEzNC41NjkgMjA4IDEwOEMyMDggODEuNDMxIDE4Ni41NjkgNjAgMTYwIDYwWiIgZmlsbD0iIzAwNjZGRiIvPjxwYXRoIGQ9Ik0xNjAgMTgwQzEzMy40MzEgMTgwIDExMiAyMDEuNDMxIDExMiAyMjhDMTEyIDI1NC41NjkgMTMzLjQzMSAyNzYgMTYwIDI3NkMxODYuNTY5IDI3NiAyMDggMjU0LjU2OSAyMDggMjI4QzIwOCAyMDEuNDMxIDE4Ni41NjkgMTgwIDE2MCAxODBaIiBmaWxsPSIjMTg5MEZGIi8+PC9zdmc+",likes:36,comments:5,initials:"AB",avatarClass:"bg-blue-600"}]),o=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]);return(s,l)=>(H(),W("div",byt,[p("div",xyt,[p("div",wyt,[p("div",{class:"ant-logo"},[p("img",{src:l0t,alt:"Ant Design Logo",class:"ant-logo-img"}),l[4]||(l[4]=p("span",{class:"ant-logo-text"},"Ant Design",-1))]),l[5]||(l[5]=zt('<div class="ant-nav" data-v-8473f951><a href="#" class="ant-nav-item active" data-v-8473f951>首页</a><a href="#" class="ant-nav-item" data-v-8473f951>组件</a><a href="#" class="ant-nav-item" data-v-8473f951>文档</a><a href="#" class="ant-nav-item" data-v-8473f951>主题</a></div>',1)),p("div",Syt,[p("button",Myt,[L(P(Ht),{class:"w-5 h-5"})]),p("button",Cyt,[L(P($t),{class:"w-5 h-5"})]),p("button",Iyt,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",Tyt,[p("div",Ayt,[(H(!0),W(Ft,null,re(i.value,u=>(H(),W("div",{key:u.id,class:"ant-card"},[p("div",Dyt,[p("img",{src:u.cover,alt:u.title,class:"ant-card-cover-img"},null,8,Lyt)]),p("div",kyt,[p("div",Pyt,[p("div",Ryt,[p("div",{class:ie(["ant-avatar",u.avatarClass])},at(u.initials),3)]),p("div",Eyt,[p("h3",Nyt,at(u.title),1),p("p",$yt,at(u.description),1)])]),p("p",Oyt,at(u.content),1),p("div",zyt,[p("button",Byt,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(u.likes),1)]),p("button",Vyt,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(u.comments),1)]),p("button",Gyt,[L(P(Ra),{class:"w-5 h-5"})])])])]))),128))]),l[14]||(l[14]=zt('<div class="ant-form" data-v-8473f951><div class="ant-form-item" data-v-8473f951><label class="ant-form-item-label" data-v-8473f951>文本输入</label><div class="ant-form-item-control" data-v-8473f951><input type="text" placeholder="请输入内容" class="ant-input" data-v-8473f951></div></div><div class="ant-form-item" data-v-8473f951><label class="ant-form-item-label" data-v-8473f951>密码输入</label><div class="ant-form-item-control" data-v-8473f951><input type="password" placeholder="请输入密码" class="ant-input" data-v-8473f951></div></div><div class="ant-form-item" data-v-8473f951><label class="ant-form-item-label" data-v-8473f951>下拉选择</label><div class="ant-form-item-control" data-v-8473f951><select class="ant-select" data-v-8473f951><option data-v-8473f951>选项 1</option><option data-v-8473f951>选项 2</option><option data-v-8473f951>选项 3</option></select></div></div><div class="ant-form-item" data-v-8473f951><label class="ant-form-item-label" data-v-8473f951>开关</label><div class="ant-form-item-control" data-v-8473f951><label class="ant-switch" data-v-8473f951><input type="checkbox" data-v-8473f951><span class="ant-switch-inner" data-v-8473f951></span></label></div></div></div><div class="ant-btn-group" data-v-8473f951><button class="ant-btn primary" data-v-8473f951>主要按钮</button><button class="ant-btn default" data-v-8473f951>默认按钮</button><button class="ant-btn dashed" data-v-8473f951>虚线按钮</button><button class="ant-btn text" data-v-8473f951>文本按钮</button><button class="ant-btn link" data-v-8473f951>链接按钮</button></div>',2)),p("div",Fyt,[p("div",Hyt,[(H(!0),W(Ft,null,re(o.value,u=>(H(),W("div",{key:u.id,class:ie(["ant-tabs-tab",{active:n.value===u.id}]),onClick:c=>n.value=u.id},at(u.label),11,Wyt))),128))]),p("div",Zyt,[n.value==="tab1"?(H(),W("div",Yyt,l[6]||(l[6]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),n.value==="tab2"?(H(),W("div",Uyt,l[7]||(l[7]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),n.value==="tab3"?(H(),W("div",jyt,l[8]||(l[8]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])]),t.value?(H(),W("div",Xyt,[p("div",qyt,[p("div",Kyt,[p("div",Jyt,[p("div",Qyt,[l[9]||(l[9]=p("div",{class:"ant-modal-title"},"对话框标题",-1)),p("button",{class:"ant-modal-close",onClick:l[0]||(l[0]=u=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),l[10]||(l[10]=p("div",{class:"ant-modal-body"},[p("p",null,"这是一个 Ant Design 风格的对话框示例。")],-1)),p("div",t0t,[p("button",{class:"ant-btn",onClick:l[1]||(l[1]=u=>t.value=!1)},"取消"),p("button",{class:"ant-btn primary",onClick:l[2]||(l[2]=u=>t.value=!1)},"确定")])])])])])):ct("",!0),e.value?(H(),W("div",e0t,[p("div",r0t,[p("div",a0t,[L(P(mn),{class:"w-5 h-5"}),l[11]||(l[11]=p("span",null,"这是一条消息提示",-1))])])])):ct("",!0),a.value?(H(),W("div",n0t,[p("div",i0t,[p("div",o0t,[p("div",s0t,[L(P($t),{class:"w-5 h-5"})]),l[12]||(l[12]=p("div",{class:"ant-notification-notice-message"},"通知标题",-1)),l[13]||(l[13]=p("div",{class:"ant-notification-notice-description"},"通知内容",-1))]),p("button",{class:"ant-notification-notice-close",onClick:l[3]||(l[3]=u=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])])])):ct("",!0)])]))}},c0t=Ce(u0t,[["__scopeId","data-v-8473f951"]]),f0t={class:"element-container min-h-screen bg-gray-50"},v0t={class:"element-header"},d0t={class:"element-header-content"},h0t={class:"element-header-actions"},p0t={class:"element-button text"},g0t={class:"element-button text"},m0t={class:"element-button text"},y0t={class:"element-main"},_0t={class:"element-card-list"},b0t={class:"element-card-header"},x0t={class:"element-card-info"},w0t={class:"element-card-title"},S0t={class:"element-card-subtitle"},M0t={class:"element-card-actions"},C0t={class:"element-button text"},I0t={class:"element-card-body"},T0t=["src"],A0t={class:"element-card-footer"},D0t={class:"element-button text"},L0t={class:"element-button text"},k0t={class:"element-button text"},P0t={class:"element-tabs"},R0t={class:"element-tabs-header"},E0t=["onClick"],N0t={class:"element-tabs-content"},$0t={key:0,class:"element-tab-pane"},O0t={key:1,class:"element-tab-pane"},z0t={key:2,class:"element-tab-pane"},B0t={key:0,class:"element-dialog-wrapper"},V0t={class:"element-dialog"},G0t={class:"element-dialog-header"},F0t={class:"element-dialog-footer"},H0t={key:1,class:"element-message"},W0t={class:"element-message-content"},Z0t={key:2,class:"element-notification"},Y0t={class:"element-notification-title"},U0t={class:"element-notification-list"},j0t={class:"element-notification-icon"},X0t={class:"element-notification-content"},q0t={class:"element-notification-time"},K0t="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIgZmlsbD0idXJsKCNwYWludDApIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJwYWludDAiIHgxPSIwIiB5MT0iMCIgeDI9IjMyIiB5Mj0iMzIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjNDFCODgzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMkQ4ODVGIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+",J0t={__name:"ElementUIView",setup(r){const t=nt(!1),e=nt(!1),a=nt(!1),n=nt("tab1"),i=nt([{id:1,title:"卡片标题",description:"副标题",content:"这是卡片的内容,可以包含多行文本。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiNGRkZGRkYiLz48cGF0aCBkPSJNMTYwIDYwQzEzMy40MzEgNjAgMTEyIDgxLjQzMSAxMTIgMTA4QzExMiAxMzQuNTY5IDEzMy40MzEgMTU2IDE2MCAxNTZDMTg2LjU2OSAxNTYgMjA4IDEzNC41NjkgMjA4IDEwOEMyMDggODEuNDMxIDE4Ni41NjkgNjAgMTYwIDYwWiIgZmlsbD0iIzQxQjg4MyIvPjxwYXRoIGQ9Ik0xNjAgMTgwQzEzMy40MzEgMTgwIDExMiAyMDEuNDMxIDExMiAyMjhDMTEyIDI1NC41NjkgMTMzLjQzMSAyNzYgMTYwIDI3NkMxODYuNTY5IDI3NiAyMDggMjU0LjU2OSAyMDggMjI4QzIwOCAyMDEuNDMxIDE4Ni41NjkgMTgwIDE2MCAxODBaIiBmaWxsPSIjMkQ4ODVGIi8+PC9zdmc+",likes:42,comments:8,initials:"JD",avatarClass:"bg-green-500"},{id:2,title:"另一个标题",description:"另一个副标题",content:"这是另一个卡片的内容。",cover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDMyMCAyNDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyMCIgaGVpZ2h0PSIyNDAiIGZpbGw9IiNGRkZGRkYiLz48cGF0aCBkPSJNMTYwIDYwQzEzMy40MzEgNjAgMTEyIDg1LjQzMSAxMTIgMTE4QzExMiAxNTAuNTY5IDEzMy40MzEgMTcyIDE2MCAxNzJDMTg2LjU2OSAxNzIgMjA4IDE1MC41NjkgMjA4IDExOEMyMDggODUuNDMxIDE4Ni41NjkgNjAgMTYwIDYwWiIgZmlsbD0iIzJEOjg1RiIvPjxwYXRoIGQ9Ik0xNjAgMTgwQzEzMy40MzEgMTgwIDExMiAyMDEuNDMxIDExMiAyMjhDMTEyIDI1NC41NjkgMTMzLjQzMSAyNzYgMTYwIDI3NkMxODYuNTY5IDI3NiAyMDggMjU0LjU2OSAyMDggMjI4QzIwOCAyMDEuNDMxIDE4Ni41NjkgMTgwIDE2MCAxODBaIiBmaWxsPSIjNDFCODgzIi8+PC9zdmc+",likes:36,comments:5,initials:"AB",avatarClass:"bg-green-600"}]),o=nt([{id:"tab1",label:"标签页 1"},{id:"tab2",label:"标签页 2"},{id:"tab3",label:"标签页 3"}]),s=nt([{id:1,title:"新消息",content:"Alice 给你发送了一条消息",time:"刚刚"},{id:2,title:"系统通知",content:"系统将在今晚进行维护",time:"1小时前"}]);return(l,u)=>(H(),W("div",f0t,[p("div",v0t,[p("div",d0t,[p("div",{class:"element-logo"},[p("img",{src:K0t,alt:"Element Logo",class:"element-logo-img"}),u[4]||(u[4]=p("span",{class:"element-logo-text"},"Element UI",-1))]),u[5]||(u[5]=zt('<div class="element-nav" data-v-8c64faa7><a href="#" class="element-nav-item active" data-v-8c64faa7>首页</a><a href="#" class="element-nav-item" data-v-8c64faa7>组件</a><a href="#" class="element-nav-item" data-v-8c64faa7>文档</a><a href="#" class="element-nav-item" data-v-8c64faa7>主题</a></div>',1)),p("div",h0t,[p("button",p0t,[L(P(Ht),{class:"w-5 h-5"})]),p("button",g0t,[L(P($t),{class:"w-5 h-5"})]),p("button",m0t,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",y0t,[p("div",_0t,[(H(!0),W(Ft,null,re(i.value,c=>(H(),W("div",{key:c.id,class:"element-card"},[p("div",b0t,[p("div",{class:ie(["element-avatar",c.avatarClass])},at(c.initials),3),p("div",x0t,[p("h3",w0t,at(c.title),1),p("p",S0t,at(c.description),1)]),p("div",M0t,[p("button",C0t,[L(P(pe),{class:"w-5 h-5"})])])]),p("div",I0t,[p("img",{src:c.cover,alt:"Card Cover",class:"element-card-cover"},null,8,T0t),p("p",null,at(c.content),1)]),p("div",A0t,[p("button",D0t,[L(P(ka),{class:"w-5 h-5"}),p("span",null,at(c.likes),1)]),p("button",L0t,[L(P(Pa),{class:"w-5 h-5"}),p("span",null,at(c.comments),1)]),p("button",k0t,[L(P(Ra),{class:"w-5 h-5"})])])]))),128))]),u[13]||(u[13]=zt('<div class="element-form" data-v-8c64faa7><div class="element-form-item" data-v-8c64faa7><label class="element-form-label" data-v-8c64faa7>文本输入</label><div class="element-form-content" data-v-8c64faa7><input type="text" placeholder="请输入内容" class="element-input" data-v-8c64faa7></div></div><div class="element-form-item" data-v-8c64faa7><label class="element-form-label" data-v-8c64faa7>密码输入</label><div class="element-form-content" data-v-8c64faa7><input type="password" placeholder="请输入密码" class="element-input" data-v-8c64faa7></div></div><div class="element-form-item" data-v-8c64faa7><label class="element-form-label" data-v-8c64faa7>下拉选择</label><div class="element-form-content" data-v-8c64faa7><select class="element-select" data-v-8c64faa7><option data-v-8c64faa7>选项 1</option><option data-v-8c64faa7>选项 2</option><option data-v-8c64faa7>选项 3</option></select></div></div><div class="element-form-item" data-v-8c64faa7><label class="element-form-label" data-v-8c64faa7>开关</label><div class="element-form-content" data-v-8c64faa7><label class="element-switch" data-v-8c64faa7><input type="checkbox" data-v-8c64faa7><span class="element-switch-core" data-v-8c64faa7></span></label></div></div></div><div class="element-button-group" data-v-8c64faa7><button class="element-button primary" data-v-8c64faa7>主要按钮</button><button class="element-button success" data-v-8c64faa7>成功按钮</button><button class="element-button warning" data-v-8c64faa7>警告按钮</button><button class="element-button danger" data-v-8c64faa7>危险按钮</button><button class="element-button info" data-v-8c64faa7>信息按钮</button></div>',2)),p("div",P0t,[p("div",R0t,[(H(!0),W(Ft,null,re(o.value,c=>(H(),W("div",{key:c.id,class:ie(["element-tabs-item",{active:n.value===c.id}]),onClick:f=>n.value=c.id},at(c.label),11,E0t))),128))]),p("div",N0t,[n.value==="tab1"?(H(),W("div",$0t,u[6]||(u[6]=[p("p",null,"标签页 1 的内容",-1)]))):ct("",!0),n.value==="tab2"?(H(),W("div",O0t,u[7]||(u[7]=[p("p",null,"标签页 2 的内容",-1)]))):ct("",!0),n.value==="tab3"?(H(),W("div",z0t,u[8]||(u[8]=[p("p",null,"标签页 3 的内容",-1)]))):ct("",!0)])]),t.value?(H(),W("div",B0t,[p("div",V0t,[p("div",G0t,[u[9]||(u[9]=p("span",{class:"element-dialog-title"},"对话框标题",-1)),p("button",{class:"element-dialog-close",onClick:u[0]||(u[0]=c=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),u[10]||(u[10]=p("div",{class:"element-dialog-body"},[p("p",null,"这是一个 Element UI 风格的对话框示例。")],-1)),p("div",F0t,[p("button",{class:"element-button",onClick:u[1]||(u[1]=c=>t.value=!1)},"取消"),p("button",{class:"element-button primary",onClick:u[2]||(u[2]=c=>t.value=!1)},"确定")])])])):ct("",!0),e.value?(H(),W("div",H0t,[p("div",W0t,[L(P(mn),{class:"w-5 h-5"}),u[11]||(u[11]=p("span",null,"这是一条消息提示",-1))])])):ct("",!0),a.value?(H(),W("div",Z0t,[p("div",Y0t,[u[12]||(u[12]=p("span",null,"通知",-1)),p("button",{class:"element-notification-close",onClick:u[3]||(u[3]=c=>a.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),p("div",U0t,[(H(!0),W(Ft,null,re(s.value,c=>(H(),W("div",{key:c.id,class:"element-notification-item"},[p("div",j0t,[L(P($t),{class:"w-5 h-5"})]),p("div",X0t,[p("h4",null,at(c.title),1),p("p",null,at(c.content),1)]),p("span",q0t,at(c.time),1)]))),128))])])):ct("",!0)])]))}},Q0t=Ce(J0t,[["__scopeId","data-v-8c64faa7"]]),t1t={class:"flat-container min-h-screen bg-gray-50"},e1t={class:"flat-app-bar"},r1t={class:"container mx-auto px-4 py-3 flex items-center justify-between"},a1t={class:"flex items-center"},n1t={class:"flex items-center space-x-4"},i1t={class:"flat-icon-button"},o1t={class:"flat-icon-button"},s1t={class:"flat-icon-button"},l1t={class:"container mx-auto p-6"},u1t={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},c1t={class:"flat-card"},f1t={class:"p-4"},v1t={class:"space-y-2"},d1t={href:"#",class:"flat-nav-item active"},h1t={href:"#",class:"flat-nav-item"},p1t={href:"#",class:"flat-nav-item"},g1t={href:"#",class:"flat-nav-item"},m1t={class:"md:col-span-2 space-y-6"},y1t={class:"flat-card"},_1t={class:"p-4"},b1t={class:"space-y-4"},x1t={class:"flat-list-item"},w1t={class:"flat-icon-button"},S1t={class:"flat-list-item"},M1t={class:"flat-icon-button"},C1t={class:"flat-card"},I1t={class:"p-4"},T1t={class:"flex flex-wrap gap-4"},A1t={class:"flat-button icon"},D1t={class:"flat-card"},L1t={class:"p-4"},k1t={class:"flat-bottom-nav"},P1t={href:"#",class:"flat-bottom-nav-item active"},R1t={href:"#",class:"flat-bottom-nav-item"},E1t={href:"#",class:"flat-bottom-nav-item"},N1t={href:"#",class:"flat-bottom-nav-item"},$1t={href:"#",class:"flat-bottom-nav-item"},O1t={key:0,class:"flat-dialog-overlay"},z1t={class:"flat-dialog"},B1t={class:"flat-dialog-header"},V1t={class:"flat-dialog-actions"},G1t={__name:"FlatView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",t1t,[p("div",e1t,[p("div",r1t,[p("div",a1t,[L(P(Tr),{class:"w-5 h-5 text-white mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-white"},"Flat Design",-1))]),p("div",n1t,[p("button",i1t,[L(P(Ht),{class:"w-5 h-5"})]),p("button",o1t,[L(P($t),{class:"w-5 h-5"})]),p("button",s1t,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",l1t,[p("div",u1t,[p("div",c1t,[p("div",f1t,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"导航菜单",-1)),p("nav",v1t,[p("a",d1t,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",h1t,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"flat-badge"},"12",-1))]),p("a",p1t,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",g1t,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",m1t,[p("div",y1t,[p("div",_1t,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"卡片列表",-1)),p("div",b1t,[p("div",x1t,[a[11]||(a[11]=p("div",{class:"flat-avatar bg-blue-500"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-gray-900"},"卡片标题"),p("p",{class:"text-gray-600"},"卡片副标题")],-1)),p("button",w1t,[L(P(pe),{class:"w-5 h-5"})])]),p("div",S1t,[a[13]||(a[13]=p("div",{class:"flat-avatar bg-indigo-500"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-gray-900"},"另一个标题"),p("p",{class:"text-gray-600"},"另一个副标题")],-1)),p("button",M1t,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="flat-card" data-v-ed5411cf><div class="p-4" data-v-ed5411cf><h2 class="text-lg font-medium mb-4 text-gray-900" data-v-ed5411cf>表单元素</h2><div class="space-y-4" data-v-ed5411cf><div class="flat-input-group" data-v-ed5411cf><label class="text-gray-700" data-v-ed5411cf>文本输入</label><input type="text" placeholder="请输入内容" class="flat-input" data-v-ed5411cf></div><div class="flat-input-group" data-v-ed5411cf><label class="text-gray-700" data-v-ed5411cf>密码输入</label><input type="password" placeholder="请输入密码" class="flat-input" data-v-ed5411cf></div><div class="flat-input-group" data-v-ed5411cf><label class="text-gray-700" data-v-ed5411cf>下拉选择</label><select class="flat-input" data-v-ed5411cf><option data-v-ed5411cf>选项 1</option><option data-v-ed5411cf>选项 2</option><option data-v-ed5411cf>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-ed5411cf><label class="flat-checkbox" data-v-ed5411cf><input type="checkbox" data-v-ed5411cf><span class="flat-checkmark" data-v-ed5411cf></span><span class="text-gray-700" data-v-ed5411cf>复选框</span></label><label class="flat-radio" data-v-ed5411cf><input type="radio" name="radio" data-v-ed5411cf><span class="flat-radiomark" data-v-ed5411cf></span><span class="text-gray-700" data-v-ed5411cf>单选框</span></label></div><div class="flat-switch" data-v-ed5411cf><input type="checkbox" id="switch1" data-v-ed5411cf><label for="switch1" class="text-gray-700" data-v-ed5411cf>开关</label></div></div></div></div>',1)),p("div",C1t,[p("div",I1t,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"按钮样式",-1)),p("div",T1t,[a[16]||(a[16]=p("button",{class:"flat-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"flat-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"flat-button text"},"文本按钮",-1)),p("button",A1t,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="flat-card" data-v-ed5411cf><div class="p-4" data-v-ed5411cf><h2 class="text-lg font-medium mb-4 text-gray-900" data-v-ed5411cf>进度指示器</h2><div class="space-y-4" data-v-ed5411cf><div class="flat-progress" data-v-ed5411cf><div class="flat-progress-bar" style="width:60%;" data-v-ed5411cf></div></div><div class="flat-progress circular" data-v-ed5411cf><div class="flat-progress-circle" data-v-ed5411cf></div></div></div></div></div>',1)),p("div",D1t,[p("div",L1t,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-gray-900"},"对话框示例",-1)),p("button",{class:"flat-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",k1t,[p("a",P1t,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",R1t,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",E1t,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",N1t,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",$1t,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",O1t,[p("div",z1t,[p("div",B1t,[a[28]||(a[28]=p("h3",{class:"text-gray-900"},"对话框标题",-1)),p("button",{class:"flat-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"flat-dialog-content"},[p("p",{class:"text-gray-600"},"这是一个扁平化设计风格的对话框示例。")],-1)),p("div",V1t,[p("button",{class:"flat-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"flat-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},F1t=Ce(G1t,[["__scopeId","data-v-ed5411cf"]]),H1t={class:"nordic-container min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50"},W1t={class:"nordic-app-bar"},Z1t={class:"container mx-auto px-4 py-3 flex items-center justify-between"},Y1t={class:"flex items-center"},U1t={class:"flex items-center space-x-4"},j1t={class:"nordic-icon-button"},X1t={class:"nordic-icon-button"},q1t={class:"nordic-icon-button"},K1t={class:"container mx-auto p-6"},J1t={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},Q1t={class:"nordic-card"},t_t={class:"p-4"},e_t={class:"space-y-2"},r_t={href:"#",class:"nordic-nav-item active"},a_t={href:"#",class:"nordic-nav-item"},n_t={href:"#",class:"nordic-nav-item"},i_t={href:"#",class:"nordic-nav-item"},o_t={class:"md:col-span-2 space-y-6"},s_t={class:"nordic-card"},l_t={class:"p-4"},u_t={class:"space-y-4"},c_t={class:"nordic-list-item"},f_t={class:"nordic-icon-button"},v_t={class:"nordic-list-item"},d_t={class:"nordic-icon-button"},h_t={class:"nordic-card"},p_t={class:"p-4"},g_t={class:"flex flex-wrap gap-4"},m_t={class:"nordic-button icon"},y_t={class:"nordic-card"},__t={class:"p-4"},b_t={class:"nordic-bottom-nav"},x_t={href:"#",class:"nordic-bottom-nav-item active"},w_t={href:"#",class:"nordic-bottom-nav-item"},S_t={href:"#",class:"nordic-bottom-nav-item"},M_t={href:"#",class:"nordic-bottom-nav-item"},C_t={href:"#",class:"nordic-bottom-nav-item"},I_t={key:0,class:"nordic-dialog-overlay"},T_t={class:"nordic-dialog"},A_t={class:"nordic-dialog-header"},D_t={class:"nordic-dialog-actions"},L_t={__name:"NordicView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",H1t,[p("div",W1t,[p("div",Z1t,[p("div",Y1t,[L(P(Tr),{class:"w-5 h-5 text-slate-800 mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-slate-800"},"Nordic Design",-1))]),p("div",U1t,[p("button",j1t,[L(P(Ht),{class:"w-5 h-5"})]),p("button",X1t,[L(P($t),{class:"w-5 h-5"})]),p("button",q1t,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",K1t,[p("div",J1t,[p("div",Q1t,[p("div",t_t,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-slate-800"},"导航菜单",-1)),p("nav",e_t,[p("a",r_t,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",a_t,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"nordic-badge"},"12",-1))]),p("a",n_t,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",i_t,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",o_t,[p("div",s_t,[p("div",l_t,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-slate-800"},"卡片列表",-1)),p("div",u_t,[p("div",c_t,[a[11]||(a[11]=p("div",{class:"nordic-avatar bg-gradient-to-br from-blue-400 to-indigo-400"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-slate-800"},"卡片标题"),p("p",{class:"text-slate-600"},"卡片副标题")],-1)),p("button",f_t,[L(P(pe),{class:"w-5 h-5"})])]),p("div",v_t,[a[13]||(a[13]=p("div",{class:"nordic-avatar bg-gradient-to-br from-indigo-400 to-purple-400"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-slate-800"},"另一个标题"),p("p",{class:"text-slate-600"},"另一个副标题")],-1)),p("button",d_t,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="nordic-card" data-v-723c4b4d><div class="p-4" data-v-723c4b4d><h2 class="text-lg font-medium mb-4 text-slate-800" data-v-723c4b4d>表单元素</h2><div class="space-y-4" data-v-723c4b4d><div class="nordic-input-group" data-v-723c4b4d><label class="text-slate-600" data-v-723c4b4d>文本输入</label><input type="text" placeholder="请输入内容" class="nordic-input" data-v-723c4b4d></div><div class="nordic-input-group" data-v-723c4b4d><label class="text-slate-600" data-v-723c4b4d>密码输入</label><input type="password" placeholder="请输入密码" class="nordic-input" data-v-723c4b4d></div><div class="nordic-input-group" data-v-723c4b4d><label class="text-slate-600" data-v-723c4b4d>下拉选择</label><select class="nordic-input" data-v-723c4b4d><option data-v-723c4b4d>选项 1</option><option data-v-723c4b4d>选项 2</option><option data-v-723c4b4d>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-723c4b4d><label class="nordic-checkbox" data-v-723c4b4d><input type="checkbox" data-v-723c4b4d><span class="nordic-checkmark" data-v-723c4b4d></span><span class="text-slate-600" data-v-723c4b4d>复选框</span></label><label class="nordic-radio" data-v-723c4b4d><input type="radio" name="radio" data-v-723c4b4d><span class="nordic-radiomark" data-v-723c4b4d></span><span class="text-slate-600" data-v-723c4b4d>单选框</span></label></div><div class="nordic-switch" data-v-723c4b4d><input type="checkbox" id="switch1" data-v-723c4b4d><label for="switch1" class="text-slate-600" data-v-723c4b4d>开关</label></div></div></div></div>',1)),p("div",h_t,[p("div",p_t,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-slate-800"},"按钮样式",-1)),p("div",g_t,[a[16]||(a[16]=p("button",{class:"nordic-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"nordic-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"nordic-button text"},"文本按钮",-1)),p("button",m_t,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="nordic-card" data-v-723c4b4d><div class="p-4" data-v-723c4b4d><h2 class="text-lg font-medium mb-4 text-slate-800" data-v-723c4b4d>进度指示器</h2><div class="space-y-4" data-v-723c4b4d><div class="nordic-progress" data-v-723c4b4d><div class="nordic-progress-bar" style="width:60%;" data-v-723c4b4d></div></div><div class="nordic-progress circular" data-v-723c4b4d><div class="nordic-progress-circle" data-v-723c4b4d></div></div></div></div></div>',1)),p("div",y_t,[p("div",__t,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-slate-800"},"对话框示例",-1)),p("button",{class:"nordic-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",b_t,[p("a",x_t,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",w_t,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",S_t,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",M_t,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",C_t,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",I_t,[p("div",T_t,[p("div",A_t,[a[28]||(a[28]=p("h3",{class:"text-slate-800"},"对话框标题",-1)),p("button",{class:"nordic-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"nordic-dialog-content"},[p("p",{class:"text-slate-600"},"这是一个北欧风格的对话框示例。")],-1)),p("div",D_t,[p("button",{class:"nordic-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"nordic-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},k_t=Ce(L_t,[["__scopeId","data-v-723c4b4d"]]),P_t={class:"futuristic-container min-h-screen bg-gradient-to-br from-slate-900 via-blue-900 to-indigo-900"},R_t={class:"futuristic-app-bar"},E_t={class:"container mx-auto px-4 py-3 flex items-center justify-between"},N_t={class:"flex items-center"},$_t={class:"flex items-center space-x-4"},O_t={class:"futuristic-icon-button"},z_t={class:"futuristic-icon-button"},B_t={class:"futuristic-icon-button"},V_t={class:"container mx-auto p-6"},G_t={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},F_t={class:"futuristic-card"},H_t={class:"p-4"},W_t={class:"space-y-2"},Z_t={href:"#",class:"futuristic-nav-item active"},Y_t={href:"#",class:"futuristic-nav-item"},U_t={href:"#",class:"futuristic-nav-item"},j_t={href:"#",class:"futuristic-nav-item"},X_t={class:"md:col-span-2 space-y-6"},q_t={class:"futuristic-card"},K_t={class:"p-4"},J_t={class:"space-y-4"},Q_t={class:"futuristic-list-item"},tbt={class:"futuristic-icon-button"},ebt={class:"futuristic-list-item"},rbt={class:"futuristic-icon-button"},abt={class:"futuristic-card"},nbt={class:"p-4"},ibt={class:"flex flex-wrap gap-4"},obt={class:"futuristic-button icon"},sbt={class:"futuristic-card"},lbt={class:"p-4"},ubt={class:"futuristic-bottom-nav"},cbt={href:"#",class:"futuristic-bottom-nav-item active"},fbt={href:"#",class:"futuristic-bottom-nav-item"},vbt={href:"#",class:"futuristic-bottom-nav-item"},dbt={href:"#",class:"futuristic-bottom-nav-item"},hbt={href:"#",class:"futuristic-bottom-nav-item"},pbt={key:0,class:"futuristic-dialog-overlay"},gbt={class:"futuristic-dialog"},mbt={class:"futuristic-dialog-header"},ybt={class:"futuristic-dialog-actions"},_bt={__name:"FuturisticView",setup(r){const t=nt(!1);return(e,a)=>(H(),W("div",P_t,[p("div",R_t,[p("div",E_t,[p("div",N_t,[L(P(Tr),{class:"w-5 h-5 text-blue-200 mr-4"}),a[4]||(a[4]=p("h1",{class:"text-xl font-medium text-blue-200"},"Futuristic Design",-1))]),p("div",$_t,[p("button",O_t,[L(P(Ht),{class:"w-5 h-5"})]),p("button",z_t,[L(P($t),{class:"w-5 h-5"})]),p("button",B_t,[L(P(Jt),{class:"w-5 h-5"})])])])]),p("div",V_t,[p("div",G_t,[p("div",F_t,[p("div",H_t,[a[10]||(a[10]=p("h2",{class:"text-lg font-medium mb-4 text-blue-200"},"导航菜单",-1)),p("nav",W_t,[p("a",Z_t,[L(P(we),{class:"w-5 h-5"}),a[5]||(a[5]=p("span",null,"首页",-1))]),p("a",Y_t,[L(P($r),{class:"w-5 h-5"}),a[6]||(a[6]=p("span",null,"收件箱",-1)),a[7]||(a[7]=p("span",{class:"futuristic-badge"},"12",-1))]),p("a",U_t,[L(P(Or),{class:"w-5 h-5"}),a[8]||(a[8]=p("span",null,"收藏",-1))]),p("a",j_t,[L(P(fr),{class:"w-5 h-5"}),a[9]||(a[9]=p("span",null,"设置",-1))])])])]),p("div",X_t,[p("div",q_t,[p("div",K_t,[a[15]||(a[15]=p("h2",{class:"text-lg font-medium mb-4 text-blue-200"},"卡片列表",-1)),p("div",J_t,[p("div",Q_t,[a[11]||(a[11]=p("div",{class:"futuristic-avatar bg-gradient-to-br from-blue-500 to-indigo-500"},"JD",-1)),a[12]||(a[12]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-blue-200"},"卡片标题"),p("p",{class:"text-blue-300"},"卡片副标题")],-1)),p("button",tbt,[L(P(pe),{class:"w-5 h-5"})])]),p("div",ebt,[a[13]||(a[13]=p("div",{class:"futuristic-avatar bg-gradient-to-br from-indigo-500 to-purple-500"},"AB",-1)),a[14]||(a[14]=p("div",{class:"flex-1"},[p("h3",{class:"font-medium text-blue-200"},"另一个标题"),p("p",{class:"text-blue-300"},"另一个副标题")],-1)),p("button",rbt,[L(P(pe),{class:"w-5 h-5"})])])])])]),a[21]||(a[21]=zt('<div class="futuristic-card" data-v-335fcd8e><div class="p-4" data-v-335fcd8e><h2 class="text-lg font-medium mb-4 text-blue-200" data-v-335fcd8e>表单元素</h2><div class="space-y-4" data-v-335fcd8e><div class="futuristic-input-group" data-v-335fcd8e><label class="text-blue-300" data-v-335fcd8e>文本输入</label><input type="text" placeholder="请输入内容" class="futuristic-input" data-v-335fcd8e></div><div class="futuristic-input-group" data-v-335fcd8e><label class="text-blue-300" data-v-335fcd8e>密码输入</label><input type="password" placeholder="请输入密码" class="futuristic-input" data-v-335fcd8e></div><div class="futuristic-input-group" data-v-335fcd8e><label class="text-blue-300" data-v-335fcd8e>下拉选择</label><select class="futuristic-input" data-v-335fcd8e><option data-v-335fcd8e>选项 1</option><option data-v-335fcd8e>选项 2</option><option data-v-335fcd8e>选项 3</option></select></div><div class="flex items-center space-x-4" data-v-335fcd8e><label class="futuristic-checkbox" data-v-335fcd8e><input type="checkbox" data-v-335fcd8e><span class="futuristic-checkmark" data-v-335fcd8e></span><span class="text-blue-300" data-v-335fcd8e>复选框</span></label><label class="futuristic-radio" data-v-335fcd8e><input type="radio" name="radio" data-v-335fcd8e><span class="futuristic-radiomark" data-v-335fcd8e></span><span class="text-blue-300" data-v-335fcd8e>单选框</span></label></div><div class="futuristic-switch" data-v-335fcd8e><input type="checkbox" id="switch1" data-v-335fcd8e><label for="switch1" class="text-blue-300" data-v-335fcd8e>开关</label></div></div></div></div>',1)),p("div",abt,[p("div",nbt,[a[19]||(a[19]=p("h2",{class:"text-lg font-medium mb-4 text-blue-200"},"按钮样式",-1)),p("div",ibt,[a[16]||(a[16]=p("button",{class:"futuristic-button"},"主要按钮",-1)),a[17]||(a[17]=p("button",{class:"futuristic-button outlined"},"次要按钮",-1)),a[18]||(a[18]=p("button",{class:"futuristic-button text"},"文本按钮",-1)),p("button",obt,[L(P(ge),{class:"w-5 h-5"})])])])]),a[22]||(a[22]=zt('<div class="futuristic-card" data-v-335fcd8e><div class="p-4" data-v-335fcd8e><h2 class="text-lg font-medium mb-4 text-blue-200" data-v-335fcd8e>进度指示器</h2><div class="space-y-4" data-v-335fcd8e><div class="futuristic-progress" data-v-335fcd8e><div class="futuristic-progress-bar" style="width:60%;" data-v-335fcd8e></div></div><div class="futuristic-progress circular" data-v-335fcd8e><div class="futuristic-progress-circle" data-v-335fcd8e></div></div></div></div></div>',1)),p("div",sbt,[p("div",lbt,[a[20]||(a[20]=p("h2",{class:"text-lg font-medium mb-4 text-blue-200"},"对话框示例",-1)),p("button",{class:"futuristic-button",onClick:a[0]||(a[0]=n=>t.value=!0)},"打开对话框")])])])])]),p("div",ubt,[p("a",cbt,[L(P(we),{class:"w-6 h-6"}),a[23]||(a[23]=p("span",null,"首页",-1))]),p("a",fbt,[L(P(Ht),{class:"w-6 h-6"}),a[24]||(a[24]=p("span",null,"搜索",-1))]),p("a",vbt,[L(P(ge),{class:"w-6 h-6"}),a[25]||(a[25]=p("span",null,"添加",-1))]),p("a",dbt,[L(P($t),{class:"w-6 h-6"}),a[26]||(a[26]=p("span",null,"通知",-1))]),p("a",hbt,[L(P(Jt),{class:"w-6 h-6"}),a[27]||(a[27]=p("span",null,"我的",-1))])]),t.value?(H(),W("div",pbt,[p("div",gbt,[p("div",mbt,[a[28]||(a[28]=p("h3",{class:"text-blue-200"},"对话框标题",-1)),p("button",{class:"futuristic-icon-button",onClick:a[1]||(a[1]=n=>t.value=!1)},[L(P(te),{class:"w-5 h-5"})])]),a[29]||(a[29]=p("div",{class:"futuristic-dialog-content"},[p("p",{class:"text-blue-300"},"这是一个未来主义风格的对话框示例。")],-1)),p("div",ybt,[p("button",{class:"futuristic-button text",onClick:a[2]||(a[2]=n=>t.value=!1)},"取消"),p("button",{class:"futuristic-button",onClick:a[3]||(a[3]=n=>t.value=!1)},"确定")])])])):ct("",!0)]))}},bbt=Ce(_bt,[["__scopeId","data-v-335fcd8e"]]),xbt=[{path:"/",name:"Home",component:VN},{path:"/minimalist",name:"minimalist",component:Tet},{path:"/dark-mode",name:"dark-mode",component:grt},{path:"/retro",name:"retro",component:iat},{path:"/3d",name:"ThreeD",component:qat},{path:"/skeuomorphic",name:"skeuomorphic",component:Bnt},{path:"/material",name:"material",component:Ait},{path:"/ios",name:"IOSDesign",component:hot},{path:"/fluent",name:"FluentDesign",component:Hst},{path:"/neumorphism",name:"neumorphism",component:yut},{path:"/glassmorphism",name:"glassmorphism",component:sct},{path:"/brutalism",name:"Brutalism",component:Jct},{path:"/cyberpunk",name:"cyberpunk",component:Gft},{path:"/organic",name:"Organic",component:Pvt},{path:"/pixel",name:"PixelArt",component:Sdt},{path:"/morphism",name:"Morphism",component:hht},{path:"/aurora",name:"aurora",component:apt},{path:"/neon",name:"Neon",component:jpt},{path:"/steampunk",name:"steampunk",component:Ogt},{path:"/holographic",name:"Holographic",component:Amt},{path:"/gradient",name:"Gradient",component:_yt},{path:"/ant",name:"AntDesign",component:c0t},{path:"/element",name:"ElementUI",component:Q0t},{path:"/flat",name:"Flat",component:F1t},{path:"/nordic",name:"Nordic",component:k_t},{path:"/futuristic",name:"Futuristic",component:bbt},{path:"/raw-material-category",name:"RawMaterialCategory",component:$tt},{path:"/:pathMatch(.*)*",redirect:"/"}],wbt=RN({history:lN("/ide/proxy/6007/"),routes:xbt,scrollBehavior(r,t,e){return r.hash?{el:r.hash,behavior:"smooth"}:{top:0,behavior:"smooth"}}});CE(LE).use(wbt).mount("#app");