2022-01-21 19:51:56 +08:00

50 lines
572 KiB
JavaScript
Executable File

function Ou(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}const sw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lw=Ou(sw);function od(e){return!!e||e===""}function ku(e){if(at(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=Qt(n)?cw(n):ku(n);if(i)for(const a in i)t[a]=i[a]}return t}else{if(Qt(e))return e;if(Vt(e))return e}}const uw=/;(?![^(]*\))/g,fw=/:(.+)/;function cw(e){const t={};return e.split(uw).forEach(r=>{if(r){const n=r.split(fw);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Bu(e){let t="";if(Qt(e))t=e;else if(at(e))for(let r=0;r<e.length;r++){const n=Bu(e[r]);n&&(t+=n+" ")}else if(Vt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function hw(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Jo(e[n],t[n]);return r}function Jo(e,t){if(e===t)return!0;let r=ld(e),n=ld(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=at(e),n=at(t),r||n)return r&&n?hw(e,t):!1;if(r=Vt(e),n=Vt(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Jo(e[o],t[o]))return!1}}return String(e)===String(t)}function vw(e,t){return e.findIndex(r=>Jo(r,t))}const pF=e=>e==null?"":at(e)||Vt(e)&&(e.toString===fd||!vt(e.toString))?JSON.stringify(e,sd,2):String(e),sd=(e,t)=>t&&t.__v_isRef?sd(e,t.value):_i(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:es(t)?{[`Set(${t.size})`]:[...t.values()]}:Vt(t)&&!at(t)&&!cd(t)?String(t):t,It={},mi=[],qe=()=>{},dw=()=>!1,pw=/^on[^a-z]/,ts=e=>pw.test(e),Fu=e=>e.startsWith("onUpdate:"),jt=Object.assign,Nu=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},gw=Object.prototype.hasOwnProperty,_t=(e,t)=>gw.call(e,t),at=Array.isArray,_i=e=>rs(e)==="[object Map]",es=e=>rs(e)==="[object Set]",ld=e=>e instanceof Date,vt=e=>typeof e=="function",Qt=e=>typeof e=="string",zu=e=>typeof e=="symbol",Vt=e=>e!==null&&typeof e=="object",ud=e=>Vt(e)&&vt(e.then)&&vt(e.catch),fd=Object.prototype.toString,rs=e=>fd.call(e),yw=e=>rs(e).slice(8,-1),cd=e=>rs(e)==="[object Object]",Hu=e=>Qt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ns=Ou(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),is=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},mw=/-(\w)/g,ar=is(e=>e.replace(mw,(t,r)=>r?r.toUpperCase():"")),_w=/\B([A-Z])/g,Si=is(e=>e.replace(_w,"-$1").toLowerCase()),as=is(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vu=is(e=>e?`on${as(e)}`:""),ya=(e,t)=>!Object.is(e,t),os=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},ss=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},ma=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hd;const Sw=()=>hd||(hd=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let mn;const ls=[];class vd{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&mn&&(this.parent=mn,this.index=(mn.scopes||(mn.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(ls.push(this),mn=this)}off(){this.active&&(ls.pop(),mn=ls[ls.length-1])}stop(t){if(this.active){if(this.effects.forEach(r=>r.stop()),this.cleanups.forEach(r=>r()),this.scopes&&this.scopes.forEach(r=>r.stop(!0)),this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function dd(e){return new vd(e)}function bw(e,t){t=t||mn,t&&t.active&&t.effects.push(e)}const Gu=e=>{const t=new Set(e);return t.w=0,t.n=0,t},pd=e=>(e.w&Vr)>0,gd=e=>(e.n&Vr)>0,ww=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Vr},xw=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const i=t[n];pd(i)&&!gd(i)?i.delete(e):t[r++]=i,i.w&=~Vr,i.n&=~Vr}t.length=r}},$u=new WeakMap;let _a=0,Vr=1;const Uu=30,Sa=[];let _n;const Sn=Symbol(""),Wu=Symbol("");class Yu{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],bw(this,n)}run(){if(!this.active)return this.fn();if(!Sa.includes(this))try{return Sa.push(_n=this),Tw(),Vr=1<<++_a,_a<=Uu?ww(this):yd(this),this.fn()}finally{_a<=Uu&&xw(this),Vr=1<<--_a,bn(),Sa.pop();const t=Sa.length;_n=t>0?Sa[t-1]:void 0}}stop(){this.active&&(yd(this),this.onStop&&this.onStop(),this.active=!1)}}function yd(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let bi=!0;const Xu=[];function wi(){Xu.push(bi),bi=!1}function Tw(){Xu.push(bi),bi=!0}function bn(){const e=Xu.pop();bi=e===void 0?!0:e}function Se(e,t,r){if(!md())return;let n=$u.get(e);n||$u.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=Gu()),_d(i)}function md(){return bi&&_n!==void 0}function _d(e,t){let r=!1;_a<=Uu?gd(e)||(e.n|=Vr,r=!pd(e)):r=!e.has(_n),r&&(e.add(_n),_n.deps.push(e))}function wr(e,t,r,n,i,a){const o=$u.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&at(e))o.forEach((l,u)=>{(u==="length"||u>=n)&&s.push(l)});else switch(r!==void 0&&s.push(o.get(r)),t){case"add":at(e)?Hu(r)&&s.push(o.get("length")):(s.push(o.get(Sn)),_i(e)&&s.push(o.get(Wu)));break;case"delete":at(e)||(s.push(o.get(Sn)),_i(e)&&s.push(o.get(Wu)));break;case"set":_i(e)&&s.push(o.get(Sn));break}if(s.length===1)s[0]&&qu(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);qu(Gu(l))}}function qu(e,t){for(const r of at(e)?e:[...e])(r!==_n||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const Cw=Ou("__proto__,__v_isRef,__isVue"),Sd=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(zu)),Mw=Zu(),Dw=Zu(!1,!0),Aw=Zu(!0),bd=Pw();function Pw(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=St(this);for(let a=0,o=this.length;a<o;a++)Se(n,"get",a+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(St)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){wi();const n=St(this)[t].apply(this,r);return bn(),n}}),e}function Zu(e=!1,t=!1){return function(n,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&a===(e?t?Ww:Id:t?Pd:Ad).get(n))return n;const o=at(n);if(!e&&o&&_t(bd,i))return Reflect.get(bd,i,a);const s=Reflect.get(n,i,a);return(zu(i)?Sd.has(i):Cw(i))||(e||Se(n,"get",i),t)?s:Wt(s)?!o||!Hu(i)?s.value:s:Vt(s)?e?Ld(s):xi(s):s}}const Iw=wd(),Lw=wd(!0);function wd(e=!1){return function(r,n,i,a){let o=r[n];if(!e&&!Ju(i)&&(i=St(i),o=St(o),!at(r)&&Wt(o)&&!Wt(i)))return o.value=i,!0;const s=at(r)&&Hu(n)?Number(n)<r.length:_t(r,n),l=Reflect.set(r,n,i,a);return r===St(a)&&(s?ya(i,o)&&wr(r,"set",n,i):wr(r,"add",n,i)),l}}function Ew(e,t){const r=_t(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&wr(e,"delete",t,void 0),n}function Rw(e,t){const r=Reflect.has(e,t);return(!zu(t)||!Sd.has(t))&&Se(e,"has",t),r}function Ow(e){return Se(e,"iterate",at(e)?"length":Sn),Reflect.ownKeys(e)}const xd={get:Mw,set:Iw,deleteProperty:Ew,has:Rw,ownKeys:Ow},kw={get:Aw,set(e,t){return!0},deleteProperty(e,t){return!0}},Bw=jt({},xd,{get:Dw,set:Lw}),Ku=e=>e,us=e=>Reflect.getPrototypeOf(e);function fs(e,t,r=!1,n=!1){e=e.__v_raw;const i=St(e),a=St(t);t!==a&&!r&&Se(i,"get",t),!r&&Se(i,"get",a);const{has:o}=us(i),s=n?Ku:r?tf:ba;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function cs(e,t=!1){const r=this.__v_raw,n=St(r),i=St(e);return e!==i&&!t&&Se(n,"has",e),!t&&Se(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function hs(e,t=!1){return e=e.__v_raw,!t&&Se(St(e),"iterate",Sn),Reflect.get(e,"size",e)}function Td(e){e=St(e);const t=St(this);return us(t).has.call(t,e)||(t.add(e),wr(t,"add",e,e)),this}function Cd(e,t){t=St(t);const r=St(this),{has:n,get:i}=us(r);let a=n.call(r,e);a||(e=St(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?ya(t,o)&&wr(r,"set",e,t):wr(r,"add",e,t),this}function Md(e){const t=St(this),{has:r,get:n}=us(t);let i=r.call(t,e);i||(e=St(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&wr(t,"delete",e,void 0),a}function Dd(){const e=St(this),t=e.size!==0,r=e.clear();return t&&wr(e,"clear",void 0,void 0),r}function vs(e,t){return function(n,i){const a=this,o=a.__v_raw,s=St(o),l=t?Ku:e?tf:ba;return!e&&Se(s,"iterate",Sn),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function ds(e,t,r){return function(...n){const i=this.__v_raw,a=St(i),o=_i(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?Ku:t?tf:ba;return!t&&Se(a,"iterate",l?Wu:Sn),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function Gr(e){return function(...t){return e==="delete"?!1:this}}function Fw(){const e={get(a){return fs(this,a)},get size(){return hs(this)},has:cs,add:Td,set:Cd,delete:Md,clear:Dd,forEach:vs(!1,!1)},t={get(a){return fs(this,a,!1,!0)},get size(){return hs(this)},has:cs,add:Td,set:Cd,delete:Md,clear:Dd,forEach:vs(!1,!0)},r={get(a){return fs(this,a,!0)},get size(){return hs(this,!0)},has(a){return cs.call(this,a,!0)},add:Gr("add"),set:Gr("set"),delete:Gr("delete"),clear:Gr("clear"),forEach:vs(!0,!1)},n={get(a){return fs(this,a,!0,!0)},get size(){return hs(this,!0)},has(a){return cs.call(this,a,!0)},add:Gr("add"),set:Gr("set"),delete:Gr("delete"),clear:Gr("clear"),forEach:vs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=ds(a,!1,!1),r[a]=ds(a,!0,!1),t[a]=ds(a,!1,!0),n[a]=ds(a,!0,!0)}),[e,r,t,n]}const[Nw,zw,Hw,Vw]=Fw();function ju(e,t){const r=t?e?Vw:Hw:e?zw:Nw;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(_t(r,i)&&i in n?r:n,i,a)}const Gw={get:ju(!1,!1)},$w={get:ju(!1,!0)},Uw={get:ju(!0,!1)},Ad=new WeakMap,Pd=new WeakMap,Id=new WeakMap,Ww=new WeakMap;function Yw(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xw(e){return e.__v_skip||!Object.isExtensible(e)?0:Yw(yw(e))}function xi(e){return e&&e.__v_isReadonly?e:Qu(e,!1,xd,Gw,Ad)}function qw(e){return Qu(e,!1,Bw,$w,Pd)}function Ld(e){return Qu(e,!0,kw,Uw,Id)}function Qu(e,t,r,n,i){if(!Vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=Xw(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function $r(e){return Ju(e)?$r(e.__v_raw):!!(e&&e.__v_isReactive)}function Ju(e){return!!(e&&e.__v_isReadonly)}function Ed(e){return $r(e)||Ju(e)}function St(e){const t=e&&e.__v_raw;return t?St(t):e}function Ti(e){return ss(e,"__v_skip",!0),e}const ba=e=>Vt(e)?xi(e):e,tf=e=>Vt(e)?Ld(e):e;function Rd(e){md()&&(e=St(e),e.dep||(e.dep=Gu()),_d(e.dep))}function Od(e,t){e=St(e),e.dep&&qu(e.dep)}function Wt(e){return Boolean(e&&e.__v_isRef===!0)}function ef(e){return kd(e,!1)}function Zw(e){return kd(e,!0)}function kd(e,t){return Wt(e)?e:new Kw(e,t)}class Kw{constructor(t,r){this._shallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:St(t),this._value=r?t:ba(t)}get value(){return Rd(this),this._value}set value(t){t=this._shallow?t:St(t),ya(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:ba(t),Od(this))}}function wa(e){return Wt(e)?e.value:e}const jw={get:(e,t,r)=>wa(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Wt(i)&&!Wt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function Bd(e){return $r(e)?e:new Proxy(e,jw)}function Qw(e){const t=at(e)?new Array(e.length):{};for(const r in e)t[r]=tx(e,r);return t}class Jw{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function tx(e,t,r){const n=e[t];return Wt(n)?n:new Jw(e,t,r)}class ex{constructor(t,r,n){this._setter=r,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Yu(t,()=>{this._dirty||(this._dirty=!0,Od(this))}),this.__v_isReadonly=n}get value(){const t=St(this);return Rd(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Ze(e,t){let r,n;const i=vt(e);return i?(r=e,n=qe):(r=e.get,n=e.set),new ex(r,n,i||!n)}Promise.resolve();function rx(e,t,...r){const n=e.vnode.props||It;let i=r;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in n){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:h}=n[f]||It;h?i=r.map(v=>v.trim()):c&&(i=r.map(ma))}let s,l=n[s=Vu(t)]||n[s=Vu(ar(t))];!l&&a&&(l=n[s=Vu(Si(t))]),l&&Ee(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ee(u,e,6,i)}}function Fd(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!vt(e)){const l=u=>{const f=Fd(u,t,!0);f&&(s=!0,jt(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(n.set(e,null),null):(at(a)?a.forEach(l=>o[l]=null):jt(o,a),n.set(e,o),o)}function rf(e,t){return!e||!ts(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Si(t))||_t(e,t))}let be=null,ps=null;function gs(e){const t=be;return be=e,ps=e&&e.type.__scopeId||null,t}function gF(e){ps=e}function yF(){ps=null}function nx(e,t=be,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&cp(-1);const a=gs(t),o=e(...i);return gs(a),n._d&&cp(1),o};return n._n=!0,n._c=!0,n._d=!0,n}function nf(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,data:h,setupState:v,ctx:d,inheritAttrs:y}=e;let p,g;const m=gs(e);try{if(r.shapeFlag&4){const S=i||n;p=or(f.call(S,S,c,a,v,h,d)),g=l}else{const S=t;p=or(S.length>1?S(a,{attrs:l,slots:s,emit:u}):S(a,null)),g=t.props?l:ix(l)}}catch(S){xa.length=0,Ds(S,e,1),p=ce(Ke)}let _=p;if(g&&y!==!1){const S=Object.keys(g),{shapeFlag:w}=_;S.length&&w&(1|6)&&(o&&S.some(Fu)&&(g=ax(g,o)),_=Ci(_,g))}return r.dirs&&(_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),p=_,gs(m),p}const ix=e=>{let t;for(const r in e)(r==="class"||r==="style"||ts(r))&&((t||(t={}))[r]=e[r]);return t},ax=(e,t)=>{const r={};for(const n in e)(!Fu(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function ox(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Nd(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;c<f.length;c++){const h=f[c];if(o[h]!==n[h]&&!rf(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?Nd(n,o,u):!0:!!o;return!1}function Nd(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(t[a]!==e[a]&&!rf(r,a))return!0}return!1}function sx({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const lx=e=>e.__isSuspense;function ux(e,t){t&&t.pendingBranch?at(e)?t.effects.push(...e):t.effects.push(e):oT(e)}function ys(e,t){if(qt){let r=qt.provides;const n=qt.parent&&qt.parent.provides;n===r&&(r=qt.provides=Object.create(n)),r[e]=t}}function xr(e,t,r=!1){const n=qt||be;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&vt(t)?t.call(n.proxy):t}}function fx(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Wd(()=>{e.isMounted=!0}),Yd(()=>{e.isUnmounting=!0}),e}const Ie=[Function,Array],cx={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ie,onEnter:Ie,onAfterEnter:Ie,onEnterCancelled:Ie,onBeforeLeave:Ie,onLeave:Ie,onAfterLeave:Ie,onLeaveCancelled:Ie,onBeforeAppear:Ie,onAppear:Ie,onAfterAppear:Ie,onAppearCancelled:Ie},setup(e,{slots:t}){const r=_f(),n=fx();let i;return()=>{const a=t.default&&Gd(t.default(),!0);if(!a||!a.length)return;const o=St(e),{mode:s}=o,l=a[0];if(n.isLeaving)return of(l);const u=Vd(l);if(!u)return of(l);const f=af(u,o,n,r);sf(u,f);const c=r.subTree,h=c&&Vd(c);let v=!1;const{getTransitionKey:d}=u.type;if(d){const y=d();i===void 0?i=y:y!==i&&(i=y,v=!0)}if(h&&h.type!==Ke&&(!Mn(u,h)||v)){const y=af(h,o,n,r);if(sf(h,y),s==="out-in")return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,r.update()},of(l);s==="in-out"&&u.type!==Ke&&(y.delayLeave=(p,g,m)=>{const _=Hd(n,h);_[String(h.key)]=h,p._leaveCb=()=>{g(),p._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=m})}return l}}},zd=cx;function Hd(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function af(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:h,onAfterLeave:v,onLeaveCancelled:d,onBeforeAppear:y,onAppear:p,onAfterAppear:g,onAppearCancelled:m}=t,_=String(e.key),S=Hd(r,e),w=(x,C)=>{x&&Ee(x,n,9,C)},b={mode:a,persisted:o,beforeEnter(x){let C=s;if(!r.isMounted)if(i)C=y||s;else return;x._leaveCb&&x._leaveCb(!0);const M=S[_];M&&Mn(e,M)&&M.el._leaveCb&&M.el._leaveCb(),w(C,[x])},enter(x){let C=l,M=u,L=f;if(!r.isMounted)if(i)C=p||l,M=g||u,L=m||f;else return;let I=!1;const P=x._enterCb=E=>{I||(I=!0,E?w(L,[x]):w(M,[x]),b.delayedLeave&&b.delayedLeave(),x._enterCb=void 0)};C?(C(x,P),C.length<=1&&P()):P()},leave(x,C){const M=String(e.key);if(x._enterCb&&x._enterCb(!0),r.isUnmounting)return C();w(c,[x]);let L=!1;const I=x._leaveCb=P=>{L||(L=!0,C(),P?w(d,[x]):w(v,[x]),x._leaveCb=void 0,S[M]===e&&delete S[M])};S[M]=e,h?(h(x,I),h.length<=1&&I()):I()},clone(x){return af(x,t,r,n)}};return b}function of(e){if(ms(e))return e=Ci(e),e.children=null,e}function Vd(e){return ms(e)?e.children?e.children[0]:void 0:e}function sf(e,t){e.shapeFlag&6&&e.component?sf(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Gd(e,t=!1){let r=[],n=0;for(let i=0;i<e.length;i++){const a=e[i];a.type===Le?(a.patchFlag&128&&n++,r=r.concat(Gd(a.children,t))):(t||a.type!==Ke)&&r.push(a)}if(n>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function $d(e){return vt(e)?{setup:e,name:e.name}:e}const lf=e=>!!e.type.__asyncLoader,ms=e=>e.type.__isKeepAlive;function hx(e,t){Ud(e,"a",t)}function vx(e,t){Ud(e,"da",t)}function Ud(e,t,r=qt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(_s(t,n,r),r){let i=r.parent;for(;i&&i.parent;)ms(i.parent.vnode)&&dx(n,t,r,i),i=i.parent}}function dx(e,t,r,n){const i=_s(t,e,n,!0);uf(()=>{Nu(n[t],i)},r)}function _s(e,t,r=qt,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;wi(),Mi(r);const s=Ee(t,r,e,o);return Dn(),bn(),s});return n?i.unshift(a):i.push(a),a}}const Tr=e=>(t,r=qt)=>(!Ms||e==="sp")&&_s(e,t,r),px=Tr("bm"),Wd=Tr("m"),gx=Tr("bu"),yx=Tr("u"),Yd=Tr("bum"),uf=Tr("um"),mx=Tr("sp"),_x=Tr("rtg"),Sx=Tr("rtc");function bx(e,t=qt){_s("ec",e,t)}let ff=!0;function xx(e){const t=Zd(e),r=e.proxy,n=e.ctx;ff=!1,t.beforeCreate&&Xd(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:v,updated:d,activated:y,deactivated:p,beforeDestroy:g,beforeUnmount:m,destroyed:_,unmounted:S,render:w,renderTracked:b,renderTriggered:x,errorCaptured:C,serverPrefetch:M,expose:L,inheritAttrs:I,components:P,directives:E,filters:B}=t;if(u&&Tx(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const q in o){const U=o[q];vt(U)&&(n[q]=U.bind(r))}if(i){const q=i.call(r,r);Vt(q)&&(e.data=xi(q))}if(ff=!0,a)for(const q in a){const U=a[q],Q=vt(U)?U.bind(r,r):vt(U.get)?U.get.bind(r,r):qe,V=!vt(U)&&vt(U.set)?U.set.bind(r):qe,it=Ze({get:Q,set:V});Object.defineProperty(n,q,{enumerable:!0,configurable:!0,get:()=>it.value,set:Ot=>it.value=Ot})}if(s)for(const q in s)qd(s[q],n,r,q);if(l){const q=vt(l)?l.call(r):l;Reflect.ownKeys(q).forEach(U=>{ys(U,q[U])})}f&&Xd(f,e,"c");function Y(q,U){at(U)?U.forEach(Q=>q(Q.bind(r))):U&&q(U.bind(r))}if(Y(px,c),Y(Wd,h),Y(gx,v),Y(yx,d),Y(hx,y),Y(vx,p),Y(bx,C),Y(Sx,b),Y(_x,x),Y(Yd,m),Y(uf,S),Y(mx,M),at(L))if(L.length){const q=e.exposed||(e.exposed={});L.forEach(U=>{Object.defineProperty(q,U,{get:()=>r[U],set:Q=>r[U]=Q})})}else e.exposed||(e.exposed={});w&&e.render===qe&&(e.render=w),I!=null&&(e.inheritAttrs=I),P&&(e.components=P),E&&(e.directives=E)}function Tx(e,t,r=qe,n=!1){at(e)&&(e=cf(e));for(const i in e){const a=e[i];let o;Vt(a)?"default"in a?o=xr(a.from||i,a.default,!0):o=xr(a.from||i):o=xr(a),Wt(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function Xd(e,t,r){Ee(at(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function qd(e,t,r,n){const i=n.includes(".")?Pp(r,n):()=>r[n];if(Qt(e)){const a=t[e];vt(a)&&Aa(i,a)}else if(vt(e))Aa(i,e.bind(r));else if(Vt(e))if(at(e))e.forEach(a=>qd(a,t,r,n));else{const a=vt(e.handler)?e.handler.bind(r):t[e.handler];vt(a)&&Aa(i,a,e)}}function Zd(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>Ss(l,u,o,!0)),Ss(l,t,o)),a.set(t,l),l}function Ss(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Ss(e,a,r,!0),i&&i.forEach(o=>Ss(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=Cx[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const Cx={data:Kd,props:wn,emits:wn,methods:wn,computed:wn,beforeCreate:ne,created:ne,beforeMount:ne,mounted:ne,beforeUpdate:ne,updated:ne,beforeDestroy:ne,beforeUnmount:ne,destroyed:ne,unmounted:ne,activated:ne,deactivated:ne,errorCaptured:ne,serverPrefetch:ne,components:wn,directives:wn,watch:Dx,provide:Kd,inject:Mx};function Kd(e,t){return t?e?function(){return jt(vt(e)?e.call(this,this):e,vt(t)?t.call(this,this):t)}:t:e}function Mx(e,t){return wn(cf(e),cf(t))}function cf(e){if(at(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ne(e,t){return e?[...new Set([].concat(e,t))]:t}function wn(e,t){return e?jt(jt(Object.create(null),e),t):t}function Dx(e,t){if(!e)return t;if(!t)return e;const r=jt(Object.create(null),e);for(const n in t)r[n]=ne(e[n],t[n]);return r}function Ax(e,t,r,n=!1){const i={},a={};ss(a,xs,1),e.propsDefaults=Object.create(null),jd(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:qw(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Px(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=St(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let c=0;c<f.length;c++){let h=f[c];const v=t[h];if(l)if(_t(a,h))v!==a[h]&&(a[h]=v,u=!0);else{const d=ar(h);i[d]=hf(l,s,d,v,e,!1)}else v!==a[h]&&(a[h]=v,u=!0)}}}else{jd(e,t,i,a)&&(u=!0);let f;for(const c in s)(!t||!_t(t,c)&&((f=Si(c))===c||!_t(t,f)))&&(l?r&&(r[c]!==void 0||r[f]!==void 0)&&(i[c]=hf(l,s,c,void 0,e,!0)):delete i[c]);if(a!==s)for(const c in a)(!t||!_t(t,c))&&(delete a[c],u=!0)}u&&wr(e,"set","$attrs")}function jd(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(ns(l))continue;const u=t[l];let f;i&&_t(i,f=ar(l))?!a||!a.includes(f)?r[f]=u:(s||(s={}))[f]=u:rf(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=St(r),u=s||It;for(let f=0;f<a.length;f++){const c=a[f];r[c]=hf(i,l,c,u[c],e,!_t(u,c))}}return o}function hf(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=_t(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&vt(l)){const{propsDefaults:u}=i;r in u?n=u[r]:(Mi(i),n=u[r]=l.call(null,t),Dn())}else n=l}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===Si(r))&&(n=!0))}return n}function Qd(e,t,r=!1){const n=t.propsCache,i=n.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!vt(e)){const f=c=>{l=!0;const[h,v]=Qd(c,t,!0);jt(o,h),v&&s.push(...v)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return n.set(e,mi),mi;if(at(a))for(let f=0;f<a.length;f++){const c=ar(a[f]);Jd(c)&&(o[c]=It)}else if(a)for(const f in a){const c=ar(f);if(Jd(c)){const h=a[f],v=o[c]=at(h)||vt(h)?{type:h}:h;if(v){const d=rp(Boolean,v.type),y=rp(String,v.type);v[0]=d>-1,v[1]=y<0||d<y,(d>-1||_t(v,"default"))&&s.push(c)}}}const u=[o,s];return n.set(e,u),u}function Jd(e){return e[0]!=="$"}function tp(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function ep(e,t){return tp(e)===tp(t)}function rp(e,t){return at(t)?t.findIndex(r=>ep(r,e)):vt(t)&&ep(t,e)?0:-1}const np=e=>e[0]==="_"||e==="$stable",vf=e=>at(e)?e.map(or):[or(e)],Ix=(e,t,r)=>{const n=nx((...i)=>vf(t(...i)),r);return n._c=!1,n},ip=(e,t,r)=>{const n=e._ctx;for(const i in e){if(np(i))continue;const a=e[i];if(vt(a))t[i]=Ix(i,a,n);else if(a!=null){const o=vf(a);t[i]=()=>o}}},ap=(e,t)=>{const r=vf(t);e.slots.default=()=>r},Lx=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=St(t),ss(t,"_",r)):ip(t,e.slots={})}else e.slots={},t&&ap(e,t);ss(e.slots,xs,1)},Ex=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=It;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(jt(i,t),!r&&s===1&&delete i._):(a=!t.$stable,ip(t,i)),o=t}else t&&(ap(e,t),o={default:1});if(a)for(const s in i)!np(s)&&!(s in o)&&delete i[s]};function mF(e,t){const r=be;if(r===null)return e;const n=r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,s,l,u=It]=t[a];vt(o)&&(o={mounted:o,updated:o}),o.deep&&An(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u})}return e}function xn(e,t,r,n){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(wi(),Ee(l,r,8,[e.el,s,e,t]),bn())}}function op(){return{app:null,config:{isNativeTag:dw,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Rx=0;function Ox(e,t){return function(n,i=null){i!=null&&!Vt(i)&&(i=null);const a=op(),o=new Set;let s=!1;const l=a.app={_uid:Rx++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:lT,get config(){return a.config},set config(u){},use(u,...f){return o.has(u)||(u&&vt(u.install)?(o.add(u),u.install(l,...f)):vt(u)&&(o.add(u),u(l,...f))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,f){return f?(a.components[u]=f,l):a.components[u]},directive(u,f){return f?(a.directives[u]=f,l):a.directives[u]},mount(u,f,c){if(!s){const h=ce(n,i);return h.appContext=a,f&&t?t(h,u):e(h,u,c),s=!0,l._container=u,u.__vue_app__=l,Sf(h.component)||h.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return a.provides[u]=f,l}};return l}}function df(e,t,r,n,i=!1){if(at(e)){e.forEach((h,v)=>df(h,t&&(at(t)?t[v]:t),r,n,i));return}if(lf(n)&&!i)return;const a=n.shapeFlag&4?Sf(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===It?s.refs={}:s.refs,c=s.setupState;if(u!=null&&u!==l&&(Qt(u)?(f[u]=null,_t(c,u)&&(c[u]=null)):Wt(u)&&(u.value=null)),vt(l))Wr(l,s,12,[o,f]);else{const h=Qt(l),v=Wt(l);if(h||v){const d=()=>{if(e.f){const y=h?f[l]:l.value;i?at(y)&&Nu(y,a):at(y)?y.includes(a)||y.push(a):h?f[l]=[a]:(l.value=[a],e.k&&(f[e.k]=l.value))}else h?(f[l]=o,_t(c,l)&&(c[l]=o)):Wt(l)&&(l.value=o,e.k&&(f[e.k]=o))};o?(d.id=-1,fe(d,r)):d()}}}const fe=ux;function kx(e){return Bx(e)}function Bx(e,t){const r=Sw();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:v=qe,cloneNode:d,insertStaticContent:y}=e,p=(T,A,R,F=null,N=null,$=null,X=!1,H=null,W=!!A.dynamicChildren)=>{if(T===A)return;T&&!Mn(T,A)&&(F=tt(T),pt(T,N,$,!0),T=null),A.patchFlag===-2&&(W=!1,A.dynamicChildren=null);const{type:z,ref:rt,shapeFlag:J}=A;switch(z){case pf:g(T,A,R,F);break;case Ke:m(T,A,R,F);break;case gf:T==null&&_(A,R,F,X);break;case Le:E(T,A,R,F,N,$,X,H,W);break;default:J&1?b(T,A,R,F,N,$,X,H,W):J&6?B(T,A,R,F,N,$,X,H,W):(J&64||J&128)&&z.process(T,A,R,F,N,$,X,H,W,gt)}rt!=null&&N&&df(rt,T&&T.ref,$,A||T,!A)},g=(T,A,R,F)=>{if(T==null)n(A.el=s(A.children),R,F);else{const N=A.el=T.el;A.children!==T.children&&u(N,A.children)}},m=(T,A,R,F)=>{T==null?n(A.el=l(A.children||""),R,F):A.el=T.el},_=(T,A,R,F)=>{[T.el,T.anchor]=y(T.children,A,R,F)},S=({el:T,anchor:A},R,F)=>{let N;for(;T&&T!==A;)N=h(T),n(T,R,F),T=N;n(A,R,F)},w=({el:T,anchor:A})=>{let R;for(;T&&T!==A;)R=h(T),i(T),T=R;i(A)},b=(T,A,R,F,N,$,X,H,W)=>{X=X||A.type==="svg",T==null?x(A,R,F,N,$,X,H,W):L(T,A,N,$,X,H,W)},x=(T,A,R,F,N,$,X,H)=>{let W,z;const{type:rt,props:J,shapeFlag:nt,transition:lt,patchFlag:mt,dirs:Ft}=T;if(T.el&&d!==void 0&&mt===-1)W=T.el=d(T.el);else{if(W=T.el=o(T.type,$,J&&J.is,J),nt&8?f(W,T.children):nt&16&&M(T.children,W,null,F,N,$&&rt!=="foreignObject",X,H),Ft&&xn(T,null,F,"created"),J){for(const Bt in J)Bt!=="value"&&!ns(Bt)&&a(W,Bt,null,J[Bt],$,T.children,F,N,G);"value"in J&&a(W,"value",null,J.value),(z=J.onVnodeBeforeMount)&&sr(z,F,T)}C(W,T,T.scopeId,X,F)}Ft&&xn(T,null,F,"beforeMount");const Pt=(!N||N&&!N.pendingBranch)&&lt&&!lt.persisted;Pt&&lt.beforeEnter(W),n(W,A,R),((z=J&&J.onVnodeMounted)||Pt||Ft)&&fe(()=>{z&&sr(z,F,T),Pt&&lt.enter(W),Ft&&xn(T,null,F,"mounted")},N)},C=(T,A,R,F,N)=>{if(R&&v(T,R),F)for(let $=0;$<F.length;$++)v(T,F[$]);if(N){let $=N.subTree;if(A===$){const X=N.vnode;C(T,X,X.scopeId,X.slotScopeIds,N.parent)}}},M=(T,A,R,F,N,$,X,H,W=0)=>{for(let z=W;z<T.length;z++){const rt=T[z]=H?Ur(T[z]):or(T[z]);p(null,rt,A,R,F,N,$,X,H)}},L=(T,A,R,F,N,$,X)=>{const H=A.el=T.el;let{patchFlag:W,dynamicChildren:z,dirs:rt}=A;W|=T.patchFlag&16;const J=T.props||It,nt=A.props||It;let lt;R&&Tn(R,!1),(lt=nt.onVnodeBeforeUpdate)&&sr(lt,R,A,T),rt&&xn(A,T,R,"beforeUpdate"),R&&Tn(R,!0);const mt=N&&A.type!=="foreignObject";if(z?I(T.dynamicChildren,z,H,R,F,mt,$):X||Q(T,A,H,null,R,F,mt,$,!1),W>0){if(W&16)P(H,A,J,nt,R,F,N);else if(W&2&&J.class!==nt.class&&a(H,"class",null,nt.class,N),W&4&&a(H,"style",J.style,nt.style,N),W&8){const Ft=A.dynamicProps;for(let Pt=0;Pt<Ft.length;Pt++){const Bt=Ft[Pt],Xe=J[Bt],yi=nt[Bt];(yi!==Xe||Bt==="value")&&a(H,Bt,Xe,yi,N,T.children,R,F,G)}}W&1&&T.children!==A.children&&f(H,A.children)}else!X&&z==null&&P(H,A,J,nt,R,F,N);((lt=nt.onVnodeUpdated)||rt)&&fe(()=>{lt&&sr(lt,R,A,T),rt&&xn(A,T,R,"updated")},F)},I=(T,A,R,F,N,$,X)=>{for(let H=0;H<A.length;H++){const W=T[H],z=A[H],rt=W.el&&(W.type===Le||!Mn(W,z)||W.shapeFlag&(6|64))?c(W.el):R;p(W,z,rt,null,F,N,$,X,!0)}},P=(T,A,R,F,N,$,X)=>{if(R!==F){for(const H in F){if(ns(H))continue;const W=F[H],z=R[H];W!==z&&H!=="value"&&a(T,H,z,W,X,A.children,N,$,G)}if(R!==It)for(const H in R)!ns(H)&&!(H in F)&&a(T,H,R[H],null,X,A.children,N,$,G);"value"in F&&a(T,"value",R.value,F.value)}},E=(T,A,R,F,N,$,X,H,W)=>{const z=A.el=T?T.el:s(""),rt=A.anchor=T?T.anchor:s("");let{patchFlag:J,dynamicChildren:nt,slotScopeIds:lt}=A;lt&&(H=H?H.concat(lt):lt),T==null?(n(z,R,F),n(rt,R,F),M(A.children,R,rt,N,$,X,H,W)):J>0&&J&64&&nt&&T.dynamicChildren?(I(T.dynamicChildren,nt,R,N,$,X,H),(A.key!=null||N&&A===N.subTree)&&sp(T,A,!0)):Q(T,A,R,rt,N,$,X,H,W)},B=(T,A,R,F,N,$,X,H,W)=>{A.slotScopeIds=H,T==null?A.shapeFlag&512?N.ctx.activate(A,R,F,X,W):k(A,R,F,N,$,X,W):Y(T,A,W)},k=(T,A,R,F,N,$,X)=>{const H=T.component=Zx(T,F,N);if(ms(T)&&(H.ctx.renderer=gt),Kx(H),H.asyncDep){if(N&&N.registerDep(H,q),!T.el){const W=H.subTree=ce(Ke);m(null,W,A,R)}return}q(H,T,A,R,N,$,X)},Y=(T,A,R)=>{const F=A.component=T.component;if(ox(T,A,R))if(F.asyncDep&&!F.asyncResolved){U(F,A,R);return}else F.next=A,iT(F.update),F.update();else A.component=T.component,A.el=T.el,F.vnode=A},q=(T,A,R,F,N,$,X)=>{const H=()=>{if(T.isMounted){let{next:rt,bu:J,u:nt,parent:lt,vnode:mt}=T,Ft=rt,Pt;Tn(T,!1),rt?(rt.el=mt.el,U(T,rt,X)):rt=mt,J&&os(J),(Pt=rt.props&&rt.props.onVnodeBeforeUpdate)&&sr(Pt,lt,rt,mt),Tn(T,!0);const Bt=nf(T),Xe=T.subTree;T.subTree=Bt,p(Xe,Bt,c(Xe.el),tt(Xe),T,N,$),rt.el=Bt.el,Ft===null&&sx(T,Bt.el),nt&&fe(nt,N),(Pt=rt.props&&rt.props.onVnodeUpdated)&&fe(()=>sr(Pt,lt,rt,mt),N)}else{let rt;const{el:J,props:nt}=A,{bm:lt,m:mt,parent:Ft}=T,Pt=lf(A);if(Tn(T,!1),lt&&os(lt),!Pt&&(rt=nt&&nt.onVnodeBeforeMount)&&sr(rt,Ft,A),Tn(T,!0),J&&ot){const Bt=()=>{T.subTree=nf(T),ot(J,T.subTree,T,N,null)};Pt?A.type.__asyncLoader().then(()=>!T.isUnmounted&&Bt()):Bt()}else{const Bt=T.subTree=nf(T);p(null,Bt,R,F,T,N,$),A.el=Bt.el}if(mt&&fe(mt,N),!Pt&&(rt=nt&&nt.onVnodeMounted)){const Bt=A;fe(()=>sr(rt,Ft,Bt),N)}A.shapeFlag&256&&T.a&&fe(T.a,N),T.isMounted=!0,A=R=F=null}},W=T.effect=new Yu(H,()=>wp(T.update),T.scope),z=T.update=W.run.bind(W);z.id=T.uid,Tn(T,!0),z()},U=(T,A,R)=>{A.component=T;const F=T.vnode.props;T.vnode=A,T.next=null,Px(T,A.props,F,R),Ex(T,A.children,R),wi(),Cf(void 0,T.update),bn()},Q=(T,A,R,F,N,$,X,H,W=!1)=>{const z=T&&T.children,rt=T?T.shapeFlag:0,J=A.children,{patchFlag:nt,shapeFlag:lt}=A;if(nt>0){if(nt&128){it(z,J,R,F,N,$,X,H,W);return}else if(nt&256){V(z,J,R,F,N,$,X,H,W);return}}lt&8?(rt&16&&G(z,N,$),J!==z&&f(R,J)):rt&16?lt&16?it(z,J,R,F,N,$,X,H,W):G(z,N,$,!0):(rt&8&&f(R,""),lt&16&&M(J,R,F,N,$,X,H,W))},V=(T,A,R,F,N,$,X,H,W)=>{T=T||mi,A=A||mi;const z=T.length,rt=A.length,J=Math.min(z,rt);let nt;for(nt=0;nt<J;nt++){const lt=A[nt]=W?Ur(A[nt]):or(A[nt]);p(T[nt],lt,R,null,N,$,X,H,W)}z>rt?G(T,N,$,!0,!1,J):M(A,R,F,N,$,X,H,W,J)},it=(T,A,R,F,N,$,X,H,W)=>{let z=0;const rt=A.length;let J=T.length-1,nt=rt-1;for(;z<=J&&z<=nt;){const lt=T[z],mt=A[z]=W?Ur(A[z]):or(A[z]);if(Mn(lt,mt))p(lt,mt,R,null,N,$,X,H,W);else break;z++}for(;z<=J&&z<=nt;){const lt=T[J],mt=A[nt]=W?Ur(A[nt]):or(A[nt]);if(Mn(lt,mt))p(lt,mt,R,null,N,$,X,H,W);else break;J--,nt--}if(z>J){if(z<=nt){const lt=nt+1,mt=lt<rt?A[lt].el:F;for(;z<=nt;)p(null,A[z]=W?Ur(A[z]):or(A[z]),R,mt,N,$,X,H,W),z++}}else if(z>nt)for(;z<=J;)pt(T[z],N,$,!0),z++;else{const lt=z,mt=z,Ft=new Map;for(z=mt;z<=nt;z++){const _e=A[z]=W?Ur(A[z]):or(A[z]);_e.key!=null&&Ft.set(_e.key,z)}let Pt,Bt=0;const Xe=nt-mt+1;let yi=!1,nd=0;const ga=new Array(Xe);for(z=0;z<Xe;z++)ga[z]=0;for(z=lt;z<=J;z++){const _e=T[z];if(Bt>=Xe){pt(_e,N,$,!0);continue}let ir;if(_e.key!=null)ir=Ft.get(_e.key);else for(Pt=mt;Pt<=nt;Pt++)if(ga[Pt-mt]===0&&Mn(_e,A[Pt])){ir=Pt;break}ir===void 0?pt(_e,N,$,!0):(ga[ir-mt]=z+1,ir>=nd?nd=ir:yi=!0,p(_e,A[ir],R,null,N,$,X,H,W),Bt++)}const id=yi?Fx(ga):mi;for(Pt=id.length-1,z=Xe-1;z>=0;z--){const _e=mt+z,ir=A[_e],ad=_e+1<rt?A[_e+1].el:F;ga[z]===0?p(null,ir,R,ad,N,$,X,H,W):yi&&(Pt<0||z!==id[Pt]?Ot(ir,R,ad,2):Pt--)}}},Ot=(T,A,R,F,N=null)=>{const{el:$,type:X,transition:H,children:W,shapeFlag:z}=T;if(z&6){Ot(T.component.subTree,A,R,F);return}if(z&128){T.suspense.move(A,R,F);return}if(z&64){X.move(T,A,R,gt);return}if(X===Le){n($,A,R);for(let J=0;J<W.length;J++)Ot(W[J],A,R,F);n(T.anchor,A,R);return}if(X===gf){S(T,A,R);return}if(F!==2&&z&1&&H)if(F===0)H.beforeEnter($),n($,A,R),fe(()=>H.enter($),N);else{const{leave:J,delayLeave:nt,afterLeave:lt}=H,mt=()=>n($,A,R),Ft=()=>{J($,()=>{mt(),lt&&lt()})};nt?nt($,mt,Ft):Ft()}else n($,A,R)},pt=(T,A,R,F=!1,N=!1)=>{const{type:$,props:X,ref:H,children:W,dynamicChildren:z,shapeFlag:rt,patchFlag:J,dirs:nt}=T;if(H!=null&&df(H,null,R,T,!0),rt&256){A.ctx.deactivate(T);return}const lt=rt&1&&nt,mt=!lf(T);let Ft;if(mt&&(Ft=X&&X.onVnodeBeforeUnmount)&&sr(Ft,A,T),rt&6)j(T.component,R,F);else{if(rt&128){T.suspense.unmount(R,F);return}lt&&xn(T,null,A,"beforeUnmount"),rt&64?T.type.remove(T,A,R,N,gt,F):z&&($!==Le||J>0&&J&64)?G(z,A,R,!1,!0):($===Le&&J&(128|256)||!N&&rt&16)&&G(W,A,R),F&&dt(T)}(mt&&(Ft=X&&X.onVnodeUnmounted)||lt)&&fe(()=>{Ft&&sr(Ft,A,T),lt&&xn(T,null,A,"unmounted")},R)},dt=T=>{const{type:A,el:R,anchor:F,transition:N}=T;if(A===Le){O(R,F);return}if(A===gf){w(T);return}const $=()=>{i(R),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(T.shapeFlag&1&&N&&!N.persisted){const{leave:X,delayLeave:H}=N,W=()=>X(R,$);H?H(T.el,$,W):W()}else $()},O=(T,A)=>{let R;for(;T!==A;)R=h(T),i(T),T=R;i(A)},j=(T,A,R)=>{const{bum:F,scope:N,update:$,subTree:X,um:H}=T;F&&os(F),N.stop(),$&&($.active=!1,pt(X,T,A,R)),H&&fe(H,A),fe(()=>{T.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},G=(T,A,R,F=!1,N=!1,$=0)=>{for(let X=$;X<T.length;X++)pt(T[X],A,R,F,N)},tt=T=>T.shapeFlag&6?tt(T.component.subTree):T.shapeFlag&128?T.suspense.next():h(T.anchor||T.el),bt=(T,A,R)=>{T==null?A._vnode&&pt(A._vnode,null,null,!0):p(A._vnode||null,T,A,null,null,null,R),Cp(),A._vnode=T},gt={p,um:pt,m:Ot,r:dt,mt:k,mc:M,pc:Q,pbc:I,n:tt,o:e};let ct,ot;return t&&([ct,ot]=t(gt)),{render:bt,hydrate:ct,createApp:Ox(bt,ct)}}function Tn({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function sp(e,t,r=!1){const n=e.children,i=t.children;if(at(n)&&at(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=Ur(i[a]),s.el=o.el),r||sp(o,s))}}function Fx(e){const t=e.slice(),r=[0];let n,i,a,o,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(i=r[r.length-1],e[i]<u){t[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,e[r[s]]<u?a=s+1:o=s;u<e[r[a]]&&(a>0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}const Nx=e=>e.__isTeleport,lp="components";function _F(e,t){return Hx(lp,e,!0,t)||e}const zx=Symbol();function Hx(e,t,r=!0,n=!1){const i=be||qt;if(i){const a=i.type;if(e===lp){const s=tT(a);if(s&&(s===t||s===ar(t)||s===as(ar(t))))return a}const o=up(i[e]||a[e],t)||up(i.appContext[e],t);return!o&&n?a:o}}function up(e,t){return e&&(e[t]||e[ar(t)]||e[as(ar(t))])}const Le=Symbol(void 0),pf=Symbol(void 0),Ke=Symbol(void 0),gf=Symbol(void 0),xa=[];let Cn=null;function fp(e=!1){xa.push(Cn=e?null:[])}function Vx(){xa.pop(),Cn=xa[xa.length-1]||null}let bs=1;function cp(e){bs+=e}function hp(e){return e.dynamicChildren=bs>0?Cn||mi:null,Vx(),bs>0&&Cn&&Cn.push(e),e}function SF(e,t,r,n,i,a){return hp(pp(e,t,r,n,i,a,!0))}function vp(e,t,r,n,i){return hp(ce(e,t,r,n,i,!0))}function ws(e){return e?e.__v_isVNode===!0:!1}function Mn(e,t){return e.type===t.type&&e.key===t.key}const xs="__vInternal",dp=({key:e})=>e!=null?e:null,Ts=({ref:e,ref_key:t,ref_for:r})=>e!=null?Qt(e)||Wt(e)||vt(e)?{i:be,r:e,k:t,f:!!r}:e:null;function pp(e,t=null,r=null,n=0,i=null,a=e===Le?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dp(t),ref:t&&Ts(t),scopeId:ps,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null};return s?(yf(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Qt(r)?8:16),bs>0&&!o&&Cn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Cn.push(l),l}const ce=Gx;function Gx(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===zx)&&(e=Ke),ws(e)){const s=Ci(e,t,!0);return r&&yf(s,r),s}if(eT(e)&&(e=e.__vccOpts),t){t=$x(t);let{class:s,style:l}=t;s&&!Qt(s)&&(t.class=Bu(s)),Vt(l)&&(Ed(l)&&!at(l)&&(l=jt({},l)),t.style=ku(l))}const o=Qt(e)?1:lx(e)?128:Nx(e)?64:Vt(e)?4:vt(e)?2:0;return pp(e,t,r,n,i,o,a,!0)}function $x(e){return e?Ed(e)||xs in e?jt({},e):e:null}function Ci(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?Wx(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&dp(s),ref:t&&t.ref?r&&i?at(i)?i.concat(Ts(t)):[i,Ts(t)]:Ts(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ci(e.ssContent),ssFallback:e.ssFallback&&Ci(e.ssFallback),el:e.el,anchor:e.anchor}}function Ux(e=" ",t=0){return ce(pf,null,e,t)}function bF(e="",t=!1){return t?(fp(),vp(Ke,null,e)):ce(Ke,null,e)}function or(e){return e==null||typeof e=="boolean"?ce(Ke):at(e)?ce(Le,null,e.slice()):typeof e=="object"?Ur(e):ce(pf,null,String(e))}function Ur(e){return e.el===null||e.memo?e:Ci(e)}function yf(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(at(t))r=16;else if(typeof t=="object")if(n&(1|64)){const i=t.default;i&&(i._c&&(i._d=!1),yf(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(xs in t)?t._ctx=be:i===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else vt(t)?(t={default:t,_ctx:be},r=32):(t=String(t),n&64?(r=16,t=[Ux(t)]):r=8);e.children=t,e.shapeFlag|=r}function Wx(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Bu([t.class,n.class]));else if(i==="style")t.style=ku([t.style,n.style]);else if(ts(i)){const a=t[i],o=n[i];a!==o&&!(at(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function sr(e,t,r,n=null){Ee(e,t,7,[r,n])}function wF(e,t,r,n){let i;const a=r&&r[n];if(at(e)||Qt(e)){i=new Array(e.length);for(let o=0,s=e.length;o<s;o++)i[o]=t(e[o],o,void 0,a&&a[o])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a&&a[o])}else if(Vt(e))if(e[Symbol.iterator])i=Array.from(e,(o,s)=>t(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];i[s]=t(e[u],u,s,a&&a[s])}}else i=[];return r&&(r[n]=i),i}function xF(e,t,r={},n,i){if(be.isCE)return ce("slot",t==="default"?null:{name:t},n&&n());let a=e[t];a&&a._c&&(a._d=!1),fp();const o=a&&gp(a(r)),s=vp(Le,{key:r.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function gp(e){return e.some(t=>ws(t)?!(t.type===Ke||t.type===Le&&!gp(t.children)):!0)?e:null}const mf=e=>e?yp(e)?Sf(e)||e.proxy:mf(e.parent):null,Cs=jt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>mf(e.parent),$root:e=>mf(e.root),$emit:e=>e.emit,$options:e=>Zd(e),$forceUpdate:e=>()=>wp(e.update),$nextTick:e=>Tf.bind(e.proxy),$watch:e=>sT.bind(e)}),Yx={get({_:e},t){const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(n!==It&&_t(n,t))return o[t]=1,n[t];if(i!==It&&_t(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&_t(u,t))return o[t]=3,a[t];if(r!==It&&_t(r,t))return o[t]=4,r[t];ff&&(o[t]=0)}}const f=Cs[t];let c,h;if(f)return t==="$attrs"&&Se(e,"get",t),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==It&&_t(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,_t(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;if(i!==It&&_t(i,t))i[t]=r;else if(n!==It&&_t(n,t))n[t]=r;else if(_t(e.props,t))return!1;return t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==It&&_t(e,o)||t!==It&&_t(t,o)||(s=a[0])&&_t(s,o)||_t(n,o)||_t(Cs,o)||_t(i.config.globalProperties,o)}},Xx=op();let qx=0;function Zx(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||Xx,a={uid:qx++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new vd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qd(n,i),emitsOptions:Fd(n,i),emit:null,emitted:null,propsDefaults:It,inheritAttrs:n.inheritAttrs,ctx:It,data:It,props:It,attrs:It,slots:It,refs:It,setupState:It,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=rx.bind(null,a),e.ce&&e.ce(a),a}let qt=null;const _f=()=>qt||be,Mi=e=>{qt=e,e.scope.on()},Dn=()=>{qt&&qt.scope.off(),qt=null};function yp(e){return e.vnode.shapeFlag&4}let Ms=!1;function Kx(e,t=!1){Ms=t;const{props:r,children:n}=e.vnode,i=yp(e);Ax(e,r,i,t),Lx(e,n);const a=i?jx(e,t):void 0;return Ms=!1,a}function jx(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Ti(new Proxy(e.ctx,Yx));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?Jx(e):null;Mi(e),wi();const a=Wr(n,e,0,[e.props,i]);if(bn(),Dn(),ud(a)){if(a.then(Dn,Dn),t)return a.then(o=>{mp(e,o,t)}).catch(o=>{Ds(o,e,0)});e.asyncDep=a}else mp(e,a,t)}else Sp(e,t)}function mp(e,t,r){vt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vt(t)&&(e.setupState=Bd(t)),Sp(e,r)}let _p;function Sp(e,t,r){const n=e.type;if(!e.render){if(!t&&_p&&!n.render){const i=n.template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=jt(jt({isCustomElement:a,delimiters:s},o),l);n.render=_p(i,u)}}e.render=n.render||qe}Mi(e),wi(),xx(e),bn(),Dn()}function Qx(e){return new Proxy(e.attrs,{get(t,r){return Se(e,"get","$attrs"),t[r]}})}function Jx(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=Qx(e))},slots:e.slots,emit:e.emit,expose:t}}function Sf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Bd(Ti(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Cs)return Cs[r](e)}}))}function tT(e){return vt(e)&&e.displayName||e.name}function eT(e){return vt(e)&&"__vccOpts"in e}function Wr(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Ds(a,t,r)}return i}function Ee(e,t,r,n){if(vt(e)){const a=Wr(e,t,r,n);return a&&ud(a)&&a.catch(o=>{Ds(o,t,r)}),a}const i=[];for(let a=0;a<e.length;a++)i.push(Ee(e[a],t,r,n));return i}function Ds(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=r;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,o,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){Wr(l,null,10,[e,o,s]);return}}rT(e,r,i,n)}function rT(e,t,r,n=!0){console.error(e)}let As=!1,bf=!1;const we=[];let Cr=0;const Ta=[];let Ca=null,Di=0;const Ma=[];let Yr=null,Ai=0;const bp=Promise.resolve();let wf=null,xf=null;function Tf(e){const t=wf||bp;return e?t.then(this?e.bind(this):e):t}function nT(e){let t=Cr+1,r=we.length;for(;t<r;){const n=t+r>>>1;Da(we[n])<e?t=n+1:r=n}return t}function wp(e){(!we.length||!we.includes(e,As&&e.allowRecurse?Cr+1:Cr))&&e!==xf&&(e.id==null?we.push(e):we.splice(nT(e.id),0,e),xp())}function xp(){!As&&!bf&&(bf=!0,wf=bp.then(Mp))}function iT(e){const t=we.indexOf(e);t>Cr&&we.splice(t,1)}function Tp(e,t,r,n){at(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&r.push(e),xp()}function aT(e){Tp(e,Ca,Ta,Di)}function oT(e){Tp(e,Yr,Ma,Ai)}function Cf(e,t=null){if(Ta.length){for(xf=t,Ca=[...new Set(Ta)],Ta.length=0,Di=0;Di<Ca.length;Di++)Ca[Di]();Ca=null,Di=0,xf=null,Cf(e,t)}}function Cp(e){if(Ma.length){const t=[...new Set(Ma)];if(Ma.length=0,Yr){Yr.push(...t);return}for(Yr=t,Yr.sort((r,n)=>Da(r)-Da(n)),Ai=0;Ai<Yr.length;Ai++)Yr[Ai]();Yr=null,Ai=0}}const Da=e=>e.id==null?1/0:e.id;function Mp(e){bf=!1,As=!0,Cf(e),we.sort((r,n)=>Da(r)-Da(n));const t=qe;try{for(Cr=0;Cr<we.length;Cr++){const r=we[Cr];r&&r.active!==!1&&Wr(r,null,14)}}finally{Cr=0,we.length=0,Cp(),As=!1,wf=null,(we.length||Ta.length||Ma.length)&&Mp(e)}}const Dp={};function Aa(e,t,r){return Ap(e,t,r)}function Ap(e,t,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=It){const s=qt;let l,u=!1,f=!1;if(Wt(e)?(l=()=>e.value,u=!!e._shallow):$r(e)?(l=()=>e,n=!0):at(e)?(f=!0,u=e.some($r),l=()=>e.map(g=>{if(Wt(g))return g.value;if($r(g))return An(g);if(vt(g))return Wr(g,s,2)})):vt(e)?t?l=()=>Wr(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return c&&c(),Ee(e,s,3,[h])}:l=qe,t&&n){const g=l;l=()=>An(g())}let c,h=g=>{c=p.onStop=()=>{Wr(g,s,4)}};if(Ms)return h=qe,t?r&&Ee(t,s,3,[l(),f?[]:void 0,h]):l(),qe;let v=f?[]:Dp;const d=()=>{if(!!p.active)if(t){const g=p.run();(n||u||(f?g.some((m,_)=>ya(m,v[_])):ya(g,v)))&&(c&&c(),Ee(t,s,3,[g,v===Dp?void 0:v,h]),v=g)}else p.run()};d.allowRecurse=!!t;let y;i==="sync"?y=d:i==="post"?y=()=>fe(d,s&&s.suspense):y=()=>{!s||s.isMounted?aT(d):d()};const p=new Yu(l,y);return t?r?d():v=p.run():i==="post"?fe(p.run.bind(p),s&&s.suspense):p.run(),()=>{p.stop(),s&&s.scope&&Nu(s.scope.effects,p)}}function sT(e,t,r){const n=this.proxy,i=Qt(e)?e.includes(".")?Pp(n,e):()=>n[e]:e.bind(n,n);let a;vt(t)?a=t:(a=t.handler,r=t);const o=qt;Mi(this);const s=Ap(i,a.bind(n),r);return o?Mi(o):Dn(),s}function Pp(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function An(e,t){if(!Vt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Wt(e))An(e.value,t);else if(at(e))for(let r=0;r<e.length;r++)An(e[r],t);else if(es(e)||_i(e))e.forEach(r=>{An(r,t)});else if(cd(e))for(const r in e)An(e[r],t);return e}function Mf(e,t,r){const n=arguments.length;return n===2?Vt(t)&&!at(t)?ws(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&ws(r)&&(r=[r]),ce(e,t,r))}const lT="3.2.26",uT="http://www.w3.org/2000/svg",Pi=typeof document!="undefined"?document:null,Ip=new Map,fT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t?Pi.createElementNS(uT,e):Pi.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Pi.createTextNode(e),createComment:e=>Pi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,n){const i=r?r.previousSibling:t.lastChild;let a=Ip.get(e);if(!a){const o=Pi.createElement("template");if(o.innerHTML=n?`<svg>${e}</svg>`:e,a=o.content,n){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}Ip.set(e,a)}return t.insertBefore(a.cloneNode(!0),r),[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function cT(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function hT(e,t,r){const n=e.style,i=Qt(r);if(r&&!i){for(const a in r)Df(n,a,r[a]);if(t&&!Qt(t))for(const a in t)r[a]==null&&Df(n,a,"")}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const Lp=/\s*!important$/;function Df(e,t,r){if(at(r))r.forEach(n=>Df(e,t,n));else if(t.startsWith("--"))e.setProperty(t,r);else{const n=vT(e,t);Lp.test(r)?e.setProperty(Si(n),r.replace(Lp,""),"important"):e[n]=r}}const Ep=["Webkit","Moz","ms"],Af={};function vT(e,t){const r=Af[t];if(r)return r;let n=ar(t);if(n!=="filter"&&n in e)return Af[t]=n;n=as(n);for(let i=0;i<Ep.length;i++){const a=Ep[i]+n;if(a in e)return Af[t]=a}return t}const Rp="http://www.w3.org/1999/xlink";function dT(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(Rp,t.slice(6,t.length)):e.setAttributeNS(Rp,t,r);else{const a=lw(t);r==null||a&&!od(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function pT(e,t,r,n,i,a,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,a),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const s=r==null?"":r;(e.value!==s||e.tagName==="OPTION")&&(e.value=s),r==null&&e.removeAttribute(t);return}if(r===""||r==null){const s=typeof e[t];if(s==="boolean"){e[t]=od(r);return}else if(r==null&&s==="string"){e[t]="",e.removeAttribute(t);return}else if(s==="number"){try{e[t]=0}catch(l){}e.removeAttribute(t);return}}try{e[t]=r}catch(s){}}let Ps=Date.now,Op=!1;if(typeof window!="undefined"){Ps()>document.createEvent("Event").timeStamp&&(Ps=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Op=!!(e&&Number(e[1])<=53)}let Pf=0;const gT=Promise.resolve(),yT=()=>{Pf=0},mT=()=>Pf||(gT.then(yT),Pf=Ps());function Pn(e,t,r,n){e.addEventListener(t,r,n)}function _T(e,t,r,n){e.removeEventListener(t,r,n)}function ST(e,t,r,n,i=null){const a=e._vei||(e._vei={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=bT(t);if(n){const u=a[t]=wT(n,i);Pn(e,s,u,l)}else o&&(_T(e,s,o,l),a[t]=void 0)}}const kp=/(?:Once|Passive|Capture)$/;function bT(e){let t;if(kp.test(e)){t={};let r;for(;r=e.match(kp);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Si(e.slice(2)),t]}function wT(e,t){const r=n=>{const i=n.timeStamp||Ps();(Op||i>=r.attached-1)&&Ee(xT(n,r.value),t,5,[n])};return r.value=e,r.attached=mT(),r}function xT(e,t){if(at(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n(i))}else return t}const Bp=/^on[a-z]/,TT=(e,t,r,n,i=!1,a,o,s,l)=>{t==="class"?cT(e,n,i):t==="style"?hT(e,r,n):ts(t)?Fu(t)||ST(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):CT(e,t,n,i))?pT(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),dT(e,t,n,i))};function CT(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&Bp.test(t)&&vt(r)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Bp.test(t)&&Qt(r)?!1:t in e}const Xr="transition",Pa="animation",Fp=(e,{slots:t})=>Mf(zd,MT(e),t);Fp.displayName="Transition";const Np={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Fp.props=jt({},zd.props,Np);const In=(e,t=[])=>{at(e)?e.forEach(r=>r(...t)):e&&e(...t)},zp=e=>e?at(e)?e.some(t=>t.length>1):e.length>1:!1;function MT(e){const t={};for(const P in e)P in Np||(t[P]=e[P]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:v=`${r}-leave-to`}=e,d=DT(i),y=d&&d[0],p=d&&d[1],{onBeforeEnter:g,onEnter:m,onEnterCancelled:_,onLeave:S,onLeaveCancelled:w,onBeforeAppear:b=g,onAppear:x=m,onAppearCancelled:C=_}=t,M=(P,E,B)=>{Ii(P,E?f:s),Ii(P,E?u:o),B&&B()},L=(P,E)=>{Ii(P,v),Ii(P,h),E&&E()},I=P=>(E,B)=>{const k=P?x:m,Y=()=>M(E,P,B);In(k,[E,Y]),Hp(()=>{Ii(E,P?l:a),qr(E,P?f:s),zp(k)||Vp(E,n,y,Y)})};return jt(t,{onBeforeEnter(P){In(g,[P]),qr(P,a),qr(P,o)},onBeforeAppear(P){In(b,[P]),qr(P,l),qr(P,u)},onEnter:I(!1),onAppear:I(!0),onLeave(P,E){const B=()=>L(P,E);qr(P,c),IT(),qr(P,h),Hp(()=>{Ii(P,c),qr(P,v),zp(S)||Vp(P,n,p,B)}),In(S,[P,B])},onEnterCancelled(P){M(P,!1),In(_,[P])},onAppearCancelled(P){M(P,!0),In(C,[P])},onLeaveCancelled(P){L(P),In(w,[P])}})}function DT(e){if(e==null)return null;if(Vt(e))return[If(e.enter),If(e.leave)];{const t=If(e);return[t,t]}}function If(e){return ma(e)}function qr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function Ii(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function Hp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let AT=0;function Vp(e,t,r,n){const i=e._endId=++AT,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=PT(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,h),a()},h=v=>{v.target===e&&++f>=l&&c()};setTimeout(()=>{f<l&&c()},s+1),e.addEventListener(u,h)}function PT(e,t){const r=window.getComputedStyle(e),n=d=>(r[d]||"").split(", "),i=n(Xr+"Delay"),a=n(Xr+"Duration"),o=Gp(i,a),s=n(Pa+"Delay"),l=n(Pa+"Duration"),u=Gp(s,l);let f=null,c=0,h=0;t===Xr?o>0&&(f=Xr,c=o,h=a.length):t===Pa?u>0&&(f=Pa,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?Xr:Pa:null,h=f?f===Xr?a.length:l.length:0);const v=f===Xr&&/\b(transform|all)(,|$)/.test(r[Xr+"Property"]);return{type:f,timeout:c,propCount:h,hasTransform:v}}function Gp(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>$p(r)+$p(e[n])))}function $p(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function IT(){return document.body.offsetHeight}const Is=e=>{const t=e.props["onUpdate:modelValue"];return at(t)?r=>os(t,r):t};function LT(e){e.target.composing=!0}function Up(e){const t=e.target;t.composing&&(t.composing=!1,ET(t,"input"))}function ET(e,t){const r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}const TF={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e._assign=Is(i);const a=n||i.props&&i.props.type==="number";Pn(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r?s=s.trim():a&&(s=ma(s)),e._assign(s)}),r&&Pn(e,"change",()=>{e.value=e.value.trim()}),t||(Pn(e,"compositionstart",LT),Pn(e,"compositionend",Up),Pn(e,"change",Up))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:i}},a){if(e._assign=Is(a),e.composing||document.activeElement===e&&(r||n&&e.value.trim()===t||(i||e.type==="number")&&ma(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},CF={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=es(t);Pn(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?ma(Ls(o)):Ls(o));e._assign(e.multiple?i?new Set(a):a:a[0])}),e._assign=Is(n)},mounted(e,{value:t}){Wp(e,t)},beforeUpdate(e,t,r){e._assign=Is(r)},updated(e,{value:t}){Wp(e,t)}};function Wp(e,t){const r=e.multiple;if(!(r&&!at(t)&&!es(t))){for(let n=0,i=e.options.length;n<i;n++){const a=e.options[n],o=Ls(a);if(r)at(t)?a.selected=vw(t,o)>-1:a.selected=t.has(o);else if(Jo(Ls(a),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ls(e){return"_value"in e?e._value:e.value}const RT=["ctrl","shift","alt","meta"],OT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>RT.some(r=>e[`${r}Key`]&&!t.includes(r))},MF=(e,t)=>(r,...n)=>{for(let i=0;i<t.length;i++){const a=OT[t[i]];if(a&&a(r,t))return}return e(r,...n)},DF={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Ia(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Ia(e,!0),n.enter(e)):n.leave(e,()=>{Ia(e,!1)}):Ia(e,t))},beforeUnmount(e,{value:t}){Ia(e,t)}};function Ia(e,t){e.style.display=t?e._vod:"none"}const kT=jt({patchProp:TT},fT);let Yp;function BT(){return Yp||(Yp=kx(kT))}const AF=(...e)=>{const t=BT().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=FT(n);if(!i)return;const a=t._component;!vt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function FT(e){return Qt(e)?document.querySelector(e):e}var NT=!1;/*!
* pinia v2.0.9
* (c) 2021 Eduardo San Martin Morote
* @license MIT
*/let Xp;const Es=e=>Xp=e,qp=Symbol();function Lf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var La;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(La||(La={}));function PF(){const e=dd(!0),t=e.run(()=>ef({}));let r=[],n=[];const i=Ti({install(a){Es(i),i._a=a,a.provide(qp,i),a.config.globalProperties.$pinia=i,n.forEach(o=>r.push(o)),n=[]},use(a){return!this._a&&!NT?n.push(a):r.push(a),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return i}const Zp=()=>{};function Kp(e,t,r,n=Zp){e.push(t);const i=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),n())};return!r&&_f()&&uf(i),i}function Li(e,...t){e.forEach(r=>{r(...t)})}function Ef(e,t){for(const r in t){const n=t[r],i=e[r];Lf(i)&&Lf(n)&&!Wt(n)&&!$r(n)?e[r]=Ef(i,n):e[r]=n}return e}const zT=Symbol();function HT(e){return!Lf(e)||!e.hasOwnProperty(zT)}const{assign:Mr}=Object;function VT(e){return!!(Wt(e)&&e.effect)}function GT(e,t,r,n){const{state:i,actions:a,getters:o}=t,s=r.state.value[e];let l;function u(){s||(r.state.value[e]=i?i():{});const f=Qw(r.state.value[e]);return Mr(f,a,Object.keys(o||{}).reduce((c,h)=>(c[h]=Ti(Ze(()=>{Es(r);const v=r._s.get(e);return o[h].call(v,v)})),c),{}))}return l=jp(e,u,t,r),l.$reset=function(){const c=i?i():{};this.$patch(h=>{Mr(h,c)})},l}function jp(e,t,r={},n,i){let a;const o=r.state,s=Mr({actions:{}},r),l={deep:!0};let u,f,c=Ti([]),h=Ti([]),v;const d=n.state.value[e];!o&&!d&&(n.state.value[e]={}),ef({});function y(b){let x;u=f=!1,typeof b=="function"?(b(n.state.value[e]),x={type:La.patchFunction,storeId:e,events:v}):(Ef(n.state.value[e],b),x={type:La.patchObject,payload:b,storeId:e,events:v}),Tf().then(()=>{u=!0}),f=!0,Li(c,x,n.state.value[e])}const p=Zp;function g(){a.stop(),c=[],h=[],n._s.delete(e)}function m(b,x){return function(){Es(n);const C=Array.from(arguments),M=[],L=[];function I(B){M.push(B)}function P(B){L.push(B)}Li(h,{args:C,name:b,store:S,after:I,onError:P});let E;try{E=x.apply(this&&this.$id===e?this:S,C)}catch(B){throw Li(L,B),B}return E instanceof Promise?E.then(B=>(Li(M,B),B)).catch(B=>(Li(L,B),Promise.reject(B))):(Li(M,E),E)}}const _={_p:n,$id:e,$onAction:Kp.bind(null,h),$patch:y,$reset:p,$subscribe(b,x={}){const C=Kp(c,b,x.detached,()=>M()),M=a.run(()=>Aa(()=>n.state.value[e],L=>{(x.flush==="sync"?f:u)&&b({storeId:e,type:La.direct,events:v},L)},Mr({},l,x)));return C},$dispose:g},S=xi(Mr({},_));n._s.set(e,S);const w=n._e.run(()=>(a=dd(),a.run(()=>t())));for(const b in w){const x=w[b];if(Wt(x)&&!VT(x)||$r(x))o||(d&&HT(x)&&(Wt(x)?x.value=d[b]:Ef(x,d[b])),n.state.value[e][b]=x);else if(typeof x=="function"){const C=m(b,x);w[b]=C,s.actions[b]=x}}return Mr(S,w),Mr(St(S),w),Object.defineProperty(S,"$state",{get:()=>n.state.value[e],set:b=>{y(x=>{Mr(x,b)})}}),n._p.forEach(b=>{Mr(S,a.run(()=>b({store:S,app:n._a,pinia:n,options:s})))}),d&&o&&r.hydrate&&r.hydrate(S.$state,d),u=!0,f=!0,S}function IF(e,t,r){let n,i;const a=typeof t=="function";typeof e=="string"?(n=e,i=a?r:t):(i=e,n=e.id);function o(s,l){const u=_f();return s=s||u&&xr(qp),s&&Es(s),s=Xp,s._s.has(n)||(a?jp(n,t,i,s):GT(n,i,s)),s._s.get(n)}return o.$id=n,o}/*!
* vue-router v4.0.12
* (c) 2021 Eduardo San Martin Morote
* @license MIT
*/const Qp=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ei=e=>Qp?Symbol(e):"_vr_"+e,$T=Ei("rvlm"),Jp=Ei("rvd"),Rf=Ei("r"),tg=Ei("rl"),Of=Ei("rvl"),Ri=typeof window!="undefined";function UT(e){return e.__esModule||Qp&&e[Symbol.toStringTag]==="Module"}const Lt=Object.assign;function kf(e,t){const r={};for(const n in t){const i=t[n];r[n]=Array.isArray(i)?i.map(e):e(i)}return r}const Ea=()=>{},WT=/\/$/,YT=e=>e.replace(WT,"");function Bf(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("?"),l=t.indexOf("#",s>-1?s:0);return s>-1&&(n=t.slice(0,s),a=t.slice(s+1,l>-1?l:t.length),i=e(a)),l>-1&&(n=n||t.slice(0,l),o=t.slice(l,t.length)),n=KT(n!=null?n:t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function XT(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function eg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qT(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Oi(t.matched[n],r.matched[i])&&rg(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Oi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!ZT(e[r],t[r]))return!1;return!0}function ZT(e,t){return Array.isArray(e)?ng(e,t):Array.isArray(t)?ng(t,e):e===t}function ng(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function KT(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let i=r.length-1,a,o;for(a=0;a<n.length;a++)if(o=n[a],!(i===1||o==="."))if(o==="..")i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var Ra;(function(e){e.pop="pop",e.push="push"})(Ra||(Ra={}));var Oa;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Oa||(Oa={}));function jT(e){if(!e)if(Ri){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),YT(e)}const QT=/^[^#]+#/;function JT(e,t){return e.replace(QT,"#")+t}function tC(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Rs=()=>({left:window.pageXOffset,top:window.pageYOffset});function eC(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=tC(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ig(e,t){return(history.state?history.state.position-t:-1)+e}const Ff=new Map;function rC(e,t){Ff.set(e,t)}function nC(e){const t=Ff.get(e);return Ff.delete(e),t}let iC=()=>location.protocol+"//"+location.host;function ag(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),eg(l,"")}return eg(r,e)+n+i}function aC(e,t,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=ag(e,location),d=r.value,y=t.value;let p=0;if(h){if(r.value=v,t.value=h,o&&o===d){o=null;return}p=y?h.position-y.position:0}else n(v);i.forEach(g=>{g(r.value,d,{delta:p,type:Ra.pop,direction:p?p>0?Oa.forward:Oa.back:Oa.unknown})})};function l(){o=r.value}function u(h){i.push(h);const v=()=>{const d=i.indexOf(h);d>-1&&i.splice(d,1)};return a.push(v),v}function f(){const{history:h}=window;!h.state||h.replaceState(Lt({},h.state,{scroll:Rs()}),"")}function c(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:c}}function og(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?Rs():null}}function oC(e){const{history:t,location:r}=window,n={value:ag(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=e.indexOf("#"),h=c>-1?(r.host&&document.querySelector("base")?e:e.slice(c))+l:iC()+e+l;try{t[f?"replaceState":"pushState"](u,"",h),i.value=u}catch(v){console.error(v),r[f?"replace":"assign"](h)}}function o(l,u){const f=Lt({},t.state,og(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,f,!0),n.value=l}function s(l,u){const f=Lt({},i.value,t.state,{forward:l,scroll:Rs()});a(f.current,f,!0);const c=Lt({},og(n.value,l,null),{position:f.position+1},u);a(l,c,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function LF(e){e=jT(e);const t=oC(e),r=aC(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=Lt({location:"",base:e,go:n,createHref:JT.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function sC(e){return typeof e=="string"||e&&typeof e=="object"}function sg(e){return typeof e=="string"||typeof e=="symbol"}const Zr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},lg=Ei("nf");var ug;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ug||(ug={}));function ki(e,t){return Lt(new Error,{type:e,[lg]:!0},t)}function Ln(e,t){return e instanceof Error&&lg in e&&(t==null||!!(e.type&t))}const fg="[^/]+?",lC={sensitive:!1,strict:!1,start:!0,end:!0},uC=/[.+*?^${}()[\]/\\]/g;function fC(e,t){const r=Lt({},lC,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let c=0;c<u.length;c++){const h=u[c];let v=40+(r.sensitive?.25:0);if(h.type===0)c||(i+="/"),i+=h.value.replace(uC,"\\$&"),v+=40;else if(h.type===1){const{value:d,repeatable:y,optional:p,regexp:g}=h;a.push({name:d,repeatable:y,optional:p});const m=g||fg;if(m!==fg){v+=10;try{new RegExp(`(${m})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${d}" (${m}): `+S.message)}}let _=y?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;c||(_=p&&u.length<2?`(?:/${_})`:"/"+_),p&&(_+="?"),i+=_,v+=20,p&&(v+=-8),y&&(v+=-20),m===".*"&&(v+=-50)}f.push(v)}n.push(f)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(i+="/?"),r.end?i+="$":r.strict&&(i+="(?:/|$)");const o=new RegExp(i,r.sensitive?"":"i");function s(u){const f=u.match(o),c={};if(!f)return null;for(let h=1;h<f.length;h++){const v=f[h]||"",d=a[h-1];c[d.name]=v&&d.repeatable?v.split("/"):v}return c}function l(u){let f="",c=!1;for(const h of e){(!c||!f.endsWith("/"))&&(f+="/"),c=!1;for(const v of h)if(v.type===0)f+=v.value;else if(v.type===1){const{value:d,repeatable:y,optional:p}=v,g=d in u?u[d]:"";if(Array.isArray(g)&&!y)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const m=Array.isArray(g)?g.join("/"):g;if(!m)if(p)h.length<2&&(f.endsWith("/")?f=f.slice(0,-1):c=!0);else throw new Error(`Missing required param "${d}"`);f+=m}}return f}return{re:o,score:n,keys:a,parse:s,stringify:l}}function cC(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function hC(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const a=cC(n[r],i[r]);if(a)return a;r++}return i.length-n.length}const vC={type:0,value:""},dC=/[a-zA-Z0-9_]/;function pC(e){if(!e)return[[]];if(e==="/")return[[vC]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${r})/"${u}": ${v}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){!u||(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&c(),o()):l===":"?(c(),r=1):h();break;case 4:h(),r=n;break;case 1:l==="("?r=2:dC.test(l)?h():(c(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:r=3:f+=l;break;case 3:c(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,f="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),o(),i}function gC(e,t,r){const n=fC(pC(e.path),r),i=Lt(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function yC(e,t){const r=[],n=new Map;t=hg({strict:!1,end:!0,sensitive:!1},t);function i(f){return n.get(f)}function a(f,c,h){const v=!h,d=_C(f);d.aliasOf=h&&h.record;const y=hg(t,f),p=[d];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of _)p.push(Lt({},d,{components:h?h.record.components:d.components,path:S,aliasOf:h?h.record:d}))}let g,m;for(const _ of p){const{path:S}=_;if(c&&S[0]!=="/"){const w=c.record.path,b=w[w.length-1]==="/"?"":"/";_.path=c.record.path+(S&&b+S)}if(g=gC(_,c,y),h?h.alias.push(g):(m=m||g,m!==g&&m.alias.push(g),v&&f.name&&!cg(g)&&o(f.name)),"children"in d){const w=d.children;for(let b=0;b<w.length;b++)a(w[b],g,h&&h.children[b])}h=h||g,l(g)}return m?()=>{o(m)}:Ea}function o(f){if(sg(f)){const c=n.get(f);c&&(n.delete(f),r.splice(r.indexOf(c),1),c.children.forEach(o),c.alias.forEach(o))}else{const c=r.indexOf(f);c>-1&&(r.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){let c=0;for(;c<r.length&&hC(f,r[c])>=0;)c++;r.splice(c,0,f),f.record.name&&!cg(f)&&n.set(f.record.name,f)}function u(f,c){let h,v={},d,y;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw ki(1,{location:f});y=h.record.name,v=Lt(mC(c.params,h.keys.filter(m=>!m.optional).map(m=>m.name)),f.params),d=h.stringify(v)}else if("path"in f)d=f.path,h=r.find(m=>m.re.test(d)),h&&(v=h.parse(d),y=h.record.name);else{if(h=c.name?n.get(c.name):r.find(m=>m.re.test(c.path)),!h)throw ki(1,{location:f,currentLocation:c});y=h.record.name,v=Lt({},c.params,f.params),d=h.stringify(v)}const p=[];let g=h;for(;g;)p.unshift(g.record),g=g.parent;return{name:y,path:d,params:v,matched:p,meta:bC(p)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function mC(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function _C(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:SC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function SC(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function cg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bC(e){return e.reduce((t,r)=>Lt(t,r.meta),{})}function hg(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const vg=/#/g,wC=/&/g,xC=/\//g,TC=/=/g,CC=/\?/g,dg=/\+/g,MC=/%5B/g,DC=/%5D/g,pg=/%5E/g,AC=/%60/g,gg=/%7B/g,PC=/%7C/g,yg=/%7D/g,IC=/%20/g;function Nf(e){return encodeURI(""+e).replace(PC,"|").replace(MC,"[").replace(DC,"]")}function LC(e){return Nf(e).replace(gg,"{").replace(yg,"}").replace(pg,"^")}function zf(e){return Nf(e).replace(dg,"%2B").replace(IC,"+").replace(vg,"%23").replace(wC,"%26").replace(AC,"`").replace(gg,"{").replace(yg,"}").replace(pg,"^")}function EC(e){return zf(e).replace(TC,"%3D")}function RC(e){return Nf(e).replace(vg,"%23").replace(CC,"%3F")}function OC(e){return e==null?"":RC(e).replace(xC,"%2F")}function Os(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function kC(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const a=n[i].replace(dg," "),o=a.indexOf("="),s=Os(o<0?a:a.slice(0,o)),l=o<0?null:Os(a.slice(o+1));if(s in t){let u=t[s];Array.isArray(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function mg(e){let t="";for(let r in e){const n=e[r];if(r=EC(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Array.isArray(n)?n.map(a=>a&&zf(a)):[n&&zf(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function BC(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Array.isArray(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}function ka(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function Kr(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(ki(4,{from:r,to:t})):c instanceof Error?s(c):sC(c)?s(ki(2,{from:t,to:c})):(a&&n.enterCallbacks[i]===a&&typeof c=="function"&&a.push(c),o())},u=e.call(n&&n.instances[i],t,r,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function Hf(e,t,r,n){const i=[];for(const a of e)for(const o in a.components){let s=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(FC(s)){const u=(s.__vccOpts||s)[t];u&&i.push(Kr(u,r,n,a,o))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=UT(u)?u.default:u;a.components[o]=f;const h=(f.__vccOpts||f)[t];return h&&Kr(h,r,n,a,o)()}))}}return i}function FC(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _g(e){const t=xr(Rf),r=xr(tg),n=Ze(()=>t.resolve(wa(e.to))),i=Ze(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const h=c.findIndex(Oi.bind(null,f));if(h>-1)return h;const v=Sg(l[u-2]);return u>1&&Sg(f)===v&&c[c.length-1].path!==v?c.findIndex(Oi.bind(null,l[u-2])):h}),a=Ze(()=>i.value>-1&&VC(r.params,n.value.params)),o=Ze(()=>i.value>-1&&i.value===r.matched.length-1&&rg(r.params,n.value.params));function s(l={}){return HC(l)?t[wa(e.replace)?"replace":"push"](wa(e.to)).catch(Ea):Promise.resolve()}return{route:n,href:Ze(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const NC=$d({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:_g,setup(e,{slots:t}){const r=xi(_g(e)),{options:n}=xr(Rf),i=Ze(()=>({[bg(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[bg(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:Mf("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),zC=NC;function HC(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function VC(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Array.isArray(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function Sg(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const bg=(e,t,r)=>e!=null?e:t!=null?t:r,GC=$d({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:r}){const n=xr(Of),i=Ze(()=>e.route||n.value),a=xr(Jp,0),o=Ze(()=>i.value.matched[a]);ys(Jp,a+1),ys($T,o),ys(Of,i);const s=ef();return Aa(()=>[s.value,o.value,e.name],([l,u,f],[c,h,v])=>{u&&(u.instances[f]=l,h&&h!==u&&l&&l===c&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),l&&u&&(!h||!Oi(u,h)||!c)&&(u.enterCallbacks[f]||[]).forEach(d=>d(l))},{flush:"post"}),()=>{const l=i.value,u=o.value,f=u&&u.components[e.name],c=e.name;if(!f)return wg(r.default,{Component:f,route:l});const h=u.props[e.name],v=h?h===!0?l.params:typeof h=="function"?h(l):h:null,y=Mf(f,Lt({},v,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(u.instances[c]=null)},ref:s}));return wg(r.default,{Component:y,route:l})||y}}});function wg(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const $C=GC;function EF(e){const t=yC(e.routes,e),r=e.parseQuery||kC,n=e.stringifyQuery||mg,i=e.history,a=ka(),o=ka(),s=ka(),l=Zw(Zr);let u=Zr;Ri&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=kf.bind(null,O=>""+O),c=kf.bind(null,OC),h=kf.bind(null,Os);function v(O,j){let G,tt;return sg(O)?(G=t.getRecordMatcher(O),tt=j):tt=O,t.addRoute(tt,G)}function d(O){const j=t.getRecordMatcher(O);j&&t.removeRoute(j)}function y(){return t.getRoutes().map(O=>O.record)}function p(O){return!!t.getRecordMatcher(O)}function g(O,j){if(j=Lt({},j||l.value),typeof O=="string"){const ot=Bf(r,O,j.path),T=t.resolve({path:ot.path},j),A=i.createHref(ot.fullPath);return Lt(ot,T,{params:h(T.params),hash:Os(ot.hash),redirectedFrom:void 0,href:A})}let G;if("path"in O)G=Lt({},O,{path:Bf(r,O.path,j.path).path});else{const ot=Lt({},O.params);for(const T in ot)ot[T]==null&&delete ot[T];G=Lt({},O,{params:c(O.params)}),j.params=c(j.params)}const tt=t.resolve(G,j),bt=O.hash||"";tt.params=f(h(tt.params));const gt=XT(n,Lt({},O,{hash:LC(bt),path:tt.path})),ct=i.createHref(gt);return Lt({fullPath:gt,hash:bt,query:n===mg?BC(O.query):O.query||{}},tt,{redirectedFrom:void 0,href:ct})}function m(O){return typeof O=="string"?Bf(r,O,l.value.path):Lt({},O)}function _(O,j){if(u!==O)return ki(8,{from:j,to:O})}function S(O){return x(O)}function w(O){return S(Lt(m(O),{replace:!0}))}function b(O){const j=O.matched[O.matched.length-1];if(j&&j.redirect){const{redirect:G}=j;let tt=typeof G=="function"?G(O):G;return typeof tt=="string"&&(tt=tt.includes("?")||tt.includes("#")?tt=m(tt):{path:tt},tt.params={}),Lt({query:O.query,hash:O.hash,params:O.params},tt)}}function x(O,j){const G=u=g(O),tt=l.value,bt=O.state,gt=O.force,ct=O.replace===!0,ot=b(G);if(ot)return x(Lt(m(ot),{state:bt,force:gt,replace:ct}),j||G);const T=G;T.redirectedFrom=j;let A;return!gt&&qT(n,tt,G)&&(A=ki(16,{to:T,from:tt}),V(tt,tt,!0,!1)),(A?Promise.resolve(A):M(T,tt)).catch(R=>Ln(R)?R:q(R,T,tt)).then(R=>{if(R){if(Ln(R,2))return x(Lt(m(R.to),{state:bt,force:gt,replace:ct}),j||T)}else R=I(T,tt,!0,ct,bt);return L(T,tt,R),R})}function C(O,j){const G=_(O,j);return G?Promise.reject(G):Promise.resolve()}function M(O,j){let G;const[tt,bt,gt]=UC(O,j);G=Hf(tt.reverse(),"beforeRouteLeave",O,j);for(const ot of tt)ot.leaveGuards.forEach(T=>{G.push(Kr(T,O,j))});const ct=C.bind(null,O,j);return G.push(ct),Bi(G).then(()=>{G=[];for(const ot of a.list())G.push(Kr(ot,O,j));return G.push(ct),Bi(G)}).then(()=>{G=Hf(bt,"beforeRouteUpdate",O,j);for(const ot of bt)ot.updateGuards.forEach(T=>{G.push(Kr(T,O,j))});return G.push(ct),Bi(G)}).then(()=>{G=[];for(const ot of O.matched)if(ot.beforeEnter&&!j.matched.includes(ot))if(Array.isArray(ot.beforeEnter))for(const T of ot.beforeEnter)G.push(Kr(T,O,j));else G.push(Kr(ot.beforeEnter,O,j));return G.push(ct),Bi(G)}).then(()=>(O.matched.forEach(ot=>ot.enterCallbacks={}),G=Hf(gt,"beforeRouteEnter",O,j),G.push(ct),Bi(G))).then(()=>{G=[];for(const ot of o.list())G.push(Kr(ot,O,j));return G.push(ct),Bi(G)}).catch(ot=>Ln(ot,8)?ot:Promise.reject(ot))}function L(O,j,G){for(const tt of s.list())tt(O,j,G)}function I(O,j,G,tt,bt){const gt=_(O,j);if(gt)return gt;const ct=j===Zr,ot=Ri?history.state:{};G&&(tt||ct?i.replace(O.fullPath,Lt({scroll:ct&&ot&&ot.scroll},bt)):i.push(O.fullPath,bt)),l.value=O,V(O,j,G,ct),Q()}let P;function E(){P=i.listen((O,j,G)=>{const tt=g(O),bt=b(tt);if(bt){x(Lt(bt,{replace:!0}),tt).catch(Ea);return}u=tt;const gt=l.value;Ri&&rC(ig(gt.fullPath,G.delta),Rs()),M(tt,gt).catch(ct=>Ln(ct,4|8)?ct:Ln(ct,2)?(x(ct.to,tt).then(ot=>{Ln(ot,4|16)&&!G.delta&&G.type===Ra.pop&&i.go(-1,!1)}).catch(Ea),Promise.reject()):(G.delta&&i.go(-G.delta,!1),q(ct,tt,gt))).then(ct=>{ct=ct||I(tt,gt,!1),ct&&(G.delta?i.go(-G.delta,!1):G.type===Ra.pop&&Ln(ct,4|16)&&i.go(-1,!1)),L(tt,gt,ct)}).catch(Ea)})}let B=ka(),k=ka(),Y;function q(O,j,G){Q(O);const tt=k.list();return tt.length?tt.forEach(bt=>bt(O,j,G)):console.error(O),Promise.reject(O)}function U(){return Y&&l.value!==Zr?Promise.resolve():new Promise((O,j)=>{B.add([O,j])})}function Q(O){Y||(Y=!0,E(),B.list().forEach(([j,G])=>O?G(O):j()),B.reset())}function V(O,j,G,tt){const{scrollBehavior:bt}=e;if(!Ri||!bt)return Promise.resolve();const gt=!G&&nC(ig(O.fullPath,0))||(tt||!G)&&history.state&&history.state.scroll||null;return Tf().then(()=>bt(O,j,gt)).then(ct=>ct&&eC(ct)).catch(ct=>q(ct,O,j))}const it=O=>i.go(O);let Ot;const pt=new Set;return{currentRoute:l,addRoute:v,removeRoute:d,hasRoute:p,getRoutes:y,resolve:g,options:e,push:S,replace:w,go:it,back:()=>it(-1),forward:()=>it(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:k.add,isReady:U,install(O){const j=this;O.component("RouterLink",zC),O.component("RouterView",$C),O.config.globalProperties.$router=j,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>wa(l)}),Ri&&!Ot&&l.value===Zr&&(Ot=!0,S(i.location).catch(bt=>{}));const G={};for(const bt in Zr)G[bt]=Ze(()=>l.value[bt]);O.provide(Rf,j),O.provide(tg,xi(G)),O.provide(Of,l);const tt=O.unmount;pt.add(O),O.unmount=function(){pt.delete(O),pt.size<1&&(u=Zr,P&&P(),l.value=Zr,Ot=!1,Y=!1),tt()}}}}function Bi(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function UC(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(u=>Oi(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Oi(u,l))||i.push(l))}return[r,n,i]}/*! *****************************************************************************
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 Vf=function(e,t){return Vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Vf(e,t)};function Z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Vf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function WC(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||t)}var YC=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),XC=function(){function e(){this.browser=new YC,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1}return e}(),lr=new XC;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(lr.wxa=!0,lr.canvasSupported=!0,lr.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?(lr.worker=!0,lr.canvasSupported=!0):typeof navigator=="undefined"?(lr.node=!0,lr.canvasSupported=!0,lr.svgSupported=!0):qC(navigator.userAgent,lr);function qC(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.canvasSupported=!!document.createElement("canvas").getContext,t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var ht=lr,xg={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},Tg={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},Ba=Object.prototype.toString,ks=Array.prototype,ZC=ks.forEach,KC=ks.filter,Gf=ks.slice,jC=ks.map,Cg=function(){}.constructor,Bs=Cg?Cg.prototype:null,$f="__proto__",Mg={},QC=2311;function Dg(){return QC++}function Fi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,e)}function yt(e){if(e==null||typeof e!="object")return e;var t=e,r=Ba.call(e);if(r==="[object Array]"){if(!Na(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=yt(e[n])}}else if(Tg[r]){if(!Na(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=yt(e[n])}}}else if(!xg[r]&&!Na(e)&&!Ns(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==$f&&(t[o]=yt(e[o]))}return t}function Tt(e,t,r){if(!st(t)||!st(e))return r?yt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==$f){var i=e[n],a=t[n];st(a)&&st(i)&&!et(a)&&!et(i)&&!Ns(a)&&!Ns(i)&&!Ag(a)&&!Ag(i)&&!Na(a)&&!Na(i)?Tt(i,a,r):(r||!(n in e))&&(e[n]=yt(t[n]))}return e}function K(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==$f&&(e[r]=t[r]);return e}function Ct(e,t,r){for(var n=Ht(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}var Fs=function(){return Mg.createCanvas()};Mg.createCanvas=function(){return document.createElement("canvas")};function At(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function JC(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function ur(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else Ct(e,t,r)}function Re(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function D(e,t,r){if(!!(e&&t))if(e.forEach&&e.forEach===ZC)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function ut(e,t,r){if(!e)return[];if(!t)return qf(e);if(e.map&&e.map===jC)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function Uf(e,t,r,n){if(!!(e&&t)){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function xe(e,t,r){if(!e)return[];if(!t)return qf(e);if(e.filter&&e.filter===KC)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Ht(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function tM(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Gf.call(arguments)))}}var Gt=Bs&&Xt(Bs.bind)?Bs.call.bind(Bs.bind):tM;function Zt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Gf.call(arguments)))}}function et(e){return Array.isArray?Array.isArray(e):Ba.call(e)==="[object Array]"}function Xt(e){return typeof e=="function"}function wt(e){return typeof e=="string"}function Wf(e){return Ba.call(e)==="[object String]"}function Yf(e){return typeof e=="number"}function st(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Ag(e){return!!xg[Ba.call(e)]}function Te(e){return!!Tg[Ba.call(e)]}function Ns(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function eM(e){return e.colorStops!=null}function rM(e){return e.image!=null}function Xf(e){return e!==e}function Fa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Dt(e,t){return e!=null?e:t}function zs(e,t,r){return e!=null?e:t!=null?t:r}function qf(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Gf.apply(e,t)}function Pg(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function fr(e,t){if(!e)throw new Error(t)}function En(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ig="__ec_primitive__";function Zf(e){e[Ig]=!0}function Na(e){return e[Ig]}var nM=function(){function e(t){this.data={};var r=et(t);this.data={};var n=this;t instanceof e?t.each(i):t&&D(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},e.prototype.set=function(t,r){return this.data[t]=r},e.prototype.each=function(t,r){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(r,this.data[n],n)},e.prototype.keys=function(){return Ht(this.data)},e.prototype.removeKey=function(t){delete this.data[t]},e}();function ft(e){return new nM(e)}function iM(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function za(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&K(r,t),r}function je(e,t){return e.hasOwnProperty(t)}function Dr(){}function Ni(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function aM(e){return[e[0],e[1]]}function Lg(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function oM(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function sM(e){return Math.sqrt(lM(e))}function lM(e){return e[0]*e[0]+e[1]*e[1]}function Kf(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function uM(e,t){var r=sM(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Hs(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var fM=Hs;function cM(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var zi=cM;function ie(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Rn(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function On(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Hi=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),hM=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Hi(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Hi(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Hi(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Hi(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Hi(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Hi(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),vM=hM,dM=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),cr=dM,pM=Math.log(2);function jf(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/pM);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&i||(c+=(v%2?-1:1)*e[r][h]*jf(e,t-1,f,u,i|d,a),v++)}return a[o]=c,c}function Eg(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=jf(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*jf(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Rg="___zrEVENTSAVED",Qf=[];function gM(e,t,r,n,i){return Jf(Qf,t,n,i,!0)&&Jf(e,r,Qf[0],Qf[1])}function Jf(e,t,r,n,i){if(t.getBoundingClientRect&&ht.domSupported&&!Og(t)){var a=t[Rg]||(t[Rg]={}),o=yM(t,a),s=mM(o,a,i);if(s)return s(e,r,n),!0}return!1}function yM(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function mM(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?Eg(s,o):Eg(o,s))}function Og(e){return e.nodeName.toUpperCase()==="CANVAS"}var tc=typeof window!="undefined"&&!!window.addEventListener,_M=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ec=[];function rc(e,t,r,n){return r=r||{},n||!ht.canvasSupported?kg(e,t,r):ht.browser.firefox&&ht.browser.version<"39"&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):kg(e,t,r),r}function kg(e,t,r){if(ht.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Og(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Jf(ec,e,n,i)){r.zrX=ec[0],r.zrY=ec[1];return}}r.zrX=r.zrY=0}function nc(e){return e||window.event}function Oe(e,t,r){if(t=nc(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&rc(e,o,t,r)}else{rc(e,t,t,r);var a=SM(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&_M.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function SM(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function bM(e,t,r,n){tc?e.addEventListener(t,r,n):e.attachEvent("on"+t,r)}function wM(e,t,r,n){tc?e.removeEventListener(t,r,n):e.detachEvent("on"+t,r)}var Bg=tc?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0},xM=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=rc(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in ic)if(ic.hasOwnProperty(r)){var n=ic[r](this._track,t);if(n)return n}},e}();function Fg(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function TM(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var ic={pinch:function(e,t){var r=e.length;if(!!r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Fg(n)/Fg(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=TM(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},Ng="silent";function CM(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:MM}}function MM(){Bg(this.event)}var DM=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(cr),Ha=function(){function e(t,r){this.x=t,this.y=r}return e}(),AM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],zg=function(e){Z(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o._hovered=new Ha(0,0),o.storage=r,o.painter=n,o.painterRoot=a,i=i||new DM,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new vM(o),o}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(AM,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Hg(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ha(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Ha(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=CM(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){for(var a=this.storage.getDisplayList(),o=new Ha(r,n),s=a.length-1;s>=0;s--){var l=void 0;if(a[s]!==i&&!a[s].ignore&&(l=PM(a[s],r,n))&&(!o.topTarget&&(o.topTarget=a[s]),l!==Ng)){o.target=a[s];break}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new xM);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ha;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(cr);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){zg.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=Hg(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||fM(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function PM(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?Ng:!0}return!1}function Hg(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var IM=zg,Vg=32,Va=7;function LM(e){for(var t=0;e>=Vg;)t|=e&1,e>>=1;return e+t}function Gg(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;EM(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function EM(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function $g(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function ac(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function oc(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function RM(e,t){var r=Va,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],y=i[v],p=n[v+1],g=i[v+1];i[v]=y+g,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=oc(e[p],e,d,y,0,t);d+=m,y-=m,y!==0&&(g=ac(e[d+y-1],e,p,g,g-1,t),g!==0&&(y<=g?c(d,y,p,g):h(d,y,p,g)))}function c(v,d,y,p){var g=0;for(g=0;g<d;g++)o[g]=e[v+g];var m=0,_=y,S=v;if(e[S++]=e[_++],--p==0){for(g=0;g<d;g++)e[S+g]=o[m+g];return}if(d===1){for(g=0;g<p;g++)e[S+g]=e[_+g];e[S+p]=o[m];return}for(var w=r,b,x,C;;){b=0,x=0,C=!1;do if(t(e[_],o[m])<0){if(e[S++]=e[_++],x++,b=0,--p==0){C=!0;break}}else if(e[S++]=o[m++],b++,x=0,--d==1){C=!0;break}while((b|x)<w);if(C)break;do{if(b=oc(e[_],o,m,d,0,t),b!==0){for(g=0;g<b;g++)e[S+g]=o[m+g];if(S+=b,m+=b,d-=b,d<=1){C=!0;break}}if(e[S++]=e[_++],--p==0){C=!0;break}if(x=ac(o[m],e,_,p,0,t),x!==0){for(g=0;g<x;g++)e[S+g]=e[_+g];if(S+=x,_+=x,p-=x,p===0){C=!0;break}}if(e[S++]=o[m++],--d==1){C=!0;break}w--}while(b>=Va||x>=Va);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g<p;g++)e[S+g]=e[_+g];e[S+p]=o[m]}else{if(d===0)throw new Error;for(g=0;g<d;g++)e[S+g]=o[m+g]}}function h(v,d,y,p){var g=0;for(g=0;g<p;g++)o[g]=e[y+g];var m=v+d-1,_=p-1,S=y+p-1,w=0,b=0;if(e[S--]=e[m--],--d==0){for(w=S-(p-1),g=0;g<p;g++)e[w+g]=o[g];return}if(p===1){for(S-=d,m-=d,b=S+1,w=m+1,g=d-1;g>=0;g--)e[b+g]=e[w+g];e[S]=o[_];return}for(var x=r;;){var C=0,M=0,L=!1;do if(t(o[_],e[m])<0){if(e[S--]=e[m--],C++,M=0,--d==0){L=!0;break}}else if(e[S--]=o[_--],M++,C=0,--p==1){L=!0;break}while((C|M)<x);if(L)break;do{if(C=d-oc(o[_],e,v,d,d-1,t),C!==0){for(S-=C,m-=C,d-=C,b=S+1,w=m+1,g=C-1;g>=0;g--)e[b+g]=e[w+g];if(d===0){L=!0;break}}if(e[S--]=o[_--],--p==1){L=!0;break}if(M=p-ac(e[m],o,0,p,p-1,t),M!==0){for(S-=M,_-=M,p-=M,b=S+1,w=_+1,g=0;g<M;g++)e[b+g]=o[w+g];if(p<=1){L=!0;break}}if(e[S--]=e[m--],--d==0){L=!0;break}x--}while(C>=Va||M>=Va);if(L)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(S-=d,m-=d,b=S+1,w=m+1,g=d-1;g>=0;g--)e[b+g]=e[w+g];e[S]=o[_]}else{if(p===0)throw new Error;for(w=S-(p-1),g=0;g<p;g++)e[w+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function sc(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<Vg){a=Gg(e,r,n,t),$g(e,r,n,r+a,t);return}var o=RM(e,t),s=LM(i);do{if(a=Gg(e,r,n,t),a<s){var l=i;l>s&&(l=s),$g(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ce=1,Ga=2,Vi=4,Ug=!1;function lc(){Ug||(Ug=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Wg(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var OM=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Wg}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,ht.canvasSupported&&sc(n,Wg)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ce),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(lc(),f.z=0),isNaN(f.z2)&&(lc(),f.z2=0),isNaN(f.zlevel)&&(lc(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=At(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),kM=OM,Yg;Yg=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var uc=Yg,Vs={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Vs.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Vs.bounceIn(e*2)*.5:Vs.bounceOut(e*2-1)*.5+.5}},BM=Vs,FM=function(){function e(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop==null?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return e.prototype.step=function(t,r){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused){this._pausedTime+=r;return}var n=(t-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var i=this.easing,a=typeof i=="string"?BM[i]:i,o=typeof a=="function"?a(n):n;if(this.onframe&&this.onframe(o),n===1)if(this.loop)this._restart(t),this.onrestart&&this.onrestart();else return!0;return!1},e.prototype._restart=function(t){var r=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-r+this.gap,this._pausedTime=0},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e}(),NM=FM,Xg=function(){function e(t){this.value=t}return e}(),zM=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Xg(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),HM=function(){function e(t){this._list=new zM,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Xg(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),$a=HM,qg={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 jr(e){return e=Math.round(e),e<0?0:e>255?255:e}function fc(e){return e<0?0:e>1?1:e}function cc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?jr(parseFloat(t)/100*255):jr(parseInt(t,10))}function Gs(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?fc(parseFloat(t)/100):fc(parseFloat(t))}function hc(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function $s(e,t,r){return e+(t-e)*r}function ke(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function vc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Zg=new $a(20),Us=null;function Gi(e,t){Us&&vc(Us,t),Us=Zg.put(e,Us||t.slice())}function hr(e,t){if(!!e){t=t||[];var r=Zg.get(e);if(r)return vc(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in qg)return vc(t,qg[n]),Gi(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ke(t,0,0,0,1);return}return ke(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Gi(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ke(t,0,0,0,1);return}return ke(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Gi(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ke(t,+u[0],+u[1],+u[2],1):ke(t,0,0,0,1);f=Gs(u.pop());case"rgb":if(u.length!==3){ke(t,0,0,0,1);return}return ke(t,cc(u[0]),cc(u[1]),cc(u[2]),f),Gi(e,t),t;case"hsla":if(u.length!==4){ke(t,0,0,0,1);return}return u[3]=Gs(u[3]),Kg(u,t),Gi(e,t),t;case"hsl":if(u.length!==3){ke(t,0,0,0,1);return}return Kg(u,t),Gi(e,t),t;default:return}}ke(t,0,0,0,1)}}function Kg(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Gs(e[1]),i=Gs(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ke(t,jr(hc(o,a,r+1/3)*255),jr(hc(o,a,r)*255),jr(hc(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function VM(e,t){var r=hr(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Ua(r,r.length===4?"rgba":"rgb")}}function GM(e){var t=hr(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function $M(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=hr(t[i]),s=hr(t[a]),l=n-i,u=Ua([jr($s(o[0],s[0],l)),jr($s(o[1],s[1],l)),jr($s(o[2],s[2],l)),fc($s(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Ua(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Ws(e,t){var r=hr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var dc=Array.prototype.slice;function Wa(e,t,r){return(t-e)*r+e}function UM(e,t,r){return r>.5?t:e}function jg(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=Wa(t[a],r[a],n)}function WM(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Wa(t[o][s],r[o][s],n)}}function Ys(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function Qg(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function YM(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:dc.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Jg(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function pc(e,t,r,n,i,a,o){var s=(r-e)*.5,l=(n-t)*.5;return(2*(t-r)+s+l)*o+(-3*(t-r)-2*s-l)*a+s*i+t}function ty(e,t,r,n,i,a,o,s){for(var l=t.length,u=0;u<l;u++)e[u]=pc(t[u],r[u],n[u],i[u],a,o,s)}function XM(e,t,r,n,i,a,o,s){for(var l=t.length,u=t[0].length,f=0;f<l;f++){e[f]||(e[1]=[]);for(var c=0;c<u;c++)e[f][c]=pc(t[f][c],r[f][c],n[f][c],i[f][c],a,o,s)}}function Xs(e){if(Re(e)){var t=e.length;if(Re(e[0])){for(var r=[],n=0;n<t;n++)r.push(dc.call(e[n]));return r}return dc.call(e)}return e}function Ya(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function qM(e){return Re(e&&e[0])?2:1}var Xa=[0,0,0,0],ZM=function(){function e(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return!this._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable&&this.maxTime>0},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(Re(r)){var a=qM(r);if(i>0&&this.arrDim!==a){this.interpolable=!1;return}if(a===1&&typeof r[0]!="number"||a===2&&typeof r[0][0]!="number"){this.interpolable=!1;return}if(i>0){var o=n[i-1];this._isAllValueEqual&&(a===1?Jg(r,o.value)||(this._isAllValueEqual=!1):this._isAllValueEqual=!1)}this.arrDim=a}else{if(this.arrDim>0){this.interpolable=!1;return}if(typeof r=="string"){var s=hr(r);s?(r=s,this.isValueColor=!0):this.interpolable=!1}else if(typeof r!="number"||isNaN(r)){this.interpolable=!1;return}if(this._isAllValueEqual&&i>0){var o=n[i-1];this.isValueColor&&!Jg(o.value,r)?this._isAllValueEqual=!1:o.value!==r&&(this._isAllValueEqual=!1)}}var l={time:t,value:r,percent:0};return this.keyframes.push(l),l},e.prototype.prepare=function(t){var r=this.keyframes;this._needsSort&&r.sort(function(l,u){return l.time-u.time});for(var n=this.arrDim,i=r.length,a=r[i-1],o=0;o<i;o++)r[o].percent=r[o].time/this.maxTime,n>0&&o!==i-1&&YM(r[o].value,a.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;for(var s=r[0].value,o=0;o<i;o++)n===0?this.isValueColor?r[o].additiveValue=Ys([],r[o].value,s,-1):r[o].additiveValue=r[o].value-s:n===1?r[o].additiveValue=Ys([],r[o].value,s,-1):n===2&&(r[o].additiveValue=Qg([],r[o].value,s,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.keyframes,o=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor,f;if(r<0)f=0;else if(r<this._lastFramePercent){var c=Math.min(this._lastFrame+1,o-1);for(f=c;f>=0&&!(a[f].percent<=r);f--);f=Math.min(f,o-2)}else{for(f=this._lastFrame;f<o&&!(a[f].percent>r);f++);f=Math.min(f-1,o-2)}var h=a[f+1],v=a[f];if(!!(v&&h)){this._lastFrame=f,this._lastFramePercent=r;var d=h.percent-v.percent;if(d!==0){var y=(r-v.percent)/d,p=n?this._additiveValue:u?Xa:t[s];if((l>0||u)&&!p&&(p=this._additiveValue=[]),this.useSpline){var g=a[f][i],m=a[f===0?f:f-1][i],_=a[f>o-2?o-1:f+1][i],S=a[f>o-3?o-1:f+2][i];if(l>0)l===1?ty(p,m,g,_,S,y,y*y,y*y*y):XM(p,m,g,_,S,y,y*y,y*y*y);else if(u)ty(p,m,g,_,S,y,y*y,y*y*y),n||(t[s]=Ya(p));else{var w=void 0;this.interpolable?w=pc(m,g,_,S,y,y*y,y*y*y):w=_,n?this._additiveValue=w:t[s]=w}}else if(l>0)l===1?jg(p,v[i],h[i],y):WM(p,v[i],h[i],y);else if(u)jg(p,v[i],h[i],y),n||(t[s]=Ya(p));else{var w=void 0;this.interpolable?w=Wa(v[i],h[i],y):w=UM(v[i],h[i],y),n?this._additiveValue=w:t[s]=w}n&&this._addToTarget(t)}}}},e.prototype._addToTarget=function(t){var r=this.arrDim,n=this.propName,i=this._additiveValue;r===0?this.isValueColor?(hr(t[n],Xa),Ys(Xa,Xa,i,1),t[n]=Ya(Xa)):t[n]=t[n]+i:r===1?Ys(t[n],t[n],i,1):r===2&&Qg(t[n],t[n],i,1)},e}(),gc=function(){function e(t,r,n){if(this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){Fi("Can' use additive animation on looped animation.");return}this._additiveAnimators=n}return e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r){return this.whenWithKeys(t,r,Ht(r))},e.prototype.whenWithKeys=function(t,r,n){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new ZM(o);var l=void 0,u=this._getAdditiveTrack(o);if(u){var f=u.keyframes[u.keyframes.length-1];l=f&&f.value,u.isValueColor&&l&&(l=Ya(l))}else l=this._target[o];if(l==null)continue;t!==0&&s.addKeyframe(0,Xs(l)),this._trackKeys.push(o)}s.addKeyframe(t,Xs(r[o]))}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t,r){if(!(this._started>0)){this._started=1;for(var n=this,i=[],a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes;if(s.prepare(l),s.needsAnimate())i.push(s);else if(!s.interpolable){var f=u[u.length-1];f&&(n._target[s.propName]=f.value)}}if(i.length||r){var c=new NM({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(h){n._started=2;var v=n._additiveAnimators;if(v){for(var d=!1,y=0;y<v.length;y++)if(v[y]._clip){d=!0;break}d||(n._additiveAnimators=null)}for(var y=0;y<i.length;y++)i[y].step(n._target,h);var p=n._onframeCbs;if(p)for(var y=0;y<p.length;y++)p[y](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&t!=="spline"&&(c.easing=t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(!!this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveFinalToTarget=function(t,r){if(!!t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[o.length-1];if(s){var l=Xs(s.value);a.isValueColor&&(l=Ya(l)),t[i]=l}}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Ht(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(!!a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(a.getAdditiveTrack())}}}},e}(),KM=function(e){Z(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n.onframe=r.onframe||function(){},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._clipsHead?(this._clipsTail.next=r,r.prev=this._clipsTail,r.next=null,this._clipsTail=r):this._clipsHead=this._clipsTail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(!!r.animation){var n=r.prev,i=r.next;n?n.next=i:this._clipsHead=i,i?i.prev=n:this._clipsTail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=new Date().getTime()-this._pausedTime,i=n-this._time,a=this._clipsHead;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy&&a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(uc(n),!r._paused&&r.update())}uc(n)},t.prototype.start=function(){this._running||(this._time=new Date().getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._clipsHead;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._clipsHead=this._clipsTail=null},t.prototype.isFinished=function(){return this._clipsHead==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new gc(r,n.loop);return this.addAnimator(i),i},t}(cr),jM=KM,QM=300,yc=ht.domSupported,mc=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ut(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),ey={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ry=!1;function _c(e){var t=e.pointerType;return t==="pen"||t==="touch"}function JM(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Sc(e){e&&(e.zrByTouch=!0)}function tD(e,t){return Oe(e.dom,new eD(e,t),!0)}function ny(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var eD=function(){function e(t,r){this.stopPropagation=Dr,this.stopImmediatePropagation=Dr,this.preventDefault=Dr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Qe={mousedown:function(e){e=Oe(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Oe(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Oe(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Oe(this.dom,e);var t=e.toElement||e.relatedTarget;ny(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){ry=!0,e=Oe(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){ry||(e=Oe(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Oe(this.dom,e),Sc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Qe.mousemove.call(this,e),Qe.mousedown.call(this,e)},touchmove:function(e){e=Oe(this.dom,e),Sc(e),this.handler.processGesture(e,"change"),Qe.mousemove.call(this,e)},touchend:function(e){e=Oe(this.dom,e),Sc(e),this.handler.processGesture(e,"end"),Qe.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<QM&&Qe.click.call(this,e)},pointerdown:function(e){Qe.mousedown.call(this,e)},pointermove:function(e){_c(e)||Qe.mousemove.call(this,e)},pointerup:function(e){Qe.mouseup.call(this,e)},pointerout:function(e){_c(e)||Qe.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){Qe[e]=function(t){t=Oe(this.dom,t),this.trigger(e,t)}});var bc={pointermove:function(e){_c(e)||bc.mousemove.call(this,e)},pointerup:function(e){bc.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function rD(e,t){var r=t.domHandlers;ht.pointerEventsSupported?D(mc.pointer,function(n){qs(t,n,function(i){r[n].call(e,i)})}):(ht.touchEventsSupported&&D(mc.touch,function(n){qs(t,n,function(i){r[n].call(e,i),JM(t)})}),D(mc.mouse,function(n){qs(t,n,function(i){i=nc(i),t.touching||r[n].call(e,i)})}))}function nD(e,t){ht.pointerEventsSupported?D(ey.pointer,r):ht.touchEventsSupported||D(ey.mouse,r);function r(n){function i(a){a=nc(a),ny(e,a.target)||(a=tD(e,a),t.domHandlers[n].call(e,a))}qs(t,n,i,{capture:!0})}}function qs(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,bM(e.domTarget,t,r,n)}function wc(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&wM(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var iy=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),iD=function(e){Z(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new iy(r,Qe),yc&&(i._globalHandlerScope=new iy(document,bc)),rD(i,i._localHandlerScope),i}return t.prototype.dispose=function(){wc(this._localHandlerScope),yc&&wc(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,yc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?nD(this,n):wc(n)}},t}(cr),aD=iD,ay=1;typeof window!="undefined"&&(ay=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Zs=ay,xc=.4,Tc="#333",Cc="#ccc",oD="#eee";function $i(){return[1,0,0,1,0,0]}function Ks(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function sD(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Ar(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function js(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Qs(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),f=Math.cos(r);return e[0]=n*f+o*u,e[1]=-n*u+o*f,e[2]=i*f+s*u,e[3]=-i*u+f*s,e[4]=f*a+u*l,e[5]=f*l-u*a,e}function oy(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Js(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var sy=Ks,ly=5e-5;function qa(e){return e>ly||e<-ly}var kn=[],Ui=[],Mc=$i(),Dc=Math.abs,lD=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return qa(this.rotation)||qa(this.x)||qa(this.y)||qa(this.scaleX-1)||qa(this.scaleY-1)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&sy(n);return}n=n||$i(),r?this.getLocalTransform(n):sy(n),t&&(r?Ar(n,t,n):sD(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(kn);var n=kn[0]<0?-1:1,i=kn[1]<0?-1:1,a=((kn[0]-n)*r+n)/kn[0]||0,o=((kn[1]-i)*r+i)/kn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||$i(),Js(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(!!t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(Ar(Ui,t.invTransform,r),r=Ui);var n=this.originX,i=this.originY;(n||i)&&(Mc[4]=n,Mc[5]=i,Ar(Ui,r,Mc),Ui[4]-=n,Ui[5]-=i,r=Ui),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&ie(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ie(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Dc(t[0]-1)>1e-10&&Dc(t[3]-1)>1e-10?Math.sqrt(Dc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){for(var r=this,n=0;n<uy.length;n++){var i=uy[n];r[i]=t[i]}},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.rotation||0,l=t.x,u=t.y,f=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;return n||i?(r[4]=-n*a-f*i*o,r[5]=-i*o-c*n*a):r[4]=r[5]=0,r[0]=a,r[3]=o,r[1]=c*a,r[2]=f*o,s&&Qs(r,r,s),r[4]+=n+l,r[5]+=i+u,r},e.initDefaultProps=function(){var t=e.prototype;t.x=0,t.y=0,t.scaleX=1,t.scaleY=1,t.originX=0,t.originY=0,t.skewX=0,t.skewY=0,t.rotation=0,t.globalScaleRatio=1}(),e}(),uy=["x","y","originX","originY","rotation","scaleX","scaleY","skewX","skewY"],Ac=lD,uD=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(!!t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Et=uD,tl=Math.min,el=Math.max,Bn=new Et,Fn=new Et,Nn=new Et,zn=new Et,Za=new Et,Ka=new Et,fD=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=tl(t.x,this.x),n=tl(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=el(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=el(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=$i();return js(a,a,[-r.x,-r.y]),oy(a,a,[n,i]),js(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,h=!(a<l||u<i||s<f||c<o);if(r){var v=1/0,d=0,y=Math.abs(a-l),p=Math.abs(u-i),g=Math.abs(s-f),m=Math.abs(c-o),_=Math.min(y,p),S=Math.min(g,m);a<l||u<i?_>d&&(d=_,y<p?Et.set(Ka,-y,0):Et.set(Ka,p,0)):_<v&&(v=_,y<p?Et.set(Za,y,0):Et.set(Za,-p,0)),s<f||c<o?S>d&&(d=S,g<m?Et.set(Ka,0,-g):Et.set(Ka,0,m)):_<v&&(v=_,g<m?Et.set(Za,0,g):Et.set(Za,0,-m))}return r&&Et.copy(r,h?Za:Ka),h},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Bn.x=Nn.x=r.x,Bn.y=zn.y=r.y,Fn.x=zn.x=r.x+r.width,Fn.y=Nn.y=r.y+r.height,Bn.transform(n),zn.transform(n),Fn.transform(n),Nn.transform(n),t.x=tl(Bn.x,Fn.x,Nn.x,zn.x),t.y=tl(Bn.y,Fn.y,Nn.y,zn.y);var l=el(Bn.x,Fn.x,Nn.x,zn.x),u=el(Bn.y,Fn.y,Nn.y,zn.y);t.width=l-t.x,t.height=u-t.y},e}(),xt=fD,fy={},Wi="12px sans-serif",rl,cy;function cD(e,t){return rl||(rl=Fs().getContext("2d")),cy!==t&&(cy=rl.font=t||Wi),rl.measureText(e)}var hD={measureText:cD};function Me(e,t){t=t||Wi;var r=fy[t];r||(r=fy[t]=new $a(500));var n=r.get(e);return n==null&&(n=hD.measureText(e,t).width,r.put(e,n)),n}function hy(e,t,r,n){var i=Me(e,t),a=Ic(t),o=ja(0,i,r),s=Yi(0,a,n),l=new xt(o,s,i,a);return l}function Pc(e,t,r,n){var i=((e||"")+"").split(`
`),a=i.length;if(a===1)return hy(i[0],t,r,n);for(var o=new xt(0,0,0,0),s=0;s<i.length;s++){var l=hy(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function ja(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Yi(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Ic(e){return Me("\u56FD",e)}function Hn(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function vy(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=Hn(n[0],r.width),u+=Hn(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var Lc="__zr_normal__",Ec=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],vD={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Xi={},dD=new xt(0,0,0,0),Rc=function(){function e(t){this.id=Dg(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=dD;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Xi,n,f):vy(Xi,n,f),a.x=Xi.x,a.y=Xi.y,o=Xi.align,s=Xi.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=Hn(c[0],f.width),v=Hn(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var y=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,m=void 0,_=void 0;y&&this.canBeInsideText()?(g=n.insideFill,m=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(g),_=!0)):(g=n.outsideFill,m=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=g,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=Ce,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cc:Tc},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&hr(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ua(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},K(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(st(t))for(var n=t,i=Ht(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(a&&a!==Lc)){var o=i.targetName,s=o?r[o]:r;i.saveFinalToTarget(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Ec)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Lc,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Lc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(At(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Fi("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,r,n,f),h&&h.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ce),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(t,r,h),p&&p.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ce)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=At(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=At(i,t),o=At(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];K(r,a),a.textConfig&&(n=n||{},K(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=K({},i?this.textConfig:n.textConfig),K(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Ec.length;f++){var c=Ec[f],h=a&&vD[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new Ac,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),K(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Ce;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(!!this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r){var n=t?this[t]:this;if(!n){Fi('Property "'+t+'" is not existed in element '+this.id);return}var i=new gc(n,r);return this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=At(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Oc(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Oc(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Oc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=!1,t.silent=!1,t.isGroup=!1,t.draggable=!1,t.dragging=!1,t.ignoreClip=!1,t.__inHover=!1,t.__dirty=Ce;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(n(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){n(a,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(h){f[s]=h}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(h){f[l]=h}})}}Object.defineProperty&&(!ht.browser.ie||ht.browser.version>8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();ur(Rc,cr);ur(Rc,Ac);function Oc(e,t,r,n,i){r=r||{};var a=[];dy(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,y){r.during(y)});for(var h=0;h<a.length;h++){var v=a[h];f&&v.done(f),c&&v.aborted(c),v.start(r.easing,r.force)}return a}function kc(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function pD(e){return Re(e[0])}function gD(e,t,r){if(Re(t[r]))if(Re(e[r])||(e[r]=[]),Te(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),kc(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(pD(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?kc(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else kc(a,i,o);a.length=i.length}else e[r]=t[r]}function dy(e,t,r,n,i,a,o,s){for(var l=[],u=[],f=Ht(n),c=i.duration,h=i.delay,v=i.additive,d=i.setToFinal,y=!st(a),p=0;p<f.length;p++){var g=f[p];if(r[g]!=null&&n[g]!=null&&(y||a[g]))if(st(n[g])&&!Re(n[g])){if(t){s||(r[g]=n[g],e.updateDuringAnimation(t));continue}dy(e,g,r[g],n[g],i,a&&a[g],o,s)}else l.push(g),u.push(g);else s||(r[g]=n[g],e.updateDuringAnimation(t),u.push(g))}var m=l.length;if(m>0||i.force&&!o.length){for(var _=e.animators,S=[],w=0;w<_.length;w++)_[w].targetName===t&&S.push(_[w]);if(!v&&S.length)for(var w=0;w<S.length;w++){var b=S[w].stopTracks(u);if(b){var x=At(_,S[w]);_.splice(x,1)}}var C=void 0,M=void 0,L=void 0;if(s){M={},d&&(C={});for(var w=0;w<m;w++){var g=l[w];M[g]=r[g],d?C[g]=n[g]:r[g]=n[g]}}else if(d){L={};for(var w=0;w<m;w++){var g=l[w];L[g]=Xs(r[g]),gD(r,n,g)}}var I=new gc(r,!1,v?S:null);I.targetName=t,i.scope&&(I.scope=i.scope),d&&C&&I.whenWithKeys(0,C,l),L&&I.whenWithKeys(0,L,l),I.whenWithKeys(c==null?500:c,s?M:n,l).delay(h||0),e.addAnimator(I,t),o.push(I)}}var py=Rc,gy=function(e){Z(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=At(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=At(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new xt(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(xt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(py);gy.prototype.type="group";var $t=gy;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var yD=!ht.canvasSupported,Qa={},yy={};function mD(e){delete yy[e]}function _D(e){if(!e)return!1;if(typeof e=="string")return Ws(e,1)<xc;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Ws(t[i].color,1);return r/=n,r<xc}return!1}var SD=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new kM,o=n.renderer||"canvas";if(yD)throw new Error("IE8 support has been dropped since 5.0");if(Qa[o]||(o=Ht(Qa)[0]),!Qa[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Qa[o](r,a,n,t);this.storage=a,this.painter=s;var l=!ht.node&&!ht.worker?new aD(s.getViewportRoot(),s.root):null;this.handler=new IM(a,s,l,s.root),this.animation=new jM({stage:{update:function(){return i._flush(!0)}}}),this.animation.start()}return e.prototype.add=function(t){!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=_D(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=new Date().getTime();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=new Date().getTime();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.addHover=function(t){},e.prototype.removeHover=function(t){},e.prototype.clearHover=function(){},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.pathToImage=function(t,r){if(this.painter.pathToImage)return this.painter.pathToImage(t,r)},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof $t&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,mD(this.id)},e}();function my(e,t){var r=new SD(Dg(),e,t);return yy[r.id]=r,r}function bD(e,t){Qa[e]=t}var _y=1e-4,Sy=20;function wD(e){return e.replace(/^\s+|\s+$/g,"")}function by(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function he(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return typeof e=="string"?wD(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function ae(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Sy),e=(+e).toFixed(t),r?e:+e}function Pr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return xD(e)}function xD(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function TD(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function CD(e,t){var r=Math.max(Pr(e),Pr(t)),n=e+t;return r>Sy?n:ae(n,r)}function wy(e){var t=Math.PI*2;return(e%t+t)%t}function nl(e){return e>-_y&&e<_y}var MD=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ir(e){if(e instanceof Date)return e;if(typeof e=="string"){var t=MD.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function DD(e){return Math.pow(10,xy(e))}function xy(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Ty(e,t){var r=xy(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function il(e){var t=parseFloat(e);return t==e&&(t!==0||typeof e!="string"||e.indexOf("x")<=0)?t:NaN}function AD(e){return!isNaN(il(e))}function Cy(){return Math.round(Math.random()*9)}function My(e,t){return t===0?e:My(t,e%t)}function Dy(e,t){return e==null?t:t==null?e:e*t/My(e,t)}function ve(e){throw new Error(e)}var Ay="series\0",PD="\0_ec_\0";function oe(e){return e instanceof Array?e:e==null?[]:[e]}function Py(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Iy=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ja(e){return st(e)&&!et(e)&&!(e instanceof Date)?e.value:e}function ID(e){return st(e)&&!(e instanceof Array)}function LD(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=ft();D(t,function(l,u){if(!st(l)){t[u]=null;return}});var s=ED(e,o,r);return(n||i)&&RD(s,e,o,t),n&&OD(s,t),n||i?kD(s,t,i):a&&BD(s,t),FD(s),s}function ED(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||eo(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function RD(e,t,r,n){D(n,function(i,a){if(!(!i||i.id==null)){var o=to(i.id),s=r.get(o);if(s!=null){var l=e[s];fr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function OD(e,t){D(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!eo(r)&&!eo(a)&&Ly("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function kD(e,t,r){D(t,function(n){if(!!n){for(var i,a=0;(i=e[a])&&(i.newOption||eo(i.existing)||i.existing&&n.id!=null&&!Ly("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function BD(e,t){D(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function FD(e){var t=ft();D(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),D(e,function(r){var n=r.newOption;fr(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),D(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(!!st(a)){if(o.name=a.name!=null?to(a.name):i?i.name:Ay+n,i)o.id=to(i.id);else if(a.id!=null)o.id=to(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function Ly(e,t,r){var n=vr(t[e],null),i=vr(r[e],null);return n!=null&&i!=null&&n===i}function to(e){return vr(e,"")}function vr(e,t){if(e==null)return t;var r=typeof e;return r==="string"?e:r==="number"||Wf(e)?e+"":t}function Bc(e){var t=e.name;return!!(t&&t.indexOf(Ay))}function eo(e){return e&&e.id!=null&&to(e.id).indexOf(PD)===0}function ND(e,t,r){D(e,function(n){var i=n.newOption;st(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=zD(t,i,n.existing,r))})}function zD(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Vn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return et(t.dataIndex)?ut(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return et(t.name)?ut(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Kt(){var e="__ec_inner_"+HD++;return function(t){return t[e]||(t[e]={})}}var HD=Cy();function Fc(e,t,r){var n=Nc(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=ro(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Nc(e,t){var r;if(wt(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=ft(),a={},o=!1;return D(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&At(t.includeMainTypes,f)<0)){o=o||!!f;var h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Je={useDefault:!0,enableAll:!1,enableNone:!1};function ro(e,t,r,n){n=n||Je;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(fr(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(fr(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function Ey(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function VD(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function GD(e){return e==="auto"?ht.domSupported?"html":"richText":e||"html"}function $D(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(typeof n=="number"){var o=Wa(r||0,n,i);return ae(o,a?Math.max(Pr(r||0),Pr(n)):t)}else{if(typeof n=="string")return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=e.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=Wa(v,d,i);s[c]=ae(o,a?Math.max(Pr(v),Pr(d)):t)}}return s}}var UD=".",Gn="___EC__COMPONENT__CONTAINER___",Ry="___EC__EXTENDED_CLASS___";function dr(e){var t={main:"",sub:""};if(e){var r=e.split(UD);t.main=r[0]||"",t.sub=r[1]||""}return t}function WD(e){fr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function YD(e){return!!(e&&e[Ry])}function zc(e,t){e.$constructor=e,e.extend=function(r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(r.$constructor)r.$constructor.apply(this,arguments);else if(!XD(n))n.apply(this,arguments);else{var s=za(i.prototype,new(n.bind.apply(n,WC([void 0],a))));return s}}return i[Ry]=!0,K(i.prototype,r),i.extend=this.extend,i.superCall=KD,i.superApply=jD,JC(i,this),i.superClass=n,i}}function XD(e){return typeof e=="function"&&/^class\s/.test(Function.prototype.toString.call(e))}function Oy(e,t){e.extend=t.extend}var qD=Math.round(Math.random()*10);function ZD(e){var t=["__\0is_clz",qD++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function KD(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function jD(e,t,r){return this.superClass.prototype[t].apply(e,r)}function al(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){WD(i),n.prototype.type=i;var a=dr(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Gn){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Gn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=dr(n),a=[],o=t[i.main];return o&&o[Gn]?D(o,function(s,l){l!==Gn&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=dr(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return D(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=dr(n),a=t[i.main];return a&&a[Gn]};function r(n){var i=t[n.main];return(!i||!i[Gn])&&(i=t[n.main]={},i[Gn]=!0),i}}function no(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&At(i,l)>=0||a&&At(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var QD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],JD=no(QD),tA=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return JD(this,t,r)},e}(),Hc=new $a(50);function eA(e){if(typeof e=="string"){var t=Hc.get(e);return t&&t.image}else return e}function ky(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Hc.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!ol(t)&&a.pending.push(o)):(t=new Image,t.onload=t.onerror=rA,Hc.put(e,t.__cachedImgObj={image:t,pending:[o]}),t.src=t.__zrImageSrc=e),t}else return e;else return t}function rA(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function ol(e){return e&&e.width&&e.height}var Vc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function nA(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
`);i=By(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=Fy(a[o],i);return a.join(`
`)}function By(e,t,r,n){n=n||{};var i=K({},n);i.font=t,r=Dt(r,"..."),i.maxIterations=Dt(n.maxIterations,2);var a=i.minChar=Dt(n.minChar,0);i.cnCharWidth=Me("\u56FD",t);var o=i.ascCharWidth=Me("a",t);i.placeholder=Dt(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=Me(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function Fy(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Me(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?iA(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Me(e,n)}return e===""&&(e=t.placeholder),e}function iA(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function aA(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=Ic(i),s=Dt(t.lineHeight,o),l=t.lineOverflow==="truncate",u=t.width,f;u!=null&&r==="break"||r==="breakAll"?f=e?zy(e,t.font,u,r==="breakAll",0).lines:[]:f=e?e.split(`
`):[];var c=f.length*s,h=Dt(t.height,c);if(c>h&&l){var v=Math.floor(h/s);f=f.slice(0,v)}var d=h,y=u;if(n&&(d+=n[0]+n[2],y!=null&&(y+=n[1]+n[3])),e&&a&&y!=null)for(var p=By(u,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=Fy(f[g],p);if(u==null){for(var m=0,g=0;g<f.length;g++)m=Math.max(Me(f[g],i),m);u=m}return{lines:f,height:h,outerHeight:d,lineHeight:s,calculatedLineHeight:o,contentHeight:c,width:u}}var oA=function(){function e(){}return e}(),Ny=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),sA=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function lA(e,t){var r=new sA;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Vc.lastIndex=0,l;(l=Vc.exec(e))!=null;){var u=l.index;u>s&&Gc(r,e.substring(s,u),t,o),Gc(r,l[2],t,o,l[1]),s=Vc.lastIndex}s<e.length&&Gc(r,e.substring(s,e.length),t,o);var f=[],c=0,h=0,v=t.padding,d=a==="truncate",y=t.lineOverflow==="truncate";function p(U,Q,V){U.width=Q,U.lineHeight=V,c+=V,h=Math.max(h,Q)}t:for(var g=0;g<r.lines.length;g++){for(var m=r.lines[g],_=0,S=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],x=b.styleName&&t.rich[b.styleName]||{},C=b.textPadding=x.padding,M=C?C[1]+C[3]:0,L=b.font=x.font||t.font;b.contentHeight=Ic(L);var I=Dt(x.height,b.contentHeight);if(b.innerHeight=I,C&&(I+=C[0]+C[2]),b.height=I,b.lineHeight=zs(x.lineHeight,t.lineHeight,I),b.align=x&&x.align||t.align,b.verticalAlign=x&&x.verticalAlign||"middle",y&&i!=null&&c+b.lineHeight>i){w>0?(m.tokens=m.tokens.slice(0,w),p(m,S,_),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break t}var P=x.width,E=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")b.percentWidth=P,f.push(b),b.contentWidth=Me(b.text,L);else{if(E){var B=x.backgroundColor,k=B&&B.image;k&&(k=eA(k),ol(k)&&(b.width=Math.max(b.width,k.width*I/k.height)))}var Y=d&&n!=null?n-S:null;Y!=null&&Y<b.width?!E||Y<M?(b.text="",b.width=b.contentWidth=0):(b.text=nA(b.text,Y-M,L,t.ellipsis,{minChar:t.truncateMinChar}),b.width=b.contentWidth=Me(b.text,L)):b.contentWidth=Me(b.text,L)}b.width+=M,S+=b.width,x&&(_=Math.max(_,b.lineHeight))}p(m,S,_)}r.outerWidth=r.width=Dt(n,h),r.outerHeight=r.height=Dt(i,c),r.contentHeight=c,r.contentWidth=h,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var g=0;g<f.length;g++){var b=f[g],q=b.percentWidth;b.width=parseInt(q,10)/100*r.width}return r}function Gc(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Hn(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),u=!0),n.accumWidth=d}else{var y=zy(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+v,c=y.linesWidths,f=y.lines}}else f=t.split(`
`);for(var p=0;p<f.length;p++){var g=f[p],m=new oA;if(m.styleName=i,m.text=g,m.isLineHolder=!g&&!a,typeof o.width=="number"?m.width=o.width:m.width=c?c[p]:Me(g,l),!p&&!u){var _=(s[s.length-1]||(s[0]=new Ny)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(g||!S||a)&&_.push(m)}else s.push(new Ny([m]))}}function uA(e){var t=e.charCodeAt(0);return t>=33&&t<=255}var fA=Uf(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function cA(e){return uA(e)?!!fA[e]:!0}function zy(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<e.length;c++){var h=e.charAt(c);if(h===`
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Me(h,t),d=n?!1:!cA(h);if(a.length?f+v>r:i+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,f+=u,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var $c="__zr_style_"+Math.round(Math.random()*10),$n={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},sl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$n[$c]=!0;var Hy=["z","z2","invisible"],hA=["invisible"],vA=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Ht(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&dA(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new xt(0,0,0,0)),n?xt.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new xt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:K(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ga,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ga)},t.prototype.styleUpdated=function(){this.__dirty&=~Ga},t.prototype.createStyle=function(r){return za($n,r)},t.prototype.useStyle=function(r){r[$c]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[$c]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Hy)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Ht(f),h=0;h<c.length;h++){var v=c[h];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=Ht(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var y=this.__inHover?hA:Hy,h=0;h<y.length;h++){var v=y[h];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return K(r,n),r},t.prototype.getAnimationStyleProps=function(){return sl},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ce|Ga}(),t}(py),Uc=new xt(0,0,0,0),Wc=new xt(0,0,0,0);function dA(e,t,r){return Uc.copy(e.getBoundingRect()),e.transform&&Uc.applyTransform(e.transform),Wc.width=t,Wc.height=r,!Uc.intersect(Wc)}var io=vA,ll=Math.pow,Qr=Math.sqrt,ul=1e-8,Vy=1e-4,Gy=Qr(3),fl=1/3,pr=Ni(),Be=Ni(),qi=Ni();function Jr(e){return e>-ul&&e<ul}function $y(e){return e>ul||e<-ul}function Nt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Uy(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Yc(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(Jr(f)&&Jr(c))if(Jr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=c*c-4*f*h;if(Jr(y)){var p=c/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(y>0){var m=Qr(y),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-ll(-_,fl):_=ll(_,fl),S<0?S=-ll(-S,fl):S=ll(S,fl);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*c)/(2*Qr(f*f*f)),b=Math.acos(w)/3,x=Qr(f),C=Math.cos(b),d=(-s-2*x*C)/(3*o),g=(-s+x*(C+Gy*Math.sin(b)))/(3*o),M=(-s+x*(C-Gy*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),M>=0&&M<=1&&(a[v++]=M)}}return v}function Wy(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Jr(o)){if($y(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Jr(f))i[0]=-a/(2*o);else if(f>0){var c=Qr(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function cl(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function pA(e,t,r,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,y,p,g;pr[0]=l,pr[1]=u;for(var m=0;m<1;m+=.05)Be[0]=Nt(e,r,i,o,m),Be[1]=Nt(t,n,a,s,m),p=zi(pr,Be),p<v&&(c=m,v=p);v=1/0;for(var _=0;_<32&&!(h<Vy);_++)d=c-h,y=c+h,Be[0]=Nt(e,r,i,o,d),Be[1]=Nt(t,n,a,s,d),p=zi(Be,pr),d>=0&&p<v?(c=d,v=p):(qi[0]=Nt(e,r,i,o,y),qi[1]=Nt(t,n,a,s,y),g=zi(qi,pr),y<=1&&g<v?(c=y,v=g):h*=.5);return f&&(f[0]=Nt(e,r,i,o,c),f[1]=Nt(t,n,a,s,c)),Qr(v)}function gA(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,y=Nt(e,r,i,o,d),p=Nt(t,n,a,s,d),g=y-u,m=p-f;c+=Math.sqrt(g*g+m*m),u=y,f=p}return c}function Jt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function Yy(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function yA(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Jr(a)){if($y(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Jr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Qr(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Xy(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function hl(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function mA(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;pr[0]=o,pr[1]=s;for(var h=0;h<1;h+=.05){Be[0]=Jt(e,r,i,h),Be[1]=Jt(t,n,a,h);var v=zi(pr,Be);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<Vy);d++){var y=u-f,p=u+f;Be[0]=Jt(e,r,i,y),Be[1]=Jt(t,n,a,y);var v=zi(Be,pr);if(y>=0&&v<c)u=y,c=v;else{qi[0]=Jt(e,r,i,p),qi[1]=Jt(t,n,a,p);var g=zi(qi,pr);p<=1&&g<c?(u=p,c=g):f*=.5}}return l&&(l[0]=Jt(e,r,i,u),l[1]=Jt(t,n,a,u)),Qr(c)}function _A(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=Jt(e,r,i,h),d=Jt(t,n,a,h),y=v-s,p=d-l;u+=Math.sqrt(y*y+p*p),s=v,l=d}return u}var de=Math.min,pe=Math.max,Xc=Math.sin,qc=Math.cos,Un=Math.PI*2,vl=Ni(),dl=Ni(),pl=Ni();function SA(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],i=de(i,n[0]),a=pe(a,n[0]),o=de(o,n[1]),s=pe(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function qy(e,t,r,n,i,a){i[0]=de(e,r),i[1]=de(t,n),a[0]=pe(e,r),a[1]=pe(t,n)}var Zy=[],Ky=[];function bA(e,t,r,n,i,a,o,s,l,u){var f=Wy,c=Nt,h=f(e,r,i,o,Zy);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=c(e,r,i,o,Zy[v]);l[0]=de(d,l[0]),u[0]=pe(d,u[0])}h=f(t,n,a,s,Ky);for(var v=0;v<h;v++){var y=c(t,n,a,s,Ky[v]);l[1]=de(y,l[1]),u[1]=pe(y,u[1])}l[0]=de(e,l[0]),u[0]=pe(e,u[0]),l[0]=de(o,l[0]),u[0]=pe(o,u[0]),l[1]=de(t,l[1]),u[1]=pe(t,u[1]),l[1]=de(s,l[1]),u[1]=pe(s,u[1])}function wA(e,t,r,n,i,a,o,s){var l=Xy,u=Jt,f=pe(de(l(e,r,i),1),0),c=pe(de(l(t,n,a),1),0),h=u(e,r,i,f),v=u(t,n,a,c);o[0]=de(e,i,h),o[1]=de(t,a,v),s[0]=pe(e,i,h),s[1]=pe(t,a,v)}function xA(e,t,r,n,i,a,o,s,l){var u=Rn,f=On,c=Math.abs(i-a);if(c%Un<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(vl[0]=qc(i)*r+e,vl[1]=Xc(i)*n+t,dl[0]=qc(a)*r+e,dl[1]=Xc(a)*n+t,u(s,vl,dl),f(l,vl,dl),i=i%Un,i<0&&(i=i+Un),a=a%Un,a<0&&(a=a+Un),i>a&&!o?a+=Un:i<a&&o&&(i+=Un),o){var h=a;a=i,i=h}for(var v=0;v<a;v+=Math.PI/2)v>i&&(pl[0]=qc(v)*r+e,pl[1]=Xc(v)*n+t,u(s,pl,s),f(l,pl,l))}var Mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Wn=[],Yn=[],gr=[],tn=[],yr=[],mr=[],ao=Math.min,oo=Math.max,Xn=Math.cos,qn=Math.sin,gl=Math.sqrt,Lr=Math.abs,Zc=Math.PI,en=Zc*2,Kc=typeof Float32Array!="undefined",so=[];function jc(e){var t=Math.round(e/Zc*1e8)/1e8;return t%2*Zc}function jy(e,t){var r=jc(e[0]);r<0&&(r+=en);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=en?i=r+en:t&&r-i>=en?i=r-en:!t&&r>i?i=r+(en-jc(r-i)):t&&r<i&&(i=r-(en-jc(i-r))),e[0]=r,e[1]=i}var TA=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Lr(n/Zs/t)||0,this._uy=Lr(n/Zs/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Mt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Lr(t-this._xi),i=Lr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Mt.L,t,r),this._ctx&&a&&(this._needsDash?this._dashedLineTo(t,r):this._ctx.lineTo(t,r)),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(Mt.C,t,r,n,i,a,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,r,n,i,a,o):this._ctx.bezierCurveTo(t,r,n,i,a,o)),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(Mt.Q,t,r,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,r,n,i):this._ctx.quadraticCurveTo(t,r,n,i)),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),so[0]=i,so[1]=a,jy(so,o),i=so[0],a=so[1];var s=a-i;return this.addData(Mt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Xn(a)*n+t,this._yi=qn(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(Mt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Mt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(r,n),t.closePath()),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var r=0,n=0;n<t.length;n++)r+=t[n];this._dashSum=r,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},e.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Kc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Kc&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(!!this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype._dashedLineTo=function(t,r){var n=this._dashSum,i=this._lineDash,a=this._ctx,o=this._dashOffset,s=this._xi,l=this._yi,u=t-s,f=r-l,c=gl(u*u+f*f),h=s,v=l,d=i.length,y,p;for(u/=c,f/=c,o<0&&(o=n+o),o%=n,h-=o*u,v-=o*f;u>0&&h<=t||u<0&&h>=t||u===0&&(f>0&&v<=r||f<0&&v>=r);)p=this._dashIdx,y=i[p],h+=u*y,v+=f*y,this._dashIdx=(p+1)%d,!(u>0&&h<s||u<0&&h>s||f>0&&v<l||f<0&&v>l)&&a[p%2?"moveTo":"lineTo"](u>=0?ao(h,t):oo(h,t),f>=0?ao(v,r):oo(v,r));u=h-t,f=v-r,this._dashOffset=-gl(u*u+f*f)},e.prototype._dashedBezierTo=function(t,r,n,i,a,o){var s=this._ctx,l=this._dashSum,u=this._dashOffset,f=this._lineDash,c=this._xi,h=this._yi,v=0,d=this._dashIdx,y=f.length,p,g,m,_,S,w=0;for(u<0&&(u=l+u),u%=l,p=0;p<1;p+=.1)g=Nt(c,t,n,a,p+.1)-Nt(c,t,n,a,p),m=Nt(h,r,i,o,p+.1)-Nt(h,r,i,o,p),v+=gl(g*g+m*m);for(;d<y&&(w+=f[d],!(w>u));d++);for(p=(w-u)/v;p<=1;)_=Nt(c,t,n,a,p),S=Nt(h,r,i,o,p),d%2?s.moveTo(_,S):s.lineTo(_,S),p+=f[d]/v,d=(d+1)%y;d%2!=0&&s.lineTo(a,o),g=a-_,m=o-S,this._dashOffset=-gl(g*g+m*m)},e.prototype._dashedQuadraticTo=function(t,r,n,i){var a=n,o=i;n=(n+2*t)/3,i=(i+2*r)/3,t=(this._xi+2*t)/3,r=(this._yi+2*r)/3,this._dashedBezierTo(t,r,n,i,a,o)},e.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Kc&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){gr[0]=gr[1]=yr[0]=yr[1]=Number.MAX_VALUE,tn[0]=tn[1]=mr[0]=mr[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case Mt.M:r=i=t[o++],n=a=t[o++],yr[0]=i,yr[1]=a,mr[0]=i,mr[1]=a;break;case Mt.L:qy(r,n,t[o],t[o+1],yr,mr),r=t[o++],n=t[o++];break;case Mt.C:bA(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],yr,mr),r=t[o++],n=t[o++];break;case Mt.Q:wA(r,n,t[o++],t[o++],t[o],t[o+1],yr,mr),r=t[o++],n=t[o++];break;case Mt.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],v=t[o++],d=t[o++]+v;o+=1;var y=!t[o++];l&&(i=Xn(v)*c+u,a=qn(v)*h+f),xA(u,f,c,h,v,d,y,yr,mr),r=Xn(d)*c+u,n=qn(d)*h+f;break;case Mt.R:i=r=t[o++],a=n=t[o++];var p=t[o++],g=t[o++];qy(i,a,i+p,a+g,yr,mr);break;case Mt.Z:r=i,n=a;break}Rn(gr,gr,yr),On(tn,tn,mr)}return o===0&&(gr[0]=gr[1]=tn[0]=tn[1]=0),new xt(gr[0],gr[1],tn[0]-gr[0],tn[1]-gr[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<r;){var v=t[h++],d=h===1;d&&(a=t[h],o=t[h+1],s=a,l=o);var y=-1;switch(v){case Mt.M:a=s=t[h++],o=l=t[h++];break;case Mt.L:{var p=t[h++],g=t[h++],m=p-a,_=g-o;(Lr(m)>n||Lr(_)>i||h===r-1)&&(y=Math.sqrt(m*m+_*_),a=p,o=g);break}case Mt.C:{var S=t[h++],w=t[h++],p=t[h++],g=t[h++],b=t[h++],x=t[h++];y=gA(a,o,S,w,p,g,b,x,10),a=b,o=x;break}case Mt.Q:{var S=t[h++],w=t[h++],p=t[h++],g=t[h++];y=_A(a,o,S,w,p,g,10),a=p,o=g;break}case Mt.A:var C=t[h++],M=t[h++],L=t[h++],I=t[h++],P=t[h++],E=t[h++],B=E+P;h+=1,t[h++],d&&(s=Xn(P)*L+C,l=qn(P)*I+M),y=oo(L,I)*ao(en,Math.abs(E)),a=Xn(B)*L+C,o=qn(B)*I+M;break;case Mt.R:{s=a=t[h++],l=o=t[h++];var k=t[h++],Y=t[h++];y=k*2+Y*2;break}case Mt.Z:{var m=s-a,_=l-o;y=Math.sqrt(m*m+_*_),a=s,o=l;break}}y>=0&&(u[c++]=y,f+=y)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,v=r<1,d,y,p=0,g=0,m,_=0,S,w;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,m=r*y,!m))return;t:for(var b=0;b<o;){var x=n[b++],C=b===1;switch(C&&(u=n[b],f=n[b+1],s=u,l=f),x!==Mt.L&&_>0&&(t.lineTo(S,w),_=0),x){case Mt.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case Mt.L:{c=n[b++],h=n[b++];var M=Lr(c-u),L=Lr(h-f);if(M>i||L>a){if(v){var I=d[g++];if(p+I>m){var P=(m-p)/I;t.lineTo(u*(1-P)+c*P,f*(1-P)+h*P);break t}p+=I}t.lineTo(c,h),u=c,f=h,_=0}else{var E=M*M+L*L;E>_&&(S=c,w=h,_=E)}break}case Mt.C:{var B=n[b++],k=n[b++],Y=n[b++],q=n[b++],U=n[b++],Q=n[b++];if(v){var I=d[g++];if(p+I>m){var P=(m-p)/I;cl(u,B,Y,U,P,Wn),cl(f,k,q,Q,P,Yn),t.bezierCurveTo(Wn[1],Yn[1],Wn[2],Yn[2],Wn[3],Yn[3]);break t}p+=I}t.bezierCurveTo(B,k,Y,q,U,Q),u=U,f=Q;break}case Mt.Q:{var B=n[b++],k=n[b++],Y=n[b++],q=n[b++];if(v){var I=d[g++];if(p+I>m){var P=(m-p)/I;hl(u,B,Y,P,Wn),hl(f,k,q,P,Yn),t.quadraticCurveTo(Wn[1],Yn[1],Wn[2],Yn[2]);break t}p+=I}t.quadraticCurveTo(B,k,Y,q),u=Y,f=q;break}case Mt.A:var V=n[b++],it=n[b++],Ot=n[b++],pt=n[b++],dt=n[b++],O=n[b++],j=n[b++],G=!n[b++],tt=Ot>pt?Ot:pt,bt=Lr(Ot-pt)>.001,gt=dt+O,ct=!1;if(v){var I=d[g++];p+I>m&&(gt=dt+O*(m-p)/I,ct=!0),p+=I}if(bt&&t.ellipse?t.ellipse(V,it,Ot,pt,j,dt,gt,G):t.arc(V,it,tt,dt,gt,G),ct)break t;C&&(s=Xn(dt)*Ot+V,l=qn(dt)*pt+it),u=Xn(gt)*Ot+V,f=qn(gt)*pt+it;break;case Mt.R:s=u=n[b],l=f=n[b+1],c=n[b++],h=n[b++];var ot=n[b++],T=n[b++];if(v){var I=d[g++];if(p+I>m){var A=m-p;t.moveTo(c,h),t.lineTo(c+ao(A,ot),h),A-=ot,A>0&&t.lineTo(c+ot,h+ao(A,T)),A-=T,A>0&&t.lineTo(c+oo(ot-A,0),h+T),A-=ot,A>0&&t.lineTo(c,h+oo(T-A,0));break t}p+=I}t.rect(c,h,ot,T);break;case Mt.Z:if(v){var I=d[g++];if(p+I>m){var P=(m-p)/I;t.lineTo(u*(1-P)+s*P,f*(1-P)+l*P);break t}p+=I}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Mt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._needsDash=!1,t._dashOffset=0,t._dashIdx=0,t._dashSum=0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),Zn=TA;function Zi(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function CA(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>a+c&&f>s+c||f<t-c&&f<n-c&&f<a-c&&f<s-c||u>e+c&&u>r+c&&u>i+c&&u>o+c||u<e-c&&u<r-c&&u<i-c&&u<o-c)return!1;var h=pA(e,t,r,n,i,a,o,s,u,f,null);return h<=c/2}function MA(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var f=mA(e,t,r,n,i,a,s,l,null);return f<=u/2}var Qy=Math.PI*2;function yl(e){return e%=Qy,e<0&&(e+=Qy),e}var lo=Math.PI*2;function DA(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%lo<1e-4)return!0;if(a){var c=n;n=yl(i),i=yl(c)}else n=yl(n),i=yl(i);n>i&&(i+=lo);var h=Math.atan2(l,s);return h<0&&(h+=lo),h>=n&&h<=i||h+lo>=n&&h+lo<=i}function Er(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var rn=Zn.CMD,Kn=Math.PI*2,AA=1e-4;function PA(e,t){return Math.abs(e-t)<AA}var se=[-1,-1,-1],Fe=[-1,-1];function IA(){var e=Fe[0];Fe[0]=Fe[1],Fe[1]=e}function LA(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=Yc(t,n,a,s,u,se);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,y=0;y<f;y++){var p=se[y],g=p===0||p===1?.5:1,m=Nt(e,r,i,o,p);m<l||(h<0&&(h=Wy(t,n,a,s,Fe),Fe[1]<Fe[0]&&h>1&&IA(),v=Nt(t,n,a,s,Fe[0]),h>1&&(d=Nt(t,n,a,s,Fe[1]))),h===2?p<Fe[0]?c+=v<t?g:-g:p<Fe[1]?c+=d<v?g:-g:c+=s<d?g:-g:p<Fe[0]?c+=v<t?g:-g:c+=s<v?g:-g)}return c}function EA(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=yA(t,n,a,s,se);if(l===0)return 0;var u=Xy(t,n,a);if(u>=0&&u<=1){for(var f=0,c=Jt(t,n,a,u),h=0;h<l;h++){var v=se[h]===0||se[h]===1?.5:1,d=Jt(e,r,i,se[h]);d<o||(se[h]<u?f+=c<t?v:-v:f+=a<c?v:-v)}return f}else{var v=se[0]===0||se[0]===1?.5:1,d=Jt(e,r,i,se[0]);return d<o?0:a<t?v:-v}}function RA(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);se[0]=-l,se[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Kn-1e-4){n=0,i=Kn;var f=a?1:-1;return o>=se[0]+e&&o<=se[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Kn,i+=Kn);for(var h=0,v=0;v<2;v++){var d=se[v];if(d+e>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=Kn+y),(y>=n&&y<=i||y+Kn>=n&&y+Kn<=i)&&(y>Math.PI/2&&y<Math.PI*1.5&&(f=-f),h+=f)}}return h}function Jy(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var y=a[d++],p=d===1;switch(y===rn.M&&d>1&&(r||(s+=Er(l,u,f,c,n,i))),p&&(l=a[d],u=a[d+1],f=l,c=u),y){case rn.M:f=a[d++],c=a[d++],l=f,u=c;break;case rn.L:if(r){if(Zi(l,u,a[d],a[d+1],t,n,i))return!0}else s+=Er(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.C:if(r){if(CA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=LA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.Q:if(r){if(MA(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=EA(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.A:var g=a[d++],m=a[d++],_=a[d++],S=a[d++],w=a[d++],b=a[d++];d+=1;var x=!!(1-a[d++]);h=Math.cos(w)*_+g,v=Math.sin(w)*S+m,p?(f=h,c=v):s+=Er(l,u,h,v,n,i);var C=(n-g)*S/_+g;if(r){if(DA(g,m,S,w,w+b,x,t,C,i))return!0}else s+=RA(g,m,S,w,w+b,x,C,i);l=Math.cos(w+b)*_+g,u=Math.sin(w+b)*S+m;break;case rn.R:f=l=a[d++],c=u=a[d++];var M=a[d++],L=a[d++];if(h=f+M,v=c+L,r){if(Zi(f,c,h,c,t,n,i)||Zi(h,c,h,v,t,n,i)||Zi(h,v,f,v,t,n,i)||Zi(f,v,f,c,t,n,i))return!0}else s+=Er(h,c,h,v,n,i),s+=Er(f,v,f,c,n,i);break;case rn.Z:if(r){if(Zi(l,u,f,c,t,n,i))return!0}else s+=Er(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!PA(u,c)&&(s+=Er(l,u,f,c,n,i)||0),s!==0}function OA(e,t,r){return Jy(e,0,!1,t,r)}function kA(e,t,r,n){return Jy(e,t,!0,r,n)}var tm=Ct({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$n),BA={style:Ct({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},sl.style)},Qc=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],FA=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Qc.length;++s)i[Qc[s]]=this[Qc[s]];i.__dirty|=Ce}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Ht(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?K(this.style,s):this.useStyle(s):o==="shape"?K(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(wt(r)){var n=Ws(r,0);return n>.5?Tc:n>.2?oD:Cc}else if(r)return Cc}return Tc},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(wt(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ws(r,0)<xc;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Vi},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Zn(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Vi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),kA(s,l/u,r,n)))return!0}if(this.hasFill())return OA(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Vi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:K(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Vi)},t.prototype.createStyle=function(r){return za(tm,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=K({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=K({},i.shape),K(u,n.shape)):(u=K({},a?this.shape:i.shape),K(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=K({},this.shape);for(var f={},c=Ht(u),h=0;h<c.length;h++){var v=c[h];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return BA},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){Z(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return yt(r.style)},o.prototype.getDefaultShape=function(){return yt(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ce|Ga|Vi}(),t}(io),Rt=FA,NA=Ct({strokeFirst:!0,font:Wi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},tm),em=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return za(NA,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Pc(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(io);em.prototype.type="tspan";var ml=em,zA=Ct({x:0,y:0},$n),HA={style:Ct({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},sl.style)};function VA(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var rm=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return za(zA,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=VA(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return HA},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new xt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(io);rm.prototype.type="image";var Rr=rm;function GA(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Ki=Math.round;function nm(e,t,r){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Ki(n*2)===Ki(i*2)&&(e.x1=e.x2=jn(n,s,!0)),Ki(a*2)===Ki(o*2)&&(e.y1=e.y2=jn(a,s,!0))),e}}function im(e,t,r){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=jn(n,s,!0),e.y=jn(i,s,!0),e.width=Math.max(jn(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(jn(i+o,s,!1)-e.y,o===0?0:1)),e}}function jn(e,t,r){if(!t)return e;var n=Ki(e*2);return(n+Ki(t))%2==0?n/2:(n+(r?1:-1))/2}var $A=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),UA={},am=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $A},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=im(UA,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?GA(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Rt);am.prototype.type="rect";var Yt=am,om={fill:"#000"},sm=2,WA={style:Ct({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},sl.style)},lm=function(e){Z(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=om,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,qA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new xt(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||om},t.prototype.setTextContent=function(r){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return K(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=Ht(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},K(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return WA},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Wi,i=r.padding,a=vm(r),o=aA(a,r),s=Jc(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.lines,c=o.lineHeight,h=this._defaultStyle,v=r.x||0,d=r.y||0,y=r.align||h.align||"left",p=r.verticalAlign||h.verticalAlign||"top",g=v,m=Yi(d,o.contentHeight,p);if(s||i){var _=o.width;i&&(_+=i[1]+i[3]);var S=ja(v,_,y),w=Yi(d,u,p);s&&this._renderBackground(r,r,S,w,_,u)}m+=c/2,i&&(g=hm(v,y,i),p==="top"?m+=i[0]:p==="bottom"&&(m-=i[2]));for(var b=0,x=!1,C=cm("fill"in r?r.fill:(x=!0,h.fill)),M=fm("stroke"in r?r.stroke:!l&&(!h.autoStroke||x)?(b=sm,h.stroke):null),L=r.textShadowBlur>0,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,E=0;E<f.length;E++){var B=this._getOrCreateChild(ml),k=B.createStyle();B.useStyle(k),k.text=f[E],k.x=g,k.y=m,y&&(k.textAlign=y),k.textBaseline="middle",k.opacity=r.opacity,k.strokeFirst=!0,L&&(k.shadowBlur=r.textShadowBlur||0,k.shadowColor=r.textShadowColor||"transparent",k.shadowOffsetX=r.textShadowOffsetX||0,k.shadowOffsetY=r.textShadowOffsetY||0),M&&(k.stroke=M,k.lineWidth=r.lineWidth||b,k.lineDash=r.lineDash,k.lineDashOffset=r.lineDashOffset||0),C&&(k.fill=C),k.font=n,m+=c,I&&B.setBoundingRect(new xt(ja(k.x,r.width,k.textAlign),Yi(k.y,P,k.textBaseline),r.width,P))}},t.prototype._updateRichTexts=function(){var r=this.style,n=vm(r),i=lA(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,h=r.align||c.align,v=r.verticalAlign||c.verticalAlign,d=ja(u,o,h),y=Yi(f,s,v),p=d,g=y;l&&(p+=l[3],g+=l[0]);var m=p+a;Jc(r)&&this._renderBackground(r,r,d,y,o,s);for(var _=!!r.backgroundColor,S=0;S<i.lines.length;S++){for(var w=i.lines[S],b=w.tokens,x=b.length,C=w.lineHeight,M=w.width,L=0,I=p,P=m,E=x-1,B=void 0;L<x&&(B=b[L],!B.align||B.align==="left");)this._placeToken(B,r,C,g,I,"left",_),M-=B.width,I+=B.width,L++;for(;E>=0&&(B=b[E],B.align==="right");)this._placeToken(B,r,C,g,P,"right",_),M-=B.width,P-=B.width,E--;for(I+=(a-(I-p)-(m-P)-M)/2;L<=E;)B=b[L],this._placeToken(B,r,C,g,I+B.width/2,"center",_),I+=B.width,L++;g+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&Jc(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=hm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(ml),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,m=!1,_=0,S=cm("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,g.fill)),w=fm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!g.autoStroke||m)?(_=sm,g.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,b&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Wi,p.opacity=zs(u.opacity,n.opacity,1),w&&(p.lineWidth=zs(u.lineWidth,n.lineWidth,_),p.lineDash=Dt(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),S&&(p.fill=S);var x=r.contentWidth,C=r.contentHeight;y.setBoundingRect(new xt(ja(p.x,x,p.textAlign),Yi(p.y,C,p.textBaseline),x,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,v=r.borderRadius,d=this,y,p;if(h||r.lineHeight||u&&f){y=this._getOrCreateChild(Yt),y.useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=v,y.dirtyShape()}if(h){var m=y.style;m.fill=l||null,m.fillOpacity=Dt(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(Rr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=y.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=Dt(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(y||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=zs(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";if(r.fontSize||r.fontFamily||r.fontWeight){var i="";typeof r.fontSize=="string"&&(r.fontSize.indexOf("px")!==-1||r.fontSize.indexOf("rem")!==-1||r.fontSize.indexOf("em")!==-1)?i=r.fontSize:isNaN(+r.fontSize)?i="12px":i=r.fontSize+"px",n=[r.fontStyle,r.fontWeight,i,r.fontFamily||"sans-serif"].join(" ")}return n&&En(n)||r.textFont||r.font},t}(io),YA={left:!0,right:1,center:1},XA={top:1,bottom:1,middle:1};function qA(e){return um(e),D(e.rich,um),e}function um(e){if(e){e.font=lm.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||YA[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||XA[r]?r:"top";var n=e.padding;n&&(e.padding=Pg(e.padding))}}function fm(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function cm(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function hm(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function vm(e){var t=e.text;return t!=null&&(t+=""),t}function Jc(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var le=lm,kt=Kt(),ZA=function(e,t,r,n){if(n){var i=kt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=kt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},dm=1,pm={},gm=Kt(),th=0,_l=1,Sl=2,_r=["emphasis","blur","select"],ym=["normal","emphasis","blur","select"],KA=10,jA=9,Qn="highlight",bl="downplay",uo="select",wl="unselect",fo="toggleSelect";function ji(e){return e!=null&&e!=="none"}var mm=new $a(100);function _m(e){if(typeof e!="string")return e;var t=mm.get(e);return t||(t=VM(e,-.1),mm.put(e,t)),t}function xl(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Sm(e){xl(e,"emphasis",Sl)}function bm(e){e.hoverState===Sl&&xl(e,"normal",th)}function eh(e){xl(e,"blur",_l)}function wm(e){e.hoverState===_l&&xl(e,"normal",th)}function QA(e){e.selected=!0}function JA(e){e.selected=!1}function xm(e,t,r){t(e,r)}function Or(e,t,r){xm(e,t,r),e.isGroup&&e.traverse(function(n){xm(n,t,r)})}function Tm(e,t){switch(t){case"emphasis":e.hoverState=Sl;break;case"normal":e.hoverState=th;break;case"blur":e.hoverState=_l;break;case"select":e.selected=!0}}function tP(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l==null?n&&n[s]:l}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveFinalToTarget(a,t)}return a}function eP(e,t,r,n){var i=r&&At(r,"select")>=0,a=!1;if(e instanceof Rt){var o=gm(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ji(s)||ji(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=K({},n),u=K({},u),u.fill=s):!ji(u.fill)&&ji(s)?(a=!0,n=K({},n),u=K({},u),u.fill=_m(s)):!ji(u.stroke)&&ji(l)&&(a||(n=K({},n),u=K({},u)),u.stroke=_m(l)),n.style=u}}if(n&&n.z2==null){a||(n=K({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f!=null?f:KA)}return n}function rP(e,t,r){if(r&&r.z2==null){r=K({},r);var n=e.z2SelectLift;r.z2=e.z2+(n!=null?n:jA)}return r}function nP(e,t,r){var n=At(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:tP(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=K({},r),o=K({opacity:n?i:a.opacity*.1},o),r.style=o),r}function rh(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return eP(this,e,t,r);if(e==="blur")return nP(this,e,r);if(e==="select")return rP(this,e,r)}return r}function iP(e){e.stateProxy=rh;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=rh),r&&(r.stateProxy=rh)}function Cm(e,t){!Im(e,t)&&!e.__highByOuter&&Or(e,Sm)}function Mm(e,t){!Im(e,t)&&!e.__highByOuter&&Or(e,bm)}function Tl(e,t){e.__highByOuter|=1<<(t||0),Or(e,Sm)}function Cl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Or(e,bm)}function aP(e){Or(e,eh)}function Dm(e){Or(e,wm)}function Am(e){Or(e,QA)}function Pm(e){Or(e,JA)}function Im(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Lm(e){var t=e.getModel();t.eachComponent(function(r,n){var i=r==="series"?e.getViewOfSeriesModel(n):e.getViewOfComponentModel(n);i.group.traverse(function(a){wm(a)})})}function nh(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&Dm(h)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(p){eh(p)}),Re(t))a(u.getData(),t);else if(st(t))for(var d=Ht(t),y=0;y<d.length;y++)a(u.getData(d[y]),t[d[y]]);l.push(u)}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.blurSeries&&c.blurSeries(l,i)}})}}function ih(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(!!n){var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){eh(a)})}}}function oP(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType),a=Vn(i,t);a=(et(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=kt(o);nh(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&nh(n,f,c,r)}}function ah(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(kt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function sP(e,t,r){var n=kt(e),i=ah(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&ih(n.componentMainType,n.componentIndex,r),D(a,function(s){return Cm(s,t)})):(nh(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&ih(n.componentMainType,n.componentIndex,r),Cm(e,t))}function lP(e,t,r){Lm(r);var n=kt(e),i=ah(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?D(i,function(a){return Mm(a,t)}):Mm(e,t)}function uP(e,t,r){if(!!oh(t)){var n=t.dataType,i=e.getData(n),a=Vn(i,t);et(a)||(a=[a]),e[t.type===fo?"toggleSelect":t.type===uo?"select":"unselect"](a,n)}}function Em(e){var t=e.getAllData();D(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?Am(a):Pm(a)})})}function fP(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();D(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function co(e,t,r){vP(e,!0),Or(e,iP),cP(e,t,r)}function cP(e,t,r){var n=kt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Rm=["emphasis","blur","select"],hP={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Om(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Rm.length;i++){var a=Rm[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[hP[r]]()}}function vP(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function km(e){return!!(e&&e.__highDownDispatcher)}function dP(e){var t=pm[e];return t==null&&dm<=32&&(t=pm[e]=dm++),t}function oh(e){var t=e.type;return t===uo||t===wl||t===fo}function sh(e){var t=e.type;return t===Qn||t===bl}function pP(e){var t=gm(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Qi=Zn.CMD,gP=[[],[],[]],Bm=Math.sqrt,yP=Math.atan2;function mP(e,t){if(!!t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=Qi.M,c=Qi.C,h=Qi.L,v=Qi.R,d=Qi.A,y=Qi.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case y:a=2;break;case d:var p=t[4],g=t[5],m=Bm(t[0]*t[0]+t[1]*t[1]),_=Bm(t[2]*t[2]+t[3]*t[3]),S=yP(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=p,r[o]*=_,r[o++]+=g,r[o++]*=m,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case v:u[0]=r[o++],u[1]=r[o++],ie(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ie(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var w=gP[l];w[0]=r[o++],w[1]=r[o++],ie(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var lh=Math.sqrt,Ml=Math.sin,Dl=Math.cos,ho=Math.PI;function Fm(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function uh(e,t){return(e[0]*t[0]+e[1]*t[1])/(Fm(e)*Fm(t))}function Nm(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(uh(e,t))}function zm(e,t,r,n,i,a,o,s,l,u,f){var c=l*(ho/180),h=Dl(c)*(e-r)/2+Ml(c)*(t-n)/2,v=-1*Ml(c)*(e-r)/2+Dl(c)*(t-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=lh(d),s*=lh(d));var y=(i===a?-1:1)*lh((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,p=y*o*v/s,g=y*-s*h/o,m=(e+r)/2+Dl(c)*p-Ml(c)*g,_=(t+n)/2+Ml(c)*p+Dl(c)*g,S=Nm([1,0],[(h-p)/o,(v-g)/s]),w=[(h-p)/o,(v-g)/s],b=[(-1*h-p)/o,(-1*v-g)/s],x=Nm(w,b);if(uh(w,b)<=-1&&(x=ho),uh(w,b)>=1&&(x=0),x<0){var C=Math.round(x/ho*1e6)/1e6;x=ho*2+C%2*ho}f.addData(u,m,_,o,s,S,x,c,a)}var _P=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,SP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bP(e){var t=new Zn;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Zn.CMD,l=e.match(_P);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,v=f.match(SP)||[],d=v.length,y=0;y<d;y++)v[y]=parseFloat(v[y]);for(var p=0;p<d;){var g=void 0,m=void 0,_=void 0,S=void 0,w=void 0,b=void 0,x=void 0,C=r,M=n,L=void 0,I=void 0;switch(c){case"l":r+=v[p++],n+=v[p++],h=s.L,t.addData(h,r,n);break;case"L":r=v[p++],n=v[p++],h=s.L,t.addData(h,r,n);break;case"m":r+=v[p++],n+=v[p++],h=s.M,t.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=v[p++],n=v[p++],h=s.M,t.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=v[p++],h=s.L,t.addData(h,r,n);break;case"H":r=v[p++],h=s.L,t.addData(h,r,n);break;case"v":n+=v[p++],h=s.L,t.addData(h,r,n);break;case"V":n=v[p++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":h=s.C,t.addData(h,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":g=r,m=n,L=t.len(),I=t.data,o===s.C&&(g+=r-I[L-4],m+=n-I[L-3]),h=s.C,C=v[p++],M=v[p++],r=v[p++],n=v[p++],t.addData(h,g,m,C,M,r,n);break;case"s":g=r,m=n,L=t.len(),I=t.data,o===s.C&&(g+=r-I[L-4],m+=n-I[L-3]),h=s.C,C=r+v[p++],M=n+v[p++],r+=v[p++],n+=v[p++],t.addData(h,g,m,C,M,r,n);break;case"Q":C=v[p++],M=v[p++],r=v[p++],n=v[p++],h=s.Q,t.addData(h,C,M,r,n);break;case"q":C=v[p++]+r,M=v[p++]+n,r+=v[p++],n+=v[p++],h=s.Q,t.addData(h,C,M,r,n);break;case"T":g=r,m=n,L=t.len(),I=t.data,o===s.Q&&(g+=r-I[L-4],m+=n-I[L-3]),r=v[p++],n=v[p++],h=s.Q,t.addData(h,g,m,r,n);break;case"t":g=r,m=n,L=t.len(),I=t.data,o===s.Q&&(g+=r-I[L-4],m+=n-I[L-3]),r+=v[p++],n+=v[p++],h=s.Q,t.addData(h,g,m,r,n);break;case"A":_=v[p++],S=v[p++],w=v[p++],b=v[p++],x=v[p++],C=r,M=n,r=v[p++],n=v[p++],h=s.A,zm(C,M,r,n,b,x,_,S,w,h,t);break;case"a":_=v[p++],S=v[p++],w=v[p++],b=v[p++],x=v[p++],C=r,M=n,r+=v[p++],n+=v[p++],h=s.A,zm(C,M,r,n,b,x,_,S,w,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),r=i,n=a),o=h}return t.toStatic(),t}var Hm=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Rt);function Vm(e){return e.setData!=null}function Gm(e,t){var r=bP(e),n=K({},t);return n.buildPath=function(i){if(Vm(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){mP(r,i),this.dirtyShape()},n}function $m(e,t){return new Hm(Gm(e,t))}function wP(e,t){var r=Gm(e,t),n=function(i){Z(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(Hm);return n}function xP(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Rt(t);return o.createPathProxy(),o.buildPath=function(s){if(Vm(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var TP=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Um=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new TP},t.prototype.buildPath=function(r,n,i){i&&r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Rt);Um.prototype.type="circle";var Al=Um,CP=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Wm=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new CP},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t}(Rt);Wm.prototype.type="ellipse";var fh=Wm,Ym=Math.PI,MP=Ym*2,Jn=Math.sin,Ji=Math.cos,DP=Math.acos,te=Math.atan2,Xm=Math.abs,vo=Math.sqrt,ch=Math.max,Pl=Math.min,tr=1e-4;function AP(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<tr))return h=(f*(t-a)-c*(e-i))/h,[e+h*l,t+h*u]}function Il(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/vo(s*s+l*l),f=u*l,c=-u*s,h=e+f,v=t+c,d=r+f,y=n+c,p=(h+d)/2,g=(v+y)/2,m=d-h,_=y-v,S=m*m+_*_,w=i-a,b=h*y-d*v,x=(_<0?-1:1)*vo(ch(0,w*w*S-b*b)),C=(b*_-m*x)/S,M=(-b*m-_*x)/S,L=(b*_+m*x)/S,I=(-b*m+_*x)/S,P=C-p,E=M-g,B=L-p,k=I-g;return P*P+E*E>B*B+k*k&&(C=L,M=I),{cx:C,cy:M,x01:-f,y01:-c,x11:C*(i/w-1),y11:M*(i/w-1)}}function PP(e,t){var r=ch(t.r,0),n=ch(t.r0||0,0),i=r>0,a=n>0;if(!(!i&&!a)){if(i||(r=n,n=0),n>r){var o=r;r=n,n=o}var s=!!t.clockwise,l=t.startAngle,u=t.endAngle,f;if(l===u)f=0;else{var c=[l,u];jy(c,!s),f=Xm(c[0]-c[1])}var h=t.cx,v=t.cy,d=t.cornerRadius||0,y=t.innerCornerRadius||0;if(!(r>tr))e.moveTo(h,v);else if(f>MP-tr)e.moveTo(h+r*Ji(l),v+r*Jn(l)),e.arc(h,v,r,l,u,!s),n>tr&&(e.moveTo(h+n*Ji(u),v+n*Jn(u)),e.arc(h,v,n,u,l,s));else{var p=Xm(r-n)/2,g=Pl(p,d),m=Pl(p,y),_=m,S=g,w=r*Ji(l),b=r*Jn(l),x=n*Ji(u),C=n*Jn(u),M=void 0,L=void 0,I=void 0,P=void 0;if((g>tr||m>tr)&&(M=r*Ji(u),L=r*Jn(u),I=n*Ji(l),P=n*Jn(l),f<Ym)){var E=AP(w,b,I,P,M,L,x,C);if(E){var B=w-E[0],k=b-E[1],Y=M-E[0],q=L-E[1],U=1/Jn(DP((B*Y+k*q)/(vo(B*B+k*k)*vo(Y*Y+q*q)))/2),Q=vo(E[0]*E[0]+E[1]*E[1]);_=Pl(m,(n-Q)/(U-1)),S=Pl(g,(r-Q)/(U+1))}}if(!(f>tr))e.moveTo(h+w,v+b);else if(S>tr){var V=Il(I,P,w,b,r,S,s),it=Il(M,L,x,C,r,S,s);e.moveTo(h+V.cx+V.x01,v+V.cy+V.y01),S<g?e.arc(h+V.cx,v+V.cy,S,te(V.y01,V.x01),te(it.y01,it.x01),!s):(e.arc(h+V.cx,v+V.cy,S,te(V.y01,V.x01),te(V.y11,V.x11),!s),e.arc(h,v,r,te(V.cy+V.y11,V.cx+V.x11),te(it.cy+it.y11,it.cx+it.x11),!s),e.arc(h+it.cx,v+it.cy,S,te(it.y11,it.x11),te(it.y01,it.x01),!s))}else e.moveTo(h+w,v+b),e.arc(h,v,r,l,u,!s);if(!(n>tr)||!(f>tr))e.lineTo(h+x,v+C);else if(_>tr){var V=Il(x,C,M,L,n,-_,s),it=Il(w,b,I,P,n,-_,s);e.lineTo(h+V.cx+V.x01,v+V.cy+V.y01),_<m?e.arc(h+V.cx,v+V.cy,_,te(V.y01,V.x01),te(it.y01,it.x01),!s):(e.arc(h+V.cx,v+V.cy,_,te(V.y01,V.x01),te(V.y11,V.x11),!s),e.arc(h,v,n,te(V.cy+V.y11,V.cx+V.x11),te(it.cy+it.y11,it.cx+it.x11),s),e.arc(h+it.cx,v+it.cy,_,te(it.y11,it.x11),te(it.y01,it.x01),!s))}else e.lineTo(h+x,v+C),e.arc(h,v,n,u,l,s)}e.closePath()}}var IP=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0}return e}(),qm=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new IP},t.prototype.buildPath=function(r,n){PP(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Rt);qm.prototype.type="sector";var hh=qm,LP=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Zm=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new LP},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(Rt);Zm.prototype.type="ring";var Km=Zm;function jm(e,t,r,n,i,a,o){var s=(r-e)*.5,l=(n-t)*.5;return(2*(t-r)+s+l)*o+(-3*(t-r)-2*s-l)*a+s*i+t}function EP(e,t){for(var r=e.length,n=[],i=0,a=1;a<r;a++)i+=Hs(e[a-1],e[a]);var o=i/2;o=o<r?r:o;for(var a=0;a<o;a++){var s=a/(o-1)*(t?r:r-1),l=Math.floor(s),u=s-l,f=void 0,c=e[l%r],h=void 0,v=void 0;t?(f=e[(l-1+r)%r],h=e[(l+1)%r],v=e[(l+2)%r]):(f=e[l===0?l:l-1],h=e[l>r-2?r-1:l+1],v=e[l>r-3?r-1:l+2]);var d=u*u,y=u*d;n.push([jm(f[0],c[0],h[0],v[0],u,d,y),jm(f[1],c[1],h[1],v[1],u,d,y)])}return n}function RP(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=e.length;h<v;h++)Rn(f,f,e[h]),On(c,c,e[h]);Rn(f,f,n[0]),On(c,c,n[1])}for(var h=0,v=e.length;h<v;h++){var d=e[h];if(r)l=e[h?h-1:v-1],u=e[(h+1)%v];else if(h===0||h===v-1){i.push(aM(e[h]));continue}else l=e[h-1],u=e[h+1];oM(a,u,l),Kf(a,a,t);var y=Hs(d,l),p=Hs(d,u),g=y+p;g!==0&&(y/=g,p/=g),Kf(o,a,-y),Kf(s,a,p);var m=Lg([],d,o),_=Lg([],d,s);n&&(On(m,m,f),Rn(m,m,c),On(_,_,f),Rn(_,_,c)),i.push(m),i.push(_)}return r&&i.push(i.shift()),i}function Qm(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n&&n!=="spline"){var a=RP(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{n==="spline"&&(i=EP(i,r)),e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var OP=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Jm=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new OP},t.prototype.buildPath=function(r,n){Qm(r,n,!0)},t}(Rt);Jm.prototype.type="polygon";var vh=Jm,kP=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),t0=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kP},t.prototype.buildPath=function(r,n){Qm(r,n,!1)},t}(Rt);t0.prototype.type="polyline";var dh=t0,BP={},FP=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),e0=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new FP},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=nm(BP,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(Rt);e0.prototype.type="line";var nn=e0,ge=[],NP=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function r0(e,t,r){var n=e.cpx2,i=e.cpy2;return n===null||i===null?[(r?Uy:Nt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Uy:Nt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Yy:Jt)(e.x1,e.cpx1,e.x2,t),(r?Yy:Jt)(e.y1,e.cpy1,e.y2,t)]}var n0=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new NP},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(hl(i,l,o,h,ge),l=ge[1],o=ge[2],hl(a,u,s,h,ge),u=ge[1],s=ge[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(cl(i,l,f,o,h,ge),l=ge[1],f=ge[2],o=ge[3],cl(a,u,c,s,h,ge),u=ge[1],c=ge[2],s=ge[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return r0(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=r0(this.shape,r,!0);return uM(n,n)},t}(Rt);n0.prototype.type="bezier-curve";var i0=n0,zP=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),a0=function(e){Z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zP},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},t}(Rt);a0.prototype.type="arc";var ph=a0,HP=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Rt.prototype.getBoundingRect.call(this)},t}(Rt),VP=HP,GP=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),o0=GP,$P=function(e){Z(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r==null?0:r,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(o0),gh=$P,UP=function(e){Z(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r==null?.5:r,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t}(o0),s0=UP,ti=[0,0],ei=[0,0],Ll=new Et,El=new Et,WP=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Et;for(var n=0;n<2;n++)this._axes[n]=new Et;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Et.sub(i[0],n[1],n[0]),Et.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Ll.set(1/0,1/0),El.set(0,0),!this._intersectCheckOneSide(this,t,Ll,El,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Ll,El,i,-1)&&(n=!1,i)||i||Et.copy(r,n?Ll:El),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,ti),this._getProjMinMaxOnAxis(l,r._corners,ei),ti[1]<ei[0]||ti[0]>ei[1]){if(s=!1,a)return s;var f=Math.abs(ei[0]-ti[1]),c=Math.abs(ti[0]-ei[1]);Math.min(f,c)>i.len()&&(f<c?Et.scale(i,u,-f*o):Et.scale(i,u,c*o))}else if(n){var f=Math.abs(ei[0]-ti[1]),c=Math.abs(ti[0]-ei[1]);Math.min(f,c)<n.len()&&(f<c?Et.scale(n,u,f*o):Et.scale(n,u,-c*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},e}(),Rl=WP,YP=[],XP=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new xt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(YP)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(io),l0=XP,qP=Kt();function ZP(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=Dt(n.duration,200),f=Dt(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),typeof c=="function"&&(c=c(r,i)),typeof u=="function"&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function yh(e,t,r,n,i,a,o){var s=!1,l;typeof i=="function"?(o=a,a=i,i=null):st(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="remove";u||t.stopAnimation("remove");var f=ZP(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function an(e,t,r,n,i,a){yh("update",e,t,r,n,i,a)}function po(e,t,r,n,i,a){yh("init",e,t,r,n,i,a)}function go(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="remove")return!0}return!1}function Ol(e,t,r,n,i,a){go(e)||yh("remove",e,t,r,n,i,a)}function u0(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Ol(e,{style:{opacity:0}},t,r,n)}function KP(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||u0(i,t,r,n)}):u0(e,t,r,n)}function jP(e){qP(e).oldStyle=e.style}var kl=Math.max,Bl=Math.min,mh={};function QP(e){return Rt.extend(e)}var JP=wP;function tI(e,t){return JP(e,t)}function er(e,t){mh[e]=t}function eI(e){if(mh.hasOwnProperty(e))return mh[e]}function _h(e,t,r,n){var i=$m(e,t);return r&&(n==="center"&&(r=c0(r,i.getBoundingRect())),h0(i,r)),i}function f0(e,t,r){var n=new Rr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(c0(t,a))}}});return n}function c0(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var rI=xP;function h0(e,t){if(!!e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function nI(e){return nm(e.shape,e.shape,e.style),e}function iI(e){return im(e.shape,e.shape,e.style),e}var aI=jn;function oI(e,t){for(var r=Ks([]);e&&e!==t;)Ar(r,e.getLocalTransform(),r),e=e.parent;return r}function Sh(e,t,r){return t&&!Re(t)&&(t=Ac.getLocalTransform(t)),r&&(t=Js([],t)),ie([],e,t)}function sI(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=Sh(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function v0(e){return!e.isGroup}function lI(e){return e.shape!=null}function d0(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){v0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return lI(o)&&(s.shape=K({},o.shape)),s}var a=n(e);t.traverse(function(o){if(v0(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),an(o,l,r,kt(o).dataIndex)}}})}function uI(e,t){return ut(e,function(r){var n=r[0];n=kl(n,t.x),n=Bl(n,t.x+t.width);var i=r[1];return i=kl(i,t.y),i=Bl(i,t.y+t.height),[n,i]})}function fI(e,t){var r=kl(e.x,t.x),n=Bl(e.x+e.width,t.x+t.width),i=kl(e.y,t.y),a=Bl(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function bh(e,t,r){var n=K({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Ct(i,r),new Rr(n)):_h(e.replace("path://",""),n,r,"center")}function cI(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(p0(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function p0(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,h=wh(f,c,l,u);if(hI(h))return!1;var v=e-i,d=t-a,y=wh(v,d,l,u)/h;if(y<0||y>1)return!1;var p=wh(v,d,f,c)/h;return!(p<0||p>1)}function wh(e,t,r,n){return e*n-r*t}function hI(e){return e<=1e-6&&e>=-1e-6}function xh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=wt(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&D(Ht(l),function(f){je(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=kt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ct({content:n,formatterParams:s},i)}}er("circle",Al);er("ellipse",fh);er("sector",hh);er("ring",Km);er("polygon",vh);er("polyline",dh);er("rect",Yt);er("line",nn);er("bezierCurve",i0);er("arc",ph);var vI=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",updateProps:an,initProps:po,removeElement:Ol,removeElementWithFadeOut:KP,isElementRemoved:go,extendShape:QP,extendPath:tI,registerShape:er,getShapeClass:eI,makePath:_h,makeImage:f0,mergePath:rI,resizePath:h0,subPixelOptimizeLine:nI,subPixelOptimizeRect:iI,subPixelOptimize:aI,getTransform:oI,applyTransform:Sh,transformDirection:sI,groupTransition:d0,clipPointsByRect:uI,clipRectByRect:fI,createIcon:bh,linePolygonIntersect:cI,lineLineIntersect:p0,setTooltipConfig:xh,Group:$t,Image:Rr,Text:le,Circle:Al,Ellipse:fh,Sector:hh,Ring:Km,Polygon:vh,Polyline:dh,Rect:Yt,Line:nn,BezierCurve:i0,Arc:ph,IncrementalDisplayable:l0,CompoundPath:VP,LinearGradient:gh,RadialGradient:s0,BoundingRect:xt,OrientedBoundingRect:Rl,Point:Et,Path:Rt}),Fl={};function dI(e,t){for(var r=0;r<_r.length;r++){var n=_r[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function g0(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Xt(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<_r.length;u++){var f=_r[u],c=t[f];l[f]=Dt(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Th(e,t,r,n){r=r||Fl;for(var i=e instanceof le,a=!1,o=0;o<ym.length;o++){var s=t[ym[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new le,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=g0(r,t),f=t.normal,c=!!f.getShallow("show"),h=on(f,n&&n.normal,r,!1,!i);h.text=u.normal,i||e.setTextConfig(y0(f,r,!1));for(var o=0;o<_r.length;o++){var v=_r[o],s=t[v];if(s){var d=l.ensureState(v),y=!!Dt(s.getShallow("show"),c);if(y!==c&&(d.ignore=!y),d.style=on(s,n&&n[v],r,!0,!i),d.style.text=u[v],!i){var p=e.ensureState(v);p.textConfig=y0(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(w0(l).setLabelText=function(g){var m=g0(r,t,g);dI(l,m)})}else l&&(l.ignore=!0);e.dirty()}function Ch(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<_r.length;n++){var i=_r[n];r[i]=e.getModel([i,t])}return r}function on(e,t,r,n,i){var a={};return pI(a,e,r,n,i),t&&K(a,t),a}function y0(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=Dt(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function pI(e,t,r,n,i){r=r||Fl;var a=t.ecModel,o=a&&a.option.textStyle,s=gI(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);b0(l[u]={},f,o,r,n,i,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var h=t.get("minMargin");h!=null&&(e.margin=h),b0(e,t,o,r,n,i,!0,!1)}function gI(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Fl).rich;if(r){t=t||{};for(var n=Ht(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var m0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],_0=["align","lineHeight","width","height","tag","verticalAlign"],S0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function b0(e,t,r,n,i,a,o,s){r=!i&&r||Fl;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=Dt(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(e.fill=u),f!=null&&(e.stroke=f);var h=Dt(t.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var v=Dt(t.getShallow("textBorderType"),r.textBorderType);v!=null&&(e.lineDash=v);var d=Dt(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(e.lineDashOffset=d),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(e.opacity=c),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var y=0;y<m0.length;y++){var p=m0[y],g=Dt(t.getShallow(p),r[p]);g!=null&&(e[p]=g)}for(var y=0;y<_0.length;y++){var p=_0[y],g=t.getShallow(p);g!=null&&(e[p]=g)}if(e.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(e.verticalAlign=m)}if(!o||!n.disableBox){for(var y=0;y<S0.length;y++){var p=S0[y],g=t.getShallow(p);g!=null&&(e[p]=g)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function yI(e,t){var r=t&&t.getModel("textStyle");return En([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var w0=Kt(),mI=["textStyle","color"],Mh=new le,_I=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(mI):null)},e.prototype.getFont=function(){return yI({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){return Mh.useStyle({text:t,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),Mh.update(),Mh.getBoundingRect()},e}(),SI=_I,x0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],bI=no(x0),wI=function(){function e(){}return e.prototype.getLineStyle=function(t){return bI(this,t)},e}(),T0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],xI=no(T0),TI=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return xI(this,t,r)},e}(),ri=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a]},e.prototype.mergeOption=function(t,r){Tt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(yt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!ht.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(!!t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();zc(ri);ZD(ri);ur(ri,wI);ur(ri,TI);ur(ri,tA);ur(ri,SI);var ee=ri,CI=Math.round(Math.random()*10);function Nl(e){return[e||"",CI++].join("_")}function MI(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=dr(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=dr(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function DI(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(D(a,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],y=!!h[v];y&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),D(d.successor,y?g:p)}D(h,function(){var m="";throw new Error(m)});function p(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function g(m){h[m]=!0,p(m)}};function r(a){var o={},s=[];return D(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),D(c,function(h){At(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);At(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return D(a,function(l){At(o,l)>=0&&s.push(l)}),s}}function AI(e,t){return Tt(Tt({},e,!0),t,!0)}var PI={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"}},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:". "}}}},II={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},zl="ZH",Dh="EN",yo=Dh,Hl={},Ah={},C0=ht.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(zl)>-1?zl:yo}():yo;function M0(e,t){e=e.toUpperCase(),Ah[e]=new ee(t),Hl[e]=t}function LI(e){if(wt(e)){var t=Hl[e.toUpperCase()]||{};return e===zl||e===Dh?yt(t):Tt(yt(t),yt(Hl[yo]),!1)}else return Tt(yt(e),yt(Hl[yo]),!1)}function EI(e){return Ah[e]}function RI(){return Ah[yo]}M0(Dh,PI);M0(zl,II);var Ph=1e3,Ih=Ph*60,mo=Ih*60,Ne=mo*24,D0=Ne*365,_o={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}"},Vl="{yyyy}-{MM}-{dd}",A0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Vl,hour:Vl+" "+_o.hour,minute:Vl+" "+_o.minute,second:Vl+" "+_o.second,millisecond:_o.none},Lh=["year","month","day","hour","minute","second","millisecond"],P0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ni(e,t){return e+="","0000".substr(0,t-e.length)+e}function ta(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function OI(e){return e===ta(e)}function kI(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Gl(e,t,r,n){var i=Ir(e),a=i[Eh(r)](),o=i[ea(r)]()+1,s=Math.floor((o-1)/4)+1,l=i[$l(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[So(r)](),c=(f-1)%12+1,h=i[Ul(r)](),v=i[Wl(r)](),d=i[Yl(r)](),y=n instanceof ee?n:EI(n||C0)||RI(),p=y.getModel("time"),g=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,ni(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ni(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ni(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ni(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ni(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,ni(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ni(d,3)).replace(/{S}/g,d+"")}function BI(e,t,r,n,i){var a=null;if(typeof r=="string")a=r;else if(typeof r=="function")a=r(e.value,t,{level:e.level});else{var o=K({},_o);if(e.level>0)for(var s=0;s<Lh.length;++s)o[Lh[s]]="{primary|"+o[Lh[s]]+"}";var l=r?r.inherit===!1?r:Ct(r,o):o,u=I0(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=P0.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(et(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return Gl(new Date(e.value),a,i,n)}function I0(e,t){var r=Ir(e),n=r[ea(t)]()+1,i=r[$l(t)](),a=r[So(t)](),o=r[Ul(t)](),s=r[Wl(t)](),l=r[Yl(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function L0(e,t,r){var n=typeof e=="number"?Ir(e):e;switch(t=t||I0(e,r),t){case"year":return n[Eh(r)]();case"half-year":return n[ea(r)]()>=6?1:0;case"quarter":return Math.floor((n[ea(r)]()+1)/4);case"month":return n[ea(r)]();case"day":return n[$l(r)]();case"half-day":return n[So(r)]()/24;case"hour":return n[So(r)]();case"minute":return n[Ul(r)]();case"second":return n[Wl(r)]();case"millisecond":return n[Yl(r)]()}}function Eh(e){return e?"getUTCFullYear":"getFullYear"}function ea(e){return e?"getUTCMonth":"getMonth"}function $l(e){return e?"getUTCDate":"getDate"}function So(e){return e?"getUTCHours":"getHours"}function Ul(e){return e?"getUTCMinutes":"getMinutes"}function Wl(e){return e?"getUTCSeconds":"getSeconds"}function Yl(e){return e?"getUTCMilliseconds":"getMilliseconds"}function FI(e){return e?"setUTCFullYear":"setFullYear"}function E0(e){return e?"setUTCMonth":"setMonth"}function R0(e){return e?"setUTCDate":"setDate"}function O0(e){return e?"setUTCHours":"setHours"}function k0(e){return e?"setUTCMinutes":"setMinutes"}function B0(e){return e?"setUTCSeconds":"setSeconds"}function F0(e){return e?"setUTCMilliseconds":"setMilliseconds"}function N0(e){if(!AD(e))return wt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function z0(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Xl=Pg,NI=/([&<>"'])/g,zI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ze(e){return e==null?"":(e+"").replace(NI,function(t,r){return zI[r]})}function ql(e,t,r){var n="{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}";function i(f){return f&&En(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ir(e):e;if(isNaN(+l)){if(s)return"-"}else return Gl(l,n,r)}if(t==="ordinal")return Wf(e)?i(e):Yf(e)&&a(e)?e+"":"-";var u=il(e);return a(u)?N0(u):Wf(e)?i(e):typeof e=="boolean"?e+"":"-"}var H0=["a","b","c","d","e","f","g"],Rh=function(e,t){return"{"+e+(t==null?"":t)+"}"};function V0(e,t,r){et(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=H0[a];e=e.replace(Rh(o),Rh(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(Rh(H0[l],s),r?ze(u):u)}return e}function HI(e,t){var r=wt(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ze(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ze(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function ii(e,t){return t=t||"transparent",wt(e)?e:st(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function G0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Zl=D,VI=["left","right","top","bottom","width","height"],Kl=[["width","left","right"],["height","top","bottom"]];function Oh(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(e==="horizontal"){var y=f.width+(h?-h.x+f.x:0);v=a+y,v>n||l.newline?(a=0,v=y,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(h?-h.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var bo=Oh;Zt(Oh,"vertical");Zt(Oh,"horizontal");function wo(e,t,r){r=Xl(r||0);var n=t.width,i=t.height,a=he(e.left,n),o=he(e.top,i),s=he(e.right,n),l=he(e.bottom,i),u=he(e.width,n),f=he(e.height,i),c=r[2]+r[0],h=r[1]+r[3],v=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new xt(a+r[3],o+r[0],u,f);return d.margin=r,d}function xo(e){var t=e.layoutMode||e.constructor.layoutMode;return st(t)?t:t?{type:t}:null}function ra(e,t,r){var n=r&&r.ignoreSize;!et(n)&&(n=[n,n]);var i=o(Kl[0],0),a=o(Kl[1],1);u(Kl[0],e,i),u(Kl[1],e,a);function o(f,c){var h={},v=0,d={},y=0,p=2;if(Zl(f,function(_){d[_]=e[_]}),Zl(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&y++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(y===p||!v)return d;if(v>=p)return h;for(var g=0;g<f.length;g++){var m=f[g];if(!s(h,m)&&s(e,m)){h[m]=e[m];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){Zl(f,function(v){c[v]=h[v]})}}function jl(e){return GI({},e)}function GI(e,t){return t&&e&&Zl(VI,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var $I=Kt(),na=function(e){Z(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Nl("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=xo(this),a=i?jl(r):{},o=n.getTheme();Tt(r,o.get(this.mainType)),Tt(r,this.getDefaultOption()),i&&ra(r,a,i)},t.prototype.mergeOption=function(r,n){Tt(this.option,r,!0);var i=xo(this);i&&ra(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!YD(r))return r.defaultOption;var n=$I(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Tt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ro(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(ee);Oy(na,ee);al(na);MI(na);DI(na,UI);function UI(e){var t=[];return D(na.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=ut(t,function(r){return dr(r).main}),e!=="dataset"&&At(t,"dataset")<=0&&t.unshift("dataset"),t}var zt=na,$0="";typeof navigator!="undefined"&&($0=navigator.platform||"");var ia="rgba(0, 0, 0, 0.2)",WI={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ia,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ia,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ia,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ia,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ia,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ia,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$0.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},U0=ft(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),He="original",ye="arrayRows",Sr="objectRows",kr="keyedColumns",sn="typedArray",W0="unknown",Br="column",aa="row",De={Must:1,Might:2,Not:3},Y0=Kt();function YI(e){Y0(e).datasetMap=ft()}function XI(e,t,r){var n={},i=X0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=Y0(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),D(e,function(y,p){var g=st(y)?y:e[p]={name:y};g.type==="ordinal"&&f==null&&(f=p,c=d(g)),n[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});D(e,function(y,p){var g=y.name,m=d(y);if(f==null){var _=h.valueWayDim;v(n[g],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===p)v(n[g],0,m),v(a,0,m);else{var _=h.categoryWayDim;v(n[g],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(y,p,g){for(var m=0;m<g;m++)y.push(p+m)}function d(y){var p=y.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function X0(e){var t=e.get("data",!0);if(!t)return ro(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Je).models[0]}function qI(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:ro(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Je).models}function q0(e,t){return ZI(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function ZI(e,t,r,n,i,a){var o,s=5;if(Te(e))return De.Not;var l,u;if(n){var f=n[a];st(f)?(l=f.name,u=f.type):wt(f)&&(l=f)}if(u!=null)return u==="ordinal"?De.Must:De.Not;if(t===ye){var c=e;if(r===aa){for(var h=c[a],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[i+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===Sr){var y=e;if(!l)return De.Not;for(var v=0;v<y.length&&v<s;v++){var p=y[v];if(p&&(o=S(p[l]))!=null)return o}}else if(t===kr){var g=e;if(!l)return De.Not;var h=g[l];if(!h||Te(h))return De.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(t===He)for(var m=e,v=0;v<m.length&&v<s;v++){var p=m[v],_=Ja(p);if(!et(_))return De.Not;if((o=S(_[a]))!=null)return o}function S(w){var b=wt(w);if(w!=null&&isFinite(w)&&w!=="")return b?De.Might:De.Not;if(b&&w!=="-")return De.Must}return De.Not}var KI=ft();function jI(e,t,r){var n=KI.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var Z0=Kt();Kt();var kh=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=oe(this.get("color",!0)),a=this.get("colorLayer",!0);return JI(this,Z0,i,a,t,r,n)},e.prototype.clearColorPalette=function(){tL(this,Z0)},e}();function QI(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function JI(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:QI(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function tL(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ql,To,K0,j0="\0_ec_inner",eL=1,Q0=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new ee(a),this._locale=new ee(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=e_(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,e_(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?K0(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&D(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ft(),u=n&&n.replaceMergeMainTypeMap;YI(this),D(r,function(c,h){c!=null&&(zt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?yt(c):Tt(i[h],c,!0))}),u&&u.each(function(c,h){zt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),zt.topologicalTravel(s,zt.getAllClassMainTypes(),f,this);function f(c){var h=jI(this,c,oe(r[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",y=LD(v,h,d);ND(y,c,zt),i[c]=null,a.set(c,null),o.set(c,0);var p=[],g=[],m=0;D(y,function(_,S){var w=_.existing,b=_.newOption;if(!b)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var x=c==="series",C=zt.getClass(c,_.keyInfo.subType,!x);if(!C)return;if(w&&w.constructor===C)w.name=_.keyInfo.name,w.mergeOption(b,this),w.optionUpdated(b,!1);else{var M=K({componentIndex:S},_.keyInfo);w=new C(b,this,this,M),K(w,M),_.brandNew&&(w.__requireNewView=!0),w.init(b,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),g.push(w),m++):(p.push(void 0),g.push(void 0))},this),i[c]=p,a.set(c,g),o.set(c,m),c==="series"&&Ql(this)}this._seriesIndices||Ql(this)},t.prototype.getOption=function(){var r=yt(this.option);return D(r,function(n,i){if(zt.hasClass(i)){for(var a=oe(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!eo(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[j0],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],D(oe(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=J0("id",a,s):o!=null?l=J0("name",o,s):l=xe(s,function(u){return!!u}),t_(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):xe(this._componentsMap.get(i),function(u){return!!u});return l(t_(o,r));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?xe(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Xt(r)){var o=n,s=r;a.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=wt(r)?a.get(r):st(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=vr(r,null);return xe(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return xe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return xe(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){To(this),D(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){To(this),D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return D(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return To(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){To(this);var i=[];D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ft(i)},t.prototype.restoreData=function(r){Ql(this);var n=this._componentsMap,i=[];n.each(function(a,o){zt.hasClass(o)&&i.push(o)}),zt.topologicalTravel(i,zt.getAllClassMainTypes(),function(a){D(n.get(a),function(o){o&&(a!=="series"||!rL(o,r))&&o.restoreData()})})},t.internalField=function(){Ql=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ft(n)},To=function(r){},K0=function(r,n){r.option={},r.option[j0]=eL,r._componentsMap=ft({series:[]}),r._componentsCount=ft();var i=n.aria;st(i)&&i.enabled==null&&(i.enabled=!0),nL(n,r._theme.option),Tt(n,WI,!1),r._mergeOption(n,null)}}(),t}(ee);function rL(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function nL(e,t){var r=e.color&&!e.colorLayer;D(t,function(n,i){i==="colorLayer"&&r||zt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?Tt(e[i],n,!1):yt(n):e[i]==null&&(e[i]=n))})}function J0(e,t,r){if(et(t)){var n=ft();return D(t,function(a){if(a!=null){var o=vr(a,null);o!=null&&n.set(a,!0)}}),xe(r,function(a){return a&&n.get(a[e])})}else{var i=vr(t,null);return xe(r,function(a){return a&&i!=null&&a[e]===i})}}function t_(e,t){return t.hasOwnProperty("subType")?xe(e,function(r){return r&&r.subType===t.subType}):e}function e_(e){var t=ft();return e&&D(oe(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}ur(Q0,kh);var r_=Q0,iL=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],aL=function(){function e(t){D(iL,function(r){this[r]=Gt(t[r],t)},this)}return e}(),n_=aL,Bh={},oL=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];D(Bh,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){D(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Bh[t]=r},e.get=function(t){return Bh[t]},e}(),Fh=oL,sL=/^(min|max)?(.+)$/,lL=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(D(oe(t.series),function(o){o&&o.data&&Te(o.data)&&Zf(o.data)}),D(oe(t.dataset),function(o){o&&o.source&&Te(o.source)&&Zf(o.source)})),t=yt(t);var i=this._optionBackup,a=uL(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],yt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=yt(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)fL(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!hL(o,this._currentMediaIndices)&&(s=ut(o,function(f){return yt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function uL(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(e.options=e.media=null),a=e),f&&et(u)&&D(u,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),h(a),D(l,function(v){return h(v)}),D(n,function(v){return h(v.option)});function h(v){D(t,function(d){d(v,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function fL(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return D(e,function(a,o){var s=o.match(sL);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();cL(n[u],a,l)||(i=!1)}}),i}function cL(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function hL(e,t){return e.join(",")===t.join(",")}var vL=lL,rr=D,Co=st,i_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nh(e){var t=e&&e.itemStyle;if(!!t)for(var r=0,n=i_.length;r<n;r++){var i=i_[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?Tt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?Tt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function re(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,Ct(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Mo(e){re(e,"itemStyle"),re(e,"lineStyle"),re(e,"areaStyle"),re(e,"label"),re(e,"labelLine"),re(e,"upperLabel"),re(e,"edgeLabel")}function Ut(e,t){var r=Co(e)&&e[t],n=Co(r)&&r.textStyle;if(n)for(var i=0,a=Iy.length;i<a;i++){var o=Iy[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Ve(e){e&&(Mo(e),Ut(e,"label"),e.emphasis&&Ut(e.emphasis,"label"))}function dL(e){if(!!Co(e)){Nh(e),Mo(e),Ut(e,"label"),Ut(e,"upperLabel"),Ut(e,"edgeLabel"),e.emphasis&&(Ut(e.emphasis,"label"),Ut(e.emphasis,"upperLabel"),Ut(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Nh(t),Ve(t));var r=e.markLine;r&&(Nh(r),Ve(r));var n=e.markArea;n&&Ve(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Te(a))for(var o=0;o<a.length;o++)Ve(a[o]);D(e.categories,function(u){Mo(u)})}if(i&&!Te(i))for(var o=0;o<i.length;o++)Ve(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ve(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)et(l[o])?(Ve(l[o][0]),Ve(l[o][1])):Ve(l[o]);e.type==="gauge"?(Ut(e,"axisLabel"),Ut(e,"title"),Ut(e,"detail")):e.type==="treemap"?(re(e.breadcrumb,"itemStyle"),D(e.levels,function(u){Mo(u)})):e.type==="tree"&&Mo(e.leaves)}}function Fr(e){return et(e)?e:e?[e]:[]}function a_(e){return(et(e)?e[0]:e)||{}}function pL(e,t){rr(Fr(e.series),function(n){Co(n)&&dL(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),rr(r,function(n){rr(Fr(e[n]),function(i){i&&(Ut(i,"axisLabel"),Ut(i.axisPointer,"label"))})}),rr(Fr(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Ut(i,"axisLabel"),Ut(i&&i.axisPointer,"label")}),rr(Fr(e.calendar),function(n){re(n,"itemStyle"),Ut(n,"dayLabel"),Ut(n,"monthLabel"),Ut(n,"yearLabel")}),rr(Fr(e.radar),function(n){Ut(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),rr(Fr(e.geo),function(n){Co(n)&&(Ve(n),rr(Fr(n.regions),function(i){Ve(i)}))}),rr(Fr(e.timeline),function(n){Ve(n),re(n,"label"),re(n,"itemStyle"),re(n,"controlStyle",!0);var i=n.data;et(i)&&D(i,function(a){st(a)&&(re(a,"label"),re(a,"itemStyle"))})}),rr(Fr(e.toolbox),function(n){re(n,"iconStyle"),rr(n.feature,function(i){re(i,"iconStyle")})}),Ut(a_(e.axisPointer),"label"),Ut(a_(e.tooltip).axisPointer,"label")}function gL(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function yL(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function o_(e){e&&D(mL,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var mL=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],_L=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],zh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Do(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<zh.length;r++){var n=zh[r][1],i=zh[r][0];t[n]!=null&&(t[i]=t[n])}}function s_(e){!e||e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function l_(e){!e||e.downplay&&!e.blur&&(e.blur=e.downplay)}function SL(e){!e||e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function u_(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&u_(e[r].children,t)}function f_(e,t){pL(e,t),e.series=oe(e.series),D(e.series,function(r){if(!!st(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),s_(r.label);var i=r.data;if(i&&!Te(i))for(var a=0;a<i.length;a++)s_(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=gL(r,"pointer.color");o!=null&&yL(r,"itemStyle.color",o)}else if(n==="bar"){Do(r),Do(r.backgroundStyle),Do(r.emphasis);var i=r.data;if(i&&!Te(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Do(i[a]),Do(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),l_(r),u_(r.data,l_)}else n==="graph"||n==="sankey"?SL(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ct(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),o_(r)}}),e.dataRange&&(e.visualMap=e.dataRange),D(_L,function(r){var n=e[r];n&&(et(n)||(n=[n]),D(n,function(i){o_(i)}))})}function bL(e){var t=ft();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(wL)}function wL(e){D(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex;o.modify(a,function(l,u,f){var c=o.get(t.stackedDimension,f);if(isNaN(c))return i;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var d=NaN,y=r-1;y>=0;y--){var p=e[y];if(s||(v=p.data.rawIndexOf(p.stackedByDimension,h)),v>=0){var g=p.data.getByRawIndex(p.stackResultDimension,v);if(c>=0&&g>0||c<=0&&g<0){c=CD(c,g),d=g;break}}}return n[0]=c,n[1]=d,n})})}var Jl=function(){function e(t){this.data=t.data||(t.sourceFormat===kr?{}:[]),this.sourceFormat=t.sourceFormat||W0,this.seriesLayoutBy=t.seriesLayoutBy||Br,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&q0(this,n)===De.Must&&(i.type="ordinal")}}return e}();function Hh(e){return e instanceof Jl}function Vh(e,t,r){r=r||c_(e);var n=t.seriesLayoutBy,i=TL(e,r,n,t.sourceHeader,t.dimensions),a=new Jl({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:yt(t)});return a}function Gh(e){return new Jl({data:e,sourceFormat:Te(e)?sn:He})}function xL(e){return new Jl({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:yt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function c_(e){var t=W0;if(Te(e))t=sn;else if(et(e)){e.length===0&&(t=ye);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(et(i)){t=ye;break}else if(st(i)){t=Sr;break}}}}else if(st(e)){for(var a in e)if(je(e,a)&&Re(e[a])){t=kr;break}}return t}function TL(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:h_(i),startIndex:o,dimensionsDetectedCount:a};if(t===ye){var s=e;n==="auto"||n==null?v_(function(u){u!=null&&u!=="-"&&(wt(u)?o==null&&(o=1):o=0)},r,s,10):o=Yf(n)?n:n?1:0,!i&&o===1&&(i=[],v_(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===aa?s.length:s[0]?s[0].length:null}else if(t===Sr)i||(i=CL(e));else if(t===kr)i||(i=[],D(e,function(u,f){i.push(f)}));else if(t===He){var l=Ja(e[0]);a=et(l)&&l.length||1}return{startIndex:o,dimensionsDefine:h_(i),dimensionsDetectedCount:a}}function CL(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r){var n=[];return D(r,function(i,a){n.push(a)}),n}}function h_(e){if(!!e){var t=ft();return ut(e,function(r,n){r=st(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function v_(e,t,r,n){if(t===aa)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function d_(e){var t=e.sourceFormat;return t===Sr||t===kr}var ai,oi,si,p_,g_,y_=function(){function e(t,r){var n=Hh(t)?t:Gh(t);this._source=n;var i=this._data=n.data;n.sourceFormat===sn&&(this._offset=0,this._dimSize=r,this._data=i),g_(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;g_=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=p_[Uh(u,f)];if(K(o,v),u===sn)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=__(u,f);o.getItem=Gt(d,null,s,c,h);var y=b_(u,f);o.count=Gt(y,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],y=v[1]==null?-1/0:v[1],p=s-o,g=l[h],m=0;m<p;m++){var _=f[m*c+h];g[o+m]=_,_<d&&(d=_),_>y&&(y=_)}v[0]=d,v[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};p_=(t={},t[ye+"_"+Br]={pure:!0,appendData:a},t[ye+"_"+aa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Sr]={pure:!0,appendData:a},t[kr]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[He]={appendData:a},t[sn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),m_=function(e,t,r,n){return e[n]},ML=(ai={},ai[ye+"_"+Br]=function(e,t,r,n){return e[n+t]},ai[ye+"_"+aa]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ai[Sr]=m_,ai[kr]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},ai[He]=m_,ai);function __(e,t){var r=ML[Uh(e,t)];return r}var S_=function(e,t,r){return e.length},DL=(oi={},oi[ye+"_"+Br]=function(e,t,r){return Math.max(0,e.length-t)},oi[ye+"_"+aa]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},oi[Sr]=S_,oi[kr]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},oi[He]=S_,oi);function b_(e,t){var r=DL[Uh(e,t)];return r}var $h=function(e,t,r){return e[t]},AL=(si={},si[ye]=$h,si[Sr]=function(e,t,r){return e[r]},si[kr]=$h,si[He]=function(e,t,r){var n=Ja(e);return n instanceof Array?n[t]:n},si[sn]=$h,si);function w_(e){var t=AL[e];return t}function Uh(e,t){return e===ye?e+"_"+t:e}function oa(e,t,r){if(!!e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return w_(a)(n,o,s)}else{var l=n;return a===He&&(l=Ja(n)),l}}}}var PL=/\{@(.+?)\}/g,IL=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&et(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(typeof a=="function")return l.status=r,l.dimensionIndex=i,a(l);if(typeof a=="string"){var f=V0(a,l);return f.replace(PL,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var y=oa(s,t,d);if(o&&et(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(y=o.interpolatedValue[p])}return y!=null?y+"":""})}},e.prototype.getRawValue=function(t,r){return oa(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function x_(e){var t,r;return st(e)?e.type&&(r=e):t=e,{markupText:t,markupFragment:r}}function Ao(e){return new LL(e)}var LL=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var y=this._progress;if(et(y))for(var p=0;p<y.length;p++)this._doProgress(y[p],v,d,l,u);else this._doProgress(y,v,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){T_.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:T_.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),et(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),T_=function(){var e,t,r,n,i,a={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function tu(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&typeof e!="number"&&e!=null&&e!=="-"&&(e=+Ir(e)),e==null||e===""?NaN:+e)}ft({number:function(e){return parseFloat(e)},time:function(e){return+Ir(e)},trim:function(e){return typeof e=="string"?En(e):e}});var EL=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=typeof t,i=typeof r,a=n==="number"?t:il(t),o=i==="number"?r:il(r),s=isNaN(a),l=isNaN(o);if(s&&(a=this._incomparable),l&&(o=this._incomparable),s&&l){var u=n==="string",f=i==="string";u&&(a=f?t:0),f&&(o=u?r:0)}return a<o?this._resultLT:a>o?-this._resultLT:0},e}(),RL=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return tu(t,r)},e}();function OL(e,t){var r=new RL,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Br&&ve(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(y,p){var g=y.name,m={index:p,name:g,displayName:y.displayName};if(s.push(m),g!=null){var _="";je(l,g)&&ve(_),l[g]=m}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=__(i,Br);t.__isBuiltIn&&(r.getRawDataItem=function(y){return c(n,a,s,y)},r.getRawData=Gt(kL,null,e)),r.cloneRawData=Gt(BL,null,e);var h=b_(i,Br);r.count=Gt(h,null,n,a,s);var v=w_(i);r.retrieveValue=function(y,p){var g=c(n,a,s,y);return d(g,p)};var d=r.retrieveValueFromItem=function(y,p){if(y!=null){var g=s[p];if(g)return v(y,p,g.name)}};return r.getDimensionInfo=Gt(FL,null,s,l),r.cloneAllDimensionInfo=Gt(NL,null,s),r}function kL(e){var t=e.sourceFormat;if(!Wh(t)){var r="";ve(r)}return e.data}function BL(e){var t=e.sourceFormat,r=e.data;if(!Wh(t)){var n="";ve(n)}if(t===ye){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Sr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(K({},r[a]));return i}}function FL(e,t,r){if(r!=null){if(typeof r=="number"||!isNaN(r)&&!je(t,r))return e[r];if(je(t,r))return t[r]}}function NL(e){return yt(e)}var C_=ft();function zL(e){e=yt(e);var t=e.type,r="";t||ve(r);var n=t.split(":");n.length!==2&&ve(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,C_.set(t,e)}function HL(e,t,r){var n=oe(e),i=n.length,a="";i||ve(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=VL(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function VL(e,t,r,n){var i="";t.length||ve(i),st(e)||ve(i);var a=e.type,o=C_.get(a);o||ve(i);var s=ut(t,function(u){return OL(u,o)}),l=oe(o.transform({upstream:s[0],upstreamList:s,config:yt(e.config)}));return ut(l,function(u,f){var c="";st(u)||ve(c),u.data||ve(c);var h=c_(u.data);Wh(h)||ve(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var y=d.startIndex;y&&(u.data=d.data.slice(0,y).concat(u.data)),v={seriesLayoutBy:Br,sourceHeader:y,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Br,sourceHeader:0,dimensions:u.dimensions};return Vh(u.data,v,null)})}function Wh(e){return e===ye||e===Sr}var eu="undefined",GL=typeof Uint32Array===eu?Array:Uint32Array,$L=typeof Uint16Array===eu?Array:Uint16Array,M_=typeof Int32Array===eu?Array:Int32Array,D_=typeof Float64Array===eu?Array:Float64Array,A_={float:D_,int:M_,ordinal:Array,number:Array,time:D_},Yh;function Po(e){return e>65535?GL:$L}function sa(){return[1/0,-1/0]}function UL(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function P_(e,t,r,n,i){var a=A_[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var Xh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ft()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Yh[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],d_(i),this._dimensions=ut(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new A_[r||"float"](this._rawCount),this._rawExtent[a]=sa(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=sa());for(var l=a[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1])}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var f=i[u];P_(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<a;d++){var f=i[d],y=Yh.arrayRows.call(this,t[v]||c,f.property,v,d);n[d][h]=y;var p=o[d];y<p[0]&&(p[0]=y),y>p[1]&&(p[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ut(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=sa()),P_(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var h=[],v=t;v<r;v++){h=i.getItem(v,h);for(var d=0;d<s;d++){var y=a[d],p=this._dimValueGetter(h,u[d],v,d);y[v]=p;var g=l[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),v=r-a[h],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=Po(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Po(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<i;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=r(h);else if(l===1){var y=c[f][d];v=r(y,h)}else{for(var p=0;p<l;p++)s[p]=c[t[p]][d];s[p]=h,v=r.apply(null,s)}v&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=Ht(t),a=i.length;if(!a)return this;var o=r.count(),s=Po(r._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],h=t[f][1],v=r._chunks,d=!1;if(!r._indices){var y=0;if(a===1){for(var p=v[i[0]],g=0;g<n;g++){var m=p[g];(m>=c&&m<=h||isNaN(m))&&(l[u++]=y),y++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=t[i[1]][0],w=t[i[1]][1],g=0;g<n;g++){var m=p[g],b=_[g];(m>=c&&m<=h||isNaN(m))&&(b>=S&&b<=w||isNaN(b))&&(l[u++]=y),y++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var x=r.getRawIndex(g),m=v[i[0]][x];(m>=c&&m<=h||isNaN(m))&&(l[u++]=x)}else for(var g=0;g<o;g++){for(var C=!0,x=r.getRawIndex(g),M=0;M<a;M++){var L=i[M],m=v[L][x];(m<t[L][0]||m>t[L][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=sa();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=i[r[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var y=r[f],p=d[f],g=u[y],m=i[y];m&&(m[h]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,v=new(Po(this._rawCount))(Math.ceil(o/l)+2);v[s++]=u;for(var d=1;d<o-1;d+=l){for(var y=Math.min(d+l,o-1),p=Math.min(d+l*2,o),g=(p+y)/2,m=0,_=y;_<p;_++){var S=this.getRawIndex(_),w=a[S];isNaN(w)||(m+=w)}m/=p-y;var b=d,x=Math.min(d+l,o),C=d-1,M=a[u];f=-1,h=b;for(var _=b;_<x;_++){var S=this.getRawIndex(_),w=a[S];isNaN(w)||(c=Math.abs((C-g)*(w-M)-(C-_)*(m-M)),c>f&&(f=c,h=S))}v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=a._rawExtent[t]=sa(),h=new(Po(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var y=0;y<l;y++){var p=this.getRawIndex(d+y);s[y]=u[p]}var g=n(s),m=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));u[m]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[v++]=m}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=sa();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&Uf(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?UL(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=yt(this._extent),t._rawExtent=yt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return tu(r[a],this._dimensions[a])}Yh={arrayRows:t,objectRows:function(r,n,i,a){return tu(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return tu(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),WL=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(ru(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Te(s)?sn:He,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=Dt(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=Dt(c.sourceHeader,h.sourceHeader)||null,y=Dt(c.dimensions,h.dimensions),p=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||y;i=p?[Vh(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},l)]:[]}else{var g=t;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=g.get("source",!0);i=[Vh(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&I_(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&I_(c),s.push(f),l.push(u._getVersionSign())}),n?o=HL(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[xL(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];ru(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Xh,s.initData(new y_(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ru(t)){var r=X0(t);return r?[r.getSourceManager()]:[]}else return ut(qI(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(ru(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function ru(e){return e.mainType==="series"}function I_(e){throw new Error(e)}var L_="line-height:1";function E_(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ze(n+"")+"px;color:"+ze(r)+";font-weight:"+ze(i+""),valueStyle:"font-size:"+ze(o+"")+"px;color:"+ze(a)+";font-weight:"+ze(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var YL=[0,10,20,30],XL=["",`
`,`
`,`
`];function Io(e,t){return t.type=e,t}function qh(e){return je(R_,e.type)&&R_[e.type]}var R_={section:{planLayout:function(e){var t=e.blocks.length,r=t>1||t>0&&!e.noHeader,n=0;D(e.blocks,function(i){qh(i).planLayout(i);var a=i.__gapLevelBetweenSubBlocks;a>=n&&(n=a+(r&&(!a||i.type==="section"&&!i.noHeader)?1:0))}),e.__gapLevelBetweenSubBlocks=n},build:function(e,t,r,n){var i=t.noHeader,a=k_(t),o=qL(e,t,i?r:a.html,n);if(i)return o;var s=ql(t.header,"ordinal",e.useUTC),l=E_(n,e.renderMode).nameStyle;return e.renderMode==="richText"?B_(e,s,l)+a.richText+o:Zh('<div style="'+l+";"+L_+';">'+ze(s)+"</div>"+o,r)}},nameValue:{planLayout:function(e){e.__gapLevelBetweenSubBlocks=0},build:function(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=t.value,f=e.useUTC;if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":ql(l,"ordinal",f),v=t.valueType,d=o?[]:et(u)?ut(u,function(S,w){return ql(S,et(v)?v[w]:v,f)}):[ql(u,et(v)?v[0]:v,f)],y=!s||!a,p=!s&&a,g=E_(n,i),m=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":c)+(a?"":B_(e,h,m))+(o?"":jL(e,d,y,p,_)):Zh((s?"":c)+(a?"":ZL(h,!s,m))+(o?"":KL(d,y,p,_)),r)}}}};function qL(e,t,r,n){var i=[],a=t.blocks||[];fr(!a||et(a)),a=a||[];var o=e.orderMode;if(t.sortBlocks&&o){a=a.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(je(s,o)){var l=new EL(s[o],null);a.sort(function(f,c){return l.evaluate(f.sortParam,c.sortParam)})}else o==="seriesDesc"&&a.reverse()}var u=k_(t);if(D(a,function(f,c){var h=qh(f).build(e,f,c>0?u.html:0,n);h!=null&&i.push(h)}),!!i.length)return e.renderMode==="richText"?i.join(u.richText):Zh(i.join(""),r)}function O_(e,t,r,n,i,a){if(!!e){var o=qh(e);o.planLayout(e);var s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t};return o.build(s,e,0,a)}}function k_(e){var t=e.__gapLevelBetweenSubBlocks;return{html:YL[t],richText:XL[t]}}function Zh(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+L_+';">'+e+r+"</div>"}function ZL(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+ze(e)+"</span>"}function KL(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return'<span style="'+a+";"+n+'">'+ut(e,function(o){return ze(o)}).join("&nbsp;&nbsp;")+"</span>"}function B_(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function jL(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(t.join(" "),a)}function QL(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return ii(n)}function F_(e,t){var r=e.get("padding");return r!=null?r:t==="richText"?[8,10]:10}var Kh=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Cy()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=HI({color:r,type:t,renderMode:n,markerId:i});return wt(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};et(r)?D(r,function(a){return K(n,a)}):K(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function JL(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=et(s),u=QL(t,r),f,c,h,v;if(o>1||l&&!o){var d=tE(s,t,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var y=i.getDimensionInfo(a[0]);v=f=oa(i,r,a[0]),c=y.type}else v=f=l?s[0]:s;var p=Bc(t),g=p&&t.name||"",m=i.getName(r),_=n?g:m;return Io("section",{header:g,noHeader:n||!p,sortParam:v,blocks:[Io("nameValue",{markerType:"item",markerColor:u,name:_,noName:!En(_),value:f,valueType:c})].concat(h||[])})}function tE(e,t,r,n,i){var a=t.getData(),o=Uf(e,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(c){f(oa(a,r,c),c)}):D(e,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Io("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ln=Kt();function nu(e,t){return e.getName(t)||e.getId(t)}var eE="__universalTransitionEnabled",iu=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ao({count:nE,reset:iE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=ln(this).sourceManager=new WL(this);a.prepareSource();var o=this.getInitialData(r,i);z_(o,this),this.dataTask.context.data=o,ln(this).dataBeforeProcessed=o,N_(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=xo(this),a=i?jl(r):{},o=this.subType;zt.hasClass(o)&&(o+="Series"),Tt(r,n.getTheme().get(this.subType)),Tt(r,this.getDefaultOption()),Py(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&ra(r,a,i)},t.prototype.mergeOption=function(r,n){r=Tt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=xo(this);i&&ra(this.option,r,i);var a=ln(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);z_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ln(this).dataBeforeProcessed=o,N_(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Te(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Py(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=jh(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return ln(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=jh(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}ln(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ft(r)},t.prototype.getSourceManager=function(){return ln(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ln(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return JL({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){if(ht.node)return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=kh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(!!i)for(var a=this.getData(n),o=0;o<r.length;o++){var s=r[o],l=nu(a,s);i[l]=!1,this._selectedDataIndicesMap[l]=-1}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){for(var r=this._selectedDataIndicesMap,n=Ht(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n),o=nu(a,r);return i[o]||!1},t.prototype.isUniversalTransitionEnabled=function(){if(this[eE])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option.selectedMode,s=n.length;if(!(!o||!s)){if(o==="multiple")for(var l=this.option.selectedMap||(this.option.selectedMap={}),u=0;u<s;u++){var f=n[u],c=nu(r,f);l[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(f)}else if(o==="single"||o===!0){var h=n[s-1],c=nu(r,h);this.option.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return zt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(zt);ur(iu,IL);ur(iu,kh);Oy(iu,zt);function N_(e){var t=e.name;Bc(e)||(e.name=rE(e)||t)}function rE(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function nE(e){return e.model.getRawData().count()}function iE(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),aE}function aE(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function z_(e,t){D(iM(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Zt(oE,t))})}function oE(e,t){var r=jh(e);return r&&r.setOutputEnd((t||this).count()),t}function jh(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Lo=iu,Qh=function(){function e(){this.group=new $t,this.uid=Nl("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.blurSeries=function(t,r){},e}();zc(Qh);al(Qh);var Nr=Qh;function Jh(){var e=Kt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var H_=Kt(),sE=Jh(),tv=function(){function e(){this.group=new $t,this.uid=Nl("viewChart"),this.renderTask=Ao({plan:lE,reset:uE}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){G_(t.getData(),i,"emphasis")},e.prototype.downplay=function(t,r,n,i){G_(t.getData(),i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.markUpdateMethod=function(t,r){H_(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function V_(e,t,r){e&&(t==="emphasis"?Tl:Cl)(e,r)}function G_(e,t,r){var n=Vn(e,t),i=t&&t.highlightKey!=null?dP(t.highlightKey):null;n!=null?D(oe(n),function(a){V_(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){V_(a,r,i)})}zc(tv);al(tv);function lE(e){return sE(e.model)}function uE(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&H_(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),fE[l]}var fE={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},un=tv,$_="\0__throttleOriginMethod",U_="\0__throttleRate",W_="\0__throttleType";function ev(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var y=f||t,p=f||r;f=null,s=n-(p?i:a)-y,clearTimeout(o),p?o=setTimeout(c,y):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function cE(e,t,r,n){var i=e[t];if(!!i){var a=i[$_]||i,o=i[W_],s=i[U_];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=ev(a,r,n==="debounce"),i[$_]=a,i[W_]=n,i[U_]=r}return i}}var Y_=Kt(),X_={itemStyle:no(T0,!0),lineStyle:no(x0,!0)},hE={lineStyle:"stroke",itemStyle:"fill"};function q_(e,t){var r=e.visualStyleMapper||X_[t];return r||(console.warn("Unkown style type '"+t+"'."),X_.itemStyle)}function Z_(e,t){var r=e.visualDrawType||hE[t];return r||(console.warn("Unkown style type '"+t+"'."),"fill")}var vE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=q_(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Z_(e,n),u=o[l],f=Xt(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||typeof o.fill=="function"?h:o.fill,o.stroke=o.stroke==="auto"||typeof o.stroke=="function"?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=e.getDataParams(d),p=K({},o);p[l]=f(y),v.setItemVisual(d,"style",p)}}}},Eo=new ee,dE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=q_(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Eo.option=l[n];var u=i(Eo),f=o.ensureUniqueItemVisual(s,"style");K(f,u),Eo.option.decal&&(o.setItemVisual(s,"decal",Eo.option.decal),Eo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},pE={performRawSeries:!0,overallReset:function(e){var t=ft();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Y_(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Y_(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Z_(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},au=Math.PI;function gE(e,t){t=t||{},Ct(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new $t,n=new Yt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new le({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Yt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new ph({shape:{startAngle:-au/2,endAngle:-au/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:au*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:au*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var yE=function(){function e(t,r,n,i){this._stageTaskMap=ft(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ft();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";fr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;D(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var y=o.getPerformArgs(h,i.block);d.each(function(p){p.perform(y)}),h.perform(y)&&(a=!0)}else c&&c.each(function(p,g){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ft(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Ao({plan:wE,reset:xE,count:CE}));v.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ao({reset:mE});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ft(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";fr(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,D(n.getSeries(),d));function d(y){var p=y.uid,g=l.set(p,s&&s.get(p)||(h=!0,Ao({reset:_E,onDirty:bE})));g.context={model:y,overallProgress:c},g.agent=o,g.__block=c,a._pipe(y,g)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Xt(t)&&(t={overallReset:t,seriesType:ME(t)}),t.uid=Nl("stageHandler"),r&&(t.visualType=r),t},e}();function mE(e){e.overallReset(e.ecModel,e.api,e.payload)}function _E(e){return e.overallProgress&&SE}function SE(){this.agent.dirty(),this.getDownstream().dirty()}function bE(){this.agent&&this.agent.dirty()}function wE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function xE(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=oe(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ut(t,function(r,n){return K_(n)}):TE}var TE=K_(0);function K_(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function CE(e){return e.data.count()}function ME(e){ou=null;try{e(Ro,j_)}catch(t){}return ou}var Ro={},j_={},ou;Q_(Ro,r_);Q_(j_,n_);Ro.eachSeriesByType=Ro.eachRawSeriesByType=function(e){ou=e};Ro.eachComponent=function(e){e.mainType==="series"&&e.subType&&(ou=e.subType)};function Q_(e,t){for(var r in t.prototype)e[r]=Dr}var J_=yE,t1=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],DE={color:t1,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],t1]},ue="#B9B8CE",e1="#100C2A",su=function(){return{axisLine:{lineStyle:{color:ue}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},r1=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],n1={darkMode:!0,color:r1,backgroundColor:e1,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ue}},textStyle:{color:ue},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ue}},dataZoom:{borderColor:"#71708A",textStyle:{color:ue},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:ue}},timeline:{lineStyle:{color:ue},label:{color:ue},controlStyle:{color:ue,borderColor:ue}},calendar:{itemStyle:{color:e1},dayLabel:{color:ue},monthLabel:{color:ue},yearLabel:{color:ue}},timeAxis:su(),logAxis:su(),valueAxis:su(),categoryAxis:su(),line:{symbol:"circle"},graph:{color:r1},gauge:{title:{color:ue},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ue},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};n1.categoryAxis.splitLine.show=!1;var AE=n1,PE=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(wt(t)){var a=dr(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),IE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;var n=e.get("symbol"),i=e.get("symbolSize"),a=e.get("symbolKeepAspect"),o=e.get("symbolRotate"),s=e.get("symbolOffset"),l=Xt(n),u=Xt(i),f=Xt(o),c=Xt(s),h=l||u||f||c,v=!l&&n?n:e.defaultSymbol,d=u?null:i,y=f?null:o,p=c?null:s;if(r.setVisual({legendIcon:e.legendIcon||v,symbol:v,symbolSize:d,symbolKeepAspect:a,symbolRotate:y,symbolOffset:p}),t.isSeriesFiltered(e))return;function g(m,_){var S=e.getRawValue(_),w=e.getDataParams(_);l&&m.setItemVisual(_,"symbol",n(S,w)),u&&m.setItemVisual(_,"symbolSize",i(S,w)),f&&m.setItemVisual(_,"symbolRotate",o(S,w)),c&&m.setItemVisual(_,"symbolOffset",s(S,w))}return{dataEach:h?g:null}}},LE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){var o=i.getItemModel(a),s=o.getShallow("symbol",!0),l=o.getShallow("symbolSize",!0),u=o.getShallow("symbolRotate",!0),f=o.getShallow("symbolOffset",!0),c=o.getShallow("symbolKeepAspect",!0);s!=null&&i.setItemVisual(a,"symbol",s),l!=null&&i.setItemVisual(a,"symbolSize",l),u!=null&&i.setItemVisual(a,"symbolRotate",u),f!=null&&i.setItemVisual(a,"symbolOffset",f),c!=null&&i.setItemVisual(a,"symbolKeepAspect",c)}return{dataEach:r.hasItemOption?n:null}}};function EE(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function RE(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function la(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=i.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===s){var f=o.getData(),c=Vn(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:et(c)?f.getName(c[0]):f.getName(c),selected:K({},o.option.selectedMap)})}})}function OE(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(la("map","selectchanged",t,i,n),la("pie","selectchanged",t,i,n)):n.fromAction==="select"?(la("map","selected",t,i,n),la("pie","selected",t,i,n)):n.fromAction==="unselect"&&(la("map","unselected",t,i,n),la("pie","unselected",t,i,n))})}function Oo(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var kE=Math.round(Math.random()*9),BE=typeof Object.defineProperty=="function",FE=function(){function e(){this._id="__ec_inner_"+kE++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return BE?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),NE=FE,zE=Rt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),HE=Rt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),VE=Rt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*v,l+s+h*v,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+c*v,l+s+h*v,r-f,l+s),e.closePath()}}),GE=Rt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),$E={line:nn,rect:Yt,roundRect:Yt,square:Yt,circle:Al,diamond:HE,pin:VE,arrow:GE,triangle:zE},UE={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},rv={};D($E,function(e,t){rv[t]=new e});var WE=Rt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=vy(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=rv[n];i||(n="rect",i=rv[n]),UE[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function YE(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function ua(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=f0(e.slice(8),new xt(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=_h(e.slice(7),{},new xt(t,r,n,i),o?"center":"cover"):l=new WE({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=YE,a&&l.setColor(a),l}function XE(e){return et(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function i1(e,t){if(e!=null)return et(e)||(e=[e,e]),[he(e[0],t[0])||0,he(Dt(e[1],e[0]),t[1])||0]}function qE(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=isNaN(n)?0:n,i=isNaN(i)?1:i,a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=e.createLinearGradient(n,a,i,o);return s}function ZE(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a);var u=e.createRadialGradient(o,s,0,o,s,l);return u}function nv(e,t,r){for(var n=t.type==="radial"?ZE(e,t,r):qE(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function KE(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function a1(e,t){return!e||e==="solid"||!(t>0)?null:(t=t||1,e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Yf(e)?[e]:et(e)?e:null)}var jE=new Zn(!0);function lu(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function o1(e){return typeof e=="string"&&e!=="none"}function uu(e){var t=e.fill;return t!=null&&t!=="none"}function s1(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function l1(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function iv(e,t,r){var n=ky(t.image,t.__image,r);if(ol(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i.setTransform){var a=new DOMMatrix;a.rotateSelf(0,0,(t.rotation||0)/Math.PI*180),a.scaleSelf(t.scaleX||1,t.scaleY||1),a.translateSelf(t.x||0,t.y||0),i.setTransform(a)}return i}}function QE(e,t,r,n){var i=lu(r),a=uu(r),o=r.strokePercent,s=o<1,l=!t.path;(!t.silent||s)&&l&&t.createPathProxy();var u=t.path||jE;if(!n){var f=r.fill,c=r.stroke,h=a&&!!f.colorStops,v=i&&!!c.colorStops,d=a&&!!f.image,y=i&&!!c.image,p=void 0,g=void 0,m=void 0,_=void 0,S=void 0;(h||v)&&(S=t.getBoundingRect()),h&&(p=t.__dirty?nv(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=p),v&&(g=t.__dirty?nv(e,c,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=g),d&&(m=t.__dirty||!t.__canvasFillPattern?iv(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=m),y&&(_=t.__dirty||!t.__canvasStrokePattern?iv(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=m),h?e.fillStyle=p:d&&(m?e.fillStyle=m:a=!1),v?e.strokeStyle=g:y&&(_?e.strokeStyle=_:i=!1)}var w=r.lineDash&&r.lineWidth>0&&a1(r.lineDash,r.lineWidth),b=r.lineDashOffset,x=!!e.setLineDash,C=t.getGlobalScale();if(u.setScale(C[0],C[1],t.segmentIgnoreThreshold),w){var M=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;M&&M!==1&&(w=ut(w,function(I){return I/M}),b/=M)}var L=!0;(l||t.__dirty&Vi||w&&!x&&i)&&(u.setDPR(e.dpr),s?u.setContext(null):(u.setContext(e),L=!1),u.reset(),w&&!x&&(u.setLineDash(w),u.setLineDashOffset(b)),t.buildPath(u,t.shape,n),u.toStatic(),t.pathUpdated()),L&&u.rebuildPath(e,s?o:1),w&&x&&(e.setLineDash(w),e.lineDashOffset=b),n||(r.strokeFirst?(i&&l1(e,r),a&&s1(e,r)):(a&&s1(e,r),i&&l1(e,r))),w&&x&&e.setLineDash([])}function JE(e,t,r){var n=t.__image=ky(r.image,t.__image,t,t.onload);if(!(!n||!ol(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;e.drawImage(n,u,f,c,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function t2(e,t,r){var n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||Wi,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0;if(e.setLineDash){var a=r.lineDash&&r.lineWidth>0&&a1(r.lineDash,r.lineWidth),o=r.lineDashOffset;if(a){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&s!==1&&(a=ut(a,function(l){return l/s}),o/=s),e.setLineDash(a),e.lineDashOffset=o,i=!0}}r.strokeFirst?(lu(r)&&e.strokeText(n,r.x,r.y),uu(r)&&e.fillText(n,r.x,r.y)):(uu(r)&&e.fillText(n,r.x,r.y),lu(r)&&e.strokeText(n,r.x,r.y)),i&&e.setLineDash([])}}var u1=["shadowBlur","shadowOffsetX","shadowOffsetY"],f1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function c1(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){a||(me(e,i),a=!0);var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?$n.opacity:o}(n||t.blend!==r.blend)&&(a||(me(e,i),a=!0),e.globalCompositeOperation=t.blend||$n.blend);for(var s=0;s<u1.length;s++){var l=u1[s];(n||t[l]!==r[l])&&(a||(me(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(me(e,i),a=!0),e.shadowColor=t.shadowColor||$n.shadowColor),a}function h1(e,t,r,n,i){var a=ko(t,i.inHover),o=n?null:r&&ko(r,i.inHover)||{};if(a===o)return!1;var s=c1(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(me(e,i),s=!0),o1(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(me(e,i),s=!0),o1(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(me(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(me(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<f1.length;f++){var c=f1[f],h=c[0];(n||a[h]!==o[h])&&(s||(me(e,i),s=!0),e[h]=a[h]||c[1])}return s}function e2(e,t,r,n,i){return c1(e,ko(t,i.inHover),r&&ko(r,i.inHover),n,i)}function v1(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function r2(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),v1(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function n2(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var d1=1,p1=2,g1=3,y1=4;function i2(e){var t=uu(e),r=lu(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function me(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function ko(e,t){return t&&e.__hoverStyle||e.style}function m1(e,t){fn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function fn(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Ce,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||KE(a,o))&&(o&&o.length&&(me(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(me(e,r),e.save(),r2(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof Rt&&t.autoBatch&&i2(t.style);s||n2(i,u.transform)?(me(e,r),v1(e,t)):f||me(e,r);var c=ko(t,r.inHover);t instanceof Rt?(r.lastDrawType!==d1&&(l=!0,r.lastDrawType=d1),h1(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),QE(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof ml?(r.lastDrawType!==g1&&(l=!0,r.lastDrawType=g1),h1(e,t,u,l,r),t2(e,t,c)):t instanceof Rr?(r.lastDrawType!==p1&&(l=!0,r.lastDrawType=p1),e2(e,t,u,l,r),JE(e,t,c)):t instanceof l0&&(r.lastDrawType!==y1&&(l=!0,r.lastDrawType=y1),a2(e,t,r)),f&&n&&me(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function a2(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),fn(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),fn(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var av=new NE,_1=new $a(100),S1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function b1(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&av.delete(e);var a=av.get(e);if(a)return a;var o=Ct(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,av.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<S1.length;++h){var v=o[S1[h]],d=typeof v;if(v!=null&&!et(v)&&d!=="string"&&d!=="number"&&d!=="boolean"){c=!1;break}f.push(v)}var y;if(c){y=f.join(",")+(i?"-svg":"");var p=_1.get(y);p&&(i?u.svgElement=p:u.image=p)}var g=x1(o.dashArrayX),m=o2(o.dashArrayY),_=w1(o.symbol),S=s2(g),w=T1(m),b=!i&&Fs(),x=i&&n.painter.createSVGElement("g"),C=L(),M;b&&(b.width=C.width*r,b.height=C.height*r,M=b.getContext("2d")),I(),c&&_1.put(y,b||x),u.image=b,u.svgElement=x,u.svgWidth=C.width,u.svgHeight=C.height;function L(){for(var P=1,E=0,B=S.length;E<B;++E)P=Dy(P,S[E]);for(var k=1,E=0,B=_.length;E<B;++E)k=Dy(k,_[E].length);P*=k;var Y=w*S.length*_.length;return{width:Math.max(1,Math.min(P,o.maxTileWidth)),height:Math.max(1,Math.min(Y,o.maxTileHeight))}}function I(){M&&(M.clearRect(0,0,b.width,b.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,b.width,b.height)));for(var P=0,E=0;E<m.length;++E)P+=m[E];if(P<=0)return;for(var B=-w,k=0,Y=0,q=0;B<C.height;){if(k%2==0){for(var U=Y/2%_.length,Q=0,V=0,it=0;Q<C.width*2;){for(var Ot=0,E=0;E<g[q].length;++E)Ot+=g[q][E];if(Ot<=0)break;if(V%2==0){var pt=(1-o.symbolSize)*.5,dt=Q+g[q][V]*pt,O=B+m[k]*pt,j=g[q][V]*o.symbolSize,G=m[k]*o.symbolSize,tt=it/2%_[U].length;bt(dt,O,j,G,_[U][tt])}Q+=g[q][V],++it,++V,V===g[q].length&&(V=0)}++q,q===g.length&&(q=0)}B+=m[k],++Y,++k,k===m.length&&(k=0)}function bt(gt,ct,ot,T,A){var R=i?1:r,F=ua(A,gt*R,ct*R,ot*R,T*R,o.color,o.symbolKeepAspect);i?x.appendChild(n.painter.paintOne(F)):m1(M,F)}}}}function w1(e){if(!e||e.length===0)return[["rect"]];if(typeof e=="string")return[[e]];for(var t=!0,r=0;r<e.length;++r)if(typeof e[r]!="string"){t=!1;break}if(t)return w1([e]);for(var n=[],r=0;r<e.length;++r)typeof e[r]=="string"?n.push([e[r]]):n.push(e[r]);return n}function x1(e){if(!e||e.length===0)return[[0,0]];if(typeof e=="number"){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(typeof e[n]!="number"){r=!1;break}if(r)return x1([e]);for(var i=[],n=0;n<e.length;++n)if(typeof e[n]=="number"){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=ut(e[n],function(s){return Math.ceil(s)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function o2(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(typeof e=="number"){var t=Math.ceil(e);return[t,t]}var r=ut(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function s2(e){return ut(e,function(t){return T1(t)})}function T1(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2==1?t*2:t}function l2(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=b1(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=b1(i,t)}}})}function C1(e){if(wt(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var ov,fu={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"},M1=Ht(fu),cu={"alignment-baseline":"textBaseline","stop-color":"stopColor"},D1=Ht(cu),u2=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=C1(t);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new $t;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ae(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;h2(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=hu(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(c=k1(f,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var v=i;i=new $t,i.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Yt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var f=ov[s];if(f&&je(ov,s)){l=f.call(this,t,r);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var v=A1[s];if(v&&je(A1,s)){var d=v.call(this,t),y=t.getAttribute("id");y&&(this._defs[y]=d)}}if(l&&l.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,l,n,u,a,o):p.nodeType===3&&o&&this._parseText(p,l),p=p.nextSibling},e.prototype._parseText=function(t,r){var n=new ml({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),f2(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){ov={g:function(t,r){var n=new $t;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Yt;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new Al;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new nn;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new fh;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=L1(n));var a=new vh({shape:{points:i||[]},silent:!0});return Ge(r,a),Ae(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=L1(n));var a=new dh({shape:{points:i||[]},silent:!0});return Ge(r,a),Ae(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Rr;return Ge(r,n),Ae(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new $t;return Ge(r,s),Ae(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new $t;return Ge(r,s),Ae(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=$m(n);return Ge(r,i),Ae(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),A1={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new gh(t,r,n,i);return P1(e,a),I1(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new s0(t,r,n);return P1(e,i),I1(e,i),i}};function P1(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function I1(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};O1(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Ge(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ct(t.__inheritedStyle,e.__inheritedStyle))}function L1(e){for(var t=hu(e),r=[],n=0;n<t.length;n+=2){var i=parseFloat(t[n]),a=parseFloat(t[n+1]);r.push([i,a])}return r}function Ae(e,t,r,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(p2(e,t),O1(e,o,s),n||g2(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=E1(a,"fill",o.fill,r)),o.stroke!=null&&(a.style.stroke=E1(a,"stroke",o.stroke,r)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=ut(hu(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function f2(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var c2=/^url\(\s*#(.*?)\)/;function E1(e,t,r,n){var i=r&&r.match(c2);if(i){var a=En(i[1]);n.push([e,t,a]);return}return r==="none"&&(r=null),r}function h2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var v2=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function hu(e){return e.match(v2)||[]}var d2=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,sv=Math.PI/180;function p2(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],i=null;r.replace(d2,function(c,h,v){return n.push(h,v),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=hu(o);switch(i=i||$i(),s){case"translate":js(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":oy(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Qs(i,i,-parseFloat(l[0])*sv);break;case"skewX":var u=Math.tan(parseFloat(l[0])*sv);Ar(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*sv);Ar(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var R1=/([^\s:;]+)\s*:\s*([^:;]+)/g;function O1(e,t,r){var n=e.getAttribute("style");if(!!n){R1.lastIndex=0;for(var i;(i=R1.exec(n))!=null;){var a=i[1],o=je(fu,a)?fu[a]:null;o&&(t[o]=i[2]);var s=je(cu,a)?cu[a]:null;s&&(r[s]=i[2])}}}function g2(e,t,r){for(var n=0;n<M1.length;n++){var i=M1[n],a=e.getAttribute(i);a!=null&&(t[fu[i]]=a)}for(var n=0;n<D1.length;n++){var i=D1[n],a=e.getAttribute(i);a!=null&&(r[cu[i]]=a)}}function k1(e,t){var r=t.width/e.width,n=t.height/e.height,i=Math.min(r,n);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function y2(e,t){var r=new u2;return r.parse(e,t)}var m2=1e-8;function B1(e,t){return Math.abs(e-t)<m2}function F1(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=Er(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!B1(i[0],s[0])||!B1(i[1],s[1]))&&(n+=Er(i[0],i[1],s[0],s[1],t,r)),n!==0}var _2=[],N1=function(){function e(t){this.name=t}return e.prototype.getCenter=function(){},e}(),z1=function(e){Z(t,e);function t(r,n,i){var a=e.call(this,r)||this;if(a.type="geoJSON",a.geometries=n,i)i=[i[0],i[1]];else{var o=a.getBoundingRect();i=[o.x+o.width/2,o.y+o.height/2]}return a._center=i,a}return t.prototype.getBoundingRect=function(){var r=this._rect;if(r)return r;for(var n=Number.MAX_VALUE,i=[n,n],a=[-n,-n],o=[],s=[],l=this.geometries,u=0;u<l.length;u++)if(l[u].type==="polygon"){var f=l[u].exterior;SA(f,o,s),Rn(i,i,o),On(a,a,s)}return u===0&&(i[0]=i[1]=a[0]=a[1]=0),this._rect=new xt(i[0],i[1],a[0]-i[0],a[1]-i[1])},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var a=0,o=i.length;a<o;a++)if(i[a].type==="polygon"){var s=i[a].exterior,l=i[a].interiors;if(F1(s,r[0],r[1])){for(var u=0;u<(l?l.length:0);u++)if(F1(l[u],r[0],r[1]))continue t;return!0}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new xt(r,n,i,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++)if(f[c].type==="polygon"){for(var h=f[c].exterior,v=f[c].interiors,d=0;d<h.length;d++)ie(h[d],h[d],u);for(var y=0;y<(v?v.length:0);y++)for(var d=0;d<v[y].length;d++)ie(v[y][d],v[y][d],u)}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t.prototype.getCenter=function(){return this._center},t.prototype.setCenter=function(r){this._center=r},t}(N1),S2=function(e){Z(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.getCenter=function(){var r=this._center;return r||(r=this._center=this._calculateCenter()),r},t.prototype._calculateCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=Ks(_2),o=r;o&&!o.isGeoSVGGraphicRoot;)Ar(a,o.getLocalTransform(),a),o=o.parent;return Js(a,a),ie(i,i,a),i},t}(N1),b2=ft(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),w2=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=ft(),this._freedGraphics=[],this._mapName=t,this._parsedXML=C1(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=T2(t.named),n=r.regions,i=r.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&y2(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,fr(n!=null)}catch(p){throw new Error(`Invalid svg format
`+p.message)}var i=new $t;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,h=void 0;if(a!=null?(u=0,c=a):s&&(u=s.x,c=s.width),o!=null?(f=0,h=o):s&&(f=s.y,h=s.height),u==null||f==null){var v=n.getBoundingRect();u==null&&(u=v.x,c=v.width),f==null&&(f=v.y,h=v.height)}l=this._boundingRect=new xt(u,f,c,h)}if(s){var d=k1(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}i.setClipPath(new Yt({shape:l.plain()}));var y=[];return D(r.named,function(p){b2.get(p.svgNodeTagLower)!=null&&(y.push(p),x2(p.el))}),{root:i,boundingRect:l,named:y}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function x2(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function T2(e){var t=[],r=ft();return D(e,function(n){if(n.namedFrom==null){var i=new S2(n.name,n.el);t.push(i),r.set(n.name,i)}}),{regions:t,regionsMap:r}}function C2(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);for(var n=t.features,i=0;i<n.length;i++){var a=n[i],o=a.geometry;if(o.type==="Polygon")for(var s=o.coordinates,l=0;l<s.length;l++)s[l]=H1(s[l],o.encodeOffsets[l],r);else if(o.type==="MultiPolygon")for(var s=o.coordinates,l=0;l<s.length;l++)for(var u=s[l],f=0;f<u.length;f++)u[f]=H1(u[f],o.encodeOffsets[l][f],r)}return t.UTF8Encoding=!1,t}function H1(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function M2(e,t){return e=C2(e),ut(xe(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];if(i.type==="Polygon"){var o=i.coordinates;a.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if(i.type==="MultiPolygon"){var o=i.coordinates;D(o,function(u){u[0]&&a.push({type:"polygon",exterior:u[0],interiors:u.slice(1)})})}var s=new z1(n[t||"name"],a,n.cp);return s.properties=n,s})}var lv=[126,25],V1="\u5357\u6D77\u8BF8\u5C9B",li=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var ui=0;ui<li.length;ui++)for(var fa=0;fa<li[ui].length;fa++)li[ui][fa][0]/=10.5,li[ui][fa][1]/=-10.5/.75,li[ui][fa][0]+=lv[0],li[ui][fa][1]+=lv[1];function D2(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===V1)return;t.push(new z1(V1,ut(li,function(n){return{type:"polygon",exterior:n}}),lv))}}var A2={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function P2(e,t){if(e==="china"){var r=A2[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var I2={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function L2(e,t){if(e==="world"){var r=I2[t.name];if(r){var n=[r[0],r[1]];t.setCenter(n)}}}var E2=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function R2(e,t){e==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:E2[0]})}var O2="name",k2=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=ft(),this._mapName=t,this._specialAreas=n,this._geoJSON=F2(r)}return e.prototype.load=function(t,r){r=r||O2;var n=this._parsedMap.get(r);if(!n){var i=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:i,boundingRect:B2(i)})}var a=ft(),o=[];return D(n.regions,function(s){var l=s.name;t&&t.hasOwnProperty(l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new xt(0,0,0,0),regionsMap:a}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,i;try{i=n?M2(n,t):[]}catch(a){throw new Error(`Invalid geoJson format
`+a.message)}return D2(r,i),D(i,function(a){var o=a.name;P2(r,a),L2(r,a),R2(r,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function B2(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function F2(e){return wt(e)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Bo=ft(),N2={registerMap:function(e,t,r){if(t.svg){var n=new w2(e,t.svg);Bo.set(e,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?r=t.specialAreas:i=t;var n=new k2(e,i,r);Bo.set(e,n)}},getGeoResource:function(e){return Bo.get(e)},getMapForUser:function(e){var t=Bo.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=Bo.get(e);if(!!n)return n.load(t,r)}},z2=new cr,nr=z2,H2=typeof window!="undefined",V2=1,G2=800,$2=900,U2=1e3,W2=2e3,Y2=5e3,G1=1e3,X2=1100,uv=2e3,$1=3e3,q2=4e3,vu=4500,Z2=4600,K2=5e3,j2=6e3,U1=7e3,Q2={PROCESSOR:{FILTER:U2,SERIES_FILTER:G2,STATISTIC:Y2},VISUAL:{LAYOUT:G1,PROGRESSIVE_LAYOUT:X2,GLOBAL:uv,CHART:$1,POST_CHART_LAYOUT:Z2,COMPONENT:q2,BRUSH:K2,CHART_ITEM:vu,ARIA:j2,DECAL:U1}},br="__flagInMainProcess",$e="__pendingUpdate",fv="__needsUpdateStatus",W1=/^[a-zA-Z0-9_]+$/,cv="__connectUpdateStatus",Y1=0,J2=1,tR=2;function X1(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){Pe(this.id);return}return Z1(this,e,t)}}function q1(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Z1(this,e,t)}}function Z1(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),cr.prototype[t].apply(e,r)}var K1=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(cr),j1=K1.prototype;j1.on=q1("on");j1.off=q1("off");var ca,hv,du,cn,vv,dv,pv,Fo,No,Q1,J1,zo,gv,tS,pu,eS,rS,Ue,nS,iS=function(e){Z(t,e);function t(r,n,i){var a=e.call(this,new PE)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},typeof n=="string"&&(n=aS[n]),a._dom=r;var o="canvas",s=!1,l=a._zr=my(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,useDirtyRect:i.useDirtyRect==null?s:i.useDirtyRect});a._throttledZrFlush=ev(Gt(l.flush,l),17),n=yt(n),n&&f_(n,!0),a._theme=n,a._locale=LI(i.locale||C0),a._coordSysMgr=new Fh;var u=a._api=eS(a);function f(c,h){return c.__prio-h.__prio}return sc(yu,f),sc(mv,f),a._scheduler=new J_(a,u,mv,yu),a._messageCenter=new K1,a._initEvents(),a.resize=Gt(a.resize,a),l.animation.on("frame",a._onframe,a),Q1(l,a),J1(l,a),Zf(a),a}return t.prototype._onframe=function(){if(!this._disposed){nS(this);var r=this._scheduler;if(this[$e]){var n=this[$e].silent;this[br]=!0,ca(this),cn.update.call(this,null,this[$e].updateParams),this._zr.flush(),this[br]=!1,this[$e]=null,Fo.call(this,n),No.call(this,n)}else if(r.unfinished){var i=V2,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),dv(this,a),r.performVisualTasks(a),pu(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.setOption=function(r,n,i){if(this._disposed){Pe(this.id);return}var a,o,s;if(st(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[br]=!0,!this._model||n){var l=new vL(this._api),u=this._theme,f=this._model=new r_;f.scheduler=this._scheduler,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},_v);var c={seriesTransition:s,optionChanged:!0};i?(this[$e]={silent:a,updateParams:c},this[br]=!1,this.getZr().wakeUp()):(ca(this),cn.update.call(this,null,c),this._zr.flush(),this[$e]=null,this[br]=!1,Fo.call(this,a),No.call(this,a))},t.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||H2&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){if(!!ht.canvasSupported)return r=r||{},this._zr.painter.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.getSvgDataURL=function(){if(!!ht.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){Pe(this.id);return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;D(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){Pe(this.id);return}if(!!ht.canvasSupported){var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(oS[i]){var l=s,u=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();D(Vo,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.getRenderedCanvas(yt(r)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),h.push({dom:w,left:b.left,top:b.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,y=c-u,p=Fs(),g=my(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:y}),n){var m="";return D(h,function(_){var S=_.left-l,w=_.top-u;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Yt({shape:{x:0,y:0,width:d,height:y},style:{fill:r.connectedBackgroundColor}})),D(h,function(_){var S=new Rr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)}},t.prototype.convertToPixel=function(r,n){return vv(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return vv(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){Pe(this.id);return}var i=this._model,a,o=Fc(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Fc(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?EE(s,l,n):RE(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(eR,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Oo(s,function(d){var y=kt(d);if(y&&y.dataIndex!=null){var p=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return l=p&&p.getDataParams(y.dataIndex,y.dataType)||{},!0}else if(y.eventData)return l=K({},y.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(Ho,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),OE(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Pe(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Pe(this.id);return}this._disposed=!0,Ey(this.getDom(),bv,"");var r=this,n=r._api,i=r._model;D(r._componentsViews,function(a){a.dispose(i,n)}),D(r._chartsViews,function(a){a.dispose(i,n)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Vo[r.id]},t.prototype.resize=function(r){if(this._disposed){Pe(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[$e]&&(a==null&&(a=this[$e].silent),i=!0,this[$e]=null),this[br]=!0,i&&ca(this),cn.update.call(this,{type:"resize",animation:K({duration:0},r&&r.animation)}),this[br]=!1,Fo.call(this,a),No.call(this,a)}},t.prototype.showLoading=function(r,n){if(this._disposed){Pe(this.id);return}if(st(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Sv[r]){var i=Sv[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){Pe(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=K({},r);return n.type=Ho[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){Pe(this.id);return}if(st(n)||(n={silent:!!n}),!!gu[r.type]&&!!this._model){if(this[br]){this._pendingActions.push(r);return}var i=n.silent;pv.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ht.browser.weChat&&this._throttledZrFlush(),Fo.call(this,i),No.call(this,i)}},t.prototype.updateLabelLayout=function(){nr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){Pe(this.id);return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ca=function(u){var f=u._scheduler;f.restorePipelines(u._model),f.prepareStageTasks(),hv(u,!0),hv(u,!1),f.plan()},hv=function(u,f){for(var c=u._model,h=u._scheduler,v=f?u._componentsViews:u._chartsViews,d=f?u._componentsMap:u._chartsMap,y=u._zr,p=u._api,g=0;g<v.length;g++)v[g].__alive=!1;f?c.eachComponent(function(S,w){S!=="series"&&m(w)}):c.eachSeries(m);function m(S){var w=S.__requireNewView;S.__requireNewView=!1;var b="_ec_"+S.id+"_"+S.type,x=!w&&d[b];if(!x){var C=dr(S.type),M=f?Nr.getClass(C.main,C.sub):un.getClass(C.sub);x=new M,x.init(c,p),d[b]=x,v.push(x),y.add(x.group)}S.__viewId=x.__id=b,x.__alive=!0,x.__model=S,x.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!f&&h.prepareView(x,S,c,p)}for(var g=0;g<v.length;){var _=v[g];_.__alive?g++:(!f&&_.renderTask.dispose(),y.remove(_.group),_.dispose(c,p),v.splice(g,1),d[_.__id]===_&&delete d[_.__id],_.__id=_.group.__ecComponentInfo=null)}},du=function(u,f,c,h,v){var d=u._model;if(d.setUpdatePayload(c),!h){D([].concat(u._componentsViews).concat(u._chartsViews),_);return}var y={};y[h+"Id"]=c[h+"Id"],y[h+"Index"]=c[h+"Index"],y[h+"Name"]=c[h+"Name"];var p={mainType:h,query:y};v&&(p.subType=v);var g=c.excludeSeriesId,m;g!=null&&(m=ft(),D(oe(g),function(S){var w=vr(S,null);w!=null&&m.set(w,!0)})),sh(c)&&Lm(u._api),d&&d.eachComponent(p,function(S){var w=m&&m.get(S.id)!==null;if(!w)if(sh(c))if(S instanceof Lo)c.type===Qn&&!c.notBlur&&oP(S,c,u._api);else{var b=ah(S.mainType,S.componentIndex,c.name,u._api),x=b.focusSelf,C=b.dispatchers;c.type===Qn&&x&&!c.notBlur&&ih(S.mainType,S.componentIndex,u._api),C&&D(C,function(M){c.type===Qn?Tl(M):Cl(M)})}else oh(c)&&S instanceof Lo&&(uP(S,c,u._api),Em(S),Ue(u))},u),d&&d.eachComponent(p,function(S){var w=m&&m.get(S.id)!==null;w||_(u[h==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},u);function _(S){S&&S.__alive&&S[f]&&S[f](S.__model,d,u._api,c)}},cn={prepareAndUpdate:function(u){ca(this),cn.update.call(this,u,{optionChanged:u.newOption!=null})},update:function(u,f){var c=this._model,h=this._api,v=this._zr,d=this._coordSysMgr,y=this._scheduler;if(!!c){c.setUpdatePayload(u),y.restoreData(c,u),y.performSeriesTasks(c),d.create(c,h),y.performDataProcessorTasks(c,u),dv(this,c),d.update(c,h),zo(c),y.performVisualTasks(c,u),gv(this,c,h,u,f);var p=c.get("backgroundColor")||"transparent",g=c.get("darkMode");if(ht.canvasSupported)v.setBackgroundColor(p),g!=null&&g!=="auto"&&v.setDarkMode(g);else{var m=hr(p);p=Ua(m,"rgb"),m[3]===0&&(p="transparent")}nr.trigger("afterupdate",c,h)}},updateTransform:function(u){var f=this,c=this._model,h=this._api;if(!!c){c.setUpdatePayload(u);var v=[];c.eachComponent(function(y,p){if(y!=="series"){var g=f.getViewOfComponentModel(p);if(g&&g.__alive)if(g.updateTransform){var m=g.updateTransform(p,c,h,u);m&&m.update&&v.push(g)}else v.push(g)}});var d=ft();c.eachSeries(function(y){var p=f._chartsMap[y.__viewId];if(p.updateTransform){var g=p.updateTransform(y,c,h,u);g&&g.update&&d.set(y.uid,1)}else d.set(y.uid,1)}),zo(c),this._scheduler.performVisualTasks(c,u,{setDirty:!0,dirtyMap:d}),pu(this,c,h,u,{},d),nr.trigger("afterupdate",c,h)}},updateView:function(u){var f=this._model;!f||(f.setUpdatePayload(u),un.markUpdateMethod(u,"updateView"),zo(f),this._scheduler.performVisualTasks(f,u,{setDirty:!0}),gv(this,f,this._api,u,{}),nr.trigger("afterupdate",f,this._api))},updateVisual:function(u){var f=this,c=this._model;!c||(c.setUpdatePayload(u),c.eachSeries(function(h){h.getData().clearAllVisual()}),un.markUpdateMethod(u,"updateVisual"),zo(c),this._scheduler.performVisualTasks(c,u,{visualType:"visual",setDirty:!0}),c.eachComponent(function(h,v){if(h!=="series"){var d=f.getViewOfComponentModel(v);d&&d.__alive&&d.updateVisual(v,c,f._api,u)}}),c.eachSeries(function(h){var v=f._chartsMap[h.__viewId];v.updateVisual(h,c,f._api,u)}),nr.trigger("afterupdate",c,this._api))},updateLayout:function(u){cn.update.call(this,u)}},vv=function(u,f,c,h){if(u._disposed){Pe(u.id);return}for(var v=u._model,d=u._coordSysMgr.getCoordinateSystems(),y,p=Fc(v,c),g=0;g<d.length;g++){var m=d[g];if(m[f]&&(y=m[f](v,p,h))!=null)return y}},dv=function(u,f){var c=u._chartsMap,h=u._scheduler;f.eachSeries(function(v){h.updateStreamModes(v,c[v.__viewId])})},pv=function(u,f){var c=this,h=this.getModel(),v=u.type,d=u.escapeConnect,y=gu[v],p=y.actionInfo,g=(p.update||"update").split(":"),m=g.pop(),_=g[0]!=null&&dr(g[0]);this[br]=!0;var S=[u],w=!1;u.batch&&(w=!0,S=ut(u.batch,function(P){return P=Ct(K({},P),u),P.batch=null,P}));var b=[],x,C=oh(u),M=sh(u);if(D(S,function(P){if(x=y.action(P,c._model,c._api),x=x||K({},P),x.type=p.event||x.type,b.push(x),M){var E=Nc(u),B=E.queryOptionMap,k=E.mainTypeSpecified,Y=k?B.keys()[0]:"series";du(c,m,P,Y),Ue(c)}else C?(du(c,m,P,"series"),Ue(c)):_&&du(c,m,P,_.main,_.sub)}),m!=="none"&&!M&&!C&&!_&&(this[$e]?(ca(this),cn.update.call(this,u),this[$e]=null):cn[m].call(this,u)),w?x={type:p.event||v,escapeConnect:d,batch:b}:x=b[0],this[br]=!1,!f){var L=this._messageCenter;if(L.trigger(x.type,x),C){var I={type:"selectchanged",escapeConnect:d,selected:fP(h),isFromClick:u.isFromClick||!1,fromAction:u.type,fromActionPayload:u};L.trigger(I.type,I)}}},Fo=function(u){for(var f=this._pendingActions;f.length;){var c=f.shift();pv.call(this,c,u)}},No=function(u){!u&&this.trigger("updated")},Q1=function(u,f){u.on("rendered",function(c){f.trigger("rendered",c),u.animation.isFinished()&&!f[$e]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},J1=function(u,f){u.on("mouseover",function(c){var h=c.target,v=Oo(h,km);v&&(sP(v,c,f._api),Ue(f))}).on("mouseout",function(c){var h=c.target,v=Oo(h,km);v&&(lP(v,c,f._api),Ue(f))}).on("click",function(c){var h=c.target,v=Oo(h,function(p){return kt(p).dataIndex!=null},!0);if(v){var d=v.selected?"unselect":"select",y=kt(v);f._api.dispatchAction({type:d,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})},zo=function(u){u.clearColorPalette(),u.eachSeries(function(f){f.clearColorPalette()})},gv=function(u,f,c,h,v){tS(u,f,c,h,v),D(u._chartsViews,function(d){d.__alive=!1}),pu(u,f,c,h,v),D(u._chartsViews,function(d){d.__alive||d.remove(f,c)})},tS=function(u,f,c,h,v,d){D(d||u._componentsViews,function(y){var p=y.__model;s(p,y),y.render(p,f,c,h),a(p,y),l(p,y)})},pu=function(u,f,c,h,v,d){var y=u._scheduler;v=K(v||{},{updatedSeries:f.getSeries()}),nr.trigger("series:beforeupdate",f,c,v);var p=!1;f.eachSeries(function(g){var m=u._chartsMap[g.__viewId];m.__alive=!0;var _=m.renderTask;y.updatePayload(_,h),s(g,m),d&&d.get(g.uid)&&_.dirty(),_.perform(y.getPerformArgs(_))&&(p=!0),m.group.silent=!!g.get("silent"),i(g,m),Em(g)}),y.unfinished=p||y.unfinished,nr.trigger("series:layoutlabels",f,c,v),nr.trigger("series:transition",f,c,v),f.eachSeries(function(g){var m=u._chartsMap[g.__viewId];a(g,m),l(g,m)}),n(u,f),nr.trigger("series:afterupdate",f,c,v)},Ue=function(u){u[fv]=!0,u.getZr().wakeUp()},nS=function(u){!u[fv]||(u.getZr().storage.traverse(function(f){go(f)||r(f)}),u[fv]=!1)};function r(u){for(var f=[],c=u.currentStates,h=0;h<c.length;h++){var v=c[h];v==="emphasis"||v==="blur"||v==="select"||f.push(v)}u.selected&&u.states.select&&f.push("select"),u.hoverState===Sl&&u.states.emphasis?f.push("emphasis"):u.hoverState===_l&&u.states.blur&&f.push("blur"),u.useStates(f)}function n(u,f){var c=u._zr,h=c.storage,v=0;h.traverse(function(d){d.isGroup||v++}),v>f.get("hoverLayerThreshold")&&!ht.node&&!ht.worker&&f.eachSeries(function(d){if(!d.preventUsingHoverLayer){var y=u._chartsMap[d.__viewId];y.__alive&&y.group.traverse(function(p){p.states.emphasis&&(p.states.emphasis.hoverLayer=!0)})}})}function i(u,f){var c=u.get("blendMode")||null;f.group.traverse(function(h){h.isGroup||(h.style.blend=c),h.eachPendingDisplayable&&h.eachPendingDisplayable(function(v){v.style.blend=c})})}function a(u,f){u.preventAutoZ||o(f.group,u.get("z")||0,u.get("zlevel")||0,-1/0)}function o(u,f,c,h){var v=u.getTextContent(),d=u.getTextGuideLine(),y=u.isGroup;if(y)for(var p=u.childrenRef(),g=0;g<p.length;g++)h=Math.max(o(p[g],f,c,h),h);else u.z=f,u.zlevel=c,h=Math.max(u.z2,h);if(v&&(v.z=f,v.zlevel=c,isFinite(h)&&(v.z2=h+2)),d){var m=u.textGuideLineConfig;d.z=f,d.zlevel=c,isFinite(h)&&(d.z2=h+(m&&m.showAbove?1:-1))}return h}function s(u,f){f.group.traverse(function(c){if(!go(c)){var h=c.getTextContent(),v=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function l(u,f){var c=u.getModel("stateAnimation"),h=u.isAnimationEnabled(),v=c.get("duration"),d=v>0?{duration:v,delay:c.get("delay"),easing:c.get("easing")}:null;f.group.traverse(function(y){if(y.states&&y.states.emphasis){if(go(y))return;if(y instanceof Rt&&pP(y),y.__dirty){var p=y.prevStates;p&&y.useStates(p)}if(h){y.stateTransition=d;var g=y.getTextContent(),m=y.getTextGuideLine();g&&(g.stateTransition=d),m&&(m.stateTransition=d)}y.__dirty&&r(y)}})}eS=function(u){return new(function(f){Z(c,f);function c(){return f!==null&&f.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return u._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(h){for(;h;){var v=h.__ecComponentInfo;if(v!=null)return u._model.getComponent(v.mainType,v.index);h=h.parent}},c.prototype.enterEmphasis=function(h,v){Tl(h,v),Ue(u)},c.prototype.leaveEmphasis=function(h,v){Cl(h,v),Ue(u)},c.prototype.enterBlur=function(h){aP(h),Ue(u)},c.prototype.leaveBlur=function(h){Dm(h),Ue(u)},c.prototype.enterSelect=function(h){Am(h),Ue(u)},c.prototype.leaveSelect=function(h){Pm(h),Ue(u)},c.prototype.getModel=function(){return u.getModel()},c.prototype.getViewOfComponentModel=function(h){return u.getViewOfComponentModel(h)},c.prototype.getViewOfSeriesModel=function(h){return u.getViewOfSeriesModel(h)},c}(n_))(u)},rS=function(u){function f(c,h){for(var v=0;v<c.length;v++){var d=c[v];d[cv]=h}}D(Ho,function(c,h){u._messageCenter.on(h,function(v){if(oS[u.group]&&u[cv]!==Y1){if(v&&v.escapeConnect)return;var d=u.makeActionFromEvent(v),y=[];D(Vo,function(p){p!==u&&p.group===u.group&&y.push(p)}),f(y,Y1),D(y,function(p){p[cv]!==J2&&p.dispatchAction(d)}),f(y,tR)}})})}}(),t}(cr),yv=iS.prototype;yv.on=X1("on");yv.off=X1("off");yv.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var eR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Pe(e){}var gu={},Ho={},mv=[],_v=[],yu=[],aS={},Sv={},Vo={},oS={},rR=+new Date-0,bv="_echarts_instance_";function RF(e,t,r){var n=nR(e);if(n)return n;var i=new iS(e,t,r);return i.id="ec_"+rR++,Vo[i.id]=i,Ey(e,bv,i.id),rS(i),nr.trigger("afterinit",i),i}function nR(e){return Vo[VD(e,bv)]}function sS(e,t){aS[e]=t}function lS(e){At(_v,e)<0&&_v.push(e)}function uS(e,t){xv(mv,e,t,W2)}function iR(e){wv("afterinit",e)}function aR(e){wv("afterupdate",e)}function wv(e,t){nr.on(e,t)}function ha(e,t,r){typeof t=="function"&&(r=t,t="");var n=st(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Ho[t]&&(fr(W1.test(n)&&W1.test(t)),gu[n]||(gu[n]={action:r,actionInfo:e}),Ho[t]=n)}function oR(e,t){Fh.register(e,t)}function sR(e,t){xv(yu,e,t,G1,"layout")}function fi(e,t){xv(yu,e,t,$1,"visual")}var fS=[];function xv(e,t,r,n,i){if((Xt(t)||st(t))&&(r=t,t=n),!(At(fS,r)>=0)){fS.push(r);var a=J_.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function cS(e,t){Sv[e]=t}function lR(e,t,r){N2.registerMap(e,t,r)}var uR=zL;fi(uv,vE);fi(vu,dE);fi(vu,pE);fi(uv,IE);fi(vu,LE);fi(U1,l2);lS(f_);uS($2,bL);cS("default",gE);ha({type:Qn,event:Qn,update:Qn},Dr);ha({type:bl,event:bl,update:bl},Dr);ha({type:uo,event:uo,update:uo},Dr);ha({type:wl,event:wl,update:wl},Dr);ha({type:fo,event:fo,update:fo},Dr);sS("light",DE);sS("dark",AE);function Go(e){return e==null?0:e.length||1}function hS(e){return e}var fR=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||hS,this._newKeyGetter=i||hS,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=Go(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=Go(u),h=Go(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=Go(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Go(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),cR=fR,hR=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function vR(e,t){var r={},n=r.encode={},i=ft(),a=[],o=[],s={};D(e.dimensions,function(h){var v=e.getDimensionInfo(h),d=v.coordDim;if(d){var y=v.coordDimIndex;Tv(n,d)[y]=h,v.isExtraCoord||(i.set(d,1),pR(v.type)&&(a[0]=h),Tv(s,d)[y]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}U0.each(function(p,g){var m=Tv(n,g),_=v.otherDims[g];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};i.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=ut(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new hR(s,t),r}function Tv(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function dR(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function pR(e){return!(e==="ordinal"||e==="time")}var gR=function(){function e(t){this.otherDims={},t!=null&&K(this,t)}return e}(),mu=gR,yR=Kt(),mR={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},vS=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,!!t&&(this._dimNameMap||(this._dimNameMap=gS(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Dt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=d_(this.source),n=!yS(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=mR[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function dS(e){return e instanceof vS}function pS(e){for(var t=ft(),r=0;r<(e||[]).length;r++){var n=e[r],i=st(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function gS(e){var t=yR(e);return t.dimNameMap||(t.dimNameMap=pS(e.dimensionsDefine))}function yS(e){return e>30}var $o=st,hn=ut,_R=typeof Int32Array=="undefined"?Array:Int32Array,SR="e\0\0",mS=-1,bR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],wR=["_approximateExtent"],_S,_u,Uo,Wo,Cv,Su,Mv,xR=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;dS(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=wt(c)?new mu({name:c}):c instanceof mu?c:new mu(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),a[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=ft();D(o,function(p){y.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(typeof t=="number"||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof Xh&&(a=t),!a){var o=this.dimensions,s=Hh(t)||Re(t)?new y_(t,o.length):t;a=new Xh;var l=hn(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=vR(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Mv(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==sn&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===He;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&ID(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=vr(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=vr(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)Mv(this,f);_S(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){$o(t)?K(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Uo(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return _u(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return et(t)?i.getValues(hn(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?mS:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){typeof t=="function"&&(n=r,r=t,t=[]);var i=n||this,a=hn(Wo(t),this._getStoreDimIndex,this);this._store.each(a,i?Gt(r,i):r)},e.prototype.filterSelf=function(t,r,n){typeof t=="function"&&(n=r,r=t,t=[]);var i=n||this,a=hn(Wo(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Gt(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Ht(t);return D(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){typeof t=="function"&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=hn(Wo(t),this._getStoreDimIndex,this),s=Su(this);return s._store=this._store.map(o,a?Gt(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=hn(Wo(t),this._getStoreDimIndex,this);this._store.modify(o,a?Gt(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Su(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=Su(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new ee(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new cR(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return _u(t,n)},function(n){return _u(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},$o(t)?K(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i==null?this.getVisual(r):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),et(a)?a=a.slice():$o(a)&&(a=K({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,$o(r)?K(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){if($o(t)){for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);return}this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?K(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;ZA(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:hn(this.dimensions,this._getDimInfo,this),this.hostModel)),Cv(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];typeof n=="function"&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(qf(arguments)))})},e.internalField=function(){_S=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new _R(o.categories.length);for(var l=0;l<n.length;l++)n[l]=mS;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Uo=function(t,r,n){return vr(t._getCategory(r,n),null)},_u=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Uo(t,t._idDimIdx,r)),n==null&&(n=SR+r),n},Wo=function(t){return et(t)||(t=t!=null?[t]:[]),t},Su=function(t){var r=new e(t._schema?t._schema:hn(t.dimensions,t._getDimInfo,t),t.hostModel);return Cv(r,t),r},Cv=function(t,r){D(bR.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,D(wR,function(n){t[n]=yt(r[n])}),t._calculationInfo=K({},r._calculationInfo)},Mv=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Uo(t,a,r)),l==null&&o!=null&&(i[r]=l=Uo(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),e}(),TR=xR;function CR(e,t){Hh(e)||(e=Gh(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ft(),a=[],o=DR(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&yS(o),l=n===e.dimensionsDefine,u=l?gS(e):pS(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=ft(f),h=new M_(o),v=0;v<h.length;v++)h[v]=-1;function d(M){var L=h[M];if(L<0){var I=n[M],P=st(I)?I:{name:I},E=new mu,B=P.name;B!=null&&u.get(B)!=null&&(E.name=E.displayName=B),P.type!=null&&(E.type=P.type),P.displayName!=null&&(E.displayName=P.displayName);var k=a.length;return h[M]=k,E.storeDimIndex=M,a.push(E),E}return a[L]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(M,L){var I=oe(M).slice();if(I.length===1&&!wt(I[0])&&I[0]<0){c.set(L,!1);return}var P=c.set(L,[]);D(I,function(E,B){var k=wt(E)?u.get(E):E;k!=null&&k<o&&(P[B]=k,p(d(k),L,B))})});var y=0;D(r,function(M){var L,I,P,E;if(wt(M))L=M,E={};else{E=M,L=E.name;var B=E.ordinalMeta;E.ordinalMeta=null,E=K({},E),E.ordinalMeta=B,I=E.dimsDef,P=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var k=c.get(L);if(k!==!1){if(k=oe(k),!k.length)for(var Y=0;Y<(I&&I.length||1);Y++){for(;y<o&&d(y).coordDim!=null;)y++;y<o&&k.push(y++)}D(k,function(q,U){var Q=d(q);if(l&&E.type!=null&&(Q.type=E.type),p(Ct(Q,E),L,U),Q.name==null&&I){var V=I[U];!st(V)&&(V={name:V}),Q.name=Q.displayName=V.name,Q.defaultTooltip=V.defaultTooltip}P&&Ct(Q.otherDims,P)})}});function p(M,L,I){U0.get(L)!=null?M.otherDims[L]=I:(M.coordDim=L,M.coordDimIndex=I,i.set(L,!0))}var g=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=g?m||1:0;var S=g||"value";function w(M){M.name==null&&(M.name=M.coordDim)}if(s)D(a,function(M){w(M)}),a.sort(function(M,L){return M.storeDimIndex-L.storeDimIndex});else for(var b=0;b<o;b++){var x=d(b),C=x.coordDim;C==null&&(x.coordDim=AR(S,i,_),x.coordDimIndex=0,(!g||m<=0)&&(x.isExtraCoord=!0),m--),w(x),x.type==null&&(q0(e,b)===De.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return MR(a),new vS({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function MR(e){for(var t=ft(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function DR(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;st(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function AR(e,t,r){var n=t.data;if(r||n.hasOwnProperty(e)){for(var i=0;n.hasOwnProperty(e+i);)i++;e+=i}return t.set(e,!0),e}var PR=function(){function e(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return e}();function IR(e){var t=e.get("coordinateSystem"),r=new PR(t),n=LR[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var LR={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Je).models[0],a=e.getReferringComponents("yAxis",Je).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),va(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),va(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Je).models[0];t.coordSysDims=["single"],r.set("single",i),va(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Je).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),va(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),va(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),va(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function va(e){return e.get("type")==="category"}function ER(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;RR(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,h;if(D(a,function(m,_){wt(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;D(a,function(m){m.coordDim===v&&y++});var p={name:c,coordDim:v,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:h,coordDim:h,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function RR(e){return!dS(e.schema)}function Yo(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function OR(e,t){return Yo(e,t)?e.getCalculationInfo("stackResultDimension"):t}function kR(e,t){var r=e.get("coordinateSystem"),n=Fh.get(r),i;return t&&t.coordSysDims&&(i=ut(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=dR(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function BR(e,t,r){var n,i;return r&&D(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function FR(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Gh(e)):(i=n.getSource(),a=i.sourceFormat===He);var o=IR(t),s=kR(t,o),l=r.useEncodeDefaulter,u=Xt(l)?l:l?Zt(XI,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=CR(i,f),h=BR(c.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=ER(t,{schema:c,store:v}),y=new TR(c,t);y.setCalculationInfo(d);var p=h!=null&&NR(i)?function(g,m,_,S){return S===h?_:this.defaultDimValueGetter(g,m,_,S)}:null;return y.hasItemOption=!1,y.initData(a?i:v,null,p),y}function NR(e){if(e.sourceFormat===He){var t=zR(e.data||[]);return t!=null&&!et(Ja(t))}}function zR(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var SS=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();al(SS);var zr=SS,HR=0,VR=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++HR}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&ut(n,GR);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(typeof t!="string"&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},e}();function GR(e){return st(e)&&e.value!=null?e.value:e+""}var Dv=VR,bS=ae;function $R(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=Ty(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=wS(o),l=i.niceTickExtent=[bS(Math.ceil(e[0]/o)*o,s),bS(Math.floor(e[1]/o)*o,s)];return UR(l,e),i}function wS(e){return Pr(e)+2}function xS(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function UR(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),xS(e,0,t),xS(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function bu(e,t){return e>=t[0]&&e<=t[1]}function wu(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function xu(e,t){return e*(t[1]-t[0])+t[0]}var TS=function(e){Z(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Dv({})),et(i)&&(i=new Dv({categories:ut(i,function(a){return st(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return typeof r=="string"?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),bu(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),wu(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(xu(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.niceTicks=function(){},t.prototype.niceExtent=function(){},t.type="ordinal",t}(zr);zr.registerClass(TS);var CS=TS,ci=ae,MS=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return bu(r,this._extent)},t.prototype.normalize=function(r){return wu(r,this._extent)},t.prototype.scale=function(r){return xu(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=wS(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:ci(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=ci(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:ci(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,h=c/r;u<r-1;){var v=ci(l.value+(u+1)*h);v>a[0]&&v<a[1]&&f.push(v),u++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Pr(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=ci(r.value,i,!0);return N0(a)},t.prototype.niceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(!!isFinite(o)){o<0&&(o=-o,a.reverse());var s=$R(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.niceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=n[0];r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.niceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=ci(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=ci(Math.ceil(n[1]/o)*o))},t.type="interval",t}(zr);zr.registerClass(MS);var Tu=MS,WR="__ec_stack_",DS=.5,Av=typeof Float32Array!="undefined"?Float32Array:Array;function AS(e){return e.get("stack")||WR+e.seriesIndex}function PS(e){return e.dim+e.index}function YR(e,t){var r=[];return t.eachSeriesByType(e,function(n){ES(n)&&!RS(n)&&r.push(n)}),r}function XR(e){var t={};D(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),y=0,p=d.count();y<p;++y){var g=d.get(v,y);t[h]?t[h].push(g):t[h]=[g]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function IS(e){var t=XR(e),r=[];return D(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=he(n.get("barWidth"),s),y=he(n.get("barMaxWidth"),s),p=he(n.get("barMinWidth")||1,s),g=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:p,barGap:g,barCategoryGap:m,axisKey:PS(a),stackId:AS(n)})}),qR(r)}function qR(e){var t={};D(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ht(a).length;s=Math.max(35-l*4,15)+"%"}var u=he(s,o),f=he(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),D(a,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(g.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,y;D(a,function(g,m){g.width||(g.width=v),y=g,d+=g.width*(1+f)}),y&&(d-=y.width*f);var p=-d/2;D(a,function(g,m){r[i][m]=r[i][m]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}function LS(e,t,r){if(e&&t){var n=e[PS(t)];return n!=null&&r!=null?n[AS(r)]:n}}Jh();function ES(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function RS(e){return e.pipelineContext&&e.pipelineContext.large}function ZR(e,t,r){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var KR=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},OS=function(e){Z(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Gl(r.value,A0[kI(ta(this._minLevelUnit))]||A0.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return BI(r,n,i,o,a)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;a.push({value:i[0],level:0});var o=this.getSetting("useUTC"),s=nO(this._minLevelUnit,this._approxInterval,o,i);return a=a.concat(s),a.push({value:i[1],level:0}),a},t.prototype.niceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ne,n[1]+=Ne),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ne}this.niceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.niceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Cu.length,l=Math.min(KR(Cu,this._approxInterval,0,s),s-1);this._interval=Cu[l][1],this._minLevelUnit=Cu[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return typeof r=="number"?r:+Ir(r)},t.prototype.contain=function(r){return bu(this.parse(r),this._extent)},t.prototype.normalize=function(r){return wu(this.parse(r),this._extent)},t.prototype.scale=function(r){return xu(r,this._extent)},t.type="time",t}(Tu),Cu=[["second",Ph],["minute",Ih],["hour",mo],["quarter-day",mo*6],["half-day",mo*12],["day",Ne*1.2],["half-week",Ne*3.5],["week",Ne*7],["month",Ne*31],["quarter",Ne*95],["half-year",D0/2],["year",D0]];function jR(e,t,r,n){var i=Ir(t),a=Ir(r),o=function(d){return L0(i,d,n)===L0(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},h=function(){return c()&&o("second")},v=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return h();case"millisecond":return v()}}function QR(e,t){return e/=Ne,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function JR(e){var t=30*Ne;return e/=t,e>6?6:e>3?3:e>2?2:1}function tO(e){return e/=mo,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function kS(e,t){return e/=t?Ih:Ph,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function eO(e){return Ty(e,!0)}function rO(e,t,r){var n=new Date(e);switch(ta(t)){case"year":case"month":n[E0(r)](0);case"day":n[R0(r)](1);case"hour":n[O0(r)](0);case"minute":n[k0(r)](0);case"second":n[B0(r)](0),n[F0(r)](0)}return n.getTime()}function nO(e,t,r,n){var i=1e4,a=P0,o=0;function s(L,I,P,E,B,k,Y){for(var q=new Date(I),U=I,Q=q[E]();U<P&&U<=n[1];)Y.push({value:U}),Q+=L,q[B](Q),U=q.getTime();Y.push({value:U,notAdd:!0})}function l(L,I,P){var E=[],B=!I.length;if(!jR(ta(L),n[0],n[1],r)){B&&(I=[{value:rO(new Date(n[0]),L,r)},{value:n[1]}]);for(var k=0;k<I.length-1;k++){var Y=I[k].value,q=I[k+1].value;if(Y!==q){var U=void 0,Q=void 0,V=void 0,it=!1;switch(L){case"year":U=Math.max(1,Math.round(t/Ne/365)),Q=Eh(r),V=FI(r);break;case"half-year":case"quarter":case"month":U=JR(t),Q=ea(r),V=E0(r);break;case"week":case"half-week":case"day":U=QR(t),Q=$l(r),V=R0(r),it=!0;break;case"half-day":case"quarter-day":case"hour":U=tO(t),Q=So(r),V=O0(r);break;case"minute":U=kS(t,!0),Q=Ul(r),V=k0(r);break;case"second":U=kS(t,!1),Q=Wl(r),V=B0(r);break;case"millisecond":U=eO(t),Q=Yl(r),V=F0(r);break}s(U,Y,q,Q,V,it,E),L==="year"&&P.length>1&&k===0&&P.unshift({value:P[0].value-U})}}for(var k=0;k<E.length;k++)P.push(E[k]);return E}}for(var u=[],f=[],c=0,h=0,v=0;v<a.length&&o++<i;++v){var d=ta(a[v]);if(!!OI(a[v])){l(a[v],u[u.length-1]||[],f);var y=a[v+1]?ta(a[v+1]):null;if(d!==y){if(f.length){h=c,f.sort(function(L,I){return L.value-I.value});for(var p=[],g=0;g<f.length;++g){var m=f[g].value;(g===0||f[g-1].value!==m)&&(p.push(f[g]),m>=n[0]&&m<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&h>_/1.5||(u.push(p),c>_||e===a[v]))break}f=[]}}}for(var S=xe(ut(u,function(L){return xe(L,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(L){return L.length>0}),w=[],b=S.length-1,v=0;v<S.length;++v)for(var x=S[v],C=0;C<x.length;++C)w.push({value:x[C].value,level:b-v});w.sort(function(L,I){return L.value-I.value});for(var M=[],v=0;v<w.length;++v)(v===0||w[v].value!==w[v-1].value)&&M.push(w[v]);return M}zr.registerClass(OS);var iO=OS,BS=zr.prototype,Xo=Tu.prototype,aO=ae,oO=Math.floor,sO=Math.ceil,Mu=Math.pow,We=Math.log,Pv=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Tu,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Xo.getTicks.call(this,r);return ut(o,function(s){var l=s.value,u=ae(Mu(this.base,l));return u=l===i[0]&&this._fixMin?Du(u,a[0]):u,u=l===i[1]&&this._fixMax?Du(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=this.base;r=We(r)/We(i),n=We(n)/We(i),Xo.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=BS.getExtent.call(this);n[0]=Mu(r,n[0]),n[1]=Mu(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=Du(n[0],a[0])),this._fixMax&&(n[1]=Du(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=We(r[0])/We(n),r[1]=We(r[1])/We(n),BS.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.niceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=DD(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[ae(sO(n[0]/a)*a),ae(oO(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.niceExtent=function(r){Xo.niceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=We(r)/We(this.base),bu(r,this._extent)},t.prototype.normalize=function(r){return r=We(r)/We(this.base),wu(r,this._extent)},t.prototype.scale=function(r){return r=xu(r,this._extent),Mu(this.base,r)},t.type="log",t}(zr),FS=Pv.prototype;FS.getMinorTicks=Xo.getMinorTicks;FS.getLabel=Xo.getLabel;function Du(e,t){return aO(e,Pr(t))}zr.registerClass(Pv);var lO=Pv,uO=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=r.getNeedCrossZero&&r.getNeedCrossZero();var a=this._modelMinRaw=r.get("min",!0);Xt(a)?this._modelMinNum=Au(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=Au(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(Xt(o)?this._modelMaxNum=Au(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=Au(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=et(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Hn(l[0],1),Hn(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Xf(s)||Xf(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[cO[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=fO[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),fO={min:"_determinedMin",max:"_determinedMax"},cO={min:"_dataMin",max:"_dataMax"};function hO(e,t,r){var n=e.rawExtentInfo;return n||(n=new uO(e,t,r),e.rawExtentInfo=n,n)}function Au(e,t){return t==null?null:Xf(t)?NaN:e.parse(t)}function vO(e,t){var r=e.type,n=hO(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=YR("bar",o),l=!1;if(D(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=IS(s),f=dO(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function dO(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=LS(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;D(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,h=f/c-f;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function NS(e,t){var r=t,n=vO(e,r),i=n.extent,a=r.get("splitNumber");e instanceof lO&&(e.base=r.get("logBase"));var o=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o==="interval"||o==="time"?r.get("minInterval"):null,maxInterval:o==="interval"||o==="time"?r.get("maxInterval"):null});var s=r.get("interval");s!=null&&e.setInterval&&e.setInterval(s)}function pO(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new CS({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new iO({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(zr.getClass(t)||Tu)}}function gO(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function qo(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):typeof t=="string"?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):typeof t=="function"?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(Iv(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Iv(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function yO(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof CS?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=qo(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var c=n?n[f]:{value:a[0]+f},h=s(c,f),v=o.getTextRect(h),d=mO(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function mO(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new xt(e.x,e.y,a,o);return s}function Lv(e){var t=e.get("interval");return t==null?"auto":t}function zS(e){return e.type==="category"&&Lv(e.getLabelModel())===0}function _O(e,t){var r={};return D(e.mapDimensionsAll(t),function(n){r[OR(e,n)]=!0}),Ht(r)}var SO=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),HS=[],bO={registerPreprocessor:lS,registerProcessor:uS,registerPostInit:iR,registerPostUpdate:aR,registerUpdateLifecycle:wv,registerAction:ha,registerCoordinateSystem:oR,registerLayout:sR,registerVisual:fi,registerTransform:uR,registerLoading:cS,registerMap:lR,PRIORITY:Q2,ComponentModel:zt,ComponentView:Nr,SeriesModel:Lo,ChartView:un,registerComponentModel:function(e){zt.registerClass(e)},registerComponentView:function(e){Nr.registerClass(e)},registerSeriesModel:function(e){Lo.registerClass(e)},registerChartView:function(e){un.registerClass(e)},registerSubTypeDefaulter:function(e,t){zt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){bD(e,t)}};function hi(e){if(et(e)){D(e,function(t){hi(t)});return}At(HS,e)>=0||(HS.push(e),Xt(e)&&(e={install:e}),e.install(bO))}var Zo=Kt();function wO(e){return e.type==="category"?TO(e):MO(e)}function xO(e,t){return e.type==="category"?CO(e,t):{ticks:ut(e.scale.getTicks(),function(r){return r.value})}}function TO(e){var t=e.getLabelModel(),r=VS(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function VS(e,t){var r=GS(e,"labels"),n=Lv(t),i=$S(r,n);if(i)return i;var a,o;return Xt(n)?a=YS(e,n):(o=n==="auto"?DO(e):n,a=WS(e,o)),US(r,n,{labels:a,labelCategoryInterval:o})}function CO(e,t){var r=GS(e,"ticks"),n=Lv(t),i=$S(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Xt(n))a=YS(e,n,!0);else if(n==="auto"){var s=VS(e,e.getLabelModel());o=s.labelCategoryInterval,a=ut(s.labels,function(l){return l.tickValue})}else o=n,a=WS(e,o,!0);return US(r,n,{ticks:a,tickCategoryInterval:o})}function MO(e){var t=e.scale.getTicks(),r=qo(e);return{labels:ut(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function GS(e,t){return Zo(e)[t]||(Zo(e)[t]=[])}function $S(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function US(e,t,r){return e.push({key:t,value:r}),r}function DO(e){var t=Zo(e).autoInterval;return t!=null?t:Zo(e).autoInterval=e.calculateCategoryInterval()}function AO(e){var t=PO(e),r=qo(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,y=0,p=Pc(r({value:l}),t.font,"center","top");d=p.width*1.3,y=p.height*1.3,h=Math.max(h,d,7),v=Math.max(v,y,7)}var g=h/f,m=v/c;isNaN(g)&&(g=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(g,m))),S=Zo(e.model),w=e.getExtent(),b=S.lastAutoInterval,x=S.lastTickCount;return b!=null&&x!=null&&Math.abs(b-_)<=1&&Math.abs(x-o)<=1&&b>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function PO(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function WS(e,t,r){var n=qo(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=zS(e),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==a[0]&&y(a[0]);for(var d=u;d<=a[1];d+=l)y(d);v&&d-l!==a[1]&&y(a[1]);function y(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p})}return s}function YS(e,t,r){var n=e.scale,i=qo(e),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var XS=[0,1],IO=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return TD(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),qS(n,i.count())),by(t,XS,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),qS(n,i.count()));var a=by(t,n,XS,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=xO(this,r),i=n.ticks,a=ut(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return LO(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=ut(n,function(a){return ut(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return wO(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return AO(this)},e}();function qS(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function LO(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;D(t,function(v){v.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(v,d){return v=ae(v),d=ae(d),c?v>d:v<d}}var EO=IO;function RO(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Rl(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function OO(e){var t=[];e.sort(function(y,p){return p.priority-y.priority});var r=new xt(0,0,0,0);function n(y){if(!y.ignore){var p=y.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}y.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,h=!1,v=0;v<t.length;v++){var d=t[v];if(!!r.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new Rl(d.localRect,d.transform)),c||(c=new Rl(s,l)),c.intersect(d.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}var kO=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(zt),BO=kO,Ev=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Je).models[0]},t.type="cartesian2dAxis",t}(zt);ur(Ev,SO);var ZS={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},FO=Tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},ZS),Rv=Tt({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}}},ZS),NO=Tt({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Rv),zO=Ct({scale:!0,logBase:10},Rv),HO={category:FO,value:Rv,time:NO,log:zO},VO={value:1,category:1,time:1,log:1};function KS(e,t,r,n){D(VO,function(i,a){var o=Tt(Tt({},HO[a],!0),n,!0),s=function(l){Z(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=xo(this),v=h?jl(f):{},d=c.getTheme();Tt(f,d.get(a+"Axis")),Tt(f,this.getDefaultOption()),f.type=jS(f),h&&ra(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Dv.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",jS)}function jS(e){return e.type||(e.data?"category":"value")}var GO=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return ut(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xe(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),$O=GO,Ov=["x","y"];function QS(e){return e.type==="interval"||e.type==="time"}var UO=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Ov,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!QS(r)||!QS(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Js([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ie(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return ie(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new xt(i,a,o,s)},t}($O),WO=UO,YO=function(e){Z(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(EO),XO=YO;function kv(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(y,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Fa(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function JS(e){return e.get("coordinateSystem")==="cartesian2d"}function tb(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Je).models[0];t[n]=a}),t}var qO=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ov,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model),D(n.x,function(a){NS(a.scale,a.model)}),D(n.y,function(a){NS(a.scale,a.model)});var i={};D(n.x,function(a){eb(n,"y",a,i)}),D(n.y,function(a){eb(n,"x",a,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=wo(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=yO(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),ZO(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}st(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Je).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Je).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,At(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(f,c){D(s.y,function(h,v){var d="x"+c+"y"+v,y=new WO(d);y.master=i,y.model=t,i._coordsMap[d]=y,i._coordsList.push(y),y.addAxis(f),y.addAxis(h)})});function u(f){return function(c,h){if(!!Bv(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new XO(f,pO(c),[0,0],c.get("type"),v),y=d.type==="category";d.onBand=y&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=h,a._axesList.push(d),s[f][h]=d,l[f]++}}}},e.prototype._updateScale=function(t,r){D(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(JS(i)){var a=tb(i),o=a.xAxisModel,s=a.yAxisModel;if(!Bv(o,r)||!Bv(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");u.type==="list"&&(n(u,f),n(u,c))}},this);function n(i,a){D(_O(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return D(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);At(r,a)<0&&r.push(a),At(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(!!JS(i)){var a=tb(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=Ov,e}();function Bv(e,t){return e.getCoordSysModel()===t}function eb(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)rb(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&rb(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function rb(e){return e&&e.type!=="category"&&e.type!=="time"&&gO(e)}function ZO(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var KO=qO,vn=Math.PI,vi=function(){function e(t,r){this.group=new $t,this.opt=r,this.axisModel=t,Ct(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new $t({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!nb[t]},e.prototype.add=function(t){nb[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=wy(r-t),a,o;return nl(i)?(o=n>0?"top":"bottom",a="center"):nl(i-vn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<vn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),nb={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0];o&&(ie(s,s,o),ie(l,l,o));var u=K({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new nn({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",r.add(f);var c=t.get(["axisLine","symbol"]);if(c!=null){var h=t.get(["axisLine","symbolSize"]);typeof c=="string"&&(c=[c,c]),(typeof h=="string"||typeof h=="number")&&(h=[h,h]);var v=i1(t.get(["axisLine","symbolOffset"])||0,h),d=h[0],y=h[1];D([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(p,g){if(c[g]!=="none"&&c[g]!=null){var m=ua(c[g],-d/2,-y/2,d,y,u.stroke,!0),_=p.r+p.offset;m.attr({rotation:p.rotate,x:s[0]+_*Math.cos(e.rotation),y:s[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),r.add(m)}})}}},axisTickLabel:function(e,t,r,n){var i=JO(r,n,t,e),a=ek(r,n,t,e);if(QO(t,a,i),tk(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=RO(ut(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));OO(o)}},axisName:function(e,t,r,n){var i=Fa(e.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,ab(a)?e.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*vn/180);var d;ab(a)?h=vi.innerTextLayout(e.rotation,v!=null?v:e.rotation,o):(h=jO(e.rotation,a,v||0,u),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var y=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,m=Fa(e.nameTruncateMaxWidth,p.maxWidth,d),_=new le({x:c[0],y:c[1],rotation:h.rotation,silent:vi.isLabelSilent(t),style:on(s,{text:i,font:y,overflow:"truncate",width:m,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(xh({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=vi.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,kt(_).eventData=S}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function jO(e,t,r,n){var i=wy(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return nl(i-vn/2)?(o=l?"bottom":"top",a="center"):nl(i-vn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<vn*1.5&&i>vn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function QO(e,t,r){if(!zS(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(Ye(a),Ye(u)):ib(a,o)&&(n?(Ye(o),Ye(f)):(Ye(a),Ye(u))),i===!1?(Ye(s),Ye(c)):ib(l,s)&&(i?(Ye(l),Ye(h)):(Ye(s),Ye(c)))}}function Ye(e){e&&(e.ignore=!0)}function ib(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Ks([]);return Qs(i,i,-e.rotation),r.applyTransform(Ar([],i,e.getLocalTransform())),n.applyTransform(Ar([],i,t.getLocalTransform())),r.intersect(n)}}function ab(e){return e==="middle"||e==="center"}function ob(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(ie(o,o,t),ie(s,s,t));var f=new nn({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});f.anid=i+"_"+e[l].tickValue,a.push(f)}return a}function JO(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=ob(u,t.transform,l,Ct(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}}function tk(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(!!o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Ct(s.getLineStyle(),Ct(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=ob(o[f],t.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)e.add(c[h])}}function ek(e,t,r,n){var i=r.axis,a=Fa(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Fa(n.labelRotate,o.get("rotate"))||0)*vn/180,f=vi.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],v=vi.isLabelSilent(r),d=r.get("triggerEvent");return D(l,function(y,p){var g=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(y.tickValue):y.tickValue,m=y.formattedLabel,_=y.rawLabel,S=o;if(c&&c[g]){var w=c[g];st(w)&&w.textStyle&&(S=new ee(w.textStyle,o,r.ecModel))}var b=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(g),C=new le({x,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(y.level||0),style:on(S,{text:m,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:typeof b=="function"?b(i.type==="category"?_:i.type==="value"?g+"":g,p):b})});if(C.anid="label_"+g,d){var M=vi.makeAxisEventDataBase(r);M.targetType="axisLabel",M.value=_,kt(C).eventData=M}t.add(C),C.updateTransform(),h.push(C),e.add(C),C.decomposeTransform()}),h}}var sb=vi;function rk(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return nk(r,e,t),r.seriesInvolved&&ak(r,e),r}function nk(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ko(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(D(s.getAxes(),Zt(y,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&D(d.baseAxes,Zt(y,v?"cross":!0,h)),v&&D(d.otherAxes,Zt(y,"cross",!1))}function y(p,g,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!p&&!zv(_))){g==null&&(g=_.get("triggerTooltip")),_=p?ik(m,c,i,t,p,g):_;var w=_.get("snap"),b=Ko(m.model),x=g||w||m.type==="category",C=e.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:g,involveSeries:x,snap:w,useHandle:zv(_),seriesModels:[],linkGroup:null};u[b]=C,e.seriesInvolved=e.seriesInvolved||x;var M=ok(a,m);if(M!=null){var L=o[M]||(o[M]={axesInfo:{}});L.axesInfo[b]=C,L.mapper=a[M].mapper,C.linkGroup=L}}}})}function ik(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(h){l[h]=yt(o.get(h))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&Ct(u,c.textStyle)}}return e.model.getModel("axisPointer",new ee(l,r,n))}function ak(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||D(e.coordSysAxesInfo[Ko(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function ok(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Fv(a[n+"AxisId"],r.id)||Fv(a[n+"AxisIndex"],r.componentIndex)||Fv(a[n+"AxisName"],r.name))return i}}function Fv(e,t){return e==="all"||et(e)&&At(e,t)>=0||e===t}function sk(e){var t=Nv(e);if(!!t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=zv(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Nv(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ko(e)]}function lk(e){var t=Nv(e);return t&&t.axisPointerModel}function zv(e){return!!e.get(["handle","show"])}function Ko(e){return e.type+"||"+e.id}var lb={},uk=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&sk(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(!!a){var o=lk(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){lb[r]=n},t.getAxisPointerClass=function(r){return r&&lb[r]},t.type="axis",t}(Nr),ub=uk,Hv=Kt();function fk(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(!!u.length){var f=s.length,c=Hv(e).splitAreaColors,h=ft(),v=0;if(c)for(var d=0;d<u.length;d++){var y=c.get(u[d].tickValue);if(y!=null){v=(y+(f-1)*d)%f;break}}var p=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=et(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,w=void 0,b=void 0;i.isHorizontal()?(_=p,S=l.y,w=m-_,b=l.height,p=_+w):(_=l.x,S=p,w=l.width,b=m-S,p=S+b);var x=u[d-1].tickValue;x!=null&&h.set(x,v),t.add(new Yt({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:w,height:b},style:Ct({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}Hv(e).splitAreaColors=h}}}function ck(e){Hv(e).splitAreaColors=null}var hk=["axisLine","axisTickLabel","axisName"],vk=["splitArea","splitLine","minorSplitLine"],fb=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new $t,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=kv(s,r),u=new sb(r,K({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++){var d=h[v].getOtherAxis(r.axis).type;if(d==="value"||d==="log")return!0}return!1}},l));D(hk,u.add,u),this._axisGroup.add(u.getGroup()),D(vk,function(c){r.get([c,"show"])&&dk[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||d0(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){ck(this)},t.type="cartesianAxis",t}(ub),dk={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=et(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:a}),h=[],v=[],d=o.getLineStyle(),y=0;y<c.length;y++){var p=i.toGlobalCoord(c[y].coord);u?(h[0]=p,h[1]=l.y,v[0]=p,v[1]=l.y+l.height):(h[0]=l.x,h[1]=p,v[0]=l.x+l.width,v[1]=p);var g=f++%s.length,m=c[y].tickValue;t.add(new nn({anid:m!=null?"line_"+c[y].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:Ct({stroke:s[g]},d),silent:!0}))}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(!!u.length)for(var f=[],c=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var y=i.toGlobalCoord(u[v][d].coord);l?(f[0]=y,f[1]=s.y,c[0]=y,c[1]=s.y+s.height):(f[0]=s.x,f[1]=y,c[0]=s.x+s.width,c[1]=y),t.add(new nn({anid:"minor_line_"+u[v][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0}))}},splitArea:function(e,t,r,n){fk(e,t,r,n)}},cb=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(fb),pk=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=cb.type,r}return t.type="yAxis",t}(fb),gk=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Yt({shape:r.coordinateSystem.getRect(),style:Ct({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Nr),hb={offset:0};function yk(e){e.registerComponentView(gk),e.registerComponentModel(BO),e.registerCoordinateSystem("cartesian2d",KO),KS(e,"x",Ev,hb),KS(e,"y",Ev,hb),e.registerComponentView(cb),e.registerComponentView(pk),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var di=Kt(),vb=yt,Vv=Gt,mk=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new $t,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=Zt(db,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}yb(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Nv(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=di(t).pointerEl=new vI[a.type](vb(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=di(t).labelEl=new le(vb(r.label));t.add(a),gb(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=di(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=di(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),gb(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=bh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Bg(u.event)},onmousedown:Vv(this._onHandleDragMove,this,0,0),drift:Vv(this._onHandleDragMove,this),ondragend:Vv(this._onHandleDragEnd,this)}),n.add(i)),yb(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");et(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,cE(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){db(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Gv(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(Gv(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Gv(i)),di(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function db(e,t,r,n){pb(di(r).lastProp,n)||(di(r).lastProp=n,t?an(r,n,e):(r.stopAnimation(),r.attr(n)))}function pb(e,t){if(st(e)&&st(t)){var r=!0;return D(t,function(n,i){r=r&&pb(e[i],n)}),!!r}else return e===t}function gb(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Gv(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function yb(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}var _k=mk;function Sk(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function bk(e,t,r,n,i){var a=r.get("value"),o=mb(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Xl(s.get("padding")||0),u=s.getFont(),f=Pc(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var y=i.verticalAlign;y==="bottom"&&(c[1]-=v),y==="middle"&&(c[1]-=v/2),wk(c,h,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:on(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function wk(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function mb(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Iv(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),wt(o)?a=o.replace("{value}",a):Xt(o)&&(a=o(s))}return a}function _b(e,t,r){var n=$i();return Qs(n,n,r.rotation),js(n,n,r.position),Sh([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function xk(e,t,r,n,i,a){var o=sb.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),bk(t,n,i,a,{position:_b(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Tk(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Ck(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var Mk=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=Sb(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Sk(a),v=Dk[u](s,c,f);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=kv(l.model,i);xk(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=kv(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=_b(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Sb(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(_k);function Sb(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var Dk={line:function(e,t,r){var n=Tk([t,r[0]],[t,r[1]],bb(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:Ck([t-n/2,r[0]],[n,i],bb(e))}}};function bb(e){return e.dim==="x"?0:1}var Ak=Mk,Pk=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!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}(zt),Ik=Pk,Hr=Kt(),Lk=D;function wb(e,t,r){if(!ht.node){var n=t.getZr();Hr(n).records||(Hr(n).records={}),Ek(n,t);var i=Hr(n).records[e]||(Hr(n).records[e]={});i.handler=r}}function Ek(e,t){if(Hr(e).initialized)return;Hr(e).initialized=!0,r("click",Zt(xb,"click")),r("mousemove",Zt(xb,"mousemove")),r("globalout",Ok);function r(n,i){e.on(n,function(a){var o=kk(t);Lk(Hr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),Rk(o.pendings,t)})}}function Rk(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Ok(e,t,r){e.handler("leave",null,r)}function xb(e,t,r,n){t.handler(e,r,n)}function kk(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function $v(e,t){if(!ht.node){var r=t.getZr(),n=(Hr(r).records||{})[e];n&&(Hr(r).records[e]=null)}}var Bk=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";wb("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){$v("axisPointer",n)},t.prototype.dispose=function(r,n){$v("axisPointer",n)},t.type="axisPointer",t}(Nr),Fk=Bk;function Tb(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Vn(a,e);if(o==null||o<0||et(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),y=[];y[v]=a.get(d,o),y[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(y)||[]}else r=l.dataToPoint(a.getValues(ut(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var Cb=Kt();function Nk(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Gt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Pu(i)&&(i=Tb({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Pu(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Pu(i),h={},v={},d={list:[],map:{}},y={showPointer:Zt(Hk,v),showTooltip:Zt(Vk,d)};D(s.coordSysMap,function(g,m){var _=l||g.containPoint(i);D(s.coordSysAxesInfo[m],function(S,w){var b=S.axis,x=Wk(u,S);if(!c&&_&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&Mb(S,C,y,!1,h)}})});var p={};return D(f,function(g,m){var _=g.linkGroup;_&&!v[m]&&D(_.axesInfo,function(S,w){var b=v[w];if(S!==g&&b){var x=b.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,Db(S),Db(g)))),p[g.key]=x}})}),D(p,function(g,m){Mb(f[m],g,y,!0,h)}),Gk(v,f,h),$k(d,i,e,o),Uk(f,o,r),h}}function Mb(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=zk(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&K(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function zk(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,e,r);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=e-c,y=Math.abs(d);y<=o&&((y<o||d>=0&&s<0)&&(o=y,s=d,i=c,a.length=0),D(h,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function Hk(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Vk(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ko(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Gk(e,t,r){var n=r.axesInfo=[];D(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function $k(e,t,r,n){if(Pu(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Uk(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Cb(n)[i]||{},o=Cb(n)[i]={};D(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&D(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];D(a,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Wk(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Db(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Pu(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Ab(e){ub.registerAxisPointerClass("CartesianAxisPointer",Ak),e.registerComponentModel(Ik),e.registerComponentView(Fk),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!et(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=rk(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Nk)}function OF(e){hi(yk),hi(Ab)}function Yk(e,t){var r=Xl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Yt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var Xk=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={zlevel:0,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}(zt),qk=Xk;function Pb(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Ib(e){if(!!ht.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var Lb=Ib(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Zk=Ib(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Eb(e,t){if(!e)return t;t=z0(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function Kk(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var jk=Eb(Zk,"transition"),Uv=Eb(Lb,"transform"),Qk="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ht.transform3dSupported?"will-change:transform;":"");function Jk(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function tB(e,t,r){if(!wt(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=ii(t);var a=Jk(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Uv+":",u;At(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+y.join("")+'"></div>'}function eB(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=ht.transformSupported?","+Uv+n:",left"+n+",top"+n),jk+":"+i}function Rb(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!ht.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ht.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Uv+":"+o+";":[["top",0],["left",0],[Lb,o]]}function rB(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function nB(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=F_(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(eB(i,r)),a&&(ht.canvasSupported?n.push("background-color:"+a):(n.push("background-color:#"+GM(a)),n.push("filter:alpha(opacity=70)"))),D(["width","color","radius"],function(v){var d="border-"+v,y=z0(d),p=e.get(y);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(rB(f)),c!=null&&n.push("padding:"+Xl(c).join("px ")+"px"),n.join(";")+";"}function Ob(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&gM(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var iB=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,ht.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;Ob(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Oe(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=Kk(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=Qk+nB(t,!this._firstShow,this._longHide)+Rb(a[0],a[1],!0)+("border-color:"+ii(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(wt(a)&&n.get("trigger")==="item"&&!Pb(n)&&(s=tB(n,i,a)),wt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",et(t)||(t=[t]);for(var l=0;l<t.length;l++)Ns(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(Ob(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Rb(n[0],n[1]);D(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",ht.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Gt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}(),aB=iB,oB=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),Bb(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){st(t)&&ve(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new le({style:{rich:r.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:o.get("textShadowColor"),textShadowBlur:o.get("textShadowBlur")||0,textShadowOffsetX:o.get("textShadowOffsetX")||0,textShadowOffsetY:o.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:F_(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=kb(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;Bb(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=dn(a.borderWidth||0),s=kb(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Gt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function dn(e){return Math.max(0,e)}function kb(e){var t=dn(e.shadowBlur||0),r=dn(e.shadowOffsetX||0),n=dn(e.shadowOffsetY||0);return{left:dn(t-r),right:dn(t+r),top:dn(t-n),bottom:dn(t+n)}}function Bb(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var sB=oB,Wv=Gt,jo=D,Fb=he,lB=new Yt({shape:{x:-1,y:-1,width:2,height:2}}),uB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!ht.node){var i=r.getComponent("tooltip"),a=i.get("renderMode");this._renderMode=GD(a),this._tooltipContent=this._renderMode==="richText"?new sB(n):new aB(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(r,n,i){if(!ht.node){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i,this._alwaysShowContent=r.get("alwaysShowContent");var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._updatePosition=this._renderMode==="html"?ev(Wv(this._doUpdatePosition,this),50):this._doUpdatePosition}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");wb("itemTooltip",this._api,Wv(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api;if(this._lastX!=null&&this._lastY!=null&&r.get("triggerOn")!=="none"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(r,n,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ht.node)){var o=Nb(a,i);this._ticket="";var s=a.dataByCoordSys,l=vB(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=lB;f.x=a.x,f.y=a.y,f.update(),kt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=Tb(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Nb(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),c=Iu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(!!a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Oo(i,function(u){if(kt(u).dataIndex!=null)return s=u,!0;if(kt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Gt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Iu([n.tooltipOption],a),l=this._renderMode,u=[],f=Io("section",{blocks:[],noHeader:!0}),c=[],h=new Kh;jo(r,function(m){jo(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var b=mb(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Io("section",{header:b,noHeader:!En(b),sortBlocks:!0,blocks:[]});f.blocks.push(x),D(_.seriesDataIndices,function(C){var M=i.getSeriesByIndex(C.seriesIndex),L=C.dataIndexInside,I=M.getDataParams(L);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Iv(S.axis,{value:w}),I.axisValueLabel=b,I.marker=h.makeTooltipMarker("item",ii(I.color),l);var P=x_(M.formatTooltip(L,!0,null));P.markupFragment&&x.blocks.push(P.markupFragment),P.markupText&&c.push(P.markupText),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),y=O_(f,h,l,d,i.get("useUTC"),s.get("textStyle"));y&&c.unshift(y);var p=l==="richText"?`
`:"<br/>",g=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=kt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=r.positionDefault,y=Iu([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=y.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(f,c),m=new Kh;g.marker=m.makeTooltipMarker("item",ii(g.color),v);var _=x_(u.formatTooltip(f,!1,c)),S=y.get("order"),w=_.markupFragment?O_(_.markupFragment,m,v,S,a.get("useUTC"),y.get("textStyle")):_.markupText,b="item_"+u.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,w,g,b,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=kt(n),o=a.tooltipConfig,s=o.option||{};if(wt(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,h=Iu(u,this._tooltipModel,c?{position:c}:null),v=h.get("content"),d=Math.random()+"",y=new Kh;this._showOrMove(h,function(){var p=yt(h.get("formatterParams")||{});this._showTooltipContent(h,v,p,d,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent,h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),y=d.color;if(h)if(wt(h)){var p=r.ecModel.get("useUTC"),g=et(i)?i[0]:i,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,m&&(v=Gl(g.axisValue,v,p)),v=V0(v,i,!0)}else if(Xt(h)){var _=Wv(function(S,w){S===this._ticket&&(c.setContent(w,f,r,y,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,r,y,l),c.show(r,y),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||et(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!et(n))return{color:a||n.color||n.borderColor}},t.prototype._doUpdatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Xt(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),et(n))i=Fb(n[0],u),a=Fb(n[1],f);else if(st(n)){var y=n;y.width=c[0],y.height=c[1];var p=wo(y,{width:u,height:f});i=p.x,a=p.y,h=null,v=null}else if(wt(n)&&l){var g=hB(n,d,c,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=fB(i,a,o,u,f,h?null:20,v?null:20);i=g[0],a=g[1]}if(h&&(i-=zb(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=zb(v)?c[1]/2:v==="bottom"?c[1]:0),Pb(r)){var g=cB(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&jo(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&jo(u,function(h,v){var d=c[v]||{},y=h.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&y.length===p.length,o&&jo(y,function(g,m){var _=p[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&D(h.seriesDataIndices,function(g){var m=g.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){ht.node||(this._tooltipContent.dispose(),$v("itemTooltip",n))},t.type="tooltip",t}(Nr);function Iu(e,t,r){var n=t.ecModel,i;r?(i=new ee(r,n,n),i=new ee(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof ee&&(o=o.get("tooltip",!0)),wt(o)&&(o={formatter:o}),o&&(i=new ee(o,i,n)))}return i}function Nb(e,t){return e.dispatchAction||Gt(t.dispatchAction,t)}function fB(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function cB(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function hB(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function zb(e){return e==="center"||e==="middle"}function vB(e,t,r){var n=Nc(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ro(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=kt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var dB=uB;function kF(e){hi(Ab),e.registerComponentModel(qk),e.registerComponentView(dB),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}var pB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={zlevel:0,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}(zt),gB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Dt(r.get("textBaseline"),r.get("textVerticalAlign")),f=new le({style:on(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),v=new le({style:on(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),y=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!y&&!p,d&&f.on("click",function(){G0(d,"_"+r.get("target"))}),y&&v.on("click",function(){G0(y,"_"+r.get("subtarget"))}),kt(f).eventData=kt(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(v);var g=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=g.width,m.height=g.height;var _=wo(m,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),g=a.getBoundingRect();var w=_.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var x=new Yt({shape:{x:g.x-w[3],y:g.y-w[0],width:g.width+w[1]+w[3],height:g.height+w[0]+w[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(Nr);function BF(e){e.registerComponentModel(pB),e.registerComponentView(gB)}function Hb(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=oa(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(oa(e,t,r[o]));return a.join(" ")}}function yB(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!et(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var mB=function(e){Z(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=ua(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=_B,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Tl(this.childAt(0))},t.prototype.downplay=function(){Cl(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r){var n=this.childAt(0);n.draggable=r,n.cursor=r?"move":n.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):an(h,v,s,n),jP(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,po(h,v,s,n)}}f&&this.childAt(0).stopAnimation("remove"),this._seriesModel=s},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,v,d,y,p;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,d=a.labelStatesModels,y=a.hoverScale,p=a.cursorStyle),!a||r.hasItemOption){var g=a&&a.itemModel?a.itemModel:r.getItemModel(n),m=g.getModel("emphasis");u=m.getModel("itemStyle").getItemStyle(),c=g.getModel(["select","itemStyle"]).getItemStyle(),f=g.getModel(["blur","itemStyle"]).getItemStyle(),h=m.get("focus"),v=m.get("blurScope"),d=Ch(g),y=m.getShallow("scale"),p=g.getShallow("cursor")}var _=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var S=i1(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),p&&s.attr("cursor",p);var w=r.getItemVisual(n,"style"),b=w.fill;if(s instanceof Rr){var x=s.style;s.useStyle(K({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var L=o&&o.useNameLabel;Th(s,d,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:b,defaultOpacity:w.opacity});function I(B){return L?r.getName(B):Hb(r,B)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");if(P.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f,y){var E=Math.max(1.1,3/this._sizeY);P.scaleX=this._sizeX*E,P.scaleY=this._sizeY*E}this.setSymbolScale(1),co(this,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n){var i=this.childAt(0),a=this._seriesModel,o=kt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Ol(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ol(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return XE(r.getItemVisual(n,"symbolSize"))},t}($t);function _B(e,t){this.parent.drift(e,t)}var Yv=mB;function Xv(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function Vb(e){return e!=null&&!st(e)&&(e={isIgnore:e}),e||{}}function Gb(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),hoverScale:r.get("scale"),labelStatesModels:Ch(t),cursorStyle:t.get("cursor")}}var SB=function(){function e(t){this.group=new $t,this._SymbolCtor=t||Yv}return e.prototype.updateData=function(t,r){r=Vb(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Gb(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};a||n.removeAll(),t.diff(a).add(function(c){var h=f(c);if(Xv(t,h,c,r)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!Xv(t,d,c,r)){n.remove(v);return}var y=t.getItemVisual(c,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==y)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):an(v,g,i)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)})}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.isPersistent=function(){return!0},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Gb(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){n=Vb(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(Xv(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s)}}},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)})}):r.removeAll()},e}(),bB=SB;function wB(e,t){return e.type===t}var xB=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},TB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),et(n)&&D(n,function(a,o){wt(a)&&(a={type:a}),n[o]=Tt(a,xB(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(s){var l=s.name;i.push(l);var u;if(s.legendVisualProvider){var f=s.legendVisualProvider,c=f.getAllNames();r.isSeriesFiltered(s)||(i=i.concat(c)),c.length?n=n.concat(c):u=!0}else u=!0;u&&Bc(s)&&n.push(s.name)}),this._availableNames=i;var a=this.get("data")||n,o=ut(a,function(s){return(typeof s=="string"||typeof s=="number")&&(s={name:s}),new ee(s,this,this.ecModel)},this);this._data=o},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;D(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;D(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;D(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&At(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={zlevel:0,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}(zt),qv=TB,da=Zt,Zv=D,Lu=$t,CB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Lu),this.group.add(this._selectorGroup=new Lu),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),v=wo(f,c,h),d=this.layoutInner(r,o,v,a,l,u),y=wo(Ct({width:d.width,height:d.height},f),c,h);this.group.x=y.x-d.x,this.group.y=y.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Yk(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=ft(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Zv(n.getData(),function(v,d){var y=v.get("name");if(!this.newlineDisabled&&(y===""||y===`
`)){var p=new Lu;p.newline=!0,u.add(p);return}var g=i.getSeriesByName(y)[0];if(!f.get(y))if(g){var m=g.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(g,y,d,v,n,r,_,w,S,c);b.on("click",da($b,y,null,a,h)).on("mouseover",da(Kv,g.name,null,a,h)).on("mouseout",da(jv,g.name,null,a,h)),f.set(y,!0)}else i.eachRawSeries(function(x){if(!f.get(y)&&x.legendVisualProvider){var C=x.legendVisualProvider;if(!C.containName(y))return;var M=C.indexOfName(y),L=C.getItemVisual(M,"style"),I=C.getItemVisual(M,"legendIcon"),P=hr(L.fill);P&&P[3]===0&&(P[3]=.2,L.fill=Ua(P,"rgba"));var E=this._createItem(x,y,d,v,n,r,{},L,I,c);E.on("click",da($b,null,y,a,h)).on("mouseover",da(Kv,null,y,a,h)).on("mouseout",da(jv,null,y,a,h)),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Zv(r,function(u){var f=u.type,c=new le({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Th(c,{normal:h,emphasis:v},{defaultText:u.title}),co(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c){var h=r.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),y=o.isSelected(n),p=a.get("symbolRotate"),g=a.get("symbolKeepAspect"),m=a.get("icon");f=m||f||"roundRect";var _=MB(f,a,l,u,h,y),S=new Lu,w=a.getModel("textStyle");if(typeof r.getLegendIcon=="function"&&(!m||m==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:p,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:g}));else{var b=m==="inherit"&&r.getData().getVisual("symbol")?p==="inherit"?r.getData().getVisual("symbolRotate"):p:0;S.add(DB({itemWidth:v,itemHeight:d,icon:f,iconRotate:b,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:g}))}var x=s==="left"?v+5:-5,C=s,M=o.get("formatter"),L=n;typeof M=="string"&&M?L=M.replace("{name}",n!=null?n:""):typeof M=="function"&&(L=M(n));var I=a.get("inactiveColor");S.add(new le({style:on(w,{text:L,x,y:d/2,fill:y?w.getTextColor():I,align:C,verticalAlign:"middle"})}));var P=new Yt({shape:S.getBoundingRect(),invisible:!0}),E=a.getModel("tooltip");return E.get("show")&&xh({el:P,componentModel:o,itemName:n,itemTooltipOption:E.option}),S.add(P),S.eachChild(function(B){B.silent=!0}),P.silent=!c,this.getContentGroup().add(S),co(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();bo(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){bo("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),y=r.getOrient().index,p=y===0?"width":"height",g=y===0?"height":"width",m=y===0?"y":"x";s==="end"?v[y]+=f[p]+d:c[y]+=h[p]+d,v[1-y]+=f[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[p]=f[p]+d+h[p],_[g]=Math.max(f[g],h[g]),_[m]=Math.min(0,h[m]+v[1-y]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Nr);function MB(e,t,r,n,i,a){function o(d,y){d.lineWidth==="auto"&&(d.lineWidth=y.lineWidth>0?2:0),Zv(d,function(p,g){d[g]==="inherit"&&(d[g]=y[g])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=e.lastIndexOf("empty",0)===0?"fill":"stroke";l.decal=n.decal,l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:r).opacity),o(l,n);var f=t.getModel("lineStyle"),c=f.getLineStyle();if(o(c,r),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var h=t.get("inactiveBorderWidth"),v=l[u];l.lineWidth=h==="auto"?n.lineWidth>0&&v?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),c.stroke=f.get("inactiveColor"),c.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:c}}function DB(e){var t=e.icon||"roundRect",r=ua(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function $b(e,t,r,n){jv(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e!=null?e:t}),Kv(e,t,r,n)}function Ub(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function Kv(e,t,r,n){Ub(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function jv(e,t,r,n){Ub(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}var Wb=CB;function AB(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Qo(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();D(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function PB(e){e.registerAction("legendToggleSelect","legendselectchanged",Zt(Qo,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Zt(Qo,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Zt(Qo,"inverseSelect")),e.registerAction("legendSelect","legendselected",Zt(Qo,"select")),e.registerAction("legendUnSelect","legendunselected",Zt(Qo,"unSelect"))}function Yb(e){e.registerComponentModel(qv),e.registerComponentView(Wb),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,AB),e.registerSubTypeDefaulter("legend",function(){return"plain"}),PB(e)}var IB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=jl(r);e.prototype.init.call(this,r,n,i),Xb(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Xb(this,this.option,r)},t.type="legend.scroll",t.defaultOption=AI(qv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(qv);function Xb(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,ra(t,r,{type:"box",ignoreSize:!!i})}var LB=IB,qb=$t,Qv=["width","height"],Jv=["x","y"],EB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new qb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new qb)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=et(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new le({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(y,p){var g=y+"DataIndex",m=bh(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:Gt(u._pageGo,u,g,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=y,f.add(m)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Qv[u],c=Jv[u],h=Qv[1-u],v=Jv[1-u];o&&bo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),y=l.getBoundingRect(),p=[-y.x,-y.y],g=yt(i);o&&(g[f]=i[f]-y[f]-d);var m=this._layoutContentAndController(r,a,g,u,f,h,v,c);if(o){if(s==="end")p[u]+=m[f]+d;else{var _=y[f]+d;p[u]-=_,m[c]-=_}m[f]+=y[f]+d,p[1-u]+=m[v]+m[h]/2-y[h]/2,m[h]=Math.max(m[h],y[h]),m[v]=Math.min(m[v],y[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;bo(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),bo("horizontal",h,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),y=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[u]);var g=[0,0],m=[-d.x,-d.y],_=Dt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(y){var S=r.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:g[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),c.setPosition(g),h.setPosition(m);var w={x:0,y:0};if(w[o]=y?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+m[1-a]),c.__rectSize=i[o],y){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=w[s],c.setClipPath(new Yt({shape:b})),c.__rectSize=b[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&an(f,{x:x.contentPosition[0],y:x.contentPosition[1]},y?r:null),this._updatePageInfoView(r,x),w},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",wt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Qv[o],l=Jv[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var y=S(c);d.contentPosition[o]=-y.s;for(var p=u+1,g=y,m=y,_=null;p<=h;++p)_=S(f[p]),(!_&&m.e>g.s+a||_&&!w(_,g.s))&&(m.i>g.i?g=m:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=_;for(var p=u-1,g=y,m=y,_=null;p>=-1;--p)_=S(f[p]),(!_||!w(m,_.s))&&g.i<m.i&&(m=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function S(b){if(b){var x=b.getBoundingRect(),C=x[l]+b[l];return{s:C,e:C+x[s],i:b.__legendDataIndex}}}function w(b,x){return b.e>=x&&b.s<=x+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(Wb),RB=EB;function OB(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function kB(e){hi(Yb),e.registerComponentModel(LB),e.registerComponentView(RB),OB(e)}function FF(e){hi(Yb),hi(kB)}var BB=function(e){Z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return FR(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new $t,i=ua("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=ua(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={zlevel:0,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,lineStyle:{width:"bolder"}},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}(Lo),FB=BB;function Zb(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=NB(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=ut(e.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Yo(t,c[0])&&(h=!0,c[0]=v),Yo(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function NB(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Kb(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}var jb=typeof Float32Array!="undefined",zB=jb?Float32Array:Array;function pa(e){return et(e)?jb?new Float32Array(e):e:new zB(e)}function HB(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function VB(e,t,r,n,i,a,o,s){for(var l=HB(e,t),u=[],f=[],c=[],h=[],v=[],d=[],y=[],p=Zb(i,t,o),g=e.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],w=!0,b=void 0,x=void 0;switch(S.cmd){case"=":b=S.idx*2,x=S.idx1*2;var C=g[b],M=g[b+1],L=m[x],I=m[x+1];(isNaN(C)||isNaN(M))&&(C=L,M=I),u.push(C,M),f.push(L,I),c.push(r[b],r[b+1]),h.push(n[x],n[x+1]),y.push(t.getRawIndex(S.idx1));break;case"+":var P=S.idx,E=p.dataDimsForPoint,B=i.dataToPoint([t.get(E[0],P),t.get(E[1],P)]);x=P*2,u.push(B[0],B[1]),f.push(m[x],m[x+1]);var k=Kb(p,i,t,P);c.push(k[0],k[1]),h.push(n[x],n[x+1]),y.push(t.getRawIndex(P));break;case"-":w=!1}w&&(v.push(S),d.push(d.length))}d.sort(function(O,j){return y[O]-y[j]});for(var Y=u.length,q=pa(Y),U=pa(Y),Q=pa(Y),V=pa(Y),it=[],_=0;_<d.length;_++){var Ot=d[_],pt=_*2,dt=Ot*2;q[pt]=u[dt],q[pt+1]=u[dt+1],U[pt]=f[dt],U[pt+1]=f[dt+1],Q[pt]=c[dt],Q[pt+1]=c[dt+1],V[pt]=h[dt],V[pt+1]=h[dt+1],it[_]=v[Ot]}return{current:q,next:U,stackedOnCurrent:Q,stackedOnNext:V,status:it}}var pn=Math.min,gn=Math.max;function pi(e,t){return isNaN(e)||isNaN(t)}function td(e,t,r,n,i,a,o,s,l){for(var u,f,c,h,v,d,y=r,p=0;p<n;p++){var g=t[y*2],m=t[y*2+1];if(y>=i||y<0)break;if(pi(g,m)){if(l){y+=a;continue}break}if(y===r)e[a>0?"moveTo":"lineTo"](g,m),c=g,h=m;else{var _=g-u,S=m-f;if(_*_+S*S<.5){y+=a;continue}if(o>0){for(var w=y+a,b=t[w*2],x=t[w*2+1];b===g&&x===m&&p<n;)p++,w+=a,y+=a,b=t[w*2],x=t[w*2+1],g=t[y*2],m=t[y*2+1],_=g-u,S=m-f;var C=p+1;if(l)for(;pi(b,x)&&C<n;)C++,w+=a,b=t[w*2],x=t[w*2+1];var M=.5,L=0,I=0,P=void 0,E=void 0;if(C>=n||pi(b,x))v=g,d=m;else{L=b-u,I=x-f;var B=g-u,k=b-g,Y=m-f,q=x-m,U=void 0,Q=void 0;s==="x"?(U=Math.abs(B),Q=Math.abs(k),v=g-U*o,d=m,P=g+U*o,E=m):s==="y"?(U=Math.abs(Y),Q=Math.abs(q),v=g,d=m-U*o,P=g,E=m+U*o):(U=Math.sqrt(B*B+Y*Y),Q=Math.sqrt(k*k+q*q),M=Q/(Q+U),v=g-L*o*(1-M),d=m-I*o*(1-M),P=g+L*o*M,E=m+I*o*M,P=pn(P,gn(b,g)),E=pn(E,gn(x,m)),P=gn(P,pn(b,g)),E=gn(E,pn(x,m)),L=P-g,I=E-m,v=g-L*U/Q,d=m-I*U/Q,v=pn(v,gn(u,g)),d=pn(d,gn(f,m)),v=gn(v,pn(u,g)),d=gn(d,pn(f,m)),L=g-v,I=m-d,P=g+L*Q/U,E=m+I*Q/U)}e.bezierCurveTo(c,h,v,d,g,m),c=P,h=E}else e.lineTo(g,m)}u=g,f=m,y+=a}return p}var Qb=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),GB=function(e){Z(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Qb},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&pi(i[o*2-2],i[o*2-1]);o--);for(;a<o&&pi(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=td(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Zn.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var h=a[c++],v=void 0,d=void 0,y=void 0,p=void 0,g=void 0,m=void 0,_=void 0;switch(h){case o.M:s=a[c++],l=a[c++];break;case o.L:if(v=a[c++],d=a[c++],_=u?(r-s)/(v-s):(r-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[r,S]:[S,r]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],y=a[c++],p=a[c++],g=a[c++],m=a[c++];var w=u?Yc(s,v,y,g,r,f):Yc(l,d,p,m,r,f);if(w>0)for(var b=0;b<w;b++){var x=f[b];if(x<=1&&x>=0){var S=u?Nt(l,d,p,m,x):Nt(s,v,y,g,x);return u?[r,S]:[S,r]}}s=g,l=m;break}}},t}(Rt),$B=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Qb),UB=function(e){Z(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new $B},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&pi(i[s*2-2],i[s*2-1]);s--);for(;o<s&&pi(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=td(r,i,o,s,s,1,n.smooth,l,n.connectNulls);td(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(Rt);function WB(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new Yt({shape:{x:o,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var y=typeof i=="function"?function(p){i(p,c)}:null;po(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,y)}return c}function YB(e,t,r){var n=e.getArea(),i=ae(n.r0,1),a=ae(n.r,1),o=new hh({shape:{cx:ae(e.cx,1),cy:ae(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,po(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function Jb(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function tw(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function ew(e,t){var r=tw(e),n=r[0],i=r[1],a=tw(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function rw(e){return typeof e=="number"?e:e?.5:0}function XB(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=pa(n*2),a=0;a<n;a++){var o=Kb(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function yn(e,t,r){for(var n=t.getBaseAxis(),i=n.dim==="x"||n.dim==="radius"?0:1,a=[],o=0,s=[],l=[],u=[];o<e.length-2;o+=2)switch(u[0]=e[o+2],u[1]=e[o+3],l[0]=e[o],l[1]=e[o+1],a.push(l[0],l[1]),r){case"end":s[i]=u[i],s[1-i]=l[1-i],a.push(s[0],s[1]);break;case"middle":var f=(l[i]+u[i])/2,c=[];s[i]=c[i]=f,s[1-i]=l[1-i],c[1-i]=u[1-i],a.push(s[0],s[1]),a.push(c[0],c[1]);break;default:s[i]=l[i],s[1-i]=u[1-i],a.push(s[0],s[1])}return a.push(e[o++],e[o++]),a}function qB(e,t){var r=[],n=e.length,i,a;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),y=$M(d,[f.color,c.color]);return{coord:h,color:y}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function ZB(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!!a){var l=t.getAxis(i),u=ut(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=qB(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,y=h[0].coord-d,p=h[v-1].coord+d,g=p-y;if(g<.001)return"transparent";D(h,function(_){_.offset=(_.coord-y)/g}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new gh(0,0,0,0,h,!0);return m[i]=y,m[i+"2"]=p,m}}}function KB(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(!!a&&!(i&&jB(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function jB(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Yv.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function QB(e,t){return isNaN(e)||isNaN(t)}function JB(e){for(var t=e.length/2;t>0&&QB(e[t*2-2],e[t*2-1]);t--);return t-1}function nw(e,t){return[e[t*2],e[t*2+1]]}function tF(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function iw(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<_r.length;t++)if(e.get([_r[t],"endLabel","show"]))return!0;return!1}function ed(e,t,r,n){if(wB(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=iw(n)?function(v,d){e._endLabelOnDuring(v,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=WB(t,r,n,function(){var v=e._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return YB(t,r,n)}function eF(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var rF=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new $t,n=new bB;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),f=r.getModel("areaStyle"),c=l.getLayout("points")||[],h=o.type==="polar",v=this._coordSys,d=this._symbolDraw,y=this._polyline,p=this._polygon,g=this._lineGroup,m=r.get("animation"),_=!f.isEmpty(),S=f.get("origin"),w=Zb(o,l,S),b=_&&XB(o,l,w),x=r.get("showSymbol"),C=x&&!h&&KB(r,l,o),M=this._data;M&&M.eachItemGraphicEl(function(dt,O){dt.__temp&&(s.remove(dt),M.setItemGraphicEl(O,null))}),x||d.remove(),s.add(g);var L=h?!1:r.get("step"),I;o&&o.getArea&&r.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var P=ZB(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(y&&v.type===o.type&&L===this._step))x&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(dt){return[c[dt*2],c[dt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),L&&(c=yn(c,o,L),b&&(b=yn(b,o,L))),y=this._newPolyline(c),_&&(p=this._newPolygon(c,b)),h||this._initOrUpdateEndLabel(r,o,ii(P)),g.setClipPath(ed(this,o,!0,r));else{_&&!p?p=this._newPolygon(c,b):p&&!_&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,ii(P));var E=g.getClipPath();if(E){var B=ed(this,o,!1,r);po(E,{shape:B.shape},r)}else g.setClipPath(ed(this,o,!0,r));x&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(dt){return[c[dt*2],c[dt*2+1]]}}),(!Jb(this._stackedOnPoints,b)||!Jb(this._points,c))&&(m?this._doUpdateAnimation(l,b,o,i,L,S):(L&&(c=yn(c,o,L),b&&(b=yn(b,o,L))),y.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:b})))}var k=r.get(["emphasis","focus"]),Y=r.get(["emphasis","blurScope"]);if(y.useStyle(Ct(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),Om(y,r,"lineStyle"),y.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var q=y.getState("emphasis").style;q.lineWidth=+y.style.lineWidth+1}kt(y).seriesIndex=r.seriesIndex,co(y,k,Y);var U=rw(r.get("smooth")),Q=r.get("smoothMonotone"),V=r.get("connectNulls");if(y.setShape({smooth:U,smoothMonotone:Q,connectNulls:V}),p){var it=l.getCalculationInfo("stackedOnSeries"),Ot=0;p.useStyle(Ct(f.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),it&&(Ot=rw(it.get("smooth"))),p.setShape({smooth:U,stackedOnSmooth:Ot,smoothMonotone:Q,connectNulls:V}),Om(p,r,"areaStyle"),kt(p).seriesIndex=r.seriesIndex,co(p,k,Y)}var pt=function(dt){a._changePolyState(dt)};l.eachItemGraphicEl(function(dt){dt&&(dt.onHoverStateChange=pt)}),this._polyline.onHoverStateChange=pt,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=L,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,y),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){kt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Vn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=r.get("zlevel"),v=r.get("z");u=new Yv(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else un.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Vn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else un.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Tm(this._polyline,r),n&&Tm(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new GB({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new UB({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");typeof f=="function"&&(f=f(null));var c=u.get("animationDelay")||0,h=typeof c=="function"?c(null):c;r.eachItemGraphicEl(function(v,d){var y=v;if(y){var p=[v.x,v.y],g=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(p);a?(g=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(g=S.r0,m=S.r,_=w[0])}else{var b=i;a?(g=b.x,m=b.x+b.width,_=v.x):(g=b.y+b.height,m=b.y,_=v.y)}var x=m===g?0:(_-g)/(m-g);l&&(x=1-x);var C=typeof c=="function"?c(d):f*x+h,M=y.getSymbolPath(),L=M.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:C}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(iw(r)){var o=r.getData(),s=this._polyline,l=this._endLabel;l||(l=this._endLabel=new le({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=JB(o.getLayout("points"));u>=0&&(Th(s,Ch(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:u,defaultText:function(f,c,h){return h!=null?yB(o,h):Hb(o,f)},enableTextSetter:!0},eF(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),y=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,_=n.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,w=(g?y:0)*(m?-1:1),b=(g?0:-y)*(m?-1:1),x=g?"x":"y",C=tF(c,S,x),M=C.range,L=M[1]-M[0],I=void 0;if(L>=1){if(L>1&&!v){var P=nw(c,M[0]);u.attr({x:P[0]+w,y:P[1]+b}),o&&(I=h.getRawValue(M[0]))}else{var P=f.getPointOn(S,x);P&&u.attr({x:P[0]+w,y:P[1]+b});var E=h.getRawValue(M[0]),B=h.getRawValue(M[1]);o&&(I=$D(i,d,E,B,C.t))}a.lastFrameIndex=M[0]}else{var k=r===1||a.lastFrameIndex>0?M[0]:0,P=nw(c,k);o&&(I=h.getRawValue(k)),u.attr({x:P[0]+w,y:P[1]+b})}o&&w0(u).setLabelText(I)}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s){var l=this._polyline,u=this._polygon,f=r.hostModel,c=VB(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=c.current,v=c.stackedOnCurrent,d=c.next,y=c.stackedOnNext;if(o&&(h=yn(c.current,i,o),v=yn(c.stackedOnCurrent,i,o),d=yn(c.next,i,o),y=yn(c.stackedOnNext,i,o)),ew(h,d)>3e3||u&&ew(v,y)>3e3){l.stopAnimation(),l.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:y}));return}l.shape.__points=c.current,l.shape.points=h;var p={shape:{points:d}};c.current!==h&&(p.shape.__points=c.next),l.stopAnimation(),an(l,p,f),u&&(u.setShape({points:h,stackedOnPoints:v}),u.stopAnimation(),an(u,{shape:{stackedOnPoints:y}},f),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var g=[],m=c.status,_=0;_<m.length;_++){var S=m[_].cmd;if(S==="="){var w=r.getItemGraphicEl(m[_].idx1);w&&g.push({el:w,ptIdx:_})}}l.animators&&l.animators.length&&l.animators[0].during(function(){u&&u.dirtyShape();for(var b=l.shape.__points,x=0;x<g.length;x++){var C=g[x].el,M=g[x].ptIdx*2;C.x=b[M],C.y=b[M+1],C.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(un),nF=rF;function iF(e,t){return{seriesType:e,plan:Jh(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(!!i){var s=ut(i.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Yo(n,s[0])&&(s[0]=u),Yo(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var y=v.end-v.start,p=o&&pa(y*l),g=[],m=[],_=v.start,S=0;_<v.end;_++){var w=void 0;if(l===1){var b=f.get(c,_);w=i.dataToPoint(b,null,m)}else g[0]=f.get(c,_),g[1]=f.get(h,_),w=i.dataToPoint(g,null,m);o?(p[S++]=w[0],p[S++]=w[1]):d.setItemLayout(_,w.slice())}o&&d.setLayout("points",p)}}}}}}var aF={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},oF=function(e){return Math.round(e.length/2)};function sF(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;typeof a=="string"?d=aF[a]:typeof a=="function"&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,oF))}}}}}function NF(e){e.registerChartView(nF),e.registerSeriesModel(FB),e.registerLayout(iF("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,sF("line"))}function lF(){return!1}function aw(e,t,r){var n=Fs(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var uF=function(e){Z(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Zs,typeof r=="string"?o=aw(r,n,i):st(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(o.onselectstart=lF,s.webkitUserSelect="none",s.userSelect="none",s.webkitTapHighlightColor="rgba(0,0,0,0)",s["-webkit-touch-callout"]="none",s.padding="0",s.margin="0",s.borderWidth="0"),a.domBack=null,a.ctxBack=null,a.painter=n,a.config=null,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=aw("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new xt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new xt(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,w=1/0,b=0,x=0;x<o.length;++x){var C=o[x];if(C.intersect(m)){var M=new xt(0,0,0,0);M.copy(C),M.union(m),o[x]=M,S=!0;break}else if(l){u.copy(m),u.union(C);var L=m.width*m.height,I=C.width*C.height,P=u.width*u.height,E=P-L-I;E<w&&(w=E,b=x)}}if(l&&(o[b].union(m),S=!0),!S){var _=new xt(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=r[c];if(h){var v=h.shouldBePainted(i,a,!0,!0),d=h.__isRendered&&(h.__dirty&Ce||!v)?h.getPrevPaintRect():null;d&&f(d);var y=v&&(h.__dirty&Ce||!h.__isRendered)?h.getPaintRect():null;y&&f(y)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],v=h.shouldBePainted(i,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(p=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var v=this.domBack;function d(y,p,g,m){if(o.clearRect(y,p,g,m),n&&n!=="transparent"){var _=void 0;eM(n)?(_=n.__canvasGradient||nv(o,n,{x:0,y:0,width:g,height:m}),n.__canvasGradient=_):rM(n)&&(_=iv(o,n,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}})),o.save(),o.fillStyle=_||n,o.fillRect(y,p,g,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,y,p,g,m),o.restore())}!i||u?d(0,0,s,l):i.length&&D(i,function(y){d(y.x*c,y.y*c,y.width*c,y.height*c)})},t}(cr),rd=uF,ow=1e5,gi=314159,Eu=.01,fF=.001;function Ru(e){return parseInt(e,10)}function cF(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function hF(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var vF=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=K({},n||{}),this.dpr=n.devicePixelRatio||Zs,this._singleCanvas=a,this.root=t;var o=t.style;o&&(o.webkitTapHighlightColor="transparent",o.webkitUserSelect="none",o.userSelect="none",o["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var v=new rd(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[gi]=v,v.zlevel=gi,s.push(gi),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var u=this._domRoot=hF(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(ow)),a||(a=n.ctx,a.save()),fn(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(ow)},e.prototype.paintOne=function(t,r){m1(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;uc(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(gi).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,h=function(y){var p=a[y],g=p.ctx,m=o&&p.createRepaintRects(t,r,v._width,v._height),_=n?p.__startIndex:p.__drawIndex,S=!n&&p.incremental&&Date.now,w=S&&Date.now(),b=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,b,m);else if(_===p.__startIndex){var x=t[_];(!x.incremental||!x.notClear||n)&&p.clear(!1,b,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var C,M=function(E){var B={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<p.__endIndex;C++){var k=t[C];if(k.__inHover&&(c=!0),i._doPaintEl(k,p,o,E,B,C===p.__endIndex-1),S){var Y=Date.now()-w;if(Y>15)break}}B.prevElClipPaths&&g.restore()};if(m)if(m.length===0)C=p.__endIndex;else for(var L=v.dpr,I=0;I<m.length;++I){var P=m[I];g.save(),g.beginPath(),g.rect(P.x*L,P.y*L,P.width*L,P.height*L),g.clip(),M(P),g.restore()}else g.save(),M(),g.restore();p.__drawIndex=C,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)h(d);return ht.wxa&&D(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:f,needsRefreshHover:c}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(fn(s,t,a,o),t.setPrevPaintRect(l))}else fn(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=gi);var n=this._layers[t];return n||(n=new rd("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Tt(n,this._layerConfig[t],!0):this._layerConfig[t-Eu]&&Tt(n,this._layerConfig[t-Eu],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(n[t]){Fi("ZLevel "+t+" has been used already");return}if(!cF(r)){Fi("Layer of zlevel "+t+" is not valid");return}if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+fF,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Eu:0),this._needsManuallyCompositing),f.__builtin__||Fi("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Ce&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Tt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+Eu){var o=this._layers[a];Tt(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];!i||(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(At(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=this._getSize(0),r=this._getSize(1),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(gi).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[gi].dom;var r=new rd("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];fn(n,f,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(t){var r=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[i]||Ru(l[n])||Ru(s.style[n]))-(Ru(l[a])||0)-(Ru(l[o])||0)|0},e.prototype.pathToImage=function(t,r){r=r||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),a=t.getBoundingRect(),o=t.style,s=o.shadowBlur*r,l=o.shadowOffsetX*r,u=o.shadowOffsetY*r,f=t.hasStroke()?o.lineWidth:0,c=Math.max(f/2,-l+s),h=Math.max(f/2,l+s),v=Math.max(f/2,-u+s),d=Math.max(f/2,u+s),y=a.width+c+h,p=a.height+v+d;n.width=y*r,n.height=p*r,i.scale(r,r),i.clearRect(0,0,y,p),i.dpr=r;var g={x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY};t.x=c-a.x,t.y=v-a.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&fn(i,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new Rr({style:{x:0,y:0,image:n}});return K(t,g),m},e}(),dF=vF;function zF(e){e.registerPainter("canvas",dF)}export{IF as A,wF as B,gF as C,yF as D,MF as E,Le as F,AF as G,mF as H,CF as I,Ux as J,DF as K,TF as L,EF as M,LF as N,PF as O,Fp as T,ce as a,pp as b,SF as c,$d as d,Ze as e,ku as f,xF as g,vp as h,hi as i,ef as j,Wd as k,uf as l,bF as m,Bu as n,fp as o,BF as p,OF as q,_F as r,NF as s,pF as t,wa as u,zF as v,nx as w,kF as x,FF as y,RF as z};