(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)}})();/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__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{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{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;eDc(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};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/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;t0)return;if(Su){let t=Su;for(Su=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let r;for(;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)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{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}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/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>>1,n=yr[a],i=Zu(n);i=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(;eZu(e)-Zu(a));if(Hs.length=0,si){si.push(...t);return}for(si=t,Ls=0;Lsr.id==null?r.flags&2?-1:1/0:r.id;function bT(r){try{for(Ua=0;Ua{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;nr.__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;ut(s,l,void 0,i));else{const s=Object.keys(r);n=new Array(s.length);for(let l=0,u=s.length;lr?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;e1)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{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;cr[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{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{Zt&&Oa(Zt,F,z,$),Rt&&Bi(z,$,F,"updated")},U)},T=($,z,F,U,J,tt,pt)=>{for(let vt=0;vt{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)&>($,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;EtRt?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=ZtEt)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){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{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;btvt.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>1,r[e[s]]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;tLn(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;nt==="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;fr.__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{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";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/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"?`${r}`:a==="mathml"?`${r}`: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;nString(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{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]]);/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */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=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;o1&&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;ft.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(;e0&&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{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;ni&&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;oQs(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"]]);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var 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=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",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={"&":"&","<":"<",">":">",'"':""","'":"'"};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;o1&&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=!(ih&&(h=b,gh&&(h=x,y<_?kt.set(El,0,-y):kt.set(El,0,_)):b=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;m4)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=0;)n++;return n-t}function L6(r,t,e){for(e--;t>>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;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;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;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;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])break;c(d)}}function u(){for(;i>1;){var d=i-2;d>0&&n[d-1]=$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=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)=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=$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;ys&&(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;a0&&(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=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&&rMA||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=0&&m=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=0&&d=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-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;ia?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=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=0&&!(o[c].percent<=e);c--);c=v(c,s-2)}else{for(c=f;ce);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;o0&&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;a0)){this._started=1;for(var e=this,a=[],n=this._maxTime||0,i=0;i1){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.__lastTouchMomentc9||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=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;i0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(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;l0,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=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=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;o0&&e.during&&i[0].during(function(h,g){e.during(g)});for(var v=0;v0||n.force&&!o.length){var C=void 0,I=void 0,T=void 0;if(s){I={},v&&(C={});for(var x=0;x=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;n0&&(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;e0){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]});su&&(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=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=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=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;ih&&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;_s&&bp(e,r.substring(s,u),t,o),bp(e,l[2],t,o,l[1]),s=_p.lastIndex}sn){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.length0&&h+a.accumWidth>a.width&&(c=t.split(` `),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(` `);for(var m=0;m=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;fe: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;n1e-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:nn&&(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&&e0&&(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;ac.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){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;oa||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;S0&&(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||or+s&&i>e+s||it+f&&c>a+f&&c>i+f&&c>s+f||cr+f&&u>e+f&&u>n+f&&u>o+f||ut+u&&l>a+u&&l>i+u||lr+u&&s>e+u&&s>n+u||se||c+un&&(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||in?s:0}var Kn=dn.CMD,Qi=Math.PI*2,b$=1e-4;function x$(r,t){return Math.abs(r-t)t&&u>a&&u>i&&u>s||u1&&w$(),d=Ge(t,a,i,s,ra[0]),v>1&&(h=Ge(t,a,i,s,ra[1]))),v===2?mt&&s>a&&s>i||s=0&&u<=1){for(var c=0,f=Ue(t,a,i,u),v=0;ve||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&&g1&&(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.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)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;v0},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;e0,E=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),R=o.calculatedLineHeight,k=0;k=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=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;f0){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;n1&&(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;uk*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),dya){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),I0&&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),T0&&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=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;sro[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()&&(c0){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;tMath.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];i1)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=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=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':'';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=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;_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=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=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;ag&&(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=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||d1&&a>0?s:o}};return i;function o(){return t=r?null:lt},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 an?-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;c65535?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;um[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;cy[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=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&at)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=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=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=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=f&&_<=v||isNaN(_))&&(l[u++]=M)}else for(var y=0;yt[T][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(y))}return uy[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;hc&&(c=f,v=x)}D>0&&Ds&&(g=s-c);for(var m=0;mh&&(h=_,d=c+m)}var b=this.getRawIndex(f),x=this.getRawIndex(d);fc-h&&(l=c-h,s.length=l);for(var g=0;gf[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();il&&(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=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;e1||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,'
'+_r(v)+"
"+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='
',n="margin: "+e+"px 0 0",i=A5(r);return'
'+t+a+"
"}function uB(r,t,e){var a=t?"margin-left:2px":"";return''+_r(r)+""}function cB(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=K(r)?r:[r],''+Q(r,function(o){return _r(o)}).join("  ")+""}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;nthis.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=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;c0&&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=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;i0&&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=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;i0)?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;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,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;_+=''+b.dom+""}),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;bv.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=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;o1){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;s1&&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;d1)for(var s=0;s30}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=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;c0},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;l1&&(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;d0&&(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;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var 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&&oa&&(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=0&&e=0&&e=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[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]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;oi[0]&&d0&&(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=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)0?e:1:e))}var p8=function(r,t,e,a){for(;e>>1;r[n][1]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]();B1&&N===0&&E.unshift({value:E[0].value-B})}}for(var N=0;N=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;d0;)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]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;cr[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)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>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;e40&&(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:dn&&(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 _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(i1&&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=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;c0){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;I0)for(var T=0;T0;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;I0?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=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"}function mG(r){return""}function U1(r,t){t=t||{};var e=t.newline?` `:"";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?` `:"",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?"":[""].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;u0}).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"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;ti?(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=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=s)}}for(var f=this.__startIndex;f15)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.__drawIndex0&&t>n[0]){for(l=0;lt);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;n0?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-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=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;i0?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=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||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=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=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(;ot){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;oa)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=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;t0&&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;xt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&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;wm){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-cMath.PI/2&&cs)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=sn?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;e0?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=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=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,ZZ?(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}),Re?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)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)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;g0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=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]=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=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;mu[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;n0?"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=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]),o0&&!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;S3?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&>(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&>(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;a0;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;a0,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=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-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;c1?(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=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_.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;_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=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=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=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;xc.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;t1;)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;nQ2||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=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.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&&su[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=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*ts[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;ia&&(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;fbx&&(u=bx),i=s}ua&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(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].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;n0}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=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=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i=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=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=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 "+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&&(T===0?0:i[T-1][0])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();opZ)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.spani&&(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;ci*(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=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;iDZ}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;oa.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=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=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;_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;s0;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;c0&&(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;++io&&(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();ig){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;aw?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:e0?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;s0&&(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=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);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;o0){e.moveTo(n[o++],n[o++]);for(var l=1;l0){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;u0)for(var f=i[u++],v=i[u++],d=1;d0){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;u0&&(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;c0&&(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 ")})},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;h0){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=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=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;Df[1]||Nv[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]=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,c0: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;Ci&&(i=s),a.push(s)}for(var u=0;ui&&(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)k&&!ac(O-k)&&O0?(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;X1;)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;a0&&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&>(t,"invisible")&&(r.invisible=t.invisible),r instanceof Vt&>(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=0){!o&&(o=a[r]={});for(var d=Ut(i),c=0;c=0)){var v=r.getAnimationStyleProps(),d=v?v.style:null;if(d){!i&&(i=a.style={});for(var h=Ut(e),u=0;u=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=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"&>(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=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=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=us;)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;fy?"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=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)=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=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=n.start.time&&a.times.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&&en.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=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=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;io[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='',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=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=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;ir[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-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'
'}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=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"?` `:"
",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;_t[0][1]&&(t[0][1]=i[0]),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=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=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]=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===` `)){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;an[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;na[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;ca[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]=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;le[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;Do[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=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;s0: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","≥"][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(I1?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":"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;e2&&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=kC:D2&&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=0&&C=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;n0)for(var u=0;uMath.abs(u),f=q3([l,u],c?0:1,t),v=(c?s:u)/f.length,d=0;dn,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;v1?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;io?(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;a0;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=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;a0))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;Ot.length,d=u?zI(c,u):zI(v?t:r,[v?r:t]),h=0,g=0;gt4))for(var i=a.getIndices(),o=0;o0&&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=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;sr.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"};/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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()]:[]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const me=(r,t)=>(e,{slots:a})=>ju(AQ,{...e,iconNode:t,name:r},a);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const LQ=me("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kQ=me("ChevronLeftIcon",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PQ=me("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const RQ=me("ChevronUpIcon",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a4=me("LoaderCircleIcon",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ge=me("PlusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ht=me("SearchIcon",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]]);/** * @license lucide-vue-next v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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{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('

表单元素

',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('

进度指示器

',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('

表单元素

',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('

进度指示器

',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('

表单元素

',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('

进度指示器

',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('',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('
',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('

表单元素

',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('

进度指示器

',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('

表单元素

',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('

进度指示器

',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('
9:41
',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('
',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('

表单元素

',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('

进度指示器

0%60%100%
',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('

表单元素

',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('

进度指示器

0%60%100%
',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('

表单元素

',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('

进度指示器

',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('',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('
',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('

表单元素

',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('

进度指示器

',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('',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('
',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('',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('
',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('',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('
',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('

表单元素

',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('

进度指示器

',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('',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('
',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('

表单元素

',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('

进度指示器

',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('',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('
',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('',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('
',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('',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('
',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('',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('
',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('

表单元素

',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('

进度指示器

',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('

表单元素

',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('

进度指示器

',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('

表单元素

',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('

进度指示器

',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/6005/"),routes:xbt,scrollBehavior(r,t,e){return r.hash?{el:r.hash,behavior:"smooth"}:{top:0,behavior:"smooth"}}});CE(LE).use(wbt).mount("#app");