Files
RmEye/Server/templates/js/vendor.ee689f15.js
huoji 1885161d67 增加自定义仪表盘
增加自定义仪表盘
2022-10-11 20:12:06 +08:00

32 lines
1.4 MiB
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(globalThis["webpackChunksyseye"]=globalThis["webpackChunksyseye"]||[]).push([[736],{7518:e=>{e.exports=function(e,t,n){const i=void 0!==e.__vccOpts?e.__vccOpts:e,r=i[t];if(void 0===r)i[t]=n;else for(const o in n)void 0===r[o]&&(r[o]=n[o])}},1959:(e,t,n)=>{"use strict";n.d(t,{Bj:()=>o,Fl:()=>We,IU:()=>ke,Jd:()=>S,PG:()=>Me,SU:()=>Ve,Um:()=>be,WL:()=>qe,X$:()=>T,X3:()=>Te,XI:()=>Ne,Xl:()=>Ae,dq:()=>Re,iH:()=>Ee,j:()=>C,lk:()=>M,qj:()=>_e,qq:()=>x,yT:()=>Ie});var i=n(2323);let r;class o{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&r&&(this.parent=r,this.index=(r.scopes||(r.scopes=[])).push(this)-1)}run(e){if(this.active){const t=r;try{return r=this,e()}finally{r=t}}else 0}on(){r=this}off(){r=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function a(e,t=r){t&&t.active&&t.effects.push(e)}const s=e=>{const t=new Set(e);return t.w=0,t.n=0,t},l=e=>(e.w&f)>0,u=e=>(e.n&f)>0,c=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=f},d=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const r=t[i];l(r)&&!u(r)?r.delete(e):t[n++]=r,r.w&=~f,r.n&=~f}t.length=n}},h=new WeakMap;let p=0,f=1;const g=30;let v;const m=Symbol(""),y=Symbol("");class x{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,a(this,n)}run(){if(!this.active)return this.fn();let e=v,t=b;while(e){if(e===this)return;e=e.parent}try{return this.parent=v,v=this,b=!0,f=1<<++p,p<=g?c(this):_(this),this.fn()}finally{p<=g&&d(this),f=1<<--p,v=this.parent,b=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){v===this?this.deferStop=!0:this.active&&(_(this),this.onStop&&this.onStop(),this.active=!1)}}function _(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let b=!0;const w=[];function S(){w.push(b),b=!1}function M(){const e=w.pop();b=void 0===e||e}function C(e,t,n){if(b&&v){let t=h.get(e);t||h.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=s());const r=void 0;I(i,r)}}function I(e,t){let n=!1;p<=g?u(e)||(e.n|=f,n=!l(e)):n=!e.has(v),n&&(e.add(v),v.deps.push(e))}function T(e,t,n,r,o,a){const l=h.get(e);if(!l)return;let u=[];if("clear"===t)u=[...l.values()];else if("length"===n&&(0,i.kJ)(e))l.forEach(((e,t)=>{("length"===t||t>=r)&&u.push(e)}));else switch(void 0!==n&&u.push(l.get(n)),t){case"add":(0,i.kJ)(e)?(0,i.S0)(n)&&u.push(l.get("length")):(u.push(l.get(m)),(0,i._N)(e)&&u.push(l.get(y)));break;case"delete":(0,i.kJ)(e)||(u.push(l.get(m)),(0,i._N)(e)&&u.push(l.get(y)));break;case"set":(0,i._N)(e)&&u.push(l.get(m));break}if(1===u.length)u[0]&&k(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);k(s(e))}}function k(e,t){const n=(0,i.kJ)(e)?e:[...e];for(const i of n)i.computed&&A(i,t);for(const i of n)i.computed||A(i,t)}function A(e,t){(e!==v||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const D=(0,i.fY)("__proto__,__v_isRef,__isVue"),L=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(i.yk)),P=F(),O=F(!1,!0),R=F(!0),E=N();function N(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ke(this);for(let t=0,r=this.length;t<r;t++)C(n,"get",t+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(ke)):i}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){S();const n=ke(this)[t].apply(this,e);return M(),n}})),e}function F(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?me:ve:t?ge:fe).get(n))return n;const a=(0,i.kJ)(n);if(!e&&a&&(0,i.RI)(E,r))return Reflect.get(E,r,o);const s=Reflect.get(n,r,o);return((0,i.yk)(r)?L.has(r):D(r))?s:(e||C(n,"get",r),t?s:Re(s)?a&&(0,i.S0)(r)?s:s.value:(0,i.Kn)(s)?e?we(s):_e(s):s)}}const B=z(),V=z(!0);function z(e=!1){return function(t,n,r,o){let a=t[n];if(Ce(a)&&Re(a)&&!Re(r))return!1;if(!e&&!Ce(r)&&(Ie(r)||(r=ke(r),a=ke(a)),!(0,i.kJ)(t)&&Re(a)&&!Re(r)))return a.value=r,!0;const s=(0,i.kJ)(t)&&(0,i.S0)(n)?Number(n)<t.length:(0,i.RI)(t,n),l=Reflect.set(t,n,r,o);return t===ke(o)&&(s?(0,i.aU)(r,a)&&T(t,"set",n,r,a):T(t,"add",n,r)),l}}function q(e,t){const n=(0,i.RI)(e,t),r=e[t],o=Reflect.deleteProperty(e,t);return o&&n&&T(e,"delete",t,void 0,r),o}function H(e,t){const n=Reflect.has(e,t);return(0,i.yk)(t)&&L.has(t)||C(e,"has",t),n}function W(e){return C(e,"iterate",(0,i.kJ)(e)?"length":m),Reflect.ownKeys(e)}const G={get:P,set:B,deleteProperty:q,has:H,ownKeys:W},U={get:R,set(e,t){return!0},deleteProperty(e,t){return!0}},j=(0,i.l7)({},G,{get:O,set:V}),Z=e=>e,$=e=>Reflect.getPrototypeOf(e);function Y(e,t,n=!1,i=!1){e=e["__v_raw"];const r=ke(e),o=ke(t);n||(t!==o&&C(r,"get",t),C(r,"get",o));const{has:a}=$(r),s=i?Z:n?Le:De;return a.call(r,t)?s(e.get(t)):a.call(r,o)?s(e.get(o)):void(e!==r&&e.get(t))}function X(e,t=!1){const n=this["__v_raw"],i=ke(n),r=ke(e);return t||(e!==r&&C(i,"has",e),C(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function K(e,t=!1){return e=e["__v_raw"],!t&&C(ke(e),"iterate",m),Reflect.get(e,"size",e)}function J(e){e=ke(e);const t=ke(this),n=$(t),i=n.has.call(t,e);return i||(t.add(e),T(t,"add",e,e)),this}function Q(e,t){t=ke(t);const n=ke(this),{has:r,get:o}=$(n);let a=r.call(n,e);a||(e=ke(e),a=r.call(n,e));const s=o.call(n,e);return n.set(e,t),a?(0,i.aU)(t,s)&&T(n,"set",e,t,s):T(n,"add",e,t),this}function ee(e){const t=ke(this),{has:n,get:i}=$(t);let r=n.call(t,e);r||(e=ke(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,a=t.delete(e);return r&&T(t,"delete",e,void 0,o),a}function te(){const e=ke(this),t=0!==e.size,n=void 0,i=e.clear();return t&&T(e,"clear",void 0,void 0,n),i}function ne(e,t){return function(n,i){const r=this,o=r["__v_raw"],a=ke(o),s=t?Z:e?Le:De;return!e&&C(a,"iterate",m),o.forEach(((e,t)=>n.call(i,s(e),s(t),r)))}}function ie(e,t,n){return function(...r){const o=this["__v_raw"],a=ke(o),s=(0,i._N)(a),l="entries"===e||e===Symbol.iterator&&s,u="keys"===e&&s,c=o[e](...r),d=n?Z:t?Le:De;return!t&&C(a,"iterate",u?y:m),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function re(e){return function(...t){return"delete"!==e&&this}}function oe(){const e={get(e){return Y(this,e)},get size(){return K(this)},has:X,add:J,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return Y(this,e,!1,!0)},get size(){return K(this)},has:X,add:J,set:Q,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return Y(this,e,!0)},get size(){return K(this,!0)},has(e){return X.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ne(!0,!1)},i={get(e){return Y(this,e,!0,!0)},get size(){return K(this,!0)},has(e){return X.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ne(!0,!0)},r=["keys","values","entries",Symbol.iterator];return r.forEach((r=>{e[r]=ie(r,!1,!1),n[r]=ie(r,!0,!1),t[r]=ie(r,!1,!0),i[r]=ie(r,!0,!0)})),[e,n,t,i]}const[ae,se,le,ue]=oe();function ce(e,t){const n=t?e?ue:le:e?se:ae;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,i.RI)(n,r)&&r in t?n:t,r,o)}const de={get:ce(!1,!1)},he={get:ce(!1,!0)},pe={get:ce(!0,!1)};const fe=new WeakMap,ge=new WeakMap,ve=new WeakMap,me=new WeakMap;function ye(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xe(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ye((0,i.W7)(e))}function _e(e){return Ce(e)?e:Se(e,!1,G,de,fe)}function be(e){return Se(e,!1,j,he,ge)}function we(e){return Se(e,!0,U,pe,ve)}function Se(e,t,n,r,o){if(!(0,i.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const a=o.get(e);if(a)return a;const s=xe(e);if(0===s)return e;const l=new Proxy(e,2===s?r:n);return o.set(e,l),l}function Me(e){return Ce(e)?Me(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Ce(e){return!(!e||!e["__v_isReadonly"])}function Ie(e){return!(!e||!e["__v_isShallow"])}function Te(e){return Me(e)||Ce(e)}function ke(e){const t=e&&e["__v_raw"];return t?ke(t):e}function Ae(e){return(0,i.Nj)(e,"__v_skip",!0),e}const De=e=>(0,i.Kn)(e)?_e(e):e,Le=e=>(0,i.Kn)(e)?we(e):e;function Pe(e){b&&v&&(e=ke(e),I(e.dep||(e.dep=s())))}function Oe(e,t){e=ke(e),e.dep&&k(e.dep)}function Re(e){return!(!e||!0!==e.__v_isRef)}function Ee(e){return Fe(e,!1)}function Ne(e){return Fe(e,!0)}function Fe(e,t){return Re(e)?e:new Be(e,t)}class Be{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ke(e),this._value=t?e:De(e)}get value(){return Pe(this),this._value}set value(e){e=this.__v_isShallow?e:ke(e),(0,i.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:De(e),Oe(this,e))}}function Ve(e){return Re(e)?e.value:e}const ze={get:(e,t,n)=>Ve(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Re(r)&&!Re(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function qe(e){return Me(e)?e:new Proxy(e,ze)}class He{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new x(e,(()=>{this._dirty||(this._dirty=!0,Oe(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this["__v_isReadonly"]=n}get value(){const e=ke(this);return Pe(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function We(e,t,n=!1){let r,o;const a=(0,i.mf)(e);a?(r=e,o=i.dG):(r=e.get,o=e.set);const s=new He(r,o,a||!o,n);return s}},3673:(e,t,n)=>{"use strict";n.d(t,{$d:()=>a,Ah:()=>Pe,FN:()=>In,Fl:()=>Hn,HY:()=>Ut,JJ:()=>Y,Jd:()=>Le,Ko:()=>je,Ob:()=>me,P$:()=>ae,Q2:()=>We,Q6:()=>he,U2:()=>le,Uk:()=>gn,Us:()=>Pt,Wm:()=>dn,Xn:()=>Ae,Y3:()=>w,Y8:()=>ie,YP:()=>J,_:()=>cn,aZ:()=>pe,bv:()=>ke,dl:()=>xe,f3:()=>X,h:()=>Wn,iD:()=>nn,ic:()=>De,j4:()=>rn,kq:()=>vn,lR:()=>Gt,nK:()=>de,se:()=>_e,up:()=>qe,w5:()=>z,wF:()=>Te,wg:()=>Kt,wy:()=>Fe});var i=n(1959),r=n(2323);function o(e,t,n,i){let r;try{r=i?e(...i):e()}catch(o){s(o,t,n)}return r}function a(e,t,n,i){if((0,r.mf)(e)){const a=o(e,t,n,i);return a&&(0,r.tI)(a)&&a.catch((e=>{s(e,t,n)})),a}const l=[];for(let r=0;r<e.length;r++)l.push(a(e[r],t,n,i));return l}function s(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const r=t.proxy,a=n;while(i){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,a))return;i=i.parent}const s=t.appContext.config.errorHandler;if(s)return void o(s,null,10,[e,r,a])}l(e,n,r,i)}function l(e,t,n,i=!0){console.error(e)}let u=!1,c=!1;const d=[];let h=0;const p=[];let f=null,g=0;const v=[];let m=null,y=0;const x=Promise.resolve();let _=null,b=null;function w(e){const t=_||x;return e?t.then(this?e.bind(this):e):t}function S(e){let t=h+1,n=d.length;while(t<n){const i=t+n>>>1,r=P(d[i]);r<e?t=i+1:n=i}return t}function M(e){d.length&&d.includes(e,u&&e.allowRecurse?h+1:h)||e===b||(null==e.id?d.push(e):d.splice(S(e.id),0,e),C())}function C(){u||c||(c=!0,_=x.then(O))}function I(e){const t=d.indexOf(e);t>h&&d.splice(t,1)}function T(e,t,n,i){(0,r.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?i+1:i)||n.push(e),C()}function k(e){T(e,f,p,g)}function A(e){T(e,m,v,y)}function D(e,t=null){if(p.length){for(b=t,f=[...new Set(p)],p.length=0,g=0;g<f.length;g++)f[g]();f=null,g=0,b=null,D(e,t)}}function L(e){if(D(),v.length){const e=[...new Set(v)];if(v.length=0,m)return void m.push(...e);for(m=e,m.sort(((e,t)=>P(e)-P(t))),y=0;y<m.length;y++)m[y]();m=null,y=0}}const P=e=>null==e.id?1/0:e.id;function O(e){c=!1,u=!0,D(e),d.sort(((e,t)=>P(e)-P(t)));r.dG;try{for(h=0;h<d.length;h++){const e=d[h];e&&!1!==e.active&&o(e,null,14)}}finally{h=0,d.length=0,L(e),u=!1,_=null,(d.length||p.length||v.length)&&O(e)}}new Set;new Map;function R(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||r.kT;let o=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in i){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:a}=i[e]||r.kT;a&&(o=n.map((e=>e.trim()))),t&&(o=n.map(r.He))}let u;let c=i[u=(0,r.hR)(t)]||i[u=(0,r.hR)((0,r._A)(t))];!c&&s&&(c=i[u=(0,r.hR)((0,r.rs)(t))]),c&&a(c,e,6,o);const d=i[u+"Once"];if(d){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,a(d,e,6,o)}}function E(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(void 0!==o)return o;const a=e.emits;let s={},l=!1;if(!(0,r.mf)(e)){const i=e=>{const n=E(e,t,!0);n&&(l=!0,(0,r.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return a||l?((0,r.kJ)(a)?a.forEach((e=>s[e]=null)):(0,r.l7)(s,a),i.set(e,s),s):(i.set(e,null),null)}function N(e,t){return!(!e||!(0,r.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,r.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,r.RI)(e,(0,r.rs)(t))||(0,r.RI)(e,t))}let F=null,B=null;function V(e){const t=F;return F=e,B=e&&e.type.__scopeId||null,t}function z(e,t=F,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&en(-1);const r=V(t),o=e(...n);return V(r),i._d&&en(1),o};return i._n=!0,i._c=!0,i._d=!0,i}function q(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:a,propsOptions:[l],slots:u,attrs:c,emit:d,render:h,renderCache:p,data:f,setupState:g,ctx:v,inheritAttrs:m}=e;let y,x;const _=V(e);try{if(4&n.shapeFlag){const e=o||i;y=mn(h.call(e,e,p,a,g,f,v)),x=c}else{const e=t;0,y=mn(e.length>1?e(a,{attrs:c,slots:u,emit:d}):e(a,null)),x=t.props?c:H(c)}}catch(w){Yt.length=0,s(w,e,1),y=dn(Zt)}let b=y;if(x&&!1!==m){const e=Object.keys(x),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(r.tR)&&(x=W(x,l)),b=fn(b,x))}return n.dirs&&(b=fn(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),y=b,V(_),y}const H=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,r.F7)(n))&&((t||(t={}))[n]=e[n]);return t},W=(e,t)=>{const n={};for(const i in e)(0,r.tR)(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function G(e,t,n){const{props:i,children:r,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||i!==a&&(i?!a||U(i,a,u):!!a);if(1024&l)return!0;if(16&l)return i?U(i,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==i[n]&&!N(u,n))return!0}}return!1}function U(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const o=i[r];if(t[o]!==e[o]&&!N(n,o))return!0}return!1}function j({vnode:e,parent:t},n){while(t&&t.subTree===e)(e=t.vnode).el=n,t=t.parent}const Z=e=>e.__isSuspense;function $(e,t){t&&t.pendingBranch?(0,r.kJ)(e)?t.effects.push(...e):t.effects.push(e):A(e)}function Y(e,t){if(Cn){let n=Cn.provides;const i=Cn.parent&&Cn.parent.provides;i===n&&(n=Cn.provides=Object.create(i)),n[e]=t}else 0}function X(e,t,n=!1){const i=Cn||F;if(i){const o=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&(0,r.mf)(t)?t.call(i.proxy):t}else 0}const K={};function J(e,t,n){return Q(e,t,n)}function Q(e,t,{immediate:n,deep:s,flush:l,onTrack:u,onTrigger:c}=r.kT){const d=Cn;let h,p,f=!1,g=!1;if((0,i.dq)(e)?(h=()=>e.value,f=(0,i.yT)(e)):(0,i.PG)(e)?(h=()=>e,s=!0):(0,r.kJ)(e)?(g=!0,f=e.some((e=>(0,i.PG)(e)||(0,i.yT)(e))),h=()=>e.map((e=>(0,i.dq)(e)?e.value:(0,i.PG)(e)?ne(e):(0,r.mf)(e)?o(e,d,2):void 0))):h=(0,r.mf)(e)?t?()=>o(e,d,2):()=>{if(!d||!d.isUnmounted)return p&&p(),a(e,d,3,[v])}:r.dG,t&&s){const e=h;h=()=>ne(e())}let v=e=>{p=_.onStop=()=>{o(e,d,4)}};if(Pn)return v=r.dG,t?n&&a(t,d,3,[h(),g?[]:void 0,v]):h(),r.dG;let m=g?[]:K;const y=()=>{if(_.active)if(t){const e=_.run();(s||f||(g?e.some(((e,t)=>(0,r.aU)(e,m[t]))):(0,r.aU)(e,m)))&&(p&&p(),a(t,d,3,[e,m===K?void 0:m,v]),m=e)}else _.run()};let x;y.allowRecurse=!!t,x="sync"===l?y:"post"===l?()=>Lt(y,d&&d.suspense):()=>k(y);const _=new i.qq(h,x);return t?n?y():m=_.run():"post"===l?Lt(_.run.bind(_),d&&d.suspense):_.run(),()=>{_.stop(),d&&d.scope&&(0,r.Od)(d.scope.effects,_)}}function ee(e,t,n){const i=this.proxy,o=(0,r.HD)(e)?e.includes(".")?te(i,e):()=>i[e]:e.bind(i,i);let a;(0,r.mf)(t)?a=t:(a=t.handler,n=t);const s=Cn;Tn(this);const l=Q(o,a.bind(i),n);return s?Tn(s):kn(),l}function te(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function ne(e,t){if(!(0,r.Kn)(e)||e["__v_skip"])return e;if(t=t||new Set,t.has(e))return e;if(t.add(e),(0,i.dq)(e))ne(e.value,t);else if((0,r.kJ)(e))for(let n=0;n<e.length;n++)ne(e[n],t);else if((0,r.DM)(e)||(0,r._N)(e))e.forEach((e=>{ne(e,t)}));else if((0,r.PO)(e))for(const n in e)ne(e[n],t);return e}function ie(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ke((()=>{e.isMounted=!0})),Le((()=>{e.isUnmounting=!0})),e}const re=[Function,Array],oe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:re,onEnter:re,onAfterEnter:re,onEnterCancelled:re,onBeforeLeave:re,onLeave:re,onAfterLeave:re,onLeaveCancelled:re,onBeforeAppear:re,onAppear:re,onAfterAppear:re,onAppearCancelled:re},setup(e,{slots:t}){const n=In(),r=ie();let o;return()=>{const a=t.default&&he(t.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==Zt){0,s=t,e=!0;break}}const l=(0,i.IU)(e),{mode:u}=l;if(r.isLeaving)return ue(s);const c=ce(s);if(!c)return ue(s);const d=le(c,l,r,n);de(c,d);const h=n.subTree,p=h&&ce(h);let f=!1;const{getTransitionKey:g}=c.type;if(g){const e=g();void 0===o?o=e:e!==o&&(o=e,f=!0)}if(p&&p.type!==Zt&&(!an(c,p)||f)){const e=le(p,l,r,n);if(de(p,e),"out-in"===u)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},ue(s);"in-out"===u&&c.type!==Zt&&(e.delayLeave=(e,t,n)=>{const i=se(r,p);i[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return s}}},ae=oe;function se(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function le(e,t,n,i){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:h,onBeforeLeave:p,onLeave:f,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:m,onAppear:y,onAfterAppear:x,onAppearCancelled:_}=t,b=String(e.key),w=se(n,e),S=(e,t)=>{e&&a(e,i,9,t)},M=(e,t)=>{const n=t[1];S(e,t),(0,r.kJ)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:s,persisted:l,beforeEnter(t){let i=u;if(!n.isMounted){if(!o)return;i=m||u}t._leaveCb&&t._leaveCb(!0);const r=w[b];r&&an(e,r)&&r.el._leaveCb&&r.el._leaveCb(),S(i,[t])},enter(e){let t=c,i=d,r=h;if(!n.isMounted){if(!o)return;t=y||c,i=x||d,r=_||h}let a=!1;const s=e._enterCb=t=>{a||(a=!0,S(t?r:i,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?M(t,[e,s]):s()},leave(t,i){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return i();S(p,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,i(),S(n?v:g,[t]),t._leaveCb=void 0,w[r]===e&&delete w[r])};w[r]=e,f?M(f,[t,a]):a()},clone(e){return le(e,t,n,i)}};return C}function ue(e){if(ge(e))return e=fn(e),e.children=null,e}function ce(e){return ge(e)?e.children?e.children[0]:void 0:e}function de(e,t){6&e.shapeFlag&&e.component?de(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function he(e,t=!1,n){let i=[],r=0;for(let o=0;o<e.length;o++){let a=e[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===Ut?(128&a.patchFlag&&r++,i=i.concat(he(a.children,t,s))):(t||a.type!==Zt)&&i.push(null!=s?fn(a,{key:s}):a)}if(r>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}function pe(e){return(0,r.mf)(e)?{setup:e,name:e.name}:e}const fe=e=>!!e.type.__asyncLoader;const ge=e=>e.type.__isKeepAlive,ve={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=In(),i=n.ctx;if(!i.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:u,m:c,um:d,o:{createElement:h}}}=i,p=h("div");function f(e){Se(e),d(e,n,l,!0)}function g(e){o.forEach(((t,n)=>{const i=zn(t.type);!i||e&&e(i)||v(n)}))}function v(e){const t=o.get(e);s&&t.type===s.type?s&&Se(s):f(t),o.delete(e),a.delete(e)}i.activate=(e,t,n,i,o)=>{const a=e.component;c(e,t,n,0,l),u(a.vnode,e,t,n,a,l,i,e.slotScopeIds,o),Lt((()=>{a.isDeactivated=!1,a.a&&(0,r.ir)(a.a);const t=e.props&&e.props.onVnodeMounted;t&&bn(t,a.parent,e)}),l)},i.deactivate=e=>{const t=e.component;c(e,p,null,1,l),Lt((()=>{t.da&&(0,r.ir)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&bn(n,t.parent,e),t.isDeactivated=!0}),l)},J((()=>[e.include,e.exclude]),(([e,t])=>{e&&g((t=>ye(e,t))),t&&g((e=>!ye(t,e)))}),{flush:"post",deep:!0});let m=null;const y=()=>{null!=m&&o.set(m,Me(n.subTree))};return ke(y),De(y),Le((()=>{o.forEach((e=>{const{subTree:t,suspense:i}=n,r=Me(t);if(e.type!==r.type)f(e);else{Se(r);const e=r.component.da;e&&Lt(e,i)}}))})),()=>{if(m=null,!t.default)return null;const n=t.default(),i=n[0];if(n.length>1)return s=null,n;if(!on(i)||!(4&i.shapeFlag)&&!(128&i.shapeFlag))return s=null,i;let r=Me(i);const l=r.type,u=zn(fe(r)?r.type.__asyncResolved||{}:l),{include:c,exclude:d,max:h}=e;if(c&&(!u||!ye(c,u))||d&&u&&ye(d,u))return s=r,i;const p=null==r.key?l:r.key,f=o.get(p);return r.el&&(r=fn(r),128&i.shapeFlag&&(i.ssContent=r)),m=p,f?(r.el=f.el,r.component=f.component,r.transition&&de(r,r.transition),r.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),h&&a.size>parseInt(h,10)&&v(a.values().next().value)),r.shapeFlag|=256,s=r,Z(i.type)?i:r}}},me=ve;function ye(e,t){return(0,r.kJ)(e)?e.some((e=>ye(e,t))):(0,r.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function xe(e,t){be(e,"a",t)}function _e(e,t){be(e,"da",t)}function be(e,t,n=Cn){const i=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Ce(t,i,n),n){let e=n.parent;while(e&&e.parent)ge(e.parent.vnode)&&we(i,t,n,e),e=e.parent}}function we(e,t,n,i){const o=Ce(t,e,i,!0);Pe((()=>{(0,r.Od)(i[t],o)}),n)}function Se(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Me(e){return 128&e.shapeFlag?e.ssContent:e}function Ce(e,t,n=Cn,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;(0,i.Jd)(),Tn(n);const o=a(t,n,e,r);return kn(),(0,i.lk)(),o});return r?o.unshift(s):o.push(s),s}}const Ie=e=>(t,n=Cn)=>(!Pn||"sp"===e)&&Ce(e,t,n),Te=Ie("bm"),ke=Ie("m"),Ae=Ie("bu"),De=Ie("u"),Le=Ie("bum"),Pe=Ie("um"),Oe=Ie("sp"),Re=Ie("rtg"),Ee=Ie("rtc");function Ne(e,t=Cn){Ce("ec",e,t)}function Fe(e,t){const n=F;if(null===n)return e;const i=Vn(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[e,n,s,l=r.kT]=t[a];(0,r.mf)(e)&&(e={mounted:e,updated:e}),e.deep&&ne(n),o.push({dir:e,instance:i,value:n,oldValue:void 0,arg:s,modifiers:l})}return e}function Be(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let l=0;l<o.length;l++){const u=o[l];s&&(u.oldValue=s[l].value);let c=u.dir[r];c&&((0,i.Jd)(),a(c,n,8,[e.el,u,e,t]),(0,i.lk)())}}const Ve="components",ze="directives";function qe(e,t){return Ge(Ve,e,!0,t)||e}const He=Symbol();function We(e){return Ge(ze,e)}function Ge(e,t,n=!0,i=!1){const o=F||Cn;if(o){const n=o.type;if(e===Ve){const e=zn(n,!1);if(e&&(e===t||e===(0,r._A)(t)||e===(0,r.kC)((0,r._A)(t))))return n}const a=Ue(o[e]||n[e],t)||Ue(o.appContext[e],t);return!a&&i?n:a}}function Ue(e,t){return e&&(e[t]||e[(0,r._A)(t)]||e[(0,r.kC)((0,r._A)(t))])}function je(e,t,n,i){let o;const a=n&&n[i];if((0,r.kJ)(e)||(0,r.HD)(e)){o=new Array(e.length);for(let n=0,i=e.length;n<i;n++)o[n]=t(e[n],n,void 0,a&&a[n])}else if("number"===typeof e){0,o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,a&&a[n])}else if((0,r.Kn)(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let i=0,r=n.length;i<r;i++){const r=n[i];o[i]=t(e[r],r,i,a&&a[i])}}else o=[];return n&&(n[i]=o),o}const Ze=e=>e?An(e)?Vn(e)||e.proxy:Ze(e.parent):null,$e=(0,r.l7)(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=>Ze(e.parent),$root:e=>Ze(e.root),$emit:e=>e.emit,$options:e=>tt(e),$forceUpdate:e=>e.f||(e.f=()=>M(e.update)),$nextTick:e=>e.n||(e.n=w.bind(e.proxy)),$watch:e=>ee.bind(e)}),Ye={get({_:e},t){const{ctx:n,setupState:o,data:a,props:s,accessCache:l,type:u,appContext:c}=e;let d;if("$"!==t[0]){const i=l[t];if(void 0!==i)switch(i){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(o!==r.kT&&(0,r.RI)(o,t))return l[t]=1,o[t];if(a!==r.kT&&(0,r.RI)(a,t))return l[t]=2,a[t];if((d=e.propsOptions[0])&&(0,r.RI)(d,t))return l[t]=3,s[t];if(n!==r.kT&&(0,r.RI)(n,t))return l[t]=4,n[t];Xe&&(l[t]=0)}}const h=$e[t];let p,f;return h?("$attrs"===t&&(0,i.j)(e,"get",t),h(e)):(p=u.__cssModules)&&(p=p[t])?p:n!==r.kT&&(0,r.RI)(n,t)?(l[t]=4,n[t]):(f=c.config.globalProperties,(0,r.RI)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:i,setupState:o,ctx:a}=e;return o!==r.kT&&(0,r.RI)(o,t)?(o[t]=n,!0):i!==r.kT&&(0,r.RI)(i,t)?(i[t]=n,!0):!(0,r.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:a}},s){let l;return!!n[s]||e!==r.kT&&(0,r.RI)(e,s)||t!==r.kT&&(0,r.RI)(t,s)||(l=a[0])&&(0,r.RI)(l,s)||(0,r.RI)(i,s)||(0,r.RI)($e,s)||(0,r.RI)(o.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,r.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Xe=!0;function Ke(e){const t=tt(e),n=e.proxy,o=e.ctx;Xe=!1,t.beforeCreate&&Qe(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:u,provide:c,inject:d,created:h,beforeMount:p,mounted:f,beforeUpdate:g,updated:v,activated:m,deactivated:y,beforeDestroy:x,beforeUnmount:_,destroyed:b,unmounted:w,render:S,renderTracked:M,renderTriggered:C,errorCaptured:I,serverPrefetch:T,expose:k,inheritAttrs:A,components:D,directives:L,filters:P}=t,O=null;if(d&&Je(d,o,O,e.appContext.config.unwrapInjectedRef),l)for(const i in l){const e=l[i];(0,r.mf)(e)&&(o[i]=e.bind(n))}if(a){0;const t=a.call(n,n);0,(0,r.Kn)(t)&&(e.data=(0,i.qj)(t))}if(Xe=!0,s)for(const i in s){const e=s[i],t=(0,r.mf)(e)?e.bind(n,n):(0,r.mf)(e.get)?e.get.bind(n,n):r.dG;0;const a=!(0,r.mf)(e)&&(0,r.mf)(e.set)?e.set.bind(n):r.dG,l=Hn({get:t,set:a});Object.defineProperty(o,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(u)for(const i in u)et(u[i],o,n,i);if(c){const e=(0,r.mf)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{Y(t,e[t])}))}function R(e,t){(0,r.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(h&&Qe(h,e,"c"),R(Te,p),R(ke,f),R(Ae,g),R(De,v),R(xe,m),R(_e,y),R(Ne,I),R(Ee,M),R(Re,C),R(Le,_),R(Pe,w),R(Oe,T),(0,r.kJ)(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===r.dG&&(e.render=S),null!=A&&(e.inheritAttrs=A),D&&(e.components=D),L&&(e.directives=L)}function Je(e,t,n=r.dG,o=!1){(0,r.kJ)(e)&&(e=at(e));for(const a in e){const n=e[a];let s;s=(0,r.Kn)(n)?"default"in n?X(n.from||a,n.default,!0):X(n.from||a):X(n),(0,i.dq)(s)&&o?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[a]=s}}function Qe(e,t,n){a((0,r.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function et(e,t,n,i){const o=i.includes(".")?te(n,i):()=>n[i];if((0,r.HD)(e)){const n=t[e];(0,r.mf)(n)&&J(o,n)}else if((0,r.mf)(e))J(o,e.bind(n));else if((0,r.Kn)(e))if((0,r.kJ)(e))e.forEach((e=>et(e,t,n,i)));else{const i=(0,r.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,r.mf)(i)&&J(o,i,e)}else 0}function tt(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:r.length||n||i?(l={},r.length&&r.forEach((e=>nt(l,e,a,!0))),nt(l,t,a)):l=t,o.set(t,l),l}function nt(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&nt(e,o,n,!0),r&&r.forEach((t=>nt(e,t,n,!0)));for(const a in t)if(i&&"expose"===a);else{const i=it[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const it={data:rt,props:lt,emits:lt,methods:lt,computed:lt,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:lt,directives:lt,watch:ut,provide:rt,inject:ot};function rt(e,t){return t?e?function(){return(0,r.l7)((0,r.mf)(e)?e.call(this,this):e,(0,r.mf)(t)?t.call(this,this):t)}:t:e}function ot(e,t){return lt(at(e),at(t))}function at(e){if((0,r.kJ)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function st(e,t){return e?[...new Set([].concat(e,t))]:t}function lt(e,t){return e?(0,r.l7)((0,r.l7)(Object.create(null),e),t):t}function ut(e,t){if(!e)return t;if(!t)return e;const n=(0,r.l7)(Object.create(null),e);for(const i in t)n[i]=st(e[i],t[i]);return n}function ct(e,t,n,o=!1){const a={},s={};(0,r.Nj)(s,sn,1),e.propsDefaults=Object.create(null),ht(e,t,a,s);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);n?e.props=o?a:(0,i.Um)(a):e.type.props?e.props=a:e.props=s,e.attrs=s}function dt(e,t,n,o){const{props:a,attrs:s,vnode:{patchFlag:l}}=e,u=(0,i.IU)(a),[c]=e.propsOptions;let d=!1;if(!(o||l>0)||16&l){let i;ht(e,t,a,s)&&(d=!0);for(const o in u)t&&((0,r.RI)(t,o)||(i=(0,r.rs)(o))!==o&&(0,r.RI)(t,i))||(c?!n||void 0===n[o]&&void 0===n[i]||(a[o]=pt(c,u,o,void 0,e,!0)):delete a[o]);if(s!==u)for(const e in s)t&&(0,r.RI)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let o=n[i];if(N(e.emitsOptions,o))continue;const l=t[o];if(c)if((0,r.RI)(s,o))l!==s[o]&&(s[o]=l,d=!0);else{const t=(0,r._A)(o);a[t]=pt(c,u,t,l,e,!1)}else l!==s[o]&&(s[o]=l,d=!0)}}d&&(0,i.X$)(e,"set","$attrs")}function ht(e,t,n,o){const[a,s]=e.propsOptions;let l,u=!1;if(t)for(let i in t){if((0,r.Gg)(i))continue;const c=t[i];let d;a&&(0,r.RI)(a,d=(0,r._A)(i))?s&&s.includes(d)?(l||(l={}))[d]=c:n[d]=c:N(e.emitsOptions,i)||i in o&&c===o[i]||(o[i]=c,u=!0)}if(s){const t=(0,i.IU)(n),o=l||r.kT;for(let i=0;i<s.length;i++){const l=s[i];n[l]=pt(a,t,l,o[l],e,!(0,r.RI)(o,l))}}return u}function pt(e,t,n,i,o,a){const s=e[n];if(null!=s){const e=(0,r.RI)(s,"default");if(e&&void 0===i){const e=s.default;if(s.type!==Function&&(0,r.mf)(e)){const{propsDefaults:r}=o;n in r?i=r[n]:(Tn(o),i=r[n]=e.call(null,t),kn())}else i=e}s[0]&&(a&&!e?i=!1:!s[1]||""!==i&&i!==(0,r.rs)(n)||(i=!0))}return i}function ft(e,t,n=!1){const i=t.propsCache,o=i.get(e);if(o)return o;const a=e.props,s={},l=[];let u=!1;if(!(0,r.mf)(e)){const i=e=>{u=!0;const[n,i]=ft(e,t,!0);(0,r.l7)(s,n),i&&l.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!a&&!u)return i.set(e,r.Z6),r.Z6;if((0,r.kJ)(a))for(let d=0;d<a.length;d++){0;const e=(0,r._A)(a[d]);gt(e)&&(s[e]=r.kT)}else if(a){0;for(const e in a){const t=(0,r._A)(e);if(gt(t)){const n=a[e],i=s[t]=(0,r.kJ)(n)||(0,r.mf)(n)?{type:n}:n;if(i){const e=yt(Boolean,i.type),n=yt(String,i.type);i[0]=e>-1,i[1]=n<0||e<n,(e>-1||(0,r.RI)(i,"default"))&&l.push(t)}}}}const c=[s,l];return i.set(e,c),c}function gt(e){return"$"!==e[0]}function vt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function mt(e,t){return vt(e)===vt(t)}function yt(e,t){return(0,r.kJ)(t)?t.findIndex((t=>mt(t,e))):(0,r.mf)(t)&&mt(t,e)?0:-1}const xt=e=>"_"===e[0]||"$stable"===e,_t=e=>(0,r.kJ)(e)?e.map(mn):[mn(e)],bt=(e,t,n)=>{if(t._n)return t;const i=z(((...e)=>_t(t(...e))),n);return i._c=!1,i},wt=(e,t,n)=>{const i=e._ctx;for(const o in e){if(xt(o))continue;const n=e[o];if((0,r.mf)(n))t[o]=bt(o,n,i);else if(null!=n){0;const e=_t(n);t[o]=()=>e}}},St=(e,t)=>{const n=_t(t);e.slots.default=()=>n},Mt=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,i.IU)(t),(0,r.Nj)(t,"_",n)):wt(t,e.slots={})}else e.slots={},t&&St(e,t);(0,r.Nj)(e.slots,sn,1)},Ct=(e,t,n)=>{const{vnode:i,slots:o}=e;let a=!0,s=r.kT;if(32&i.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,r.l7)(o,t),n||1!==e||delete o._):(a=!t.$stable,wt(t,o)),s=t}else t&&(St(e,t),s={default:1});if(a)for(const r in o)xt(r)||r in s||delete o[r]};function It(){return{app:null,config:{isNativeTag:r.NO,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 Tt=0;function kt(e,t){return function(n,i=null){(0,r.mf)(n)||(n=Object.assign({},n)),null==i||(0,r.Kn)(i)||(i=null);const o=It(),a=new Set;let s=!1;const l=o.app={_uid:Tt++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:Gn,get config(){return o.config},set config(e){0},use(e,...t){return a.has(e)||(e&&(0,r.mf)(e.install)?(a.add(e),e.install(l,...t)):(0,r.mf)(e)&&(a.add(e),e(l,...t))),l},mixin(e){return o.mixins.includes(e)||o.mixins.push(e),l},component(e,t){return t?(o.components[e]=t,l):o.components[e]},directive(e,t){return t?(o.directives[e]=t,l):o.directives[e]},mount(r,a,u){if(!s){0;const c=dn(n,i);return c.appContext=o,a&&t?t(c,r):e(c,r,u),s=!0,l._container=r,r.__vue_app__=l,Vn(c.component)||c.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return o.provides[e]=t,l}};return l}}function At(e,t,n,a,s=!1){if((0,r.kJ)(e))return void e.forEach(((e,i)=>At(e,t&&((0,r.kJ)(t)?t[i]:t),n,a,s)));if(fe(a)&&!s)return;const l=4&a.shapeFlag?Vn(a.component)||a.component.proxy:a.el,u=s?null:l,{i:c,r:d}=e;const h=t&&t.r,p=c.refs===r.kT?c.refs={}:c.refs,f=c.setupState;if(null!=h&&h!==d&&((0,r.HD)(h)?(p[h]=null,(0,r.RI)(f,h)&&(f[h]=null)):(0,i.dq)(h)&&(h.value=null)),(0,r.mf)(d))o(d,c,12,[u,p]);else{const t=(0,r.HD)(d),o=(0,i.dq)(d);if(t||o){const i=()=>{if(e.f){const n=t?p[d]:d.value;s?(0,r.kJ)(n)&&(0,r.Od)(n,l):(0,r.kJ)(n)?n.includes(l)||n.push(l):t?(p[d]=[l],(0,r.RI)(f,d)&&(f[d]=p[d])):(d.value=[l],e.k&&(p[e.k]=d.value))}else t?(p[d]=u,(0,r.RI)(f,d)&&(f[d]=u)):o&&(d.value=u,e.k&&(p[e.k]=u))};u?(i.id=-1,Lt(i,n)):i()}else 0}}function Dt(){}const Lt=$;function Pt(e){return Ot(e)}function Ot(e,t){Dt();const n=(0,r.E9)();n.__VUE__=!0;const{insert:o,remove:a,patchProp:s,createElement:l,createText:u,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:f,setScopeId:g=r.dG,cloneNode:v,insertStaticContent:m}=e,y=(e,t,n,i=null,r=null,o=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!an(e,t)&&(i=Q(e),$(e,r,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case jt:x(e,t,n,i);break;case Zt:_(e,t,n,i);break;case $t:null==e&&b(t,n,i,a);break;case Ut:E(e,t,n,i,r,o,a,s,l);break;default:1&d?C(e,t,n,i,r,o,a,s,l):6&d?N(e,t,n,i,r,o,a,s,l):(64&d||128&d)&&u.process(e,t,n,i,r,o,a,s,l,te)}null!=c&&r&&At(c,e&&e.ref,o,t||e,!t)},x=(e,t,n,i)=>{if(null==e)o(t.el=u(t.children),n,i);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},_=(e,t,n,i)=>{null==e?o(t.el=c(t.children||""),n,i):t.el=e.el},b=(e,t,n,i)=>{[e.el,e.anchor]=m(e.children,t,n,i,e.el,e.anchor)},w=({el:e,anchor:t},n,i)=>{let r;while(e&&e!==t)r=f(e),o(e,n,i),e=r;o(t,n,i)},S=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=f(e),a(e),e=n;a(t)},C=(e,t,n,i,r,o,a,s,l)=>{a=a||"svg"===t.type,null==e?T(t,n,i,r,o,a,s,l):P(e,t,r,o,a,s,l)},T=(e,t,n,i,a,u,c,d)=>{let p,f;const{type:g,props:m,shapeFlag:y,transition:x,patchFlag:_,dirs:b}=e;if(e.el&&void 0!==v&&-1===_)p=e.el=v(e.el);else{if(p=e.el=l(e.type,u,m&&m.is,m),8&y?h(p,e.children):16&y&&A(e.children,p,null,i,a,u&&"foreignObject"!==g,c,d),b&&Be(e,null,i,"created"),m){for(const t in m)"value"===t||(0,r.Gg)(t)||s(p,t,null,m[t],u,e.children,i,a,J);"value"in m&&s(p,"value",null,m.value),(f=m.onVnodeBeforeMount)&&bn(f,i,e)}k(p,e,e.scopeId,c,i)}b&&Be(e,null,i,"beforeMount");const w=(!a||a&&!a.pendingBranch)&&x&&!x.persisted;w&&x.beforeEnter(p),o(p,t,n),((f=m&&m.onVnodeMounted)||w||b)&&Lt((()=>{f&&bn(f,i,e),w&&x.enter(p),b&&Be(e,null,i,"mounted")}),a)},k=(e,t,n,i,r)=>{if(n&&g(e,n),i)for(let o=0;o<i.length;o++)g(e,i[o]);if(r){let n=r.subTree;if(t===n){const t=r.vnode;k(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,i,r,o,a,s,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=s?yn(e[u]):mn(e[u]);y(null,l,t,n,i,r,o,a,s)}},P=(e,t,n,i,o,a,l)=>{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const f=e.props||r.kT,g=t.props||r.kT;let v;n&&Rt(n,!1),(v=g.onVnodeBeforeUpdate)&&bn(v,n,t,e),p&&Be(t,e,n,"beforeUpdate"),n&&Rt(n,!0);const m=o&&"foreignObject"!==t.type;if(d?O(e.dynamicChildren,d,u,n,i,m,a):l||H(e,t,u,null,n,i,m,a,!1),c>0){if(16&c)R(u,t,f,g,n,i,o);else if(2&c&&f.class!==g.class&&s(u,"class",null,g.class,o),4&c&&s(u,"style",f.style,g.style,o),8&c){const r=t.dynamicProps;for(let t=0;t<r.length;t++){const a=r[t],l=f[a],c=g[a];c===l&&"value"!==a||s(u,a,l,c,o,e.children,n,i,J)}}1&c&&e.children!==t.children&&h(u,t.children)}else l||null!=d||R(u,t,f,g,n,i,o);((v=g.onVnodeUpdated)||p)&&Lt((()=>{v&&bn(v,n,t,e),p&&Be(t,e,n,"updated")}),i)},O=(e,t,n,i,r,o,a)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],c=l.el&&(l.type===Ut||!an(l,u)||70&l.shapeFlag)?p(l.el):n;y(l,u,c,null,i,r,o,a,!0)}},R=(e,t,n,i,o,a,l)=>{if(n!==i){for(const u in i){if((0,r.Gg)(u))continue;const c=i[u],d=n[u];c!==d&&"value"!==u&&s(e,u,d,c,l,t.children,o,a,J)}if(n!==r.kT)for(const u in n)(0,r.Gg)(u)||u in i||s(e,u,n[u],null,l,t.children,o,a,J);"value"in i&&s(e,"value",n.value,i.value)}},E=(e,t,n,i,r,a,s,l,c)=>{const d=t.el=e?e.el:u(""),h=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(o(d,n,i),o(h,n,i),A(t.children,n,h,r,a,s,l,c)):p>0&&64&p&&f&&e.dynamicChildren?(O(e.dynamicChildren,f,n,r,a,s,l),(null!=t.key||r&&t===r.subTree)&&Et(e,t,!0)):H(e,t,n,h,r,a,s,l,c)},N=(e,t,n,i,r,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,i,a,l):F(t,n,i,r,o,a,l):B(e,t,l)},F=(e,t,n,i,r,o,a)=>{const s=e.component=Mn(e,i,r);if(ge(e)&&(s.ctx.renderer=te),On(s),s.asyncDep){if(r&&r.registerDep(s,V),!e.el){const e=s.subTree=dn(Zt);_(null,e,t,n)}}else V(s,e,t,n,r,o,a)},B=(e,t,n)=>{const i=t.component=e.component;if(G(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void z(i,t,n);i.next=t,I(i.update),i.update()}else t.el=e.el,i.vnode=t},V=(e,t,n,o,a,s,l)=>{const u=()=>{if(e.isMounted){let t,{next:n,bu:i,u:o,parent:u,vnode:c}=e,d=n;0,Rt(e,!1),n?(n.el=c.el,z(e,n,l)):n=c,i&&(0,r.ir)(i),(t=n.props&&n.props.onVnodeBeforeUpdate)&&bn(t,u,n,c),Rt(e,!0);const h=q(e);0;const f=e.subTree;e.subTree=h,y(f,h,p(f.el),Q(f),e,a,s),n.el=h.el,null===d&&j(e,h.el),o&&Lt(o,a),(t=n.props&&n.props.onVnodeUpdated)&&Lt((()=>bn(t,u,n,c)),a)}else{let i;const{el:l,props:u}=t,{bm:c,m:d,parent:h}=e,p=fe(t);if(Rt(e,!1),c&&(0,r.ir)(c),!p&&(i=u&&u.onVnodeBeforeMount)&&bn(i,h,t),Rt(e,!0),l&&ie){const n=()=>{e.subTree=q(e),ie(l,e.subTree,e,a,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const i=e.subTree=q(e);0,y(null,i,n,o,e,a,s),t.el=i.el}if(d&&Lt(d,a),!p&&(i=u&&u.onVnodeMounted)){const e=t;Lt((()=>bn(i,h,e)),a)}(256&t.shapeFlag||h&&fe(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&Lt(e.a,a),e.isMounted=!0,t=n=o=null}},c=e.effect=new i.qq(u,(()=>M(d)),e.scope),d=e.update=()=>c.run();d.id=e.uid,Rt(e,!0),d()},z=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,dt(e,t.props,r,n),Ct(e,t.children,n),(0,i.Jd)(),D(void 0,e.update),(0,i.lk)()},H=(e,t,n,i,r,o,a,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void U(u,d,n,i,r,o,a,s,l);if(256&p)return void W(u,d,n,i,r,o,a,s,l)}8&f?(16&c&&J(u,r,o),d!==u&&h(n,d)):16&c?16&f?U(u,d,n,i,r,o,a,s,l):J(u,r,o,!0):(8&c&&h(n,""),16&f&&A(d,n,i,r,o,a,s,l))},W=(e,t,n,i,o,a,s,l,u)=>{e=e||r.Z6,t=t||r.Z6;const c=e.length,d=t.length,h=Math.min(c,d);let p;for(p=0;p<h;p++){const i=t[p]=u?yn(t[p]):mn(t[p]);y(e[p],i,n,null,o,a,s,l,u)}c>d?J(e,o,a,!0,!1,h):A(t,n,i,o,a,s,l,u,h)},U=(e,t,n,i,o,a,s,l,u)=>{let c=0;const d=t.length;let h=e.length-1,p=d-1;while(c<=h&&c<=p){const i=e[c],r=t[c]=u?yn(t[c]):mn(t[c]);if(!an(i,r))break;y(i,r,n,null,o,a,s,l,u),c++}while(c<=h&&c<=p){const i=e[h],r=t[p]=u?yn(t[p]):mn(t[p]);if(!an(i,r))break;y(i,r,n,null,o,a,s,l,u),h--,p--}if(c>h){if(c<=p){const e=p+1,r=e<d?t[e].el:i;while(c<=p)y(null,t[c]=u?yn(t[c]):mn(t[c]),n,r,o,a,s,l,u),c++}}else if(c>p)while(c<=h)$(e[c],o,a,!0),c++;else{const f=c,g=c,v=new Map;for(c=g;c<=p;c++){const e=t[c]=u?yn(t[c]):mn(t[c]);null!=e.key&&v.set(e.key,c)}let m,x=0;const _=p-g+1;let b=!1,w=0;const S=new Array(_);for(c=0;c<_;c++)S[c]=0;for(c=f;c<=h;c++){const i=e[c];if(x>=_){$(i,o,a,!0);continue}let r;if(null!=i.key)r=v.get(i.key);else for(m=g;m<=p;m++)if(0===S[m-g]&&an(i,t[m])){r=m;break}void 0===r?$(i,o,a,!0):(S[r-g]=c+1,r>=w?w=r:b=!0,y(i,t[r],n,null,o,a,s,l,u),x++)}const M=b?Nt(S):r.Z6;for(m=M.length-1,c=_-1;c>=0;c--){const e=g+c,r=t[e],h=e+1<d?t[e+1].el:i;0===S[c]?y(null,r,n,h,o,a,s,l,u):b&&(m<0||c!==M[m]?Z(r,n,h,2):m--)}}},Z=(e,t,n,i,r=null)=>{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void Z(e.component.subTree,t,n,i);if(128&c)return void e.suspense.move(t,n,i);if(64&c)return void s.move(e,t,n,te);if(s===Ut){o(a,t,n);for(let e=0;e<u.length;e++)Z(u[e],t,n,i);return void o(e.anchor,t,n)}if(s===$t)return void w(e,t,n);const d=2!==i&&1&c&&l;if(d)if(0===i)l.beforeEnter(a),o(a,t,n),Lt((()=>l.enter(a)),r);else{const{leave:e,delayLeave:i,afterLeave:r}=l,s=()=>o(a,t,n),u=()=>{e(a,(()=>{s(),r&&r()}))};i?i(a,s,u):u()}else o(a,t,n)},$=(e,t,n,i=!1,r=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:h}=e;if(null!=s&&At(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const p=1&c&&h,f=!fe(e);let g;if(f&&(g=a&&a.onVnodeBeforeUnmount)&&bn(g,t,e),6&c)K(e.component,n,i);else{if(128&c)return void e.suspense.unmount(n,i);p&&Be(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,r,te,i):u&&(o!==Ut||d>0&&64&d)?J(u,t,n,!1,!0):(o===Ut&&384&d||!r&&16&c)&&J(l,t,n),i&&Y(e)}(f&&(g=a&&a.onVnodeUnmounted)||p)&&Lt((()=>{g&&bn(g,t,e),p&&Be(e,null,t,"unmounted")}),n)},Y=e=>{const{type:t,el:n,anchor:i,transition:r}=e;if(t===Ut)return void X(n,i);if(t===$t)return void S(e);const o=()=>{a(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:i}=r,a=()=>t(n,o);i?i(e.el,o,a):a()}else o()},X=(e,t)=>{let n;while(e!==t)n=f(e),a(e),e=n;a(t)},K=(e,t,n)=>{const{bum:i,scope:o,update:a,subTree:s,um:l}=e;i&&(0,r.ir)(i),o.stop(),a&&(a.active=!1,$(s,e,t,n)),l&&Lt(l,t),Lt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,i=!1,r=!1,o=0)=>{for(let a=o;a<e.length;a++)$(e[a],t,n,i,r)},Q=e=>6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),ee=(e,t,n)=>{null==e?t._vnode&&$(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),L(),t._vnode=e},te={p:y,um:$,m:Z,r:Y,mt:F,mc:A,pc:H,pbc:O,n:Q,o:e};let ne,ie;return t&&([ne,ie]=t(te)),{render:ee,hydrate:ne,createApp:kt(ee,ne)}}function Rt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Et(e,t,n=!1){const i=e.children,o=t.children;if((0,r.kJ)(i)&&(0,r.kJ)(o))for(let r=0;r<i.length;r++){const e=i[r];let t=o[r];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=o[r]=yn(o[r]),t.el=e.el),n||Et(e,t))}}function Nt(e){const t=e.slice(),n=[0];let i,r,o,a,s;const l=e.length;for(i=0;i<l;i++){const l=e[i];if(0!==l){if(r=n[n.length-1],e[r]<l){t[i]=r,n.push(i);continue}o=0,a=n.length-1;while(o<a)s=o+a>>1,e[n[s]]<l?o=s+1:a=s;l<e[n[o]]&&(o>0&&(t[i]=n[o-1]),n[o]=i)}}o=n.length,a=n[o-1];while(o-- >0)n[o]=a,a=t[a];return n}const Ft=e=>e.__isTeleport,Bt=e=>e&&(e.disabled||""===e.disabled),Vt=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,zt=(e,t)=>{const n=e&&e.to;if((0,r.HD)(n)){if(t){const e=t(n);return e}return null}return n},qt={__isTeleport:!0,process(e,t,n,i,r,o,a,s,l,u){const{mc:c,pc:d,pbc:h,o:{insert:p,querySelector:f,createText:g,createComment:v}}=u,m=Bt(t.props);let{shapeFlag:y,children:x,dynamicChildren:_}=t;if(null==e){const e=t.el=g(""),u=t.anchor=g("");p(e,n,i),p(u,n,i);const d=t.target=zt(t.props,f),h=t.targetAnchor=g("");d&&(p(h,d),a=a||Vt(d));const v=(e,t)=>{16&y&&c(x,e,t,r,o,a,s,l)};m?v(n,u):d&&v(d,h)}else{t.el=e.el;const i=t.anchor=e.anchor,c=t.target=e.target,p=t.targetAnchor=e.targetAnchor,g=Bt(e.props),v=g?n:c,y=g?i:p;if(a=a||Vt(c),_?(h(e.dynamicChildren,_,v,r,o,a,s),Et(e,t,!0)):l||d(e,t,v,y,r,o,a,s,!1),m)g||Ht(t,n,i,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=zt(t.props,f);e&&Ht(t,e,null,u,0)}else g&&Ht(t,c,p,u,1)}},remove(e,t,n,i,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:h}=e;if(d&&o(c),(a||!Bt(h))&&(o(u),16&s))for(let p=0;p<l.length;p++){const e=l[p];r(e,t,n,!0,!!e.dynamicChildren)}},move:Ht,hydrate:Wt};function Ht(e,t,n,{o:{insert:i},m:r},o=2){0===o&&i(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,d=2===o;if(d&&i(a,t,n),(!d||Bt(c))&&16&l)for(let h=0;h<u.length;h++)r(u[h],t,n,2);d&&i(s,t,n)}function Wt(e,t,n,i,r,o,{o:{nextSibling:a,parentNode:s,querySelector:l}},u){const c=t.target=zt(t.props,l);if(c){const l=c._lpa||c.firstChild;if(16&t.shapeFlag)if(Bt(t.props))t.anchor=u(a(e),t,s(e),n,i,r,o),t.targetAnchor=l;else{t.anchor=a(e);let s=l;while(s)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){t.targetAnchor=s,c._lpa=t.targetAnchor&&a(t.targetAnchor);break}u(l,t,c,n,i,r,o)}}return t.anchor&&a(t.anchor)}const Gt=qt,Ut=Symbol(void 0),jt=Symbol(void 0),Zt=Symbol(void 0),$t=Symbol(void 0),Yt=[];let Xt=null;function Kt(e=!1){Yt.push(Xt=e?null:[])}function Jt(){Yt.pop(),Xt=Yt[Yt.length-1]||null}let Qt=1;function en(e){Qt+=e}function tn(e){return e.dynamicChildren=Qt>0?Xt||r.Z6:null,Jt(),Qt>0&&Xt&&Xt.push(e),e}function nn(e,t,n,i,r,o){return tn(cn(e,t,n,i,r,o,!0))}function rn(e,t,n,i,r){return tn(dn(e,t,n,i,r,!0))}function on(e){return!!e&&!0===e.__v_isVNode}function an(e,t){return e.type===t.type&&e.key===t.key}const sn="__vInternal",ln=({key:e})=>null!=e?e:null,un=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,r.HD)(e)||(0,i.dq)(e)||(0,r.mf)(e)?{i:F,r:e,k:t,f:!!n}:e:null;function cn(e,t=null,n=null,i=0,o=null,a=(e===Ut?0:1),s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ln(t),ref:t&&un(t),scopeId:B,slotScopeIds:null,children:n,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:i,dynamicProps:o,dynamicChildren:null,appContext:null};return l?(xn(u,n),128&a&&e.normalize(u)):n&&(u.shapeFlag|=(0,r.HD)(n)?8:16),Qt>0&&!s&&Xt&&(u.patchFlag>0||6&a)&&32!==u.patchFlag&&Xt.push(u),u}const dn=hn;function hn(e,t=null,n=null,o=0,a=null,s=!1){if(e&&e!==He||(e=Zt),on(e)){const i=fn(e,t,!0);return n&&xn(i,n),Qt>0&&!s&&Xt&&(6&i.shapeFlag?Xt[Xt.indexOf(e)]=i:Xt.push(i)),i.patchFlag|=-2,i}if(qn(e)&&(e=e.__vccOpts),t){t=pn(t);let{class:e,style:n}=t;e&&!(0,r.HD)(e)&&(t.class=(0,r.C_)(e)),(0,r.Kn)(n)&&((0,i.X3)(n)&&!(0,r.kJ)(n)&&(n=(0,r.l7)({},n)),t.style=(0,r.j5)(n))}const l=(0,r.HD)(e)?1:Z(e)?128:Ft(e)?64:(0,r.Kn)(e)?4:(0,r.mf)(e)?2:0;return cn(e,t,n,o,a,l,s,!0)}function pn(e){return e?(0,i.X3)(e)||sn in e?(0,r.l7)({},e):e:null}function fn(e,t,n=!1){const{props:i,ref:o,patchFlag:a,children:s}=e,l=t?_n(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ln(l),ref:t&&t.ref?n&&o?(0,r.kJ)(o)?o.concat(un(t)):[o,un(t)]:un(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ut?-1===a?16:16|a: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&&fn(e.ssContent),ssFallback:e.ssFallback&&fn(e.ssFallback),el:e.el,anchor:e.anchor};return u}function gn(e=" ",t=0){return dn(jt,null,e,t)}function vn(e="",t=!1){return t?(Kt(),rn(Zt,null,e)):dn(Zt,null,e)}function mn(e){return null==e||"boolean"===typeof e?dn(Zt):(0,r.kJ)(e)?dn(Ut,null,e.slice()):"object"===typeof e?yn(e):dn(jt,null,String(e))}function yn(e){return null===e.el||e.memo?e:fn(e)}function xn(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if((0,r.kJ)(t))n=16;else if("object"===typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),xn(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||sn in t?3===i&&F&&(1===F.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=F}}else(0,r.mf)(t)?(t={default:t,_ctx:F},n=32):(t=String(t),64&i?(n=16,t=[gn(t)]):n=8);e.children=t,e.shapeFlag|=n}function _n(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=(0,r.C_)([t.class,i.class]));else if("style"===e)t.style=(0,r.j5)([t.style,i.style]);else if((0,r.F7)(e)){const n=t[e],o=i[e];!o||n===o||(0,r.kJ)(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=i[e])}return t}function bn(e,t,n,i=null){a(e,t,7,[n,i])}const wn=It();let Sn=0;function Mn(e,t,n){const o=e.type,a=(t?t.appContext:e.appContext)||wn,s={uid:Sn++,vnode:e,type:o,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new i.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ft(o,a),emitsOptions:E(o,a),emit:null,emitted:null,propsDefaults:r.kT,inheritAttrs:o.inheritAttrs,ctx:r.kT,data:r.kT,props:r.kT,attrs:r.kT,slots:r.kT,refs:r.kT,setupState:r.kT,setupContext:null,suspense:n,suspenseId:n?n.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 s.ctx={_:s},s.root=t?t.root:s,s.emit=R.bind(null,s),e.ce&&e.ce(s),s}let Cn=null;const In=()=>Cn||F,Tn=e=>{Cn=e,e.scope.on()},kn=()=>{Cn&&Cn.scope.off(),Cn=null};function An(e){return 4&e.vnode.shapeFlag}let Dn,Ln,Pn=!1;function On(e,t=!1){Pn=t;const{props:n,children:i}=e.vnode,r=An(e);ct(e,n,r,t),Mt(e,i);const o=r?Rn(e,t):void 0;return Pn=!1,o}function Rn(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,i.Xl)(new Proxy(e.ctx,Ye));const{setup:a}=n;if(a){const n=e.setupContext=a.length>1?Bn(e):null;Tn(e),(0,i.Jd)();const l=o(a,e,0,[e.props,n]);if((0,i.lk)(),kn(),(0,r.tI)(l)){if(l.then(kn,kn),t)return l.then((n=>{En(e,n,t)})).catch((t=>{s(t,e,0)}));e.asyncDep=l}else En(e,l,t)}else Nn(e,t)}function En(e,t,n){(0,r.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,r.Kn)(t)&&(e.setupState=(0,i.WL)(t)),Nn(e,n)}function Nn(e,t,n){const o=e.type;if(!e.render){if(!t&&Dn&&!o.render){const t=o.template;if(t){0;const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,l=(0,r.l7)((0,r.l7)({isCustomElement:n,delimiters:a},i),s);o.render=Dn(t,l)}}e.render=o.render||r.dG,Ln&&Ln(e)}Tn(e),(0,i.Jd)(),Ke(e),(0,i.lk)(),kn()}function Fn(e){return new Proxy(e.attrs,{get(t,n){return(0,i.j)(e,"get","$attrs"),t[n]}})}function Bn(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=Fn(e))},slots:e.slots,emit:e.emit,expose:t}}function Vn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,i.WL)((0,i.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in $e?$e[n](e):void 0}}))}function zn(e,t=!0){return(0,r.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function qn(e){return(0,r.mf)(e)&&"__vccOpts"in e}const Hn=(e,t)=>(0,i.Fl)(e,t,Pn);function Wn(e,t,n){const i=arguments.length;return 2===i?(0,r.Kn)(t)&&!(0,r.kJ)(t)?on(t)?dn(e,null,[t]):dn(e,t):dn(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&on(n)&&(n=[n]),dn(e,t,n))}Symbol("");const Gn="3.2.37"},8880:(e,t,n)=>{"use strict";n.d(t,{ri:()=>ne,uT:()=>F});var i=n(2323),r=n(3673);n(1959);const o="http://www.w3.org/2000/svg",a="undefined"!==typeof document?document:null,s=a&&a.createElement("template"),l={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?a.createElementNS(o,e):a.createElement(e,n?{is:n}:void 0);return"select"===e&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r},createText:e=>a.createTextNode(e),createComment:e=>a.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>a.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,n,i,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling)){while(1)if(t.insertBefore(r.cloneNode(!0),n),r===o||!(r=r.nextSibling))break}else{s.innerHTML=i?`<svg>${e}</svg>`:e;const r=s.content;if(i){const e=r.firstChild;while(e.firstChild)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function u(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function c(e,t,n){const r=e.style,o=(0,i.HD)(n);if(n&&!o){for(const e in n)h(r,e,n[e]);if(t&&!(0,i.HD)(t))for(const e in t)null==n[e]&&h(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const d=/\s*!important$/;function h(e,t,n){if((0,i.kJ)(n))n.forEach((n=>h(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=g(e,t);d.test(n)?e.setProperty((0,i.rs)(r),n.replace(d,""),"important"):e[r]=n}}const p=["Webkit","Moz","ms"],f={};function g(e,t){const n=f[t];if(n)return n;let r=(0,i._A)(t);if("filter"!==r&&r in e)return f[t]=r;r=(0,i.kC)(r);for(let i=0;i<p.length;i++){const n=p[i]+r;if(n in e)return f[t]=n}return t}const v="http://www.w3.org/1999/xlink";function m(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(v,t.slice(6,t.length)):e.setAttributeNS(v,t,n);else{const r=(0,i.Pq)(t);null==n||r&&!(0,i.yA)(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function y(e,t,n,r,o,a,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,o,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const i=null==n?"":n;return e.value===i&&"OPTION"!==e.tagName||(e.value=i),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=(0,i.yA)(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(u){0}l&&e.removeAttribute(t)}const[x,_]=(()=>{let e=Date.now,t=!1;if("undefined"!==typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let b=0;const w=Promise.resolve(),S=()=>{b=0},M=()=>b||(w.then(S),b=x());function C(e,t,n,i){e.addEventListener(t,n,i)}function I(e,t,n,i){e.removeEventListener(t,n,i)}function T(e,t,n,i,r=null){const o=e._vei||(e._vei={}),a=o[t];if(i&&a)a.value=i;else{const[n,s]=A(t);if(i){const a=o[t]=D(i,r);C(e,n,a,s)}else a&&(I(e,n,a,s),o[t]=void 0)}}const k=/(?:Once|Passive|Capture)$/;function A(e){let t;if(k.test(e)){let n;t={};while(n=e.match(k))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,i.rs)(e.slice(2)),t]}function D(e,t){const n=e=>{const i=e.timeStamp||x();(_||i>=n.attached-1)&&(0,r.$d)(L(e,n.value),t,5,[e])};return n.value=e,n.attached=M(),n}function L(e,t){if((0,i.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const P=/^on[a-z]/,O=(e,t,n,r,o=!1,a,s,l,d)=>{"class"===t?u(e,r,o):"style"===t?c(e,n,r):(0,i.F7)(t)?(0,i.tR)(t)||T(e,t,n,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):R(e,t,r,o))?y(e,t,r,a,s,l,d):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),m(e,t,r,o))};function R(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&P.test(t)&&(0,i.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!P.test(t)||!(0,i.HD)(n))&&t in e))))}"undefined"!==typeof HTMLElement&&HTMLElement;const E="transition",N="animation",F=(e,{slots:t})=>(0,r.h)(r.P$,q(e),t);F.displayName="Transition";const B={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},V=(F.props=(0,i.l7)({},r.P$.props,B),(e,t=[])=>{(0,i.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)}),z=e=>!!e&&((0,i.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function q(e){const t={};for(const i in e)i in B||(t[i]=e[i]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=H(o),v=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:_,onLeave:b,onLeaveCancelled:w,onBeforeAppear:S=y,onAppear:M=x,onAppearCancelled:C=_}=t,I=(e,t,n)=>{U(e,t?d:l),U(e,t?c:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,U(e,h),U(e,f),U(e,p),t&&t()},k=e=>(t,n)=>{const i=e?M:x,o=()=>I(t,e,n);V(i,[t,o]),j((()=>{U(t,e?u:a),G(t,e?d:l),z(i)||$(t,r,v,o)}))};return(0,i.l7)(t,{onBeforeEnter(e){V(y,[e]),G(e,a),G(e,s)},onBeforeAppear(e){V(S,[e]),G(e,u),G(e,c)},onEnter:k(!1),onAppear:k(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);G(e,h),J(),G(e,p),j((()=>{e._isLeaving&&(U(e,h),G(e,f),z(b)||$(e,r,m,n))})),V(b,[e,n])},onEnterCancelled(e){I(e,!1),V(_,[e])},onAppearCancelled(e){I(e,!0),V(C,[e])},onLeaveCancelled(e){T(e),V(w,[e])}})}function H(e){if(null==e)return null;if((0,i.Kn)(e))return[W(e.enter),W(e.leave)];{const t=W(e);return[t,t]}}function W(e){const t=(0,i.He)(e);return t}function G(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function U(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function j(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Z=0;function $(e,t,n,i){const r=e._endId=++Z,o=()=>{r===e._endId&&i()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=Y(e,t);if(!a)return i();const u=a+"end";let c=0;const d=()=>{e.removeEventListener(u,h),o()},h=t=>{t.target===e&&++c>=l&&d()};setTimeout((()=>{c<l&&d()}),s+1),e.addEventListener(u,h)}function Y(e,t){const n=window.getComputedStyle(e),i=e=>(n[e]||"").split(", "),r=i(E+"Delay"),o=i(E+"Duration"),a=X(r,o),s=i(N+"Delay"),l=i(N+"Duration"),u=X(s,l);let c=null,d=0,h=0;t===E?a>0&&(c=E,d=a,h=o.length):t===N?u>0&&(c=N,d=u,h=l.length):(d=Math.max(a,u),c=d>0?a>u?E:N:null,h=c?c===E?o.length:l.length:0);const p=c===E&&/\b(transform|all)(,|$)/.test(n[E+"Property"]);return{type:c,timeout:d,propCount:h,hasTransform:p}}function X(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map(((t,n)=>K(t)+K(e[n]))))}function K(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function J(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Q=(0,i.l7)({patchProp:O},l);let ee;function te(){return ee||(ee=(0,r.Us)(Q))}const ne=(...e)=>{const t=te().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=ie(e);if(!r)return;const o=t._component;(0,i.mf)(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function ie(e){if((0,i.HD)(e)){const t=document.querySelector(e);return t}return e}},2323:(e,t,n)=>{"use strict";function i(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{C_:()=>p,DM:()=>P,E9:()=>ie,F7:()=>M,Gg:()=>G,HD:()=>E,He:()=>te,Kn:()=>F,NO:()=>w,Nj:()=>ee,Od:()=>T,PO:()=>H,Pq:()=>s,RI:()=>A,S0:()=>W,W7:()=>q,WV:()=>g,Z6:()=>_,_A:()=>Z,_N:()=>L,aU:()=>J,dG:()=>b,e1:()=>o,fY:()=>i,hR:()=>K,hq:()=>v,ir:()=>Q,j5:()=>u,kC:()=>X,kJ:()=>D,kT:()=>x,l7:()=>I,mf:()=>R,rs:()=>Y,tI:()=>B,tR:()=>C,yA:()=>l,yk:()=>N,zw:()=>m});const r="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",o=i(r);const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s=i(a);function l(e){return!!e||""===e}function u(e){if(D(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=E(i)?h(i):u(i);if(r)for(const e in r)t[e]=r[e]}return t}return E(e)||F(e)?e:void 0}const c=/;(?![^(]*\))/g,d=/:(.+)/;function h(e){const t={};return e.split(c).forEach((e=>{if(e){const n=e.split(d);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function p(e){let t="";if(E(e))t=e;else if(D(e))for(let n=0;n<e.length;n++){const i=p(e[n]);i&&(t+=i+" ")}else if(F(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function f(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=g(e[i],t[i]);return n}function g(e,t){if(e===t)return!0;let n=O(e),i=O(t);if(n||i)return!(!n||!i)&&e.getTime()===t.getTime();if(n=N(e),i=N(t),n||i)return e===t;if(n=D(e),i=D(t),n||i)return!(!n||!i)&&f(e,t);if(n=F(e),i=F(t),n||i){if(!n||!i)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const n in e){const i=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(i&&!r||!i&&r||!g(e[n],t[n]))return!1}}return String(e)===String(t)}function v(e,t){return e.findIndex((e=>g(e,t)))}const m=e=>E(e)?e:null==e?"":D(e)||F(e)&&(e.toString===V||!R(e.toString))?JSON.stringify(e,y,2):String(e),y=(e,t)=>t&&t.__v_isRef?y(e,t.value):L(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:P(t)?{[`Set(${t.size})`]:[...t.values()]}:!F(t)||D(t)||H(t)?t:String(t),x={},_=[],b=()=>{},w=()=>!1,S=/^on[^a-z]/,M=e=>S.test(e),C=e=>e.startsWith("onUpdate:"),I=Object.assign,T=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},k=Object.prototype.hasOwnProperty,A=(e,t)=>k.call(e,t),D=Array.isArray,L=e=>"[object Map]"===z(e),P=e=>"[object Set]"===z(e),O=e=>"[object Date]"===z(e),R=e=>"function"===typeof e,E=e=>"string"===typeof e,N=e=>"symbol"===typeof e,F=e=>null!==e&&"object"===typeof e,B=e=>F(e)&&R(e.then)&&R(e.catch),V=Object.prototype.toString,z=e=>V.call(e),q=e=>z(e).slice(8,-1),H=e=>"[object Object]"===z(e),W=e=>E(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,G=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),U=e=>{const t=Object.create(null);return n=>{const i=t[n];return i||(t[n]=e(n))}},j=/-(\w)/g,Z=U((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),$=/\B([A-Z])/g,Y=U((e=>e.replace($,"-$1").toLowerCase())),X=U((e=>e.charAt(0).toUpperCase()+e.slice(1))),K=U((e=>e?`on${X(e)}`:"")),J=(e,t)=>!Object.is(e,t),Q=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ee=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},te=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ne;const ie=()=>ne||(ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},52:(e,t,n)=>{e.exports=n(7974)},8699:(e,t,n)=>{"use strict";var i=n(7210),r=n(4923),o=n(3634),a=n(7696),s=n(9835),l=n(3423),u=n(8365),c=n(8838),d=n(9469),h=n(9157),p=n(7302);e.exports=function(e){return new Promise((function(t,n){var f,g=e.data,v=e.headers,m=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}i.isFormData(g)&&i.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(_+":"+b)}var w=s(e.baseURL,e.url);function S(){if(x){var i="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null,o=m&&"text"!==m&&"json"!==m?x.response:x.responseText,a={data:o,status:x.status,statusText:x.statusText,headers:i,config:e,request:x};r((function(e){t(e),y()}),(function(e){n(e),y()}),a),x=null}}if(x.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=S:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(S)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,i.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,x)),x=null},i.isStandardBrowserEnv()){var M=(e.withCredentials||u(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;M&&(v[e.xsrfHeaderName]=M)}"setRequestHeader"in x&&i.forEach(v,(function(e,t){"undefined"===typeof g&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),m&&"json"!==m&&(x.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){x&&(n(!e||e&&e.type?new h:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||(g=null);var C=p(w);C&&-1===["http","https","file"].indexOf(C)?n(new d("Unsupported protocol "+C+":",d.ERR_BAD_REQUEST,e)):x.send(g)}))}},7974:(e,t,n)=>{"use strict";var i=n(7210),r=n(2938),o=n(8799),a=n(4495),s=n(2447);function l(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n.create=function(t){return l(a(e,t))},n}var u=l(s);u.Axios=o,u.CanceledError=n(9157),u.CancelToken=n(8858),u.isCancel=n(6029),u.VERSION=n(765).version,u.toFormData=n(4415),u.AxiosError=n(9469),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=n(5178),u.isAxiosError=n(5615),e.exports=u,e.exports["default"]=u},8858:(e,t,n)=>{"use strict";var i=n(9157);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t<i;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,i=new Promise((function(e){n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},9157:(e,t,n)=>{"use strict";var i=n(9469),r=n(7210);function o(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}r.inherits(o,i,{__CANCEL__:!0}),e.exports=o},6029:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},8799:(e,t,n)=>{"use strict";var i=n(7210),r=n(7696),o=n(2591),a=n(516),s=n(4495),l=n(9835),u=n(3170),c=u.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var d=[a,void 0];Array.prototype.unshift.apply(d,i),d=d.concat(l),o=Promise.resolve(t);while(d.length)o=o.then(d.shift(),d.shift());return o}var h=t;while(i.length){var p=i.shift(),f=i.shift();try{h=p(h)}catch(g){f(g);break}}try{o=a(h)}catch(g){return Promise.reject(g)}while(l.length)o=o.then(l.shift(),l.shift());return o},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},9469:(e,t,n)=>{"use strict";var i=n(7210);function r(e,t,n,i,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=r.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(r,a),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=function(e,t,n,a,s,l){var u=Object.create(o);return i.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},2591:(e,t,n)=>{"use strict";var i=n(7210);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},9835:(e,t,n)=>{"use strict";var i=n(8380),r=n(6092);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},516:(e,t,n)=>{"use strict";var i=n(7210),r=n(4330),o=n(6029),a=n(2447),s=n(9157);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4495:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function o(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function a(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)})),n}},4923:(e,t,n)=>{"use strict";var i=n(9469);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},4330:(e,t,n)=>{"use strict";var i=n(7210),r=n(2447);e.exports=function(e,t,n){var o=this||r;return i.forEach(n,(function(n){e=n.call(o,e,t)})),e}},2447:(e,t,n)=>{"use strict";var i=n(7210),r=n(4733),o=n(9469),a=n(8838),s=n(4415),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(8699)),e}function d(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}var h={transitional:a,adapter:c(),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=i.isObject(e),a=t&&t["Content-Type"];if((n=i.isFileList(e))||o&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return o||"application/json"===a?(u(t,"application/json"),d(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o.from(s,o.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(6632)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){h.headers[e]=i.merge(l)})),e.exports=h},8838:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},765:e=>{e.exports={version:"0.27.2"}},2938:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},7696:(e,t,n)=>{"use strict";var i=n(7210);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},6092:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},3634:(e,t,n)=>{"use strict";var i=n(7210);e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},8380:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5615:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},8365:(e,t,n)=>{"use strict";var i=n(7210);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},4733:(e,t,n)=>{"use strict";var i=n(7210);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},6632:e=>{e.exports=null},3423:(e,t,n)=>{"use strict";var i=n(7210),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},7302:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5178:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4415:(e,t,n)=>{"use strict";var i=n(7210);function r(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function o(e,a){if(i.isPlainObject(e)||i.isArray(e)){if(-1!==n.indexOf(e))throw Error("Circular reference detected in "+a);n.push(e),i.forEach(e,(function(e,n){if(!i.isUndefined(e)){var s,l=a?a+"."+n:n;if(e&&!a&&"object"===typeof e)if(i.endsWith(n,"{}"))e=JSON.stringify(e);else if(i.endsWith(n,"[]")&&(s=i.toArray(e)))return void s.forEach((function(e){!i.isUndefined(e)&&t.append(l,r(e))}));o(e,l)}})),n.pop()}else t.append(a,r(e))}return o(e),t}e.exports=r},3170:(e,t,n)=>{"use strict";var i=n(765).version,r=n(9469),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};function s(e,t,n){if("object"!==typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);var i=Object.keys(e),o=i.length;while(o-- >0){var a=i[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new r("option "+a+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+a,r.ERR_BAD_OPTION)}}o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new r(o(i," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!a[i]&&(a[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={assertOptions:s,validators:o}},7210:(e,t,n)=>{"use strict";var i=n(2938),r=Object.prototype.toString,o=function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function s(e){return Array.isArray(e)}function l(e){return"undefined"===typeof e}function u(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var c=a("ArrayBuffer");function d(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function h(e){return"string"===typeof e}function p(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function g(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var v=a("Date"),m=a("File"),y=a("Blob"),x=a("FileList");function _(e){return"[object Function]"===r.call(e)}function b(e){return f(e)&&_(e.pipe)}function w(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||r.call(e)===t||_(e.toString)&&e.toString()===t)}var S=a("URLSearchParams");function M(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function I(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function T(){var e={};function t(t,n){g(e[n])&&g(t)?e[n]=T(e[n],t):g(t)?e[n]=T({},t):s(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)I(arguments[n],t);return e}function k(e,t,n){return I(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e}function A(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}function D(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function L(e,t,n){var i,r,o,a={};t=t||{};do{i=Object.getOwnPropertyNames(e),r=i.length;while(r-- >0)o=i[r],a[o]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function P(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n}function O(e){if(!e)return null;var t=e.length;if(l(t))return null;var n=new Array(t);while(t-- >0)n[t]=e[t];return n}var R=function(e){return function(t){return e&&t instanceof e}}("undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array));e.exports={isArray:s,isArrayBuffer:c,isBuffer:u,isFormData:w,isArrayBufferView:d,isString:h,isNumber:p,isObject:f,isPlainObject:g,isUndefined:l,isDate:v,isFile:m,isBlob:y,isFunction:_,isStream:b,isURLSearchParams:S,isStandardBrowserEnv:C,forEach:I,merge:T,extend:k,trim:M,stripBOM:A,inherits:D,toFlatObject:L,kindOf:o,kindOfTest:a,endsWith:P,toArray:O,isTypedArray:R,isFileList:x}},5607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(2236),a=n(7657);const s=(0,r.L)({name:"QBanner",props:{...o.S,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,o.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-banner row items-center"+(!0===e.dense?" q-banner--dense":"")+(!0===r.value?" q-banner--dark q-dark":"")+(!0===e.rounded?" rounded-borders":""))),l=(0,i.Fl)((()=>"q-banner__actions row items-center justify-end col-"+(!0===e.inlineActions?"auto":"all")));return()=>{const n=[(0,i.h)("div",{class:"q-banner__avatar col-auto row items-center self-start"},(0,a.KR)(t.avatar)),(0,i.h)("div",{class:"q-banner__content col text-body2"},(0,a.KR)(t.default))],r=(0,a.KR)(t.action);return void 0!==r&&n.push((0,i.h)("div",{class:l.value},r)),(0,i.h)("div",{class:s.value+(!1===e.inlineActions&&void 0!==r?" q-banner--top-padding":""),role:"alert"},n)}}})},846:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(2236),o=n(908),a=n(7657);const s=(0,o.L)({name:"QBar",props:{...r.S,dense:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>`q-bar row no-wrap items-center q-bar--${!0===e.dense?"dense":"standard"} q-bar--`+(!0===o.value?"dark":"light")));return()=>(0,i.h)("div",{class:s.value,role:"toolbar"},(0,a.KR)(t.default))}})},1481:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(3610);var i=n(3673),r=n(9992),o=n(908),a=n(7657),s=n(7445);const l=["",!0],u=(0,o.L)({name:"QBreadcrumbs",props:{...r.jO,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:t}){const n=(0,r.ZP)(e),o=(0,i.Fl)((()=>`flex items-center ${n.value}${"none"===e.gutter?"":` q-gutter-${e.gutter}`}`)),u=(0,i.Fl)((()=>e.separatorColor?` text-${e.separatorColor}`:"")),c=(0,i.Fl)((()=>` text-${e.activeColor}`));return()=>{const n=(0,s.Pf)((0,a.KR)(t.default));if(0===n.length)return;let r=1;const d=[],h=n.filter((e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name)).length,p=void 0!==t.separator?t.separator:()=>e.separator;return n.forEach((e=>{if(void 0!==e.type&&"QBreadcrumbsEl"===e.type.name){const t=r<h,n=null!==e.props&&l.includes(e.props.disable),o=(!0===t?"":" q-breadcrumbs--last")+(!0!==n&&!0===t?c.value:"");r++,d.push((0,i.h)("div",{class:`flex items-center${o}`},[e])),!0===t&&d.push((0,i.h)("div",{class:"q-breadcrumbs__separator"+u.value},p()))}else d.push(e)})),(0,i.h)("div",{class:"q-breadcrumbs"},[(0,i.h)("div",{class:o.value},d)])}}})},5926:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(4554),o=n(908),a=n(7657),s=n(7277);const l=(0,o.L)({name:"QBreadcrumbsEl",props:{...s.$,label:String,icon:String,tag:{type:String,default:"span"}},setup(e,{slots:t}){const{linkTag:n,linkProps:o,linkClass:l,hasRouterLink:u,navigateToRouterLink:c}=(0,s.Z)(),d=(0,i.Fl)((()=>{const t={class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(!0!==e.disable?"q-link--focusable"+l.value:"q-breadcrumbs__el--disable"),...o.value};return!0===u.value&&(t.onClick=c),t})),h=(0,i.Fl)((()=>"q-breadcrumbs__el-icon"+(void 0!==e.label?" q-breadcrumbs__el-icon--with-label":"")));return()=>{const o=[];return void 0!==e.icon&&o.push((0,i.h)(r.Z,{class:h.value,name:e.icon})),void 0!==e.label&&o.push(e.label),(0,i.h)(n.value,{...d.value},(0,a.vs)(t.default,o))}}})},8240:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I});var i=n(3673),r=n(1959),o=n(8880),a=n(4554),s=n(9754),l=n(860),u=(n(3610),n(9992)),c=n(2417),d=n(7277);const h={none:0,xs:4,sm:8,md:16,lg:24,xl:32},p={xs:8,sm:10,md:14,lg:20,xl:24},f=["button","submit","reset"],g=/[^\s]\/[^\s]/,v={...c.LU,...d.$,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,round:Boolean,square:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...u.jO.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function m(e){const t=(0,c.ZP)(e,p),n=(0,u.ZP)(e),{hasRouterLink:r,hasLink:o,linkTag:a,linkProps:s,navigateToRouterLink:l}=(0,d.Z)("button"),v=(0,i.Fl)((()=>{const n=!1===e.fab&&!1===e.fabMini?t.value:{};return void 0!==e.padding?Object.assign({},n,{padding:e.padding.split(/\s+/).map((e=>e in h?h[e]+"px":e)).join(" "),minWidth:"0",minHeight:"0"}):n})),m=(0,i.Fl)((()=>!0===e.rounded||!0===e.fab||!0===e.fabMini)),y=(0,i.Fl)((()=>!0!==e.disable&&!0!==e.loading)),x=(0,i.Fl)((()=>!0===y.value?e.tabindex||0:-1)),_=(0,i.Fl)((()=>!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":"standard")),b=(0,i.Fl)((()=>{const t={tabindex:x.value};return!0===o.value?Object.assign(t,s.value):!0===f.includes(e.type)&&(t.type=e.type),"a"===a.value?(!0===e.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==r.value&&!0===g.test(e.type)&&(t.type=e.type)):!0===e.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===e.loading&&void 0!==e.percentage&&Object.assign(t,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),t})),w=(0,i.Fl)((()=>{let t;void 0!==e.color?t=!0===e.flat||!0===e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(t=`text-${e.textColor}`);const n=!0===e.round?"round":"rectangle"+(!0===m.value?" q-btn--rounded":!0===e.square?" q-btn--square":"");return`q-btn--${_.value} q-btn--${n}`+(void 0!==t?" "+t:"")+(!0===y.value?" q-btn--actionable q-focusable q-hoverable":!0===e.disable?" disabled":"")+(!0===e.fab?" q-btn--fab":!0===e.fabMini?" q-btn--fab-mini":"")+(!0===e.noCaps?" q-btn--no-uppercase":"")+(!0===e.dense?" q-btn--dense":"")+(!0===e.stretch?" no-border-radius self-stretch":"")+(!0===e.glossy?" glossy":"")+(e.square?" q-btn--square":"")})),S=(0,i.Fl)((()=>n.value+(!0===e.stack?" column":" row")+(!0===e.noWrap?" no-wrap text-no-wrap":"")+(!0===e.loading?" q-btn__content--hidden":"")));return{classes:w,style:v,innerClasses:S,attributes:b,hasRouterLink:r,hasLink:o,linkTag:a,navigateToRouterLink:l,isActionable:y}}var y=n(908),x=n(7657),_=n(4716),b=n(1436);const{passiveCapture:w}=_.rU;let S=null,M=null,C=null;const I=(0,y.L)({name:"QBtn",props:{...v,percentage:Number,darkPercentage:Boolean},emits:["click","keydown","touchstart","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:u}=(0,i.FN)(),{classes:c,style:d,innerClasses:h,attributes:p,hasRouterLink:f,hasLink:g,linkTag:v,navigateToRouterLink:y,isActionable:I}=m(e),T=(0,r.iH)(null),k=(0,r.iH)(null);let A,D,L=null;const P=(0,i.Fl)((()=>void 0!==e.label&&null!==e.label&&""!==e.label)),O=(0,i.Fl)((()=>!0!==e.disable&&!1!==e.ripple&&{keyCodes:!0===g.value?[13,32]:[13],...!0===e.ripple?{}:e.ripple})),R=(0,i.Fl)((()=>({center:e.round}))),E=(0,i.Fl)((()=>{const t=Math.max(0,Math.min(100,e.percentage));return t>0?{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}:{}})),N=(0,i.Fl)((()=>!0===e.loading?{onMousedown:G,onTouchstartPassive:G,onClick:G,onKeydown:G,onKeyup:G}:!0===I.value?{onClick:B,onKeydown:V,onMousedown:q,onTouchstart:z}:{onClick:_.NS})),F=(0,i.Fl)((()=>({ref:T,class:"q-btn q-btn-item non-selectable no-outline "+c.value,style:d.value,...p.value,...N.value})));function B(t){if(null!==T.value){if(void 0!==t){if(!0===t.defaultPrevented)return;const n=document.activeElement;if("submit"===e.type&&n!==document.body&&!1===T.value.contains(n)&&!1===n.contains(T.value)){T.value.focus();const e=()=>{document.removeEventListener("keydown",_.NS,!0),document.removeEventListener("keyup",e,w),null!==T.value&&T.value.removeEventListener("blur",e,w)};document.addEventListener("keydown",_.NS,!0),document.addEventListener("keyup",e,w),T.value.addEventListener("blur",e,w)}}if(!0===f.value){const e=()=>{t.__qNavigate=!0,y(t)};n("click",t,e),!0!==t.defaultPrevented&&e()}else n("click",t)}}function V(e){null!==T.value&&(n("keydown",e),!0===(0,b.So)(e,[13,32])&&M!==T.value&&(null!==M&&W(),!0!==e.defaultPrevented&&(T.value.focus(),M=T.value,T.value.classList.add("q-btn--active"),document.addEventListener("keyup",H,!0),T.value.addEventListener("blur",H,w)),(0,_.NS)(e)))}function z(e){null!==T.value&&(n("touchstart",e),!0!==e.defaultPrevented&&(S!==T.value&&(null!==S&&W(),S=T.value,L=e.target,L.addEventListener("touchcancel",H,w),L.addEventListener("touchend",H,w)),A=!0,clearTimeout(D),D=setTimeout((()=>{A=!1}),200)))}function q(e){null!==T.value&&(e.qSkipRipple=!0===A,n("mousedown",e),!0!==e.defaultPrevented&&C!==T.value&&(null!==C&&W(),C=T.value,T.value.classList.add("q-btn--active"),document.addEventListener("mouseup",H,w)))}function H(e){if(null!==T.value&&(void 0===e||"blur"!==e.type||document.activeElement!==T.value)){if(void 0!==e&&"keyup"===e.type){if(M===T.value&&!0===(0,b.So)(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&(0,_.X$)(t),!0===e.cancelBubble&&(0,_.sT)(t),T.value.dispatchEvent(t),(0,_.NS)(e),e.qKeyEvent=!0}n("keyup",e)}W()}}function W(e){const t=k.value;!0===e||S!==T.value&&C!==T.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),S===T.value&&(null!==L&&(L.removeEventListener("touchcancel",H,w),L.removeEventListener("touchend",H,w)),S=L=null),C===T.value&&(document.removeEventListener("mouseup",H,w),C=null),M===T.value&&(document.removeEventListener("keyup",H,!0),null!==T.value&&T.value.removeEventListener("blur",H,w),M=null),null!==T.value&&T.value.classList.remove("q-btn--active")}function G(e){(0,_.NS)(e),e.qSkipRipple=!0}return(0,i.Jd)((()=>{W(!0)})),Object.assign(u,{click:B}),()=>{let n=[];void 0!==e.icon&&n.push((0,i.h)(a.Z,{name:e.icon,left:!1===e.stack&&!0===P.value,role:"img","aria-hidden":"true"})),!0===P.value&&n.push((0,i.h)("span",{class:"block"},[e.label])),n=(0,x.vs)(t.default,n),void 0!==e.iconRight&&!1===e.round&&n.push((0,i.h)(a.Z,{name:e.iconRight,right:!1===e.stack&&!0===P.value,role:"img","aria-hidden":"true"}));const r=[(0,i.h)("span",{class:"q-focus-helper",ref:k})];return!0===e.loading&&void 0!==e.percentage&&r.push((0,i.h)("span",{class:"q-btn__progress absolute-full overflow-hidden"+(!0===e.darkPercentage?" q-btn__progress--dark":"")},[(0,i.h)("span",{class:"q-btn__progress-indicator fit block",style:E.value})])),r.push((0,i.h)("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+h.value},n)),null!==e.loading&&r.push((0,i.h)(o.uT,{name:"q-transition--fade"},(()=>!0===e.loading?[(0,i.h)("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==t.loading?t.loading():[(0,i.h)(s.Z)])]:null))),(0,i.wy)((0,i.h)(v.value,F.value,r),[[l.Z,O.value,void 0,R.value]])}}})},151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(2236),o=n(908),a=n(7657);const s=(0,o.L)({name:"QCard",props:{...r.S,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-card"+(!0===o.value?" q-card--dark q-dark":"")+(!0===e.bordered?" q-card--bordered":"")+(!0===e.square?" q-card--square no-border-radius":"")+(!0===e.flat?" q-card--flat no-shadow":"")));return()=>(0,i.h)(e.tag,{class:s.value},(0,a.KR)(t.default))}})},9367:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(9992),o=n(908),a=n(7657);const s=(0,o.L)({name:"QCardActions",props:{...r.jO,vertical:Boolean},setup(e,{slots:t}){const n=(0,r.ZP)(e),o=(0,i.Fl)((()=>`q-card__actions ${n.value} q-card__actions--`+(!0===e.vertical?"vert column":"horiz row")));return()=>(0,i.h)("div",{class:o.value},(0,a.KR)(t.default))}})},5589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-card__section q-card__section--"+(!0===e.horizontal?"horiz row no-wrap":"vert")));return()=>(0,i.h)(e.tag,{class:n.value},(0,o.KR)(t.default))}})},7030:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(3673),r=n(4554),o=n(860),a=n(2236),s=n(2417),l=n(908),u=n(4716),c=n(7657);const d={xs:8,sm:10,md:14,lg:20,xl:24},h=(0,l.L)({name:"QChip",props:{...a.S,...s.LU,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:l}}=(0,i.FN)(),h=(0,a.Z)(e,l),p=(0,s.ZP)(e,d),f=(0,i.Fl)((()=>!0===e.selected||void 0!==e.icon)),g=(0,i.Fl)((()=>!0===e.selected?e.iconSelected||l.iconSet.chip.selected:e.icon)),v=(0,i.Fl)((()=>e.iconRemove||l.iconSet.chip.remove)),m=(0,i.Fl)((()=>!1===e.disable&&(!0===e.clickable||null!==e.selected))),y=(0,i.Fl)((()=>{const t=!0===e.outline&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(!1===e.outline&&void 0!==e.color?` bg-${e.color}`:"")+(t?` text-${t} q-chip--colored`:"")+(!0===e.disable?" disabled":"")+(!0===e.dense?" q-chip--dense":"")+(!0===e.outline?" q-chip--outline":"")+(!0===e.selected?" q-chip--selected":"")+(!0===m.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===e.square?" q-chip--square":"")+(!0===h.value?" q-chip--dark q-dark":"")})),x=(0,i.Fl)((()=>!0===e.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0}));function _(e){13===e.keyCode&&b(e)}function b(t){e.disable||(n("update:selected",!e.selected),n("click",t))}function w(t){void 0!==t.keyCode&&13!==t.keyCode||((0,u.NS)(t),!1===e.disable&&(n("update:modelValue",!1),n("remove")))}function S(){const n=[];!0===m.value&&n.push((0,i.h)("div",{class:"q-focus-helper"})),!0===f.value&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--left",name:g.value}));const o=void 0!==e.label?[(0,i.h)("div",{class:"ellipsis"},[e.label])]:void 0;return n.push((0,i.h)("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},(0,c.pf)(t.default,o))),e.iconRight&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),!0===e.removable&&n.push((0,i.h)(r.Z,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:v.value,...x.value,onClick:w,onKeyup:w})),n}return()=>{if(!1===e.modelValue)return;const t={class:y.value,style:p.value};return!0===m.value&&Object.assign(t,x.value,{onClick:b,onKeyup:_}),(0,c.Jl)("div",t,S(),"ripple",!1!==e.ripple&&!0!==e.disable,(()=>[[o.Z,e.ripple]]))}}})},281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ae});n(3610),n(5363);var i=n(3673),r=n(1959),o=n(5777),a=n(9550),s=n(2236),l=n(2130),u=n(4716),c=n(782),d=n(7657);const h="q-slider__marker-labels",p=e=>({value:e}),f=({marker:e})=>(0,i.h)("div",{key:e.value,style:e.style,class:e.classes},e.label),g=[34,37,40,33,39,38],v={...s.S,...a.Fz,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,hideSelection:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},m=["pan","update:modelValue","change"];function y({updateValue:e,updatePosition:t,getDragging:n,formAttrs:v}){const{props:m,emit:y,slots:x,proxy:{$q:_}}=(0,i.FN)(),b=(0,s.Z)(m,_),w=(0,a.eX)(v),S=(0,r.iH)(!1),M=(0,r.iH)(!1),C=(0,r.iH)(!1),I=(0,r.iH)(!1),T=(0,i.Fl)((()=>!0===m.vertical?"--v":"--h")),k=(0,i.Fl)((()=>"-"+(!0===m.switchLabelSide?"switched":"standard"))),A=(0,i.Fl)((()=>!0===m.vertical?!0===m.reverse:m.reverse!==(!0===_.lang.rtl))),D=(0,i.Fl)((()=>!0===isNaN(m.innerMin)||m.innerMin<m.min?m.min:m.innerMin)),L=(0,i.Fl)((()=>!0===isNaN(m.innerMax)||m.innerMax>m.max?m.max:m.innerMax)),P=(0,i.Fl)((()=>!0!==m.disable&&!0!==m.readonly&&D.value<L.value)),O=(0,i.Fl)((()=>(String(m.step).trim().split(".")[1]||"").length)),R=(0,i.Fl)((()=>0===m.step?1:m.step)),E=(0,i.Fl)((()=>!0===P.value?m.tabindex||0:-1)),N=(0,i.Fl)((()=>m.max-m.min)),F=(0,i.Fl)((()=>L.value-D.value)),B=(0,i.Fl)((()=>ae(D.value))),V=(0,i.Fl)((()=>ae(L.value))),z=(0,i.Fl)((()=>!0===m.vertical?!0===A.value?"bottom":"top":!0===A.value?"right":"left")),q=(0,i.Fl)((()=>!0===m.vertical?"height":"width")),H=(0,i.Fl)((()=>!0===m.vertical?"width":"height")),W=(0,i.Fl)((()=>!0===m.vertical?"vertical":"horizontal")),G=(0,i.Fl)((()=>{const e={role:"slider","aria-valuemin":D.value,"aria-valuemax":L.value,"aria-orientation":W.value,"data-step":m.step};return!0===m.disable?e["aria-disabled"]="true":!0===m.readonly&&(e["aria-readonly"]="true"),e})),U=(0,i.Fl)((()=>`q-slider q-slider${T.value} q-slider--${!0===S.value?"":"in"}active inline no-wrap `+(!0===m.vertical?"row":"column")+(!0===m.disable?" disabled":" q-slider--enabled"+(!0===P.value?" q-slider--editable":""))+("both"===C.value?" q-slider--focus":"")+(m.label||!0===m.labelAlways?" q-slider--label":"")+(!0===m.labelAlways?" q-slider--label-always":"")+(!0===b.value?" q-slider--dark":"")+(!0===m.dense?" q-slider--dense q-slider--dense"+T.value:"")));function j(e){const t="q-slider__"+e;return`${t} ${t}${T.value} ${t}${T.value}${k.value}`}function Z(e){const t="q-slider__"+e;return`${t} ${t}${T.value}`}const $=(0,i.Fl)((()=>{const e=m.selectionColor||m.color;return"q-slider__selection absolute"+(void 0!==e?` text-${e}`:"")})),Y=(0,i.Fl)((()=>Z("markers")+" absolute overflow-hidden")),X=(0,i.Fl)((()=>Z("track-container"))),K=(0,i.Fl)((()=>j("pin"))),J=(0,i.Fl)((()=>j("label"))),Q=(0,i.Fl)((()=>j("text-container"))),ee=(0,i.Fl)((()=>j("marker-labels-container")+(void 0!==m.markerLabelsClass?` ${m.markerLabelsClass}`:""))),te=(0,i.Fl)((()=>"q-slider__track relative-position no-outline"+(void 0!==m.trackColor?` bg-${m.trackColor}`:""))),ne=(0,i.Fl)((()=>{const e={[H.value]:m.trackSize};return void 0!==m.trackImg&&(e.backgroundImage=`url(${m.trackImg}) !important`),e})),ie=(0,i.Fl)((()=>"q-slider__inner absolute"+(void 0!==m.innerTrackColor?` bg-${m.innerTrackColor}`:""))),re=(0,i.Fl)((()=>{const e={[z.value]:100*B.value+"%",[q.value]:100*(V.value-B.value)+"%"};return void 0!==m.innerTrackImg&&(e.backgroundImage=`url(${m.innerTrackImg}) !important`),e}));function oe(e){const{min:t,max:n,step:i}=m;let r=t+e*(n-t);if(i>0){const e=(r-t)%i;r+=(Math.abs(e)>=i/2?(e<0?-1:1)*i:0)-e}return O.value>0&&(r=parseFloat(r.toFixed(O.value))),(0,l.vX)(r,D.value,L.value)}function ae(e){return 0===N.value?0:(e-m.min)/N.value}function se(e,t){const n=(0,u.FK)(e),i=!0===m.vertical?(0,l.vX)((n.top-t.top)/t.height,0,1):(0,l.vX)((n.left-t.left)/t.width,0,1);return(0,l.vX)(!0===A.value?1-i:i,B.value,V.value)}const le=(0,i.Fl)((()=>!0===(0,c.hj)(m.markers)?m.markers:R.value)),ue=(0,i.Fl)((()=>{const e=[],t=le.value,n=m.max;let i=m.min;do{e.push(i),i+=t}while(i<n);return e.push(n),e})),ce=(0,i.Fl)((()=>{const e=` ${h}${T.value}-`;return h+`${e}${!0===m.switchMarkerLabelsSide?"switched":"standard"}`+`${e}${!0===A.value?"rtl":"ltr"}`})),de=(0,i.Fl)((()=>!1===m.markerLabels?null:fe(m.markerLabels).map(((e,t)=>({index:t,value:e.value,label:e.label||e.value,classes:ce.value+(void 0!==e.classes?" "+e.classes:""),style:{...ge(e.value),...e.style||{}}}))))),he=(0,i.Fl)((()=>({markerList:de.value,markerMap:ve.value,classes:ce.value,getStyle:ge}))),pe=(0,i.Fl)((()=>{if(0!==F.value){const e=100*le.value/F.value;return{...re.value,backgroundSize:!0===m.vertical?`2px ${e}%`:`${e}% 2px`}}return null}));function fe(e){if(!1===e)return null;if(!0===e)return ue.value.map(p);if("function"===typeof e)return ue.value.map((t=>{const n=e(t);return!0===(0,c.Kn)(n)?{...n,value:t}:{value:t,label:n}}));const t=({value:e})=>e>=m.min&&e<=m.max;return!0===Array.isArray(e)?e.map((e=>!0===(0,c.Kn)(e)?e:{value:e})).filter(t):Object.keys(e).map((t=>{const n=e[t],i=Number(t);return!0===(0,c.Kn)(n)?{...n,value:i}:{value:i,label:n}})).filter(t)}function ge(e){return{[z.value]:100*(e-m.min)/N.value+"%"}}const ve=(0,i.Fl)((()=>{if(!1===m.markerLabels)return null;const e={};return de.value.forEach((t=>{e[t.value]=t})),e}));function me(){if(void 0!==x["marker-label-group"])return x["marker-label-group"](he.value);const e=x["marker-label"]||f;return de.value.map((t=>e({marker:t,...he.value})))}const ye=(0,i.Fl)((()=>[[o.Z,xe,void 0,{[W.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]));function xe(i){!0===i.isFinal?(void 0!==I.value&&(t(i.evt),!0===i.touch&&e(!0),I.value=void 0,y("pan","end")),S.value=!1,C.value=!1):!0===i.isFirst?(I.value=n(i.evt),t(i.evt),e(),S.value=!0,y("pan","start")):(t(i.evt),e())}function _e(){C.value=!1}function be(i){t(i,n(i)),e(),M.value=!0,S.value=!0,document.addEventListener("mouseup",we,!0)}function we(){M.value=!1,S.value=!1,e(!0),_e(),document.removeEventListener("mouseup",we,!0)}function Se(i){t(i,n(i)),e(!0)}function Me(t){g.includes(t.keyCode)&&e(!0)}function Ce(e){if(!0===m.vertical)return null;const t=_.lang.rtl!==m.reverse?1-e:e;return{transform:`translateX(calc(${2*t-1} * ${m.thumbSize} / 2 + ${50-100*t}%))`}}function Ie(e){const t=(0,i.Fl)((()=>!1!==M.value||C.value!==e.focusValue&&"both"!==C.value?"":" q-slider--focus")),n=(0,i.Fl)((()=>`q-slider__thumb q-slider__thumb${T.value} q-slider__thumb${T.value}-${!0===A.value?"rtl":"ltr"} absolute non-selectable`+t.value+(void 0!==e.thumbColor.value?` text-${e.thumbColor.value}`:""))),r=(0,i.Fl)((()=>({width:m.thumbSize,height:m.thumbSize,[z.value]:100*e.ratio.value+"%",zIndex:C.value===e.focusValue?2:void 0}))),o=(0,i.Fl)((()=>void 0!==e.labelColor.value?` text-${e.labelColor.value}`:"")),a=(0,i.Fl)((()=>Ce(e.ratio.value))),s=(0,i.Fl)((()=>"q-slider__text"+(void 0!==e.labelTextColor.value?` text-${e.labelTextColor.value}`:"")));return()=>{const t=[(0,i.h)("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[(0,i.h)("path",{d:m.thumbPath})]),(0,i.h)("div",{class:"q-slider__focus-ring fit"})];return!0!==m.label&&!0!==m.labelAlways||(t.push((0,i.h)("div",{class:K.value+" absolute fit no-pointer-events"+o.value},[(0,i.h)("div",{class:J.value,style:{minWidth:m.thumbSize}},[(0,i.h)("div",{class:Q.value,style:a.value},[(0,i.h)("span",{class:s.value},e.label.value)])])])),void 0!==m.name&&!0!==m.disable&&w(t,"push")),(0,i.h)("div",{class:n.value,style:r.value,...e.getNodeData()},t)}}function Te(e,t,n,r){const o=[];"transparent"!==m.innerTrackColor&&o.push((0,i.h)("div",{key:"inner",class:ie.value,style:re.value})),"transparent"!==m.selectionColor&&o.push((0,i.h)("div",{key:"selection",class:$.value,style:e.value})),!1!==m.markers&&o.push((0,i.h)("div",{key:"marker",class:Y.value,style:pe.value})),r(o);const a=[(0,d.Jl)("div",{key:"trackC",class:X.value,tabindex:t.value,...n.value},[(0,i.h)("div",{class:te.value,style:ne.value},o)],"slide",P.value,(()=>ye.value))];if(!1!==m.markerLabels){const e=!0===m.switchMarkerLabelsSide?"unshift":"push";a[e]((0,i.h)("div",{key:"markerL",class:ee.value},me()))}return a}return(0,i.Jd)((()=>{document.removeEventListener("mouseup",we,!0)})),{state:{active:S,focus:C,preventFocus:M,dragging:I,editable:P,classes:U,tabindex:E,attributes:G,step:R,decimals:O,trackLen:N,innerMin:D,innerMinRatio:B,innerMax:L,innerMaxRatio:V,positionProp:z,sizeProp:q,isReversed:A},methods:{onActivate:be,onMobileClick:Se,onBlur:_e,onKeyup:Me,getContent:Te,getThumbRenderFn:Ie,convertRatioToModel:oe,convertModelToRatio:ae,getDraggingRatio:se}}}var x=n(908);const _=()=>({}),b=(0,x.L)({name:"QSlider",props:{...v,modelValue:{required:!0,default:null,validator:e=>"number"===typeof e||null===e},labelValue:[String,Number]},emits:m,setup(e,{emit:t}){const{proxy:{$q:n}}=(0,i.FN)(),{state:o,methods:s}=y({updateValue:w,updatePosition:M,getDragging:S,formAttrs:(0,a.Vt)(e)}),c=(0,r.iH)(null),d=(0,r.iH)(0),h=(0,r.iH)(0);function p(){h.value=null===e.modelValue?o.innerMin.value:(0,l.vX)(e.modelValue,o.innerMin.value,o.innerMax.value)}(0,i.YP)((()=>`${e.modelValue}|${o.innerMin.value}|${o.innerMax.value}`),p),p();const f=(0,i.Fl)((()=>s.convertModelToRatio(h.value))),v=(0,i.Fl)((()=>!0===o.active.value?d.value:f.value)),m=(0,i.Fl)((()=>{const t={[o.positionProp.value]:100*o.innerMinRatio.value+"%",[o.sizeProp.value]:100*(v.value-o.innerMinRatio.value)+"%"};return void 0!==e.selectionImg&&(t.backgroundImage=`url(${e.selectionImg}) !important`),t})),x=s.getThumbRenderFn({focusValue:!0,getNodeData:_,ratio:v,label:(0,i.Fl)((()=>void 0!==e.labelValue?e.labelValue:h.value)),thumbColor:(0,i.Fl)((()=>e.thumbColor||e.color)),labelColor:(0,i.Fl)((()=>e.labelColor)),labelTextColor:(0,i.Fl)((()=>e.labelTextColor))}),b=(0,i.Fl)((()=>!0!==o.editable.value?{}:!0===n.platform.is.mobile?{onClick:s.onMobileClick}:{onMousedown:s.onActivate,onFocus:C,onBlur:s.onBlur,onKeydown:I,onKeyup:s.onKeyup}));function w(n){h.value!==e.modelValue&&t("update:modelValue",h.value),!0===n&&t("change",h.value)}function S(){return c.value.getBoundingClientRect()}function M(t,n=o.dragging.value){const i=s.getDraggingRatio(t,n);h.value=s.convertRatioToModel(i),d.value=!0!==e.snap||0===e.step?i:s.convertModelToRatio(h.value)}function C(){o.focus.value=!0}function I(e){if(!g.includes(e.keyCode))return;(0,u.NS)(e);const t=([34,33].includes(e.keyCode)?10:1)*o.step.value,n=([34,37,40].includes(e.keyCode)?-1:1)*(!0===o.isReversed.value?-1:1)*t;h.value=(0,l.vX)(parseFloat((h.value+n).toFixed(o.decimals.value)),o.innerMin.value,o.innerMax.value),w()}return()=>{const t=s.getContent(m,o.tabindex,b,(e=>{e.push(x())}));return(0,i.h)("div",{ref:c,class:o.classes.value+(null===e.modelValue?" q-slider--no-value":""),...o.attributes.value,"aria-valuenow":e.modelValue},t)}}});var w=n(4554),S=(n(71),n(5151)),M=n(416),C=n(4955),I=n(2547),T=n(5811);function k(e,t,n){const i=!0===n?["left","right"]:["top","bottom"];return`absolute-${!0===t?i[0]:i[1]}${e?` text-${e}`:""}`}const A=["left","center","right","justify"],D=()=>{},L=(0,x.L)({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>A.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:t,emit:n}){const o=(0,i.FN)(),{proxy:{$q:a}}=o,{registerTick:s}=(0,M.Z)(),{registerTimeout:l,removeTimeout:c}=(0,C.Z)(),{registerTimeout:h}=(0,C.Z)(),p=(0,r.iH)(null),f=(0,r.iH)(null),g=(0,r.iH)(e.modelValue),v=(0,r.iH)(!1),m=(0,r.iH)(!0),y=(0,r.iH)(!1),x=(0,r.iH)(!1),_=(0,i.Fl)((()=>!0===a.platform.is.desktop||!0===e.mobileArrows)),b=[],A=(0,r.iH)(!1);let L,P,O,R=!1,E=!0===_.value?$:u.ZT;const N=(0,i.Fl)((()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:k(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.noCaps}))),F=(0,i.Fl)((()=>{const t=!0===v.value?"left":!0===x.value?"justify":e.align;return`q-tabs__content--align-${t}`})),B=(0,i.Fl)((()=>`q-tabs row no-wrap items-center q-tabs--${!0===v.value?"":"not-"}scrollable q-tabs--`+(!0===e.vertical?"vertical":"horizontal")+" q-tabs__arrows--"+(!0===_.value&&!0===e.outsideArrows?"outside":"inside")+(!0===e.dense?" q-tabs--dense":"")+(!0===e.shrink?" col-shrink":"")+(!0===e.stretch?" self-stretch":""))),V=(0,i.Fl)((()=>"q-tabs__content row no-wrap items-center self-stretch hide-scrollbar relative-position "+F.value+(void 0!==e.contentClass?` ${e.contentClass}`:"")+(!0===a.platform.is.mobile?" scroll":""))),z=(0,i.Fl)((()=>!0===e.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"})),q=(0,i.Fl)((()=>!0!==e.vertical&&!0===a.lang.rtl)),H=(0,i.Fl)((()=>!1===T.e&&!0===q.value));function W({name:t,setCurrent:i,skipEmit:r,fromRoute:o}){g.value!==t&&(!0!==r&&n("update:modelValue",t),!0!==i&&void 0!==e["onUpdate:modelValue"]||(j(g.value,t),g.value=t)),void 0!==o&&(R=o)}function G(){s((()=>{!0!==o.isDeactivated&&!0!==o.isUnmounted&&U({width:p.value.offsetWidth,height:p.value.offsetHeight})}))}function U(t){if(void 0===z.value||null===f.value)return;const n=t[z.value.container],r=Math.min(f.value[z.value.scroll],Array.prototype.reduce.call(f.value.children,((e,t)=>e+(t[z.value.content]||0)),0)),o=n>0&&r>n;v.value!==o&&(v.value=o),!0===o&&(0,i.Y3)(E);const a=n<parseInt(e.breakpoint,10);x.value!==a&&(x.value=a)}function j(t,n){const r=void 0!==t&&null!==t&&""!==t?b.find((e=>e.name.value===t)):null,o=void 0!==n&&null!==n&&""!==n?b.find((e=>e.name.value===n)):null;if(r&&o){const t=r.tabIndicatorRef.value,n=o.tabIndicatorRef.value;clearTimeout(L),t.style.transition="none",t.style.transform="none",n.style.transition="none",n.style.transform="none";const a=t.getBoundingClientRect(),s=n.getBoundingClientRect();n.style.transform=!0===e.vertical?`translate3d(0,${a.top-s.top}px,0) scale3d(1,${s.height?a.height/s.height:1},1)`:`translate3d(${a.left-s.left}px,0,0) scale3d(${s.width?a.width/s.width:1},1,1)`,(0,i.Y3)((()=>{L=setTimeout((()=>{n.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",n.style.transform="none"}),70)}))}o&&!0===v.value&&Z(o.rootRef.value)}function Z(t){const{left:n,width:i,top:r,height:o}=f.value.getBoundingClientRect(),a=t.getBoundingClientRect();let s=!0===e.vertical?a.top-r:a.left-n;if(s<0)return f.value[!0===e.vertical?"scrollTop":"scrollLeft"]+=Math.floor(s),void E();s+=!0===e.vertical?a.height-o:a.width-i,s>0&&(f.value[!0===e.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(s),E())}function $(){const t=f.value;if(null!==t){const n=t.getBoundingClientRect(),i=!0===e.vertical?t.scrollTop:Math.abs(t.scrollLeft);!0===q.value?(m.value=Math.ceil(i+n.width)<t.scrollWidth-1,y.value=i>0):(m.value=i>0,y.value=!0===e.vertical?Math.ceil(i+n.height)<t.scrollHeight:Math.ceil(i+n.width)<t.scrollWidth)}}function Y(e){J(),te(e),P=setInterval((()=>{!0===te(e)&&J()}),5)}function X(){Y(!0===H.value?Number.MAX_SAFE_INTEGER:0)}function K(){Y(!0===H.value?0:Number.MAX_SAFE_INTEGER)}function J(){clearInterval(P)}function Q(t,n){const i=Array.prototype.filter.call(f.value.children,(e=>e===n||e.matches&&!0===e.matches(".q-tab.q-focusable"))),r=i.length;if(0===r)return;if(36===t)return Z(i[0]),!0;if(35===t)return Z(i[r-1]),!0;const o=t===(!0===e.vertical?38:37),a=t===(!0===e.vertical?40:39),s=!0===o?-1:!0===a?1:void 0;if(void 0!==s){const e=!0===q.value?-1:1,t=i.indexOf(n)+s*e;return t>=0&&t<r&&(Z(i[t]),i[t].focus({preventScroll:!0})),!0}}(0,i.YP)(q,E),(0,i.YP)((()=>e.modelValue),(e=>{W({name:e,setCurrent:!0,skipEmit:!0})})),(0,i.YP)((()=>e.outsideArrows),(()=>{(0,i.Y3)(G())})),(0,i.YP)(_,(e=>{E=!0===e?$:u.ZT,(0,i.Y3)(G())}));const ee=(0,i.Fl)((()=>!0===H.value?{get:e=>Math.abs(e.scrollLeft),set:(e,t)=>{e.scrollLeft=-t}}:!0===e.vertical?{get:e=>e.scrollTop,set:(e,t)=>{e.scrollTop=t}}:{get:e=>e.scrollLeft,set:(e,t)=>{e.scrollLeft=t}}));function te(e){const t=f.value,{get:n,set:i}=ee.value;let r=!1,o=n(t);const a=e<o?-1:1;return o+=5*a,o<0?(r=!0,o=0):(-1===a&&o<=e||1===a&&o>=e)&&(r=!0,o=e),i(t,o),E(),r}function ne(){return b.filter((e=>void 0!==e.routerProps&&!0===e.routerProps.hasRouterLink.value))}function ie(){let e=null,t=R;const n={matchedLen:0,hrefLen:0,exact:!1,found:!1},{hash:i}=o.proxy.$route,r=g.value;let a=!0===t?D:e=>{r===e.name.value&&(t=!0,a=D)};const s=ne();for(const o of s){const t=!0===o.routerProps.exact.value;if(!0!==o.routerProps[!0===t?"linkIsExactActive":"linkIsActive"].value||!0===n.exact&&!0!==t){a(o);continue}const r=o.routerProps.linkRoute.value,s=r.hash;if(!0===t){if(i===s){e=o.name.value;break}if(""!==i&&""!==s){a(o);continue}}const l=r.matched.length,u=r.href.length-s.length;(l===n.matchedLen?u>n.hrefLen:l>n.matchedLen)?(e=o.name.value,Object.assign(n,{matchedLen:l,hrefLen:u,exact:t})):a(o)}!0!==t&&null===e||W({name:e,setCurrent:!0,fromRoute:!0})}function re(e){if(c(),!0!==A.value&&null!==p.value&&e.target&&"function"===typeof e.target.closest){const t=e.target.closest(".q-tab");t&&!0===p.value.contains(t)&&(A.value=!0)}}function oe(){l((()=>{A.value=!1}),30)}function ae(){!0!==ue.avoidRouteWatcher&&h(ie)}function se(e){b.push(e);const t=ne();t.length>0&&(void 0===O&&(O=(0,i.YP)((()=>o.proxy.$route),ae)),ae())}function le(e){if(b.splice(b.indexOf(e),1),void 0!==O){const e=ne();0===e.length&&(O(),O=void 0),ae()}}const ue={currentModel:g,tabProps:N,hasFocus:A,registerTab:se,unregisterTab:le,verifyRouteModel:ae,updateModel:W,recalculateScroll:G,onKbdNavigate:Q,avoidRouteWatcher:!1};(0,i.JJ)(I.Nd,ue),(0,i.Jd)((()=>{clearTimeout(L),void 0!==O&&O()}));let ce=!1;return(0,i.se)((()=>{ce=!0})),(0,i.dl)((()=>{!0===ce&&G()})),()=>{const n=[(0,i.h)(S.Z,{onResize:U}),(0,i.h)("div",{ref:f,class:V.value,onScroll:E},(0,d.KR)(t.default))];return!0===_.value&&n.push((0,i.h)(w.Z,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(!0===m.value?"":" q-tabs__arrow--faded"),name:e.leftIcon||a.iconSet.tabs[!0===e.vertical?"up":"left"],onMousedown:X,onTouchstartPassive:X,onMouseup:J,onMouseleave:J,onTouchend:J}),(0,i.h)(w.Z,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(!0===y.value?"":" q-tabs__arrow--faded"),name:e.rightIcon||a.iconSet.tabs[!0===e.vertical?"down":"right"],onMousedown:K,onTouchstartPassive:K,onMouseup:J,onMouseleave:J,onTouchend:J})),(0,i.h)("div",{ref:p,class:B.value,role:"tablist",onFocusin:re,onFocusout:oe},n)}}});var P=n(860),O=n(1436);let R=0;const E=["click","keydown"],N={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>"t_"+R++},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function F(e,t,n,o){const a=(0,i.f3)(I.Nd,(()=>{console.error("QTab/QRouteTab component needs to be child of QTabs")})),{proxy:s}=(0,i.FN)(),l=(0,r.iH)(null),c=(0,r.iH)(null),h=(0,r.iH)(null),p=(0,i.Fl)((()=>!0!==e.disable&&!1!==e.ripple&&Object.assign({keyCodes:[13,32],early:!0},!0===e.ripple?{}:e.ripple))),f=(0,i.Fl)((()=>a.currentModel.value===e.name)),g=(0,i.Fl)((()=>"q-tab relative-position self-stretch flex flex-center text-center"+(!0===f.value?" q-tab--active"+(a.tabProps.value.activeClass?" "+a.tabProps.value.activeClass:"")+(a.tabProps.value.activeColor?` text-${a.tabProps.value.activeColor}`:"")+(a.tabProps.value.activeBgColor?` bg-${a.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&!1===a.tabProps.value.inlineLabel?" q-tab--full":"")+(!0===e.noCaps||!0===a.tabProps.value.noCaps?" q-tab--no-caps":"")+(!0===e.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==o&&""!==o.linkClass.value?` ${o.linkClass.value}`:""))),v=(0,i.Fl)((()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===a.tabProps.value.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==e.contentClass?` ${e.contentClass}`:""))),m=(0,i.Fl)((()=>!0===e.disable||!0===a.hasFocus.value?-1:e.tabindex||0));function y(t,i){if(!0!==i&&null!==l.value&&l.value.focus(),!0!==e.disable){let i;if(void 0!==o){if(!0!==o.hasRouterLink.value)return void n("click",t);i=()=>{t.__qNavigate=!0,a.avoidRouteWatcher=!0;const n=o.navigateToRouterLink(t);!1===n?a.avoidRouteWatcher=!1:n.then((t=>{a.avoidRouteWatcher=!1,void 0===t&&a.updateModel({name:e.name,fromRoute:!0})}))}}else i=()=>{a.updateModel({name:e.name,fromRoute:!1})};n("click",t,i),!0!==t.defaultPrevented&&i()}}function x(e){(0,O.So)(e,[13,32])?y(e,!0):!0!==(0,O.Wm)(e)&&e.keyCode>=35&&e.keyCode<=40&&!0!==e.altKey&&!0!==e.metaKey&&!0===a.onKbdNavigate(e.keyCode,s.$el)&&(0,u.NS)(e),n("keydown",e)}function _(){const n=a.tabProps.value.narrowIndicator,r=[],o=(0,i.h)("div",{ref:h,class:["q-tab__indicator",a.tabProps.value.indicatorClass]});void 0!==e.icon&&r.push((0,i.h)(w.Z,{class:"q-tab__icon",name:e.icon})),void 0!==e.label&&r.push((0,i.h)("div",{class:"q-tab__label"},e.label)),!1!==e.alert&&r.push(void 0!==e.alertIcon?(0,i.h)(w.Z,{class:"q-tab__alert-icon",color:!0!==e.alert?e.alert:void 0,name:e.alertIcon}):(0,i.h)("div",{class:"q-tab__alert"+(!0!==e.alert?` text-${e.alert}`:"")})),!0===n&&r.push(o);const s=[(0,i.h)("div",{class:"q-focus-helper",tabindex:-1,ref:l}),(0,i.h)("div",{class:v.value},(0,d.vs)(t.default,r))];return!1===n&&s.push(o),s}const b={name:(0,i.Fl)((()=>e.name)),rootRef:c,tabIndicatorRef:h,routerProps:o};function S(t,n){const r={ref:c,class:g.value,tabindex:m.value,role:"tab","aria-selected":!0===f.value?"true":"false","aria-disabled":!0===e.disable?"true":void 0,onClick:y,onKeydown:x,...n};return(0,i.wy)((0,i.h)(t,r,_()),[[P.Z,p.value]])}return(0,i.Jd)((()=>{a.unregisterTab(b),a.recalculateScroll()})),(0,i.bv)((()=>{a.registerTab(b),a.recalculateScroll()})),{renderTab:S,$tabs:a}}const B=(0,x.L)({name:"QTab",props:N,emits:E,setup(e,{slots:t,emit:n}){const{renderTab:i}=F(e,t,n);return()=>i("div")}});var V=n(8880),z=n(4688),q=n(7801),H=n(9725);function W(e){const t=[.06,6,50];return"string"===typeof e&&e.length&&e.split(":").forEach(((e,n)=>{const i=parseFloat(e);i&&(t[n]=i)})),t}const G=(0,x.f)({name:"touch-swipe",beforeMount(e,{value:t,arg:n,modifiers:i}){if(!0!==i.mouse&&!0!==z.Lp.has.touch)return;const r=!0===i.mouseCapture?"Capture":"",o={handler:t,sensitivity:W(n),direction:(0,q.R)(i),noop:u.ZT,mouseStart(e){(0,q.n)(e,o)&&(0,u.du)(e)&&((0,u.M0)(o,"temp",[[document,"mousemove","move",`notPassive${r}`],[document,"mouseup","end","notPassiveCapture"]]),o.start(e,!0))},touchStart(e){if((0,q.n)(e,o)){const t=e.target;(0,u.M0)(o,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),o.start(e)}},start(t,n){!0===z.Lp.is.firefox&&(0,u.Jf)(e,!0);const i=(0,u.FK)(t);o.event={x:i.left,y:i.top,time:Date.now(),mouse:!0===n,dir:!1}},move(e){if(void 0===o.event)return;if(!1!==o.event.dir)return void(0,u.NS)(e);const t=Date.now()-o.event.time;if(0===t)return;const n=(0,u.FK)(e),i=n.left-o.event.x,r=Math.abs(i),a=n.top-o.event.y,s=Math.abs(a);if(!0!==o.event.mouse){if(r<o.sensitivity[1]&&s<o.sensitivity[1])return void o.end(e)}else if(r<o.sensitivity[2]&&s<o.sensitivity[2])return;const l=r/t,c=s/t;!0===o.direction.vertical&&r<s&&r<100&&c>o.sensitivity[0]&&(o.event.dir=a<0?"up":"down"),!0===o.direction.horizontal&&r>s&&s<100&&l>o.sensitivity[0]&&(o.event.dir=i<0?"left":"right"),!0===o.direction.up&&r<s&&a<0&&r<100&&c>o.sensitivity[0]&&(o.event.dir="up"),!0===o.direction.down&&r<s&&a>0&&r<100&&c>o.sensitivity[0]&&(o.event.dir="down"),!0===o.direction.left&&r>s&&i<0&&s<100&&l>o.sensitivity[0]&&(o.event.dir="left"),!0===o.direction.right&&r>s&&i>0&&s<100&&l>o.sensitivity[0]&&(o.event.dir="right"),!1!==o.event.dir?((0,u.NS)(e),!0===o.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),(0,H.M)(),o.styleCleanup=e=>{o.styleCleanup=void 0,document.body.classList.remove("non-selectable");const t=()=>{document.body.classList.remove("no-pointer-events--children")};!0===e?setTimeout(t,50):t()}),o.handler({evt:e,touch:!0!==o.event.mouse,mouse:o.event.mouse,direction:o.event.dir,duration:t,distance:{x:r,y:s}})):o.end(e)},end(t){void 0!==o.event&&((0,u.ul)(o,"temp"),!0===z.Lp.is.firefox&&(0,u.Jf)(e,!1),void 0!==o.styleCleanup&&o.styleCleanup(!0),void 0!==t&&!1!==o.event.dir&&(0,u.NS)(t),o.event=void 0)}};e.__qtouchswipe=o,!0===i.mouse&&(0,u.M0)(o,"main",[[e,"mousedown","mouseStart",`passive${r}`]]),!0===z.Lp.has.touch&&(0,u.M0)(o,"main",[[e,"touchstart","touchStart","passive"+(!0===i.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchswipe;void 0!==n&&(t.oldValue!==t.value&&("function"!==typeof t.value&&n.end(),n.handler=t.value),n.direction=(0,q.R)(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;void 0!==t&&((0,u.ul)(t,"main"),(0,u.ul)(t,"temp"),!0===z.Lp.is.firefox&&(0,u.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchswipe)}});function U(){const e=new Map;return{getCache:function(t,n){return void 0===e[t]?e[t]=n:e[t]},getCacheWithFn:function(t,n){return void 0===e[t]?e[t]=n():e[t]}}}var j=n(7445);const Z={name:{required:!0},disable:Boolean},$={setup(e,{slots:t}){return()=>(0,i.h)("div",{class:"q-panel scroll",role:"tabpanel"},(0,d.KR)(t.default))}},Y={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},X=["update:modelValue","before-transition","transition"];function K(){const{props:e,emit:t,proxy:n}=(0,i.FN)(),{getCacheWithFn:o}=U();let a,s;const l=(0,r.iH)(null),u=(0,r.iH)(null);function c(t){const i=!0===e.vertical?"up":"left";I((!0===n.$q.lang.rtl?-1:1)*(t.direction===i?1:-1))}const h=(0,i.Fl)((()=>[[G,c,void 0,{horizontal:!0!==e.vertical,vertical:e.vertical,mouse:!0}]])),p=(0,i.Fl)((()=>e.transitionPrev||"slide-"+(!0===e.vertical?"down":"right"))),f=(0,i.Fl)((()=>e.transitionNext||"slide-"+(!0===e.vertical?"up":"left"))),g=(0,i.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`)),v=(0,i.Fl)((()=>"string"===typeof e.modelValue||"number"===typeof e.modelValue?e.modelValue:String(e.modelValue))),m=(0,i.Fl)((()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax}))),y=(0,i.Fl)((()=>void 0!==e.keepAliveInclude||void 0!==e.keepAliveExclude));function x(){I(1)}function _(){I(-1)}function b(e){t("update:modelValue",e)}function w(e){return void 0!==e&&null!==e&&""!==e}function S(e){return a.findIndex((t=>t.props.name===e&&""!==t.props.disable&&!0!==t.props.disable))}function M(){return a.filter((e=>""!==e.props.disable&&!0!==e.props.disable))}function C(t){const n=0!==t&&!0===e.animated&&-1!==l.value?"q-transition--"+(-1===t?p.value:f.value):null;u.value!==n&&(u.value=n)}function I(n,i=l.value){let r=i+n;while(r>-1&&r<a.length){const e=a[r];if(void 0!==e&&""!==e.props.disable&&!0!==e.props.disable)return C(n),s=!0,t("update:modelValue",e.props.name),void setTimeout((()=>{s=!1}));r+=n}!0===e.infinite&&a.length>0&&-1!==i&&i!==a.length&&I(n,-1===n?a.length:-1)}function T(){const t=S(e.modelValue);return l.value!==t&&(l.value=t),!0}function k(){const t=!0===w(e.modelValue)&&T()&&a[l.value];return!0===e.keepAlive?[(0,i.h)(i.Ob,m.value,[(0,i.h)(!0===y.value?o(v.value,(()=>({...$,name:v.value}))):$,{key:v.value,style:g.value},(()=>t))])]:[(0,i.h)("div",{class:"q-panel scroll",style:g.value,key:v.value,role:"tabpanel"},[t])]}function A(){if(0!==a.length)return!0===e.animated?[(0,i.h)(V.uT,{name:u.value},k)]:k()}function D(e){return a=(0,j.Pf)((0,d.KR)(e.default,[])).filter((e=>null!==e.props&&void 0===e.props.slot&&!0===w(e.props.name))),a.length}function L(){return a}return(0,i.YP)((()=>e.modelValue),((e,n)=>{const r=!0===w(e)?S(e):-1;!0!==s&&C(-1===r?0:r<S(n)?-1:1),l.value!==r&&(l.value=r,t("before-transition",e,n),(0,i.Y3)((()=>{t("transition",e,n)})))})),Object.assign(n,{next:x,previous:_,goTo:b}),{panelIndex:l,panelDirectives:h,updatePanelsList:D,updatePanelIndex:T,getPanelContent:A,getEnabledPanels:M,getPanels:L,isValidPanelName:w,keepAliveProps:m,needsUniqueKeepAliveWrapper:y,goToPanelByOffset:I,goToPanel:b,nextPanel:x,previousPanel:_}}const J=(0,x.L)({name:"QTabPanels",props:{...Y,...s.S},emits:X,setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,s.Z)(e,n.proxy.$q),{updatePanelsList:o,getPanelContent:a,panelDirectives:l}=K(),u=(0,i.Fl)((()=>"q-tab-panels q-panel-parent"+(!0===r.value?" q-tab-panels--dark q-dark":"")));return()=>(o(t),(0,d.Jl)("div",{class:u.value},a(),"pan",e.swipeable,(()=>l.value)))}}),Q=(0,x.L)({name:"QTabPanel",props:Z,setup(e,{slots:t}){return()=>(0,i.h)("div",{class:"q-tab-panel"},(0,d.KR)(t.default))}});var ee=n(9763),te=n(3317),ne=n(2156);const ie=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],re="M5 5 h10 v10 h-10 v-10 z",oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==",ae=(0,x.L)({name:"QColor",props:{...s.S,...a.Fz,modelValue:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:e=>["spectrum","tune","palette"].includes(e)},formatModel:{type:String,default:"auto",validator:e=>["auto","hex","rgb","hexa","rgba"].includes(e)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},emits:["update:modelValue","change"],setup(e,{emit:t}){const{proxy:n}=(0,i.FN)(),{$q:l}=n,c=(0,s.Z)(e,l),{getCache:h}=U(),p=(0,r.iH)(null),f=(0,r.iH)(null),g=(0,i.Fl)((()=>"auto"===e.formatModel?null:e.formatModel.indexOf("hex")>-1)),v=(0,i.Fl)((()=>"auto"===e.formatModel?null:e.formatModel.indexOf("a")>-1)),m=(0,r.iH)("auto"===e.formatModel?void 0===e.modelValue||null===e.modelValue||""===e.modelValue||e.modelValue.startsWith("#")?"hex":"rgb":e.formatModel.startsWith("hex")?"hex":"rgb"),y=(0,r.iH)(e.defaultView),x=(0,r.iH)(V(e.modelValue||e.defaultValue)),_=(0,i.Fl)((()=>!0!==e.disable&&!0!==e.readonly)),S=(0,i.Fl)((()=>void 0===e.modelValue||null===e.modelValue||""===e.modelValue||e.modelValue.startsWith("#"))),M=(0,i.Fl)((()=>null!==g.value?g.value:S.value)),C=(0,i.Fl)((()=>({type:"hidden",name:e.name,value:x.value[!0===M.value?"hex":"rgb"]}))),I=(0,a.eX)(C),T=(0,i.Fl)((()=>null!==v.value?v.value:void 0!==x.value.a)),k=(0,i.Fl)((()=>({backgroundColor:x.value.rgb||"#000"}))),A=(0,i.Fl)((()=>{const e=void 0!==x.value.a&&x.value.a<65||(0,ne.T2)(x.value)>.4;return"q-color-picker__header-content q-color-picker__header-content--"+(e?"light":"dark")})),D=(0,i.Fl)((()=>({background:`hsl(${x.value.h},100%,50%)`}))),P=(0,i.Fl)((()=>({top:100-x.value.v+"%",[!0===l.lang.rtl?"right":"left"]:`${x.value.s}%`}))),O=(0,i.Fl)((()=>void 0!==e.palette&&e.palette.length>0?e.palette:ie)),R=(0,i.Fl)((()=>"q-color-picker"+(!0===e.bordered?" q-color-picker--bordered":"")+(!0===e.square?" q-color-picker--square no-border-radius":"")+(!0===e.flat?" q-color-picker--flat no-shadow":"")+(!0===e.disable?" disabled":"")+(!0===c.value?" q-color-picker--dark q-dark":""))),E=(0,i.Fl)((()=>!0===e.disable?{"aria-disabled":"true"}:!0===e.readonly?{"aria-readonly":"true"}:{})),N=(0,i.Fl)((()=>[[o.Z,j,void 0,{prevent:!0,stop:!0,mouse:!0}]]));function F(e,n){x.value.hex=(0,ne.vq)(e),x.value.rgb=(0,ne.Nn)(e),x.value.r=e.r,x.value.g=e.g,x.value.b=e.b,x.value.a=e.a;const i=x.value[!0===M.value?"hex":"rgb"];t("update:modelValue",i),!0===n&&t("change",i)}function V(t){const n=void 0!==v.value?v.value:"auto"===e.formatModel?null:e.formatModel.indexOf("a")>-1;if("string"!==typeof t||0===t.length||!0!==ee.E.anyColor(t.replace(/ /g,"")))return{h:0,s:0,v:0,r:0,g:0,b:0,a:!0===n?100:void 0,hex:void 0,rgb:void 0};const i=(0,ne.id)(t);return!0===n&&void 0===i.a&&(i.a=100),i.hex=(0,ne.vq)(i),i.rgb=(0,ne.Nn)(i),Object.assign(i,(0,ne.py)(i))}function z(e,t,n){const i=p.value;if(null===i)return;const r=i.clientWidth,o=i.clientHeight,a=i.getBoundingClientRect();let s=Math.min(r,Math.max(0,e-a.left));!0===l.lang.rtl&&(s=r-s);const u=Math.min(o,Math.max(0,t-a.top)),c=Math.round(100*s/r),d=Math.round(100*Math.max(0,Math.min(1,-u/o+1))),h=(0,ne.WE)({h:x.value.h,s:c,v:d,a:!0===T.value?x.value.a:void 0});x.value.s=c,x.value.v=d,F(h,n)}function q(e,t){const n=Math.round(e),i=(0,ne.WE)({h:n,s:x.value.s,v:x.value.v,a:!0===T.value?x.value.a:void 0});x.value.h=n,F(i,t)}function H(e,t,r,o,a){if(void 0!==o&&(0,u.sT)(o),!/^[0-9]+$/.test(e))return void(!0===a&&n.$forceUpdate());const s=Math.floor(Number(e));if(s<0||s>r)return void(!0===a&&n.$forceUpdate());const l={r:"r"===t?s:x.value.r,g:"g"===t?s:x.value.g,b:"b"===t?s:x.value.b,a:!0===T.value?"a"===t?s:x.value.a:void 0};if("a"!==t){const e=(0,ne.py)(l);x.value.h=e.h,x.value.s=e.s,x.value.v=e.v}if(F(l,a),void 0!==o&&!0!==a&&void 0!==o.target.selectionEnd){const e=o.target.selectionEnd;(0,i.Y3)((()=>{o.target.setSelectionRange(e,e)}))}}function W(e,t){let n;const r=e.target.value;if((0,u.sT)(e),"hex"===m.value){if(r.length!==(!0===T.value?9:7)||!/^#[0-9A-Fa-f]+$/.test(r))return!0;n=(0,ne.oo)(r)}else{let e;if(!r.endsWith(")"))return!0;if(!0!==T.value&&r.startsWith("rgb(")){if(e=r.substring(4,r.length-1).split(",").map((e=>parseInt(e,10))),3!==e.length||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(r))return!0}else{if(!0!==T.value||!r.startsWith("rgba("))return!0;{if(e=r.substring(5,r.length-1).split(","),4!==e.length||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(r))return!0;for(let n=0;n<3;n++){const t=parseInt(e[n],10);if(t<0||t>255)return!0;e[n]=t}const t=parseFloat(e[3]);if(t<0||t>1)return!0;e[3]=t}}if(e[0]<0||e[0]>255||e[1]<0||e[1]>255||e[2]<0||e[2]>255||!0===T.value&&(e[3]<0||e[3]>1))return!0;n={r:e[0],g:e[1],b:e[2],a:!0===T.value?100*e[3]:void 0}}const o=(0,ne.py)(n);if(x.value.h=o.h,x.value.s=o.s,x.value.v=o.v,F(n,t),!0!==t){const t=e.target.selectionEnd;(0,i.Y3)((()=>{e.target.setSelectionRange(t,t)}))}}function G(e){const t=V(e),n={r:t.r,g:t.g,b:t.b,a:t.a};void 0===n.a&&(n.a=x.value.a),x.value.h=t.h,x.value.s=t.s,x.value.v=t.v,F(n,!0)}function j(e){e.isFinal?z(e.position.left,e.position.top,!0):Z(e)}(0,i.YP)((()=>e.modelValue),(t=>{const n=V(t||e.defaultValue);n.hex!==x.value.hex&&(x.value=n)})),(0,i.YP)((()=>e.defaultValue),(t=>{if(!e.modelValue&&t){const e=V(t);e.hex!==x.value.hex&&(x.value=e)}}));const Z=(0,te.Z)((e=>{z(e.position.left,e.position.top)}),20);function $(e){z(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset,!0)}function Y(e){z(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset)}function X(e){null!==f.value&&(f.value.$el.style.opacity=e?1:0)}function K(){const t=[];return!0!==e.noHeaderTabs&&t.push((0,i.h)(L,{class:"q-color-picker__header-tabs",modelValue:m.value,dense:!0,align:"justify",...h("topVTab",{"onUpdate:modelValue":e=>{m.value=e}})},(()=>[(0,i.h)(B,{label:"HEX"+(!0===T.value?"A":""),name:"hex",ripple:!1}),(0,i.h)(B,{label:"RGB"+(!0===T.value?"A":""),name:"rgb",ripple:!1})]))),t.push((0,i.h)("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[(0,i.h)("input",{class:"fit",value:x.value[m.value],...!0!==_.value?{readonly:!0}:{},...h("topIn",{onInput:e=>{X(!0===W(e))},onChange:u.sT,onBlur:e=>{!0===W(e,!0)&&n.$forceUpdate(),X(!1)}})}),(0,i.h)(w.Z,{ref:f,class:"q-color-picker__error-icon absolute no-pointer-events",name:l.iconSet.type.negative})])),(0,i.h)("div",{class:"q-color-picker__header relative-position overflow-hidden"},[(0,i.h)("div",{class:"q-color-picker__header-bg absolute-full"}),(0,i.h)("div",{class:A.value,style:k.value},t)])}function ae(){return(0,i.h)(J,{modelValue:y.value,animated:!0},(()=>[(0,i.h)(Q,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},le),(0,i.h)(Q,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},ue),(0,i.h)(Q,{class:"q-color-picker__palette-tab",name:"palette"},ce)]))}function se(){return(0,i.h)("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[(0,i.h)(L,{class:"absolute-full",modelValue:y.value,dense:!0,align:"justify",...h("ftIn",{"onUpdate:modelValue":e=>{y.value=e}})},(()=>[(0,i.h)(B,{icon:l.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),(0,i.h)(B,{icon:l.iconSet.colorPicker.tune,name:"tune",ripple:!1}),(0,i.h)(B,{icon:l.iconSet.colorPicker.palette,name:"palette",ripple:!1})]))])}function le(){const e={ref:p,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(!0!==_.value?" readonly":""),style:D.value,...!0===_.value?{onClick:$,onMousedown:Y}:{}},t=[(0,i.h)("div",{style:{paddingBottom:"100%"}}),(0,i.h)("div",{class:"q-color-picker__spectrum-white absolute-full"}),(0,i.h)("div",{class:"q-color-picker__spectrum-black absolute-full"}),(0,i.h)("div",{class:"absolute",style:P.value},[void 0!==x.value.hex?(0,i.h)("div",{class:"q-color-picker__spectrum-circle"}):null])],n=[(0,i.h)(b,{class:"q-color-picker__hue non-selectable",modelValue:x.value.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:!0!==_.value,thumbPath:re,"onUpdate:modelValue":q,...h("lazyhue",{onChange:e=>q(e,!0)})})];return!0===T.value&&n.push((0,i.h)(b,{class:"q-color-picker__alpha non-selectable",modelValue:x.value.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:oe,readonly:!0!==_.value,hideSelection:!0,thumbPath:re,...h("alphaSlide",{"onUpdate:modelValue":e=>H(e,"a",100),onChange:e=>H(e,"a",100,void 0,!0)})})),[(0,d.Jl)("div",e,t,"spec",_.value,(()=>N.value)),(0,i.h)("div",{class:"q-color-picker__sliders"},n)]}function ue(){return[(0,i.h)("div",{class:"row items-center no-wrap"},[(0,i.h)("div","R"),(0,i.h)(b,{modelValue:x.value.r,min:0,max:255,color:"red",dark:c.value,readonly:!0!==_.value,...h("rSlide",{"onUpdate:modelValue":e=>H(e,"r",255),onChange:e=>H(e,"r",255,void 0,!0)})}),(0,i.h)("input",{value:x.value.r,maxlength:3,readonly:!0!==_.value,onChange:u.sT,...h("rIn",{onInput:e=>H(e.target.value,"r",255,e),onBlur:e=>H(e.target.value,"r",255,e,!0)})})]),(0,i.h)("div",{class:"row items-center no-wrap"},[(0,i.h)("div","G"),(0,i.h)(b,{modelValue:x.value.g,min:0,max:255,color:"green",dark:c.value,readonly:!0!==_.value,...h("gSlide",{"onUpdate:modelValue":e=>H(e,"g",255),onChange:e=>H(e,"g",255,void 0,!0)})}),(0,i.h)("input",{value:x.value.g,maxlength:3,readonly:!0!==_.value,onChange:u.sT,...h("gIn",{onInput:e=>H(e.target.value,"g",255,e),onBlur:e=>H(e.target.value,"g",255,e,!0)})})]),(0,i.h)("div",{class:"row items-center no-wrap"},[(0,i.h)("div","B"),(0,i.h)(b,{modelValue:x.value.b,min:0,max:255,color:"blue",readonly:!0!==_.value,dark:c.value,...h("bSlide",{"onUpdate:modelValue":e=>H(e,"b",255),onChange:e=>H(e,"b",255,void 0,!0)})}),(0,i.h)("input",{value:x.value.b,maxlength:3,readonly:!0!==_.value,onChange:u.sT,...h("bIn",{onInput:e=>H(e.target.value,"b",255,e),onBlur:e=>H(e.target.value,"b",255,e,!0)})})]),!0===T.value?(0,i.h)("div",{class:"row items-center no-wrap"},[(0,i.h)("div","A"),(0,i.h)(b,{modelValue:x.value.a,color:"grey",readonly:!0!==_.value,dark:c.value,...h("aSlide",{"onUpdate:modelValue":e=>H(e,"a",100),onChange:e=>H(e,"a",100,void 0,!0)})}),(0,i.h)("input",{value:x.value.a,maxlength:3,readonly:!0!==_.value,onChange:u.sT,...h("aIn",{onInput:e=>H(e.target.value,"a",100,e),onBlur:e=>H(e.target.value,"a",100,e,!0)})})]):null]}function ce(){const e=e=>(0,i.h)("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:e},...!0===_.value?h("palette#"+e,{onClick:()=>{G(e)}}):{}});return[(0,i.h)("div",{class:"row items-center q-color-picker__palette-rows"+(!0===_.value?" q-color-picker__palette-rows--editable":"")},O.value.map(e))]}return()=>{const t=[ae()];return void 0!==e.name&&!0!==e.disable&&I(t,"push"),!0!==e.noHeader&&t.unshift(K()),!0!==e.noFooter&&t.push(se()),(0,i.h)("div",{class:R.value,...E.value},t)}}})},6778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});n(3610),n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(69),s=n(4955),l=n(416),u=n(3628),c=n(6104),d=n(5911),h=n(405),p=n(908),f=n(2012),g=n(7657),v=n(4704),m=n(8517),y=n(230);let x=0;const _={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},b={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},w=(0,p.L)({name:"QDialog",inheritAttrs:!1,props:{...u.vr,...c.D,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:e=>"standard"===e||["top","bottom","left","right"].includes(e)}},emits:[...u.gH,"shake","click","escape-key"],setup(e,{slots:t,emit:n,attrs:c}){const p=(0,i.FN)(),w=(0,r.iH)(null),S=(0,r.iH)(!1),M=(0,r.iH)(!1),C=(0,r.iH)(!1);let I,T,k,A=null;const D=(0,i.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss&&!0!==e.seamless)),{preventBodyScroll:L}=(0,h.Z)(),{registerTimeout:P,removeTimeout:O}=(0,s.Z)(),{registerTick:R,removeTick:E}=(0,l.Z)(),{showPortal:N,hidePortal:F,portalIsAccessible:B,renderPortal:V}=(0,d.Z)(p,w,se,!0),{hide:z}=(0,u.ZP)({showing:S,hideOnRouteChange:D,handleShow:K,handleHide:J,processOnMount:!0}),{addToHistory:q,removeFromHistory:H}=(0,a.Z)(S,z,D),W=(0,i.Fl)((()=>"q-dialog__inner flex no-pointer-events q-dialog__inner--"+(!0===e.maximized?"maximized":"minimized")+` q-dialog__inner--${e.position} ${_[e.position]}`+(!0===C.value?" q-dialog__inner--animating":"")+(!0===e.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===e.fullHeight?" q-dialog__inner--fullheight":"")+(!0===e.square?" q-dialog__inner--square":""))),G=(0,i.Fl)((()=>"q-transition--"+(void 0===e.transitionShow?b[e.position][0]:e.transitionShow))),U=(0,i.Fl)((()=>"q-transition--"+(void 0===e.transitionHide?b[e.position][1]:e.transitionHide))),j=(0,i.Fl)((()=>!0===M.value?U.value:G.value)),Z=(0,i.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`)),$=(0,i.Fl)((()=>!0===S.value&&!0!==e.seamless)),Y=(0,i.Fl)((()=>!0===e.autoClose?{onClick:re}:{})),X=(0,i.Fl)((()=>["q-dialog fullscreen no-pointer-events q-dialog--"+(!0===$.value?"modal":"seamless"),c.class]));function K(t){O(),E(),q(),A=!1===e.noRefocus&&null!==document.activeElement?document.activeElement:null,ie(e.maximized),N(),C.value=!0,!0!==e.noFocus&&(null!==document.activeElement&&document.activeElement.blur(),R(Q)),P((()=>{if(!0===p.proxy.$q.platform.is.ios){if(!0!==e.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:n}=window,i=void 0!==window.visualViewport?window.visualViewport.height:n;e>0&&t>i/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-i,t>=n?1/0:Math.ceil(document.scrollingElement.scrollTop+t-i/2))),document.activeElement.scrollIntoView()}k=!0,w.value.click(),k=!1}N(!0),C.value=!1,n("show",t)}),e.transitionDuration)}function J(t){O(),E(),H(),ne(!0),C.value=!0,F(),null!==A&&(A.focus(),A=null),P((()=>{F(!0),C.value=!1,n("hide",t)}),e.transitionDuration)}function Q(e){(0,y.jd)((()=>{let t=w.value;null!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector(e||"[autofocus], [data-autofocus]")||t,t.focus({preventScroll:!0}))}))}function ee(){Q(),n("shake");const e=w.value;null!==e&&(e.classList.remove("q-animate--scale"),e.classList.add("q-animate--scale"),clearTimeout(I),I=setTimeout((()=>{null!==w.value&&(e.classList.remove("q-animate--scale"),Q())}),170))}function te(){!0!==e.seamless&&(!0===e.persistent||!0===e.noEscDismiss?!0!==e.maximized&&!0!==e.noShake&&ee():(n("escape-key"),z()))}function ne(t){clearTimeout(I),!0!==t&&!0!==S.value||(ie(!1),!0!==e.seamless&&(L(!1),(0,m.H)(ae),(0,v.k)(te))),!0!==t&&(A=null)}function ie(e){!0===e?!0!==T&&(x<1&&document.body.classList.add("q-body--dialog"),x++,T=!0):!0===T&&(x<2&&document.body.classList.remove("q-body--dialog"),x--,T=!1)}function re(e){!0!==k&&(z(e),n("click",e))}function oe(t){!0!==e.persistent&&!0!==e.noBackdropDismiss?z(t):!0!==e.noShake&&ee()}function ae(t){!0!==e.allowFocusOutside&&!0===B.value&&!0!==(0,f.mY)(w.value,t.target)&&Q('[tabindex]:not([tabindex="-1"])')}function se(){return(0,i.h)("div",{...c,class:X.value},[(0,i.h)(o.uT,{name:"q-transition--fade",appear:!0},(()=>!0===$.value?(0,i.h)("div",{class:"q-dialog__backdrop fixed-full",style:Z.value,"aria-hidden":"true",onMousedown:oe}):null)),(0,i.h)(o.uT,{name:j.value,appear:!0},(()=>!0===S.value?(0,i.h)("div",{ref:w,class:W.value,style:Z.value,tabindex:-1,...Y.value},(0,g.KR)(t.default)):null))])}return(0,i.YP)(S,(e=>{(0,i.Y3)((()=>{M.value=e}))})),(0,i.YP)((()=>e.maximized),(e=>{!0===S.value&&ie(e)})),(0,i.YP)($,(e=>{L(e),!0===e?((0,m.i)(ae),(0,v.c)(te)):((0,m.H)(ae),(0,v.k)(te))})),Object.assign(p.proxy,{focus:Q,shake:ee,__updateRefocusTarget(e){A=e||null}}),(0,i.Jd)(ne),V}})},2901:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});n(3610),n(71);var i=n(3673),r=n(1959),o=n(69),a=n(3628),s=n(405),l=n(4955),u=n(2236),c=n(5777),d=n(908),h=n(2130),p=n(7657),f=n(2547);const g=150,v=(0,d.L)({name:"QDrawer",inheritAttrs:!1,props:{...a.vr,...u.S,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...a.gH,"on-layout","mini-state"],setup(e,{slots:t,emit:n,attrs:d}){const v=(0,i.FN)(),{proxy:{$q:m}}=v,y=(0,u.Z)(e,m),{preventBodyScroll:x}=(0,s.Z)(),{registerTimeout:_}=(0,l.Z)(),b=(0,i.f3)(f.YE,(()=>{console.error("QDrawer needs to be child of QLayout")}));let w,S,M;const C=(0,r.iH)("mobile"===e.behavior||"desktop"!==e.behavior&&b.totalWidth.value<=e.breakpoint),I=(0,i.Fl)((()=>!0===e.mini&&!0!==C.value)),T=(0,i.Fl)((()=>!0===I.value?e.miniWidth:e.width)),k=(0,r.iH)(!0===e.showIfAbove&&!1===C.value||!0===e.modelValue),A=(0,i.Fl)((()=>!0!==e.persistent&&(!0===C.value||!0===Z.value)));function D(e,t){if(R(),!1!==e&&b.animate(),ae(0),!0===C.value){const e=b.instances[W.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),se(1),!0!==b.isContainer.value&&x(!0)}else se(0),!1!==e&&le(!1);_((()=>{!1!==e&&le(!0),!0!==t&&n("show",e)}),g)}function L(e,t){E(),!1!==e&&b.animate(),se(0),ae(B.value*T.value),he(),!0!==t&&_((()=>{n("hide",e)}),g)}const{show:P,hide:O}=(0,a.ZP)({showing:k,hideOnRouteChange:A,handleShow:D,handleHide:L}),{addToHistory:R,removeFromHistory:E}=(0,o.Z)(k,O,A),N={belowBreakpoint:C,hide:O},F=(0,i.Fl)((()=>"right"===e.side)),B=(0,i.Fl)((()=>(!0===m.lang.rtl?-1:1)*(!0===F.value?1:-1))),V=(0,r.iH)(0),z=(0,r.iH)(!1),q=(0,r.iH)(!1),H=(0,r.iH)(T.value*B.value),W=(0,i.Fl)((()=>!0===F.value?"left":"right")),G=(0,i.Fl)((()=>!0===k.value&&!1===C.value&&!1===e.overlay?!0===e.miniToOverlay?e.miniWidth:T.value:0)),U=(0,i.Fl)((()=>!0===e.overlay||!0===e.miniToOverlay||b.view.value.indexOf(F.value?"R":"L")>-1||!0===m.platform.is.ios&&!0===b.isContainer.value)),j=(0,i.Fl)((()=>!1===e.overlay&&!0===k.value&&!1===C.value)),Z=(0,i.Fl)((()=>!0===e.overlay&&!0===k.value&&!1===C.value)),$=(0,i.Fl)((()=>"fullscreen q-drawer__backdrop"+(!1===k.value&&!1===z.value?" hidden":""))),Y=(0,i.Fl)((()=>({backgroundColor:`rgba(0,0,0,${.4*V.value})`}))),X=(0,i.Fl)((()=>!0===F.value?"r"===b.rows.value.top[2]:"l"===b.rows.value.top[0])),K=(0,i.Fl)((()=>!0===F.value?"r"===b.rows.value.bottom[2]:"l"===b.rows.value.bottom[0])),J=(0,i.Fl)((()=>{const e={};return!0===b.header.space&&!1===X.value&&(!0===U.value?e.top=`${b.header.offset}px`:!0===b.header.space&&(e.top=`${b.header.size}px`)),!0===b.footer.space&&!1===K.value&&(!0===U.value?e.bottom=`${b.footer.offset}px`:!0===b.footer.space&&(e.bottom=`${b.footer.size}px`)),e})),Q=(0,i.Fl)((()=>{const e={width:`${T.value}px`,transform:`translateX(${H.value}px)`};return!0===C.value?e:Object.assign(e,J.value)})),ee=(0,i.Fl)((()=>"q-drawer__content fit "+(!0!==b.isContainer.value?"scroll":"overflow-auto"))),te=(0,i.Fl)((()=>`q-drawer q-drawer--${e.side}`+(!0===q.value?" q-drawer--mini-animate":"")+(!0===e.bordered?" q-drawer--bordered":"")+(!0===y.value?" q-drawer--dark q-dark":"")+(!0===z.value?" no-transition":!0===k.value?"":" q-layout--prevent-focus")+(!0===C.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":" q-drawer--"+(!0===I.value?"mini":"standard")+(!0===U.value||!0!==j.value?" fixed":"")+(!0===e.overlay||!0===e.miniToOverlay?" q-drawer--on-top":"")+(!0===X.value?" q-drawer--top-padding":"")))),ne=(0,i.Fl)((()=>{const t=!0===m.lang.rtl?e.side:W.value;return[[c.Z,ce,void 0,{[t]:!0,mouse:!0}]]})),ie=(0,i.Fl)((()=>{const t=!0===m.lang.rtl?W.value:e.side;return[[c.Z,de,void 0,{[t]:!0,mouse:!0}]]})),re=(0,i.Fl)((()=>{const t=!0===m.lang.rtl?W.value:e.side;return[[c.Z,de,void 0,{[t]:!0,mouse:!0,mouseAllDir:!0}]]}));function oe(){fe(C,"mobile"===e.behavior||"desktop"!==e.behavior&&b.totalWidth.value<=e.breakpoint)}function ae(e){void 0===e?(0,i.Y3)((()=>{e=!0===k.value?0:T.value,ae(B.value*e)})):(!0!==b.isContainer.value||!0!==F.value||!0!==C.value&&Math.abs(e)!==T.value||(e+=B.value*b.scrollbarWidth.value),H.value=e)}function se(e){V.value=e}function le(e){const t=!0===e?"remove":!0!==b.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function ue(){clearTimeout(S),v.proxy&&v.proxy.$el&&v.proxy.$el.classList.add("q-drawer--mini-animate"),q.value=!0,S=setTimeout((()=>{q.value=!1,v&&v.proxy&&v.proxy.$el&&v.proxy.$el.classList.remove("q-drawer--mini-animate")}),150)}function ce(e){if(!1!==k.value)return;const t=T.value,n=(0,h.vX)(e.distance.x,0,t);if(!0===e.isFinal){const e=n>=Math.min(75,t);return!0===e?P():(b.animate(),se(0),ae(B.value*t)),void(z.value=!1)}ae((!0===m.lang.rtl?!0!==F.value:F.value)?Math.max(t-n,0):Math.min(0,n-t)),se((0,h.vX)(n/t,0,1)),!0===e.isFirst&&(z.value=!0)}function de(t){if(!0!==k.value)return;const n=T.value,i=t.direction===e.side,r=(!0===m.lang.rtl?!0!==i:i)?(0,h.vX)(t.distance.x,0,n):0;if(!0===t.isFinal){const e=Math.abs(r)<Math.min(75,n);return!0===e?(b.animate(),se(1),ae(0)):O(),void(z.value=!1)}ae(B.value*r),se((0,h.vX)(1-r/n,0,1)),!0===t.isFirst&&(z.value=!0)}function he(){x(!1),le(!0)}function pe(t,n){b.update(e.side,t,n)}function fe(e,t){e.value!==t&&(e.value=t)}function ge(t,n){pe("size",!0===t?e.miniWidth:n)}return(0,i.YP)(C,(t=>{!0===t?(w=k.value,!0===k.value&&O(!1)):!1===e.overlay&&"mobile"!==e.behavior&&!1!==w&&(!0===k.value?(ae(0),se(0),he()):P(!1))})),(0,i.YP)((()=>e.side),((e,t)=>{b.instances[t]===N&&(b.instances[t]=void 0,b[t].space=!1,b[t].offset=0),b.instances[e]=N,b[e].size=T.value,b[e].space=j.value,b[e].offset=G.value})),(0,i.YP)(b.totalWidth,(()=>{!0!==b.isContainer.value&&!0===document.qScrollPrevented||oe()})),(0,i.YP)((()=>e.behavior+e.breakpoint),oe),(0,i.YP)(b.isContainer,(e=>{!0===k.value&&x(!0!==e),!0===e&&oe()})),(0,i.YP)(b.scrollbarWidth,(()=>{ae(!0===k.value?0:void 0)})),(0,i.YP)(G,(e=>{pe("offset",e)})),(0,i.YP)(j,(e=>{n("on-layout",e),pe("space",e)})),(0,i.YP)(F,(()=>{ae()})),(0,i.YP)(T,(t=>{ae(),ge(e.miniToOverlay,t)})),(0,i.YP)((()=>e.miniToOverlay),(e=>{ge(e,T.value)})),(0,i.YP)((()=>m.lang.rtl),(()=>{ae()})),(0,i.YP)((()=>e.mini),(()=>{!0===e.modelValue&&(ue(),b.animate())})),(0,i.YP)(I,(e=>{n("mini-state",e)})),b.instances[e.side]=N,ge(e.miniToOverlay,T.value),pe("space",j.value),pe("offset",G.value),!0===e.showIfAbove&&!0!==e.modelValue&&!0===k.value&&void 0!==e["onUpdate:modelValue"]&&n("update:modelValue",!0),(0,i.bv)((()=>{n("on-layout",j.value),n("mini-state",I.value),w=!0===e.showIfAbove;const t=()=>{const e=!0===k.value?D:L;e(!1,!0)};0===b.totalWidth.value?M=(0,i.YP)(b.totalWidth,(()=>{M(),M=void 0,!1===k.value&&!0===e.showIfAbove&&!1===C.value?P(!1):t()})):(0,i.Y3)(t)})),(0,i.Jd)((()=>{void 0!==M&&M(),clearTimeout(S),!0===k.value&&he(),b.instances[e.side]===N&&(b.instances[e.side]=void 0,pe("size",0),pe("offset",0),pe("space",!1))})),()=>{const n=[];!0===C.value&&(!1===e.noSwipeOpen&&n.push((0,i.wy)((0,i.h)("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),ne.value)),n.push((0,p.Jl)("div",{ref:"backdrop",class:$.value,style:Y.value,"aria-hidden":"true",onClick:O},void 0,"backdrop",!0!==e.noSwipeBackdrop&&!0===k.value,(()=>re.value))));const r=!0===I.value&&void 0!==t.mini,o=[(0,i.h)("div",{...d,key:""+r,class:[ee.value,d.class]},!0===r?t.mini():(0,p.KR)(t.default))];return!0===e.elevated&&!0===k.value&&o.push((0,i.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push((0,p.Jl)("aside",{ref:"content",class:te.value,style:Q.value},o,"contentclose",!0!==e.noSwipeClose&&!0===C.value,(()=>ie.value))),(0,i.h)("div",{class:"q-drawer-container"},n)}}})},3812:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(3673),r=n(1959),o=n(5151),a=n(908),s=n(7657),l=n(2547);const u=(0,a.L)({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=(0,i.FN)(),u=(0,i.f3)(l.YE,(()=>{console.error("QHeader needs to be child of QLayout")})),c=(0,r.iH)(parseInt(e.heightHint,10)),d=(0,r.iH)(!0),h=(0,i.Fl)((()=>!0===e.reveal||u.view.value.indexOf("H")>-1||a.platform.is.ios&&!0===u.isContainer.value)),p=(0,i.Fl)((()=>{if(!0!==e.modelValue)return 0;if(!0===h.value)return!0===d.value?c.value:0;const t=c.value-u.scroll.value.position;return t>0?t:0})),f=(0,i.Fl)((()=>!0!==e.modelValue||!0===h.value&&!0!==d.value)),g=(0,i.Fl)((()=>!0===e.modelValue&&!0===f.value&&!0===e.reveal)),v=(0,i.Fl)((()=>"q-header q-layout__section--marginal "+(!0===h.value?"fixed":"absolute")+"-top"+(!0===e.bordered?" q-header--bordered":"")+(!0===f.value?" q-header--hidden":"")+(!0!==e.modelValue?" q-layout--prevent-focus":""))),m=(0,i.Fl)((()=>{const e=u.rows.value.top,t={};return"l"===e[0]&&!0===u.left.space&&(t[!0===a.lang.rtl?"right":"left"]=`${u.left.size}px`),"r"===e[2]&&!0===u.right.space&&(t[!0===a.lang.rtl?"left":"right"]=`${u.right.size}px`),t}));function y(e,t){u.update("header",e,t)}function x(e,t){e.value!==t&&(e.value=t)}function _({height:e}){x(c,e),y("size",e)}function b(e){!0===g.value&&x(d,!0),n("focusin",e)}(0,i.YP)((()=>e.modelValue),(e=>{y("space",e),x(d,!0),u.animate()})),(0,i.YP)(p,(e=>{y("offset",e)})),(0,i.YP)((()=>e.reveal),(t=>{!1===t&&x(d,e.modelValue)})),(0,i.YP)(d,(e=>{u.animate(),n("reveal",e)})),(0,i.YP)(u.scroll,(t=>{!0===e.reveal&&x(d,"up"===t.direction||t.position<=e.revealOffset||t.position-t.inflectionPoint<100)}));const w={};return u.instances.header=w,!0===e.modelValue&&y("size",c.value),y("space",e.modelValue),y("offset",p.value),(0,i.Jd)((()=>{u.instances.header===w&&(u.instances.header=void 0,y("size",0),y("offset",0),y("space",!1))})),()=>{const n=(0,s.Bl)(t.default,[]);return!0===e.elevated&&n.push((0,i.h)("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push((0,i.h)(o.Z,{debounce:0,onResize:_})),(0,i.h)("header",{class:v.value,style:m.value,onFocusin:b},n)}}})},4554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(71);var i=n(3673),r=n(2417),o=n(908),a=n(7657);const s="0 0 24 24",l=e=>e,u=e=>`ionicons ${e}`,c={"mdi-":e=>`mdi ${e}`,"icon-":l,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":u,"ion-ios":u,"ion-logo":u,"iconfont ":l,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},d={o_:"-outlined",r_:"-round",s_:"-sharp"},h={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},p=new RegExp("^("+Object.keys(c).join("|")+")"),f=new RegExp("^("+Object.keys(d).join("|")+")"),g=new RegExp("^("+Object.keys(h).join("|")+")"),v=/^[Mm]\s?[-+]?\.?\d/,m=/^img:/,y=/^svguse:/,x=/^ion-/,_=/^(fa-(solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,b=(0,o.L)({name:"QIcon",props:{...r.LU,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),o=(0,r.ZP)(e),l=(0,i.Fl)((()=>"q-icon"+(!0===e.left?" on-left":"")+(!0===e.right?" on-right":"")+(void 0!==e.color?` text-${e.color}`:""))),u=(0,i.Fl)((()=>{let t,r=e.name;if("none"===r||!r)return{none:!0};if(null!==n.iconMapFn){const e=n.iconMapFn(r);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(r=e.icon,"none"===r||!r)return{none:!0}}}if(!0===v.test(r)){const[e,t=s]=r.split("|");return{svg:!0,viewBox:t,nodes:e.split("&&").map((e=>{const[t,n,r]=e.split("@@");return(0,i.h)("path",{style:n,d:t,transform:r})}))}}if(!0===m.test(r))return{img:!0,src:r.substring(4)};if(!0===y.test(r)){const[e,t=s]=r.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let o=" ";const a=r.match(p);if(null!==a)t=c[a[1]](r);else if(!0===_.test(r))t=r;else if(!0===x.test(r))t=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${r.substring(3)}`;else if(!0===g.test(r)){t="notranslate material-symbols";const e=r.match(g);null!==e&&(r=r.substring(6),t+=h[e[1]]),o=r}else{t="notranslate material-icons";const e=r.match(f);null!==e&&(r=r.substring(2),t+=d[e[1]]),o=r}return{cls:t,content:o}}));return()=>{const n={class:l.value,style:o.value,"aria-hidden":"true",role:"presentation"};return!0===u.value.none?(0,i.h)(e.tag,n,(0,a.KR)(t.default)):!0===u.value.img?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("img",{src:u.value.src})])):!0===u.value.svg?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("svg",{viewBox:u.value.viewBox||"0 0 24 24"},u.value.nodes)])):!0===u.value.svguse?(0,i.h)("span",n,(0,a.vs)(t.default,[(0,i.h)("svg",{viewBox:u.value.viewBox},[(0,i.h)("use",{"xlink:href":u.value.src})])])):(void 0!==u.value.cls&&(n.class+=" "+u.value.cls),(0,i.h)(e.tag,n,(0,a.vs)(t.default,[u.value.content])))}}})},4842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(71),n(3610);var i=n(1959),r=n(3673),o=n(5),a=(n(5363),n(1436));const s={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},l={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},u=Object.keys(l);u.forEach((e=>{l[e].regex=new RegExp(l[e].pattern)}));const c=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+u.join("")+"])|(.)","g"),d=/[.*+?^${}()|[\]\\]/g,h=String.fromCharCode(1),p={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function f(e,t,n,o){let u,p,f,g;const v=(0,i.iH)(null),m=(0,i.iH)(x());function y(){return!0===e.autogrow||["textarea","text","search","url","tel","password"].includes(e.type)}function x(){if(b(),!0===v.value){const t=I(k(e.modelValue));return!1!==e.fillMask?A(t):t}return e.modelValue}function _(e){if(e<u.length)return u.slice(-e);let t="",n=u;const i=n.indexOf(h);if(i>-1){for(let i=e-n.length;i>0;i--)t+=h;n=n.slice(0,i)+t+n.slice(i)}return n}function b(){if(v.value=void 0!==e.mask&&e.mask.length>0&&y(),!1===v.value)return g=void 0,u="",void(p="");const t=void 0===s[e.mask]?e.mask:s[e.mask],n="string"===typeof e.fillMask&&e.fillMask.length>0?e.fillMask.slice(0,1):"_",i=n.replace(d,"\\$&"),r=[],o=[],a=[];let m=!0===e.reverseFillMask,x="",_="";t.replace(c,((e,t,n,i,s)=>{if(void 0!==i){const e=l[i];a.push(e),_=e.negate,!0===m&&(o.push("(?:"+_+"+)?("+e.pattern+"+)?(?:"+_+"+)?("+e.pattern+"+)?"),m=!1),o.push("(?:"+_+"+)?("+e.pattern+")?")}else if(void 0!==n)x="\\"+("\\"===n?"":n),a.push(n),r.push("([^"+x+"]+)?"+x+"?");else{const e=void 0!==t?t:s;x="\\"===e?"\\\\\\\\":e.replace(d,"\\\\$&"),a.push(e),r.push("([^"+x+"]+)?"+x+"?")}}));const b=new RegExp("^"+r.join("")+"("+(""===x?".":"[^"+x+"]")+"+)?$"),w=o.length-1,S=o.map(((t,n)=>0===n&&!0===e.reverseFillMask?new RegExp("^"+i+"*"+t):n===w?new RegExp("^"+t+"("+(""===_?".":_)+"+)?"+(!0===e.reverseFillMask?"$":i+"*")):new RegExp("^"+t)));f=a,g=e=>{const t=b.exec(e);null!==t&&(e=t.slice(1).join(""));const n=[],i=S.length;for(let r=0,o=e;r<i;r++){const e=S[r].exec(o);if(null===e)break;o=o.slice(e.shift().length),n.push(...e)}return n.length>0?n.join(""):e},u=a.map((e=>"string"===typeof e?e:h)).join(""),p=u.split(h).join(n)}function w(t,i,a){const s=o.value,l=s.selectionEnd,c=s.value.length-l,d=k(t);!0===i&&b();const f=I(d),g=!1!==e.fillMask?A(f):f,v=m.value!==g;s.value!==g&&(s.value=g),!0===v&&(m.value=g),document.activeElement===s&&(0,r.Y3)((()=>{if(g!==p)if("insertFromPaste"!==a||!0===e.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(a)>-1){const t=!0===e.reverseFillMask?0===l?g.length>f.length?1:0:Math.max(0,g.length-(g===p?0:Math.min(f.length,c)+1))+1:l;s.setSelectionRange(t,t,"forward")}else if(!0===e.reverseFillMask)if(!0===v){const e=Math.max(0,g.length-(g===p?0:Math.min(f.length,c+1)));1===e&&1===l?s.setSelectionRange(e,e,"forward"):M.rightReverse(s,e,e)}else{const e=g.length-c;s.setSelectionRange(e,e,"backward")}else if(!0===v){const e=Math.max(0,u.indexOf(h),Math.min(f.length,l)-1);M.right(s,e,e)}else{const e=l-1;M.right(s,e,e)}else{const e=l-1;M.right(s,e,e)}else{const t=!0===e.reverseFillMask?p.length:0;s.setSelectionRange(t,t,"forward")}}));const y=!0===e.unmaskedValue?k(g):g;String(e.modelValue)!==y&&n(y,!0)}function S(e,t,n){const i=I(k(e.value));t=Math.max(0,u.indexOf(h),Math.min(i.length,t)),e.setSelectionRange(t,n,"forward")}(0,r.YP)((()=>e.type+e.autogrow),b),(0,r.YP)((()=>e.mask),(n=>{if(void 0!==n)w(m.value,!0);else{const n=k(m.value);b(),e.modelValue!==n&&t("update:modelValue",n)}})),(0,r.YP)((()=>e.fillMask+e.reverseFillMask),(()=>{!0===v.value&&w(m.value,!0)})),(0,r.YP)((()=>e.unmaskedValue),(()=>{!0===v.value&&w(m.value)}));const M={left(e,t,n,i){const r=-1===u.slice(t-1).indexOf(h);let o=Math.max(0,t-1);for(;o>=0;o--)if(u[o]===h){t=o,!0===r&&t++;break}if(o<0&&void 0!==u[t]&&u[t]!==h)return M.right(e,0,0);t>=0&&e.setSelectionRange(t,!0===i?n:t,"backward")},right(e,t,n,i){const r=e.value.length;let o=Math.min(r,n+1);for(;o<=r;o++){if(u[o]===h){n=o;break}u[o-1]===h&&(n=o)}if(o>r&&void 0!==u[n-1]&&u[n-1]!==h)return M.left(e,r,r);e.setSelectionRange(i?t:n,n,"forward")},leftReverse(e,t,n,i){const r=_(e.value.length);let o=Math.max(0,t-1);for(;o>=0;o--){if(r[o-1]===h){t=o;break}if(r[o]===h&&(t=o,0===o))break}if(o<0&&void 0!==r[t]&&r[t]!==h)return M.rightReverse(e,0,0);t>=0&&e.setSelectionRange(t,!0===i?n:t,"backward")},rightReverse(e,t,n,i){const r=e.value.length,o=_(r),a=-1===o.slice(0,n+1).indexOf(h);let s=Math.min(r,n+1);for(;s<=r;s++)if(o[s-1]===h){n=s,n>0&&!0===a&&n--;break}if(s>r&&void 0!==o[n-1]&&o[n-1]!==h)return M.leftReverse(e,r,r);e.setSelectionRange(!0===i?t:n,n,"forward")}};function C(t){if(!0===(0,a.Wm)(t))return;const n=o.value,i=n.selectionStart,r=n.selectionEnd;if(37===t.keyCode||39===t.keyCode){const o=M[(39===t.keyCode?"right":"left")+(!0===e.reverseFillMask?"Reverse":"")];t.preventDefault(),o(n,i,r,t.shiftKey)}else 8===t.keyCode&&!0!==e.reverseFillMask&&i===r?M.left(n,i,r,!0):46===t.keyCode&&!0===e.reverseFillMask&&i===r&&M.rightReverse(n,i,r,!0)}function I(t){if(void 0===t||null===t||""===t)return"";if(!0===e.reverseFillMask)return T(t);const n=f;let i=0,r="";for(let e=0;e<n.length;e++){const o=t[i],a=n[e];if("string"===typeof a)r+=a,o===a&&i++;else{if(void 0===o||!a.regex.test(o))return r;r+=void 0!==a.transform?a.transform(o):o,i++}}return r}function T(e){const t=f,n=u.indexOf(h);let i=e.length-1,r="";for(let o=t.length-1;o>=0&&i>-1;o--){const a=t[o];let s=e[i];if("string"===typeof a)r=a+r,s===a&&i--;else{if(void 0===s||!a.regex.test(s))return r;do{r=(void 0!==a.transform?a.transform(s):s)+r,i--,s=e[i]}while(n===o&&void 0!==s&&a.regex.test(s))}}return r}function k(e){return"string"!==typeof e||void 0===g?"number"===typeof e?g(""+e):e:g(e)}function A(t){return p.length-t.length<=0?t:!0===e.reverseFillMask&&t.length>0?p.slice(0,-t.length)+t:t+p.slice(t.length)}return{innerValue:m,hasMask:v,moveCursorForPaste:S,updateMaskValue:w,onMaskedKeydown:C}}var g=n(9550);function v(e,t){function n(){const t=e.modelValue;try{const e="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(t)===t&&("length"in t?Array.from(t):[t]).forEach((t=>{e.items.add(t)})),{files:e.files}}catch(n){return{files:void 0}}}return!0===t?(0,r.Fl)((()=>{if("file"===e.type)return n()})):(0,r.Fl)(n)}var m=n(4421),y=n(908),x=n(4716),_=n(230);const b=(0,y.L)({name:"QInput",inheritAttrs:!1,props:{...o.Cl,...p,...g.Fz,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...o.HJ,"paste","change"],setup(e,{emit:t,attrs:n}){const a={};let s,l,u,c,d=NaN;const h=(0,i.iH)(null),p=(0,g.Do)(e),{innerValue:y,hasMask:b,moveCursorForPaste:w,updateMaskValue:S,onMaskedKeydown:M}=f(e,t,F,h),C=v(e,!0),I=(0,r.Fl)((()=>(0,o.yV)(y.value))),T=(0,m.Z)(N),k=(0,o.tL)(),A=(0,r.Fl)((()=>"textarea"===e.type||!0===e.autogrow)),D=(0,r.Fl)((()=>!0===A.value||["text","search","url","tel","password"].includes(e.type))),L=(0,r.Fl)((()=>{const t={...k.splitAttrs.listeners.value,onInput:N,onPaste:E,onChange:V,onBlur:z,onFocus:x.sT};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=T,!0===b.value&&(t.onKeydown=M),!0===e.autogrow&&(t.onAnimationend=B),t})),P=(0,r.Fl)((()=>{const t={tabindex:0,"data-autofocus":!0===e.autofocus||void 0,rows:"textarea"===e.type?6:void 0,"aria-label":e.label,name:p.value,...k.splitAttrs.attributes.value,id:k.targetUid.value,maxlength:e.maxlength,disabled:!0===e.disable,readonly:!0===e.readonly};return!1===A.value&&(t.type=e.type),!0===e.autogrow&&(t.rows=1),t}));function O(){(0,_.jd)((()=>{const e=document.activeElement;null===h.value||h.value===e||null!==e&&e.id===k.targetUid.value||h.value.focus({preventScroll:!0})}))}function R(){null!==h.value&&h.value.select()}function E(n){if(!0===b.value&&!0!==e.reverseFillMask){const e=n.target;w(e,e.selectionStart,e.selectionEnd)}t("paste",n)}function N(n){if(!n||!n.target)return;if("file"===e.type)return void t("update:modelValue",n.target.files);const i=n.target.value;if(!0!==n.target.qComposing){if(!0===b.value)S(i,!1,n.inputType);else if(F(i),!0===D.value&&n.target===document.activeElement){const{selectionStart:e,selectionEnd:t}=n.target;void 0!==e&&void 0!==t&&(0,r.Y3)((()=>{n.target===document.activeElement&&0===i.indexOf(n.target.value)&&n.target.setSelectionRange(e,t)}))}!0===e.autogrow&&B()}else a.value=i}function F(n,i){c=()=>{"number"!==e.type&&!0===a.hasOwnProperty("value")&&delete a.value,e.modelValue!==n&&d!==n&&(d=n,!0===i&&(l=!0),t("update:modelValue",n),(0,r.Y3)((()=>{d===n&&(d=NaN)}))),c=void 0},"number"===e.type&&(s=!0,a.value=n),void 0!==e.debounce?(clearTimeout(u),a.value=n,u=setTimeout(c,e.debounce)):c()}function B(){const e=h.value;if(null!==e){const t=e.parentNode.style,{overflow:n}=e.style;t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.overflow="hidden",e.style.height=e.scrollHeight+"px",e.style.overflow=n,t.marginBottom=""}}function V(e){T(e),clearTimeout(u),void 0!==c&&c(),t("change",e.target.value)}function z(t){void 0!==t&&(0,x.sT)(t),clearTimeout(u),void 0!==c&&c(),s=!1,l=!1,delete a.value,"file"!==e.type&&setTimeout((()=>{null!==h.value&&(h.value.value=void 0!==y.value?y.value:"")}))}function q(){return!0===a.hasOwnProperty("value")?a.value:void 0!==y.value?y.value:""}(0,r.YP)((()=>e.type),(()=>{h.value&&(h.value.value=e.modelValue)})),(0,r.YP)((()=>e.modelValue),(t=>{if(!0===b.value){if(!0===l&&(l=!1,String(t)===d))return;S(t)}else y.value!==t&&(y.value=t,"number"===e.type&&!0===a.hasOwnProperty("value")&&(!0===s?s=!1:delete a.value));!0===e.autogrow&&(0,r.Y3)(B)})),(0,r.YP)((()=>e.autogrow),(e=>{!0===e?(0,r.Y3)(B):null!==h.value&&n.rows>0&&(h.value.style.height="auto")})),(0,r.YP)((()=>e.dense),(()=>{!0===e.autogrow&&(0,r.Y3)(B)})),(0,r.Jd)((()=>{z()})),(0,r.bv)((()=>{!0===e.autogrow&&B()})),Object.assign(k,{innerValue:y,fieldClass:(0,r.Fl)((()=>"q-"+(!0===A.value?"textarea":"input")+(!0===e.autogrow?" q-textarea--autogrow":""))),hasShadow:(0,r.Fl)((()=>"file"!==e.type&&"string"===typeof e.shadowText&&e.shadowText.length>0)),inputRef:h,emitValue:F,hasValue:I,floatingLabel:(0,r.Fl)((()=>!0===I.value||(0,o.yV)(e.displayValue))),getControl:()=>(0,r.h)(!0===A.value?"textarea":"input",{ref:h,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...P.value,...L.value,..."file"!==e.type?{value:q()}:C.value}),getShadowControl:()=>(0,r.h)("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===A.value?"":" text-no-wrap")},[(0,r.h)("span",{class:"invisible"},q()),(0,r.h)("span",e.shadowText)])});const H=(0,o.ZP)(k),W=(0,r.FN)();return Object.assign(W.proxy,{focus:O,select:R,getNativeElement:()=>h.value}),H}})},3414:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(3673),r=n(1959),o=n(2236),a=n(7277),s=n(908),l=n(7657),u=n(4716),c=n(1436);const d=(0,s.L)({name:"QItem",props:{...o.S,...a.$,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:s}}=(0,i.FN)(),d=(0,o.Z)(e,s),{hasRouterLink:h,hasLink:p,linkProps:f,linkClass:g,linkTag:v,navigateToRouterLink:m}=(0,a.Z)(),y=(0,r.iH)(null),x=(0,r.iH)(null),_=(0,i.Fl)((()=>!0===e.clickable||!0===p.value||"label"===e.tag)),b=(0,i.Fl)((()=>!0!==e.disable&&!0===_.value)),w=(0,i.Fl)((()=>"q-item q-item-type row no-wrap"+(!0===e.dense?" q-item--dense":"")+(!0===d.value?" q-item--dark":"")+(!0===p.value&&null===e.active?g.value:!0===e.active?(void 0!==e.activeClass?` ${e.activeClass}`:"")+" q-item--active":"")+(!0===e.disable?" disabled":"")+(!0===b.value?" q-item--clickable q-link cursor-pointer "+(!0===e.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===e.focused?" q-manual-focusable--focused":""):""))),S=(0,i.Fl)((()=>{if(void 0===e.insetLevel)return null;const t=!0===s.lang.rtl?"Right":"Left";return{["padding"+t]:16+56*e.insetLevel+"px"}}));function M(e){!0===b.value&&(null!==x.value&&(!0!==e.qKeyEvent&&document.activeElement===y.value?x.value.focus():document.activeElement===x.value&&y.value.focus()),!0===h.value&&m(e),n("click",e))}function C(e){if(!0===b.value&&!0===(0,c.So)(e,13)){(0,u.NS)(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,y.value.dispatchEvent(t)}n("keyup",e)}function I(){const e=(0,l.Bl)(t.default,[]);return!0===b.value&&e.unshift((0,i.h)("div",{class:"q-focus-helper",tabindex:-1,ref:x})),e}return()=>{const t={ref:y,class:w.value,style:S.value,onClick:M,onKeyup:C};return!0===b.value?(t.tabindex=e.tabindex||"0",Object.assign(t,f.value)):!0===_.value&&(t["aria-disabled"]="true"),(0,i.h)(v.value,t,I())}}})},2350:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=(0,i.Fl)((()=>parseInt(e.lines,10))),r=(0,i.Fl)((()=>"q-item__label"+(!0===e.overline?" q-item__label--overline text-overline":"")+(!0===e.caption?" q-item__label--caption text-caption":"")+(!0===e.header?" q-item__label--header":"")+(1===n.value?" ellipsis":""))),a=(0,i.Fl)((()=>void 0!==e.lines&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null));return()=>(0,i.h)("div",{style:a.value,class:r.value},(0,o.KR)(t.default))}})},2035:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-item__section column q-item__section--"+(!0===e.avatar||!0===e.side||!0===e.thumbnail?"side":"main")+(!0===e.top?" q-item__section--top justify-start":" justify-center")+(!0===e.avatar?" q-item__section--avatar":"")+(!0===e.thumbnail?" q-item__section--thumbnail":"")+(!0===e.noWrap?" q-item__section--nowrap":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},7011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(2236),a=n(7657);const s=(0,r.L)({name:"QList",props:{...o.S,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,o.Z)(e,n.proxy.$q),s=(0,i.Fl)((()=>"q-list"+(!0===e.bordered?" q-list--bordered":"")+(!0===e.dense?" q-list--dense":"")+(!0===e.separator?" q-list--separator":"")+(!0===r.value?" q-list--dark":"")+(!0===e.padding?" q-list--padding":"")));return()=>(0,i.h)("div",{class:s.value},(0,a.KR)(t.default))}})},3066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(3673),r=n(1959),o=n(4688),a=(n(3610),n(71),n(908)),s=n(8400),l=n(4716);const{passive:u}=l.rU,c=["both","horizontal","vertical"],d=(0,a.L)({name:"QScrollObserver",props:{axis:{type:String,validator:e=>c.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let r,o,a=null;function c(){null!==a&&a();const i=Math.max(0,(0,s.u3)(r)),o=(0,s.OI)(r),l={top:i-n.position.top,left:o-n.position.left};if("vertical"===e.axis&&0===l.top||"horizontal"===e.axis&&0===l.left)return;const u=Math.abs(l.top)>=Math.abs(l.left)?l.top<0?"up":"down":l.left<0?"left":"right";n.position={top:i,left:o},n.directionChanged=n.direction!==u,n.delta=l,!0===n.directionChanged&&(n.direction=u,n.inflectionPoint=n.position),t("scroll",{...n})}function d(){r=(0,s.b0)(o,e.scrollTarget),r.addEventListener("scroll",p,u),p(!0)}function h(){void 0!==r&&(r.removeEventListener("scroll",p,u),r=void 0)}function p(t){if(!0===t||0===e.debounce||"0"===e.debounce)c();else if(null===a){const[t,n]=e.debounce?[setTimeout(c,e.debounce),clearTimeout]:[requestAnimationFrame(c),cancelAnimationFrame];a=()=>{n(t),a=null}}}(0,i.YP)((()=>e.scrollTarget),(()=>{h(),d()}));const f=(0,i.FN)();return(0,i.bv)((()=>{o=f.proxy.$el.parentNode,d()})),(0,i.Jd)((()=>{null!==a&&a(),h()})),Object.assign(f.proxy,{trigger:p,getPosition:()=>n}),l.ZT}});var h=n(5151),p=n(7657),f=n(2547);const g=(0,a.L)({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=(0,i.FN)(),l=(0,r.iH)(null),u=(0,r.iH)(a.screen.height),c=(0,r.iH)(!0===e.container?0:a.screen.width),g=(0,r.iH)({position:0,direction:"down",inflectionPoint:0}),v=(0,r.iH)(0),m=(0,r.iH)(!0===o.uX.value?0:(0,s.np)()),y=(0,i.Fl)((()=>"q-layout q-layout--"+(!0===e.container?"containerized":"standard"))),x=(0,i.Fl)((()=>!1===e.container?{minHeight:a.screen.height+"px"}:null)),_=(0,i.Fl)((()=>0!==m.value?{[!0===a.lang.rtl?"left":"right"]:`${m.value}px`}:null)),b=(0,i.Fl)((()=>0!==m.value?{[!0===a.lang.rtl?"right":"left"]:0,[!0===a.lang.rtl?"left":"right"]:`-${m.value}px`,width:`calc(100% + ${m.value}px)`}:null));function w(t){if(!0===e.container||!0!==document.qScrollPrevented){const i={position:t.position.top,direction:t.direction,directionChanged:t.directionChanged,inflectionPoint:t.inflectionPoint.top,delta:t.delta.top};g.value=i,void 0!==e.onScroll&&n("scroll",i)}}function S(t){const{height:i,width:r}=t;let o=!1;u.value!==i&&(o=!0,u.value=i,void 0!==e.onScrollHeight&&n("scroll-height",i),C()),c.value!==r&&(o=!0,c.value=r),!0===o&&void 0!==e.onResize&&n("resize",t)}function M({height:e}){v.value!==e&&(v.value=e,C())}function C(){if(!0===e.container){const e=u.value>v.value?(0,s.np)():0;m.value!==e&&(m.value=e)}}let I;const T={instances:{},view:(0,i.Fl)((()=>e.view)),isContainer:(0,i.Fl)((()=>e.container)),rootRef:l,height:u,containerHeight:v,scrollbarWidth:m,totalWidth:(0,i.Fl)((()=>c.value+m.value)),rows:(0,i.Fl)((()=>{const t=e.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}})),header:(0,r.qj)({size:0,offset:0,space:!1}),right:(0,r.qj)({size:300,offset:0,space:!1}),footer:(0,r.qj)({size:0,offset:0,space:!1}),left:(0,r.qj)({size:300,offset:0,space:!1}),scroll:g,animate(){void 0!==I?clearTimeout(I):document.body.classList.add("q-body--layout-animate"),I=setTimeout((()=>{document.body.classList.remove("q-body--layout-animate"),I=void 0}),155)},update(e,t,n){T[e][t]=n}};if((0,i.JJ)(f.YE,T),(0,s.np)()>0){let k=null;const A=document.body;function D(){k=null,A.classList.remove("hide-scrollbar")}function L(){if(null===k){if(A.scrollHeight>a.screen.height)return;A.classList.add("hide-scrollbar")}else clearTimeout(k);k=setTimeout(D,300)}function P(e){null!==k&&"remove"===e&&(clearTimeout(k),D()),window[`${e}EventListener`]("resize",L)}(0,i.YP)((()=>!0!==e.container?"add":"remove"),P),!0!==e.container&&P("add"),(0,i.Ah)((()=>{P("remove")}))}return()=>{const n=(0,p.vs)(t.default,[(0,i.h)(d,{onScroll:w}),(0,i.h)(h.Z,{onResize:S})]),r=(0,i.h)("div",{class:y.value,style:x.value,ref:!0===e.container?void 0:l,tabindex:-1},n);return!0===e.container?(0,i.h)("div",{class:"q-layout-container overflow-hidden",ref:l},[(0,i.h)(h.Z,{onResize:M}),(0,i.h)("div",{class:"absolute-full",style:_.value},[(0,i.h)("div",{class:"scroll",style:b.value},[r])])]):r}}})},811:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(5875),s=n(1372),l=n(3628),u=n(2236),c=n(5911),d=n(6104),h=n(416),p=n(4955),f=n(908),g=n(4312),v=n(8400),m=n(4716),y=n(7657),x=n(4704),_=n(8517),b=n(2012),w=n(9916),S=n(230),M=n(2657);const C=(0,f.L)({name:"QMenu",inheritAttrs:!1,props:{...a.u,...l.vr,...u.S,...d.D,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:M.$},self:{type:String,validator:M.$},offset:{type:Array,validator:M.io},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...l.gH,"click","escape-key"],setup(e,{slots:t,emit:n,attrs:f}){let C,I,T,k=null;const A=(0,i.FN)(),{proxy:D}=A,{$q:L}=D,P=(0,r.iH)(null),O=(0,r.iH)(!1),R=(0,i.Fl)((()=>!0!==e.persistent&&!0!==e.noRouteDismiss)),E=(0,u.Z)(e,L),{registerTick:N,removeTick:F}=(0,h.Z)(),{registerTimeout:B,removeTimeout:V}=(0,p.Z)(),{transition:z,transitionStyle:q}=(0,d.Z)(e,O),{localScrollTarget:H,changeScrollEvent:W,unconfigureScrollTarget:G}=(0,s.Z)(e,se),{anchorEl:U,canShow:j}=(0,a.Z)({showing:O}),{hide:Z}=(0,l.ZP)({showing:O,canShow:j,handleShow:re,handleHide:oe,hideOnRouteChange:R,processOnMount:!0}),{showPortal:$,hidePortal:Y,renderPortal:X}=(0,c.Z)(A,P,he),K={anchorEl:U,innerRef:P,onClickOutside(t){if(!0!==e.persistent&&!0===O.value)return Z(t),("touchstart"===t.type||t.target.classList.contains("q-dialog__backdrop"))&&(0,m.NS)(t),!0}},J=(0,i.Fl)((()=>(0,M.li)(e.anchor||(!0===e.cover?"center middle":"bottom start"),L.lang.rtl))),Q=(0,i.Fl)((()=>!0===e.cover?J.value:(0,M.li)(e.self||"top start",L.lang.rtl))),ee=(0,i.Fl)((()=>(!0===e.square?" q-menu--square":"")+(!0===E.value?" q-menu--dark q-dark":""))),te=(0,i.Fl)((()=>!0===e.autoClose?{onClick:le}:{})),ne=(0,i.Fl)((()=>!0===O.value&&!0!==e.persistent));function ie(){(0,S.jd)((()=>{let e=P.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus], [data-autofocus]")||e,e.focus({preventScroll:!0}))}))}function re(t){if(F(),V(),k=!1===e.noRefocus?document.activeElement:null,(0,_.i)(ue),$(),se(),C=void 0,void 0!==t&&(e.touchPosition||e.contextMenu)){const e=(0,m.FK)(t);if(void 0!==e.left){const{top:t,left:n}=U.value.getBoundingClientRect();C={left:e.left-n,top:e.top-t}}}void 0===I&&(I=(0,i.YP)((()=>L.screen.width+"|"+L.screen.height+"|"+e.self+"|"+e.anchor+"|"+L.lang.rtl),de)),!0!==e.noFocus&&document.activeElement.blur(),N((()=>{de(),!0!==e.noFocus&&ie()})),B((()=>{!0===L.platform.is.ios&&(T=e.autoClose,P.value.click()),de(),$(!0),n("show",t)}),e.transitionDuration)}function oe(t){F(),V(),Y(),ae(!0),null===k||void 0!==t&&!0===t.qClickOutside||(k.focus(),k=null),B((()=>{Y(!0),n("hide",t)}),e.transitionDuration)}function ae(e){C=void 0,void 0!==I&&(I(),I=void 0),!0!==e&&!0!==O.value||((0,_.H)(ue),G(),(0,w.D)(K),(0,x.k)(ce)),!0!==e&&(k=null)}function se(){null===U.value&&void 0===e.scrollTarget||(H.value=(0,v.b0)(U.value,e.scrollTarget),W(H.value,de))}function le(e){!0!==T?((0,g.AH)(D,e),n("click",e)):T=!1}function ue(t){!0===ne.value&&!0!==e.noFocus&&!0!==(0,b.mY)(P.value,t.target)&&ie()}function ce(e){n("escape-key"),Z(e)}function de(){const t=P.value;null!==t&&null!==U.value&&(0,M.wq)({el:t,offset:e.offset,anchorEl:U.value,anchorOrigin:J.value,selfOrigin:Q.value,absoluteOffset:C,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function he(){return(0,i.h)(o.uT,{name:z.value,appear:!0},(()=>!0===O.value?(0,i.h)("div",{...f,ref:P,tabindex:-1,class:["q-menu q-position-engine scroll"+ee.value,f.class],style:[f.style,q.value],...te.value},(0,y.KR)(t.default)):null))}return(0,i.YP)(ne,(e=>{!0===e?((0,x.c)(ce),(0,w.m)(K)):((0,x.k)(ce),(0,w.D)(K))})),(0,i.Jd)(ae),Object.assign(D,{focus:ie,updatePosition:de}),X}})},2652:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(3673),r=n(908),o=n(7657),a=n(2547);const s=(0,r.L)({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),r=(0,i.f3)(a.YE,(()=>{console.error("QPageContainer needs to be child of QLayout")}));(0,i.JJ)(a.Mw,!0);const s=(0,i.Fl)((()=>{const e={};return!0===r.header.space&&(e.paddingTop=`${r.header.size}px`),!0===r.right.space&&(e["padding"+(!0===n.lang.rtl?"Left":"Right")]=`${r.right.size}px`),!0===r.footer.space&&(e.paddingBottom=`${r.footer.size}px`),!0===r.left.space&&(e["padding"+(!0===n.lang.rtl?"Right":"Left")]=`${r.left.size}px`),e}));return()=>(0,i.h)("div",{class:"q-page-container",style:s.value},(0,o.KR)(t.default))}})},3944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(3673),r=n(1959),o=n(6778),a=n(811),s=n(5875),l=n(908);const u=(0,l.L)({name:"QPopupProxy",props:{...s.u,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:t,emit:n,attrs:l}){const{proxy:u}=(0,i.FN)(),{$q:c}=u,d=(0,r.iH)(!1),h=(0,r.iH)(null),p=(0,i.Fl)((()=>parseInt(e.breakpoint,10))),{canShow:f}=(0,s.Z)({showing:d});function g(){return c.screen.width<p.value||c.screen.height<p.value?"dialog":"menu"}const v=(0,r.iH)(g()),m=(0,i.Fl)((()=>"menu"===v.value?{maxHeight:"99vh"}:{}));function y(e){d.value=!0,n("show",e)}function x(e){d.value=!1,v.value=g(),n("hide",e)}return(0,i.YP)((()=>g()),(e=>{!0!==d.value&&(v.value=e)})),Object.assign(u,{show(e){!0===f(e)&&h.value.show(e)},hide(e){h.value.hide(e)},toggle(e){h.value.toggle(e)}}),()=>{const n={ref:h,...m.value,...l,onShow:y,onHide:x};let r;return"dialog"===v.value?r=o.Z:(r=a.Z,Object.assign(n,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),(0,i.h)(r,n,t.default)}}})},5151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(3673),r=n(1959),o=n(4688);function a(){const e=(0,r.iH)(!o.uX.value);return!1===e.value&&(0,i.bv)((()=>{e.value=!0})),e}var s=n(908),l=n(4716);const u="undefined"!==typeof ResizeObserver,c=!0===u?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},d=(0,s.L)({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n,r=null,o={width:-1,height:-1};function s(t){!0===t||0===e.debounce||"0"===e.debounce?d():null===r&&(r=setTimeout(d,e.debounce))}function d(){if(clearTimeout(r),r=null,n){const{offsetWidth:e,offsetHeight:i}=n;e===o.width&&i===o.height||(o={width:e,height:i},t("resize",o))}}const h=(0,i.FN)();if(Object.assign(h.proxy,{trigger:s}),!0===u){let p;return(0,i.bv)((()=>{(0,i.Y3)((()=>{n=h.proxy.$el.parentNode,n&&(p=new ResizeObserver(s),p.observe(n),d())}))})),(0,i.Jd)((()=>{clearTimeout(r),void 0!==p&&(void 0!==p.disconnect?p.disconnect():n&&p.unobserve(n))})),l.ZT}{const f=a();let g;function v(){clearTimeout(r),void 0!==g&&(void 0!==g.removeEventListener&&g.removeEventListener("resize",s,l.rU.passive),g=void 0)}function m(){v(),n&&n.contentDocument&&(g=n.contentDocument.defaultView,g.addEventListener("resize",s,l.rU.passive),d())}return(0,i.bv)((()=>{(0,i.Y3)((()=>{n=h.proxy.$el,n&&m()}))})),(0,i.Jd)(v),()=>{if(!0===f.value)return(0,i.h)("object",{style:c.style,tabindex:-1,type:"text/html",data:c.url,"aria-hidden":"true",onLoad:m})}}}})},5869:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(2236),o=n(908);const a={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},s={xs:2,sm:4,md:8,lg:16,xl:24},l=(0,o.L)({name:"QSeparator",props:{...r.S,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=(0,i.FN)(),n=(0,r.Z)(e,t.proxy.$q),o=(0,i.Fl)((()=>!0===e.vertical?"vertical":"horizontal")),l=(0,i.Fl)((()=>` q-separator--${o.value}`)),u=(0,i.Fl)((()=>!1!==e.inset?`${l.value}-${a[e.inset]}`:"")),c=(0,i.Fl)((()=>`q-separator${l.value}${u.value}`+(void 0!==e.color?` bg-${e.color}`:"")+(!0===n.value?" q-separator--dark":""))),d=(0,i.Fl)((()=>{const t={};if(void 0!==e.size&&(t[!0===e.vertical?"width":"height"]=e.size),!1!==e.spaced){const n=!0===e.spaced?`${s.md}px`:e.spaced in s?`${s[e.spaced]}px`:e.spaced,i=!0===e.vertical?["Left","Right"]:["Top","Bottom"];t[`margin${i[0]}`]=t[`margin${i[1]}`]=n}return t}));return()=>(0,i.h)("hr",{class:c.value,style:d.value,"aria-orientation":o.value})}})},2025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908);const o=(0,i.h)("div",{class:"q-space"}),a=(0,r.L)({name:"QSpace",setup(){return()=>o}})},9754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(3673),r=n(2417);const o={size:{type:[Number,String],default:"1em"},color:String};function a(e){return{cSize:(0,i.Fl)((()=>e.size in r.Ok?`${r.Ok[e.size]}px`:e.size)),classes:(0,i.Fl)((()=>"q-spinner"+(e.color?` text-${e.color}`:"")))}}var s=n(908);const l=(0,s.L)({name:"QSpinner",props:{...o,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=a(e);return()=>(0,i.h)("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[(0,i.h)("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}})},7898:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Fe});n(3610),n(71);var i=n(3673),r=n(1959),o=n(4554),a=n(908),s=n(7657);const l=(0,a.L)({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const r=(0,i.FN)(),{proxy:{$q:a}}=r,l=e=>{n("click",e)};return()=>{if(void 0===e.props)return(0,i.h)("th",{class:!0===e.autoWidth?"q-table--col-auto-width":"",onClick:l},(0,s.KR)(t.default));let n,u;const c=r.vnode.key;if(c){if(n=e.props.colsMap[c],void 0===n)return}else n=e.props.col;if(!0===n.sortable){const e="right"===n.align?"unshift":"push";u=(0,s.Bl)(t.default,[]),u[e]((0,i.h)(o.Z,{class:n.__iconClass,name:a.iconSet.table.arrowUp}))}else u=(0,s.KR)(t.default);const d={class:n.__thClass+(!0===e.autoWidth?" q-table--col-auto-width":""),style:n.headerStyle,onClick:t=>{!0===n.sortable&&e.props.sort(n),l(t)}};return(0,i.h)("th",d,u)}}});var u=n(5869),c=n(7011),d=n(2236);const h=["horizontal","vertical","cell","none"],p=(0,a.L)({name:"QMarkupTable",props:{...d.S,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>h.includes(e)}},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,d.Z)(e,n.proxy.$q),o=(0,i.Fl)((()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(!0===r.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===e.dense?" q-table--dense":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":"")+(!0===e.square?" q-table--square":"")+(!1===e.wrapCells?" q-table--no-wrap":"")));return()=>(0,i.h)("div",{class:o.value},[(0,i.h)("table",{class:"q-table"},(0,s.KR)(t.default))])}});function f(e,t){return(0,i.h)("div",e,[(0,i.h)("table",{class:"q-table"},t)])}n(5363);var g=n(9405),v=n(4716),m=n(5811);const y=1e3,x=["start","center","end","start-force","center-force","end-force"],_=Array.prototype.filter,b=void 0===window.getComputedStyle(document.body).overflowAnchor?v.ZT:function(e,t){null!==e&&(cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame((()=>{if(null===e)return;const n=e.children||[];_.call(n,(e=>e.dataset&&void 0!==e.dataset.qVsAnchor)).forEach((e=>{delete e.dataset.qVsAnchor}));const i=n[t];i&&i.dataset&&(i.dataset.qVsAnchor="")})))};function w(e,t){return e+t}function S(e,t,n,i,r,o,a,s){const l=e===window?document.scrollingElement||document.documentElement:e,u=!0===r?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-a-s,scrollMaxSize:0,offsetStart:-a,offsetEnd:-s};if(!0===r?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=l.scrollLeft,c.scrollViewSize+=l.clientWidth),c.scrollMaxSize=l.scrollWidth,!0===o&&(c.scrollStart=(!0===m.e?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=l.scrollTop,c.scrollViewSize+=l.clientHeight),c.scrollMaxSize=l.scrollHeight),null!==n)for(let d=n.previousElementSibling;null!==d;d=d.previousElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetStart+=d[u]);if(null!==i)for(let d=i.nextElementSibling;null!==d;d=d.nextElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetEnd+=d[u]);if(t!==e){const n=l.getBoundingClientRect(),i=t.getBoundingClientRect();!0===r?(c.offsetStart+=i.left-n.left,c.offsetEnd-=i.width):(c.offsetStart+=i.top-n.top,c.offsetEnd-=i.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function M(e,t,n,i){"end"===t&&(t=(e===window?document.body:e)[!0===n?"scrollWidth":"scrollHeight"]),e===window?!0===n?(!0===i&&(t=(!0===m.e?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===n?(!0===i&&(t=(!0===m.e?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function C(e,t,n,i){if(n>=i)return 0;const r=t.length,o=Math.floor(n/y),a=Math.floor((i-1)/y)+1;let s=e.slice(o,a).reduce(w,0);return n%y!==0&&(s-=t.slice(o*y,n).reduce(w,0)),i%y!==0&&i!==r&&(s-=t.slice(i,a*y).reduce(w,0)),s}const I={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},T=Object.keys(I),k={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...I};function A({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const a=(0,i.FN)(),{props:s,emit:l,proxy:u}=a,{$q:c}=u;let d,h,p,f,v=[];const m=(0,r.iH)(0),I=(0,r.iH)(0),T=(0,r.iH)({}),k=(0,r.iH)(null),A=(0,r.iH)(null),D=(0,r.iH)(null),L=(0,r.iH)({from:0,to:0}),P=(0,i.Fl)((()=>void 0!==s.tableColspan?s.tableColspan:100));void 0===o&&(o=(0,i.Fl)((()=>s.virtualScrollItemSize)));const O=(0,i.Fl)((()=>o.value+";"+s.virtualScrollHorizontal)),R=(0,i.Fl)((()=>O.value+";"+s.virtualScrollSliceRatioBefore+";"+s.virtualScrollSliceRatioAfter));function E(){H(h,!0)}function N(e){H(void 0===e?h:e)}function F(i,r){const o=t();if(void 0===o||null===o||8===o.nodeType)return;const a=S(o,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd);p!==a.scrollViewSize&&W(a.scrollViewSize),V(o,a,Math.min(e.value-1,Math.max(0,parseInt(i,10)||0)),0,x.indexOf(r)>-1?r:h>-1&&i>h?"end":"start")}function B(){const i=t();if(void 0===i||null===i||8===i.nodeType)return;const r=S(i,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd),o=e.value-1,a=r.scrollMaxSize-r.offsetStart-r.offsetEnd-I.value;if(d===r.scrollStart)return;if(r.scrollMaxSize<=0)return void V(i,r,0,0);p!==r.scrollViewSize&&W(r.scrollViewSize),z(L.value.from);const l=Math.floor(r.scrollMaxSize-Math.max(r.scrollViewSize,r.offsetEnd)-Math.min(f[o],r.scrollViewSize/2));if(l>0&&Math.ceil(r.scrollStart)>=l)return void V(i,r,o,r.scrollMaxSize-r.offsetEnd-v.reduce(w,0));let u=0,h=r.scrollStart-r.offsetStart,g=h;if(h<=a&&h+r.scrollViewSize>=m.value)h-=m.value,u=L.value.from,g=h;else for(let e=0;h>=v[e]&&u<o;e++)h-=v[e],u+=y;while(h>0&&u<o)h-=f[u],h>-r.scrollViewSize?(u++,g=h):g=f[u]+h;V(i,r,u,g)}function V(t,n,i,r,o){const a="string"===typeof o&&o.indexOf("-force")>-1,l=!0===a?o.replace("-force",""):o,u=void 0!==l?l:"start";let h=Math.max(0,i-T.value[u]),p=h+T.value.total;p>e.value&&(p=e.value,h=Math.max(0,p-T.value.total)),d=n.scrollStart;const g=h!==L.value.from||p!==L.value.to;if(!1===g&&void 0===l)return void U(i);const{activeElement:y}=document,x=D.value;!0===g&&null!==x&&x!==y&&!0===x.contains(y)&&(x.addEventListener("focusout",q),setTimeout((()=>{null!==x&&x.removeEventListener("focusout",q)}))),b(x,i-h);const _=void 0!==l?f.slice(h,i).reduce(w,0):0;if(!0===g){const t=p>=L.value.from&&h<=L.value.to?L.value.to:p;L.value={from:h,to:t},m.value=C(v,f,0,h),I.value=C(v,f,p,e.value),requestAnimationFrame((()=>{L.value.to!==p&&d===n.scrollStart&&(L.value={from:L.value.from,to:p},I.value=C(v,f,p,e.value))}))}requestAnimationFrame((()=>{if(d!==n.scrollStart)return;!0===g&&z(h);const e=f.slice(h,i).reduce(w,0),o=e+n.offsetStart+m.value,u=o+f[i];let p=o+r;if(void 0!==l){const t=e-_,r=n.scrollStart+t;p=!0!==a&&r<o&&u<r+n.scrollViewSize?r:"end"===l?u-n.scrollViewSize:o-("start"===l?0:Math.round((n.scrollViewSize-f[i])/2))}d=p,M(t,p,s.virtualScrollHorizontal,c.lang.rtl),U(i)}))}function z(e){const t=D.value;if(t){const n=_.call(t.children,(e=>e.classList&&!1===e.classList.contains("q-virtual-scroll--skip"))),i=n.length,r=!0===s.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let o,a,l=e;for(let e=0;e<i;){o=r(n[e]),e++;while(e<i&&!0===n[e].classList.contains("q-virtual-scroll--with-prev"))o+=r(n[e]),e++;a=o-f[l],0!==a&&(f[l]+=a,v[Math.floor(l/y)]+=a),l++}}}function q(){null!==D.value&&void 0!==D.value&&D.value.focus()}function H(t,n){const r=1*o.value;!0!==n&&!1!==Array.isArray(f)||(f=[]);const a=f.length;f.length=e.value;for(let i=e.value-1;i>=a;i--)f[i]=r;const s=Math.floor((e.value-1)/y);v=[];for(let i=0;i<=s;i++){let t=0;const n=Math.min((i+1)*y,e.value);for(let e=i*y;e<n;e++)t+=f[e];v.push(t)}h=-1,d=void 0,m.value=C(v,f,0,L.value.from),I.value=C(v,f,L.value.to,e.value),t>=0?(z(L.value.from),(0,i.Y3)((()=>{F(t)}))):j()}function W(e){if(void 0===e&&"undefined"!==typeof window){const i=t();void 0!==i&&null!==i&&8!==i.nodeType&&(e=S(i,n(),k.value,A.value,s.virtualScrollHorizontal,c.lang.rtl,s.virtualScrollStickySizeStart,s.virtualScrollStickySizeEnd).scrollViewSize)}p=e;const i=parseFloat(s.virtualScrollSliceRatioBefore)||0,r=parseFloat(s.virtualScrollSliceRatioAfter)||0,a=1+i+r,l=void 0===e||e<=0?1:Math.ceil(e/o.value),u=Math.max(1,l,Math.ceil((s.virtualScrollSliceSize>0?s.virtualScrollSliceSize:10)/a));T.value={total:Math.ceil(u*a),start:Math.ceil(u*i),center:Math.ceil(u*(.5+i)),end:Math.ceil(u*(1+i)),view:l}}function G(e,t){const n=!0===s.virtualScrollHorizontal?"width":"height",r={["--q-virtual-scroll-item-"+n]:o.value+"px"};return["tbody"===e?(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:k},[(0,i.h)("tr",[(0,i.h)("td",{style:{[n]:`${m.value}px`,...r},colspan:P.value})])]):(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"before",ref:k,style:{[n]:`${m.value}px`,...r}}),(0,i.h)(e,{class:"q-virtual-scroll__content",key:"content",ref:D,tabindex:-1},t.flat()),"tbody"===e?(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:A},[(0,i.h)("tr",[(0,i.h)("td",{style:{[n]:`${I.value}px`,...r},colspan:P.value})])]):(0,i.h)(e,{class:"q-virtual-scroll__padding",key:"after",ref:A,style:{[n]:`${I.value}px`,...r}})]}function U(e){h!==e&&(void 0!==s.onVirtualScroll&&l("virtual-scroll",{index:e,from:L.value.from,to:L.value.to-1,direction:e<h?"decrease":"increase",ref:u}),h=e)}(0,i.YP)(R,(()=>{W()})),(0,i.YP)(O,E),W();const j=(0,g.Z)(B,!0===c.platform.is.ios?120:35);(0,i.wF)((()=>{W()}));let Z=!1;return(0,i.se)((()=>{Z=!0})),(0,i.dl)((()=>{if(!0!==Z)return;const e=t();void 0!==d&&void 0!==e&&null!==e&&8!==e.nodeType?M(e,d,s.virtualScrollHorizontal,c.lang.rtl):F(h)})),(0,i.Jd)((()=>{j.cancel()})),Object.assign(u,{scrollTo:F,reset:E,refresh:N}),{virtualScrollSliceRange:L,virtualScrollSliceSizeComputed:T,setVirtualScrollSize:W,onVirtualScrollEvt:j,localResetVirtualScroll:H,padVirtualScroll:G,scrollTo:F,reset:E,refresh:N}}var D=n(8400);const L={list:c.Z,table:p},P=["list","table","__qtable"],O=(0,a.L)({name:"QVirtualScroll",props:{...k,type:{type:String,default:"list",validator:e=>P.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(e,{slots:t,attrs:n}){let o;const a=(0,r.iH)(null),l=(0,i.Fl)((()=>e.itemsSize>=0&&void 0!==e.itemsFn?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0)),{virtualScrollSliceRange:u,localResetVirtualScroll:c,padVirtualScroll:d,onVirtualScrollEvt:h}=A({virtualScrollLength:l,getVirtualScrollTarget:x,getVirtualScrollEl:y}),p=(0,i.Fl)((()=>{if(0===l.value)return[];const t=(e,t)=>({index:u.value.from+t,item:e});return void 0===e.itemsFn?e.items.slice(u.value.from,u.value.to).map(t):e.itemsFn(u.value.from,u.value.to-u.value.from).map(t)})),g=(0,i.Fl)((()=>"q-virtual-scroll q-virtual-scroll"+(!0===e.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==e.scrollTarget?"":" scroll"))),m=(0,i.Fl)((()=>void 0!==e.scrollTarget?{}:{tabindex:0}));function y(){return a.value.$el||a.value}function x(){return o}function _(){o=(0,D.b0)(y(),e.scrollTarget),o.addEventListener("scroll",h,v.rU.passive)}function b(){void 0!==o&&(o.removeEventListener("scroll",h,v.rU.passive),o=void 0)}function w(){let n=d("list"===e.type?"div":"tbody",p.value.map(t.default));return void 0!==t.before&&(n=t.before().concat(n)),(0,s.vs)(t.after,n)}return(0,i.YP)(l,(()=>{c()})),(0,i.YP)((()=>e.scrollTarget),(()=>{b(),_()})),(0,i.wF)((()=>{c()})),(0,i.bv)((()=>{_()})),(0,i.dl)((()=>{_()})),(0,i.se)((()=>{b()})),(0,i.Jd)((()=>{b()})),()=>{if(void 0!==t.default)return"__qtable"===e.type?f({ref:a,class:"q-table__middle "+g.value},w()):(0,i.h)(L[e.type],{...n,ref:a,class:[n.class,g.value],...m.value},w);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});var R=n(5);const E=(0,a.L)({name:"QField",inheritAttrs:!1,props:R.Cl,emits:R.HJ,setup(){return(0,R.ZP)((0,R.tL)())}});var N=n(7030),F=n(3414),B=n(2035),V=n(2350),z=n(811),q=n(6778),H=n(9550),W=n(4421),G=n(782),U=n(2130),j=n(1436);const Z=e=>["add","add-unique","toggle"].includes(e),$=".*+?^${}()|[]\\",Y=Object.keys(R.Cl),X=(0,a.L)({name:"QSelect",inheritAttrs:!1,props:{...k,...H.Fz,...R.Cl,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Z},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...R.HJ,"add","remove","input-value","new-value","keyup","keypress","keydown","filter-abort"],setup(e,{slots:t,emit:n}){const{proxy:a}=(0,i.FN)(),{$q:l}=a,u=(0,r.iH)(!1),c=(0,r.iH)(!1),d=(0,r.iH)(-1),h=(0,r.iH)(""),p=(0,r.iH)(!1),f=(0,r.iH)(!1);let g,m,y,x,_,b,w,S,M;const C=(0,r.iH)(null),I=(0,r.iH)(null),T=(0,r.iH)(null),k=(0,r.iH)(null),D=(0,r.iH)(null),L=(0,H.Do)(e),P=(0,W.Z)($e),O=(0,i.Fl)((()=>Array.isArray(e.options)?e.options.length:0)),X=(0,i.Fl)((()=>void 0===e.virtualScrollItemSize?!0===e.optionsDense?24:48:e.virtualScrollItemSize)),{virtualScrollSliceRange:K,virtualScrollSliceSizeComputed:J,localResetVirtualScroll:Q,padVirtualScroll:ee,onVirtualScrollEvt:te,scrollTo:ne,setVirtualScrollSize:ie}=A({virtualScrollLength:O,getVirtualScrollTarget:Ge,getVirtualScrollEl:We,virtualScrollItemSizeComputed:X}),re=(0,R.tL)(),oe=(0,i.Fl)((()=>{const t=!0===e.mapOptions&&!0!==e.multiple,n=void 0===e.modelValue||null===e.modelValue&&!0!==t?[]:!0===e.multiple&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue];if(!0===e.mapOptions&&!0===Array.isArray(e.options)){const i=!0===e.mapOptions&&void 0!==m?m:[],r=n.map((e=>Ee(e,i)));return null===e.modelValue&&!0===t?r.filter((e=>null!==e)):r}return n})),ae=(0,i.Fl)((()=>{const t={};return Y.forEach((n=>{const i=e[n];void 0!==i&&(t[n]=i)})),t})),se=(0,i.Fl)((()=>null===e.optionsDark?re.isDark.value:e.optionsDark)),le=(0,i.Fl)((()=>(0,R.yV)(oe.value))),ue=(0,i.Fl)((()=>{let t="q-field__input q-placeholder col";return!0===e.hideSelected||0===oe.value.length?[t,e.inputClass]:(t+=" q-field__input--padding",void 0===e.inputClass?t:[t,e.inputClass])})),ce=(0,i.Fl)((()=>(!0===e.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:""))),de=(0,i.Fl)((()=>0===O.value)),he=(0,i.Fl)((()=>oe.value.map((e=>Me.value(e))).join(", "))),pe=(0,i.Fl)((()=>!0===e.optionsHtml?()=>!0:e=>void 0!==e&&null!==e&&!0===e.html)),fe=(0,i.Fl)((()=>!0===e.displayValueHtml||void 0===e.displayValue&&(!0===e.optionsHtml||oe.value.some(pe.value)))),ge=(0,i.Fl)((()=>!0===re.focused.value?e.tabindex:-1)),ve=(0,i.Fl)((()=>{const t={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-autocomplete":!0===e.useInput?"list":"none","aria-expanded":!0===u.value?"true":"false","aria-owns":`${re.targetUid.value}_lb`,"aria-controls":`${re.targetUid.value}_lb`};return d.value>=0&&(t["aria-activedescendant"]=`${re.targetUid.value}_${d.value}`),t})),me=(0,i.Fl)((()=>{const t={id:`${re.targetUid.value}_lb`,role:"listbox","aria-multiselectable":!0===e.multiple?"true":"false"};return d.value>=0&&(t["aria-activedescendant"]=`${re.targetUid.value}_${d.value}`),t})),ye=(0,i.Fl)((()=>oe.value.map(((e,t)=>({index:t,opt:e,html:pe.value(e),selected:!0,removeAtIndex:De,toggleOption:Pe,tabindex:ge.value}))))),xe=(0,i.Fl)((()=>{if(0===O.value)return[];const{from:t,to:n}=K.value;return e.options.slice(t,n).map(((n,i)=>{const r=!0===Ce.value(n),o=t+i,a={clickable:!0,active:!1,activeClass:we.value,manualFocus:!0,focused:!1,disable:r,tabindex:-1,dense:e.optionsDense,dark:se.value,role:"option",id:`${re.targetUid.value}_${o}`,onClick:()=>{Pe(n)}};return!0!==r&&(!0===Fe(n)&&(a.active=!0),d.value===o&&(a.focused=!0),a["aria-selected"]=!0===a.active?"true":"false",!0===l.platform.is.desktop&&(a.onMousemove=()=>{!0===u.value&&Oe(o)})),{index:o,opt:n,html:pe.value(n),label:Me.value(n),selected:a.active,focused:a.focused,toggleOption:Pe,setOptionIndex:Oe,itemProps:a}}))})),_e=(0,i.Fl)((()=>void 0!==e.dropdownIcon?e.dropdownIcon:l.iconSet.arrow.dropdown)),be=(0,i.Fl)((()=>!1===e.optionsCover&&!0!==e.outlined&&!0!==e.standout&&!0!==e.borderless&&!0!==e.rounded)),we=(0,i.Fl)((()=>void 0!==e.optionsSelectedClass?e.optionsSelectedClass:void 0!==e.color?`text-${e.color}`:"")),Se=(0,i.Fl)((()=>Ne(e.optionValue,"value"))),Me=(0,i.Fl)((()=>Ne(e.optionLabel,"label"))),Ce=(0,i.Fl)((()=>Ne(e.optionDisable,"disable"))),Ie=(0,i.Fl)((()=>oe.value.map((e=>Se.value(e))))),Te=(0,i.Fl)((()=>{const e={onInput:$e,onChange:P,onKeydown:He,onKeyup:ze,onKeypress:qe,onFocus:Be,onClick(e){!0===y&&(0,v.sT)(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=P,e}));function ke(t){return!0===e.emitValue?Se.value(t):t}function Ae(t){if(t>-1&&t<oe.value.length)if(!0===e.multiple){const i=e.modelValue.slice();n("remove",{index:t,value:i.splice(t,1)[0]}),n("update:modelValue",i)}else n("update:modelValue",null)}function De(e){Ae(e),re.focus()}function Le(t,i){const r=ke(t);if(!0!==e.multiple)return!0===e.fillInput&&Xe(Me.value(t),!0,!0),void n("update:modelValue",r);if(0===oe.value.length)return n("add",{index:0,value:r}),void n("update:modelValue",!0===e.multiple?[r]:r);if(!0===i&&!0===Fe(t))return;if(void 0!==e.maxValues&&e.modelValue.length>=e.maxValues)return;const o=e.modelValue.slice();n("add",{index:o.length,value:r}),o.push(r),n("update:modelValue",o)}function Pe(t,i){if(!0!==re.editable.value||void 0===t||!0===Ce.value(t))return;const r=Se.value(t);if(!0!==e.multiple)return!0!==i&&(Xe(!0===e.fillInput?Me.value(t):"",!0,!0),ut()),null!==I.value&&I.value.focus(),void(0!==oe.value.length&&!0===(0,G.xb)(Se.value(oe.value[0]),r)||n("update:modelValue",!0===e.emitValue?r:t));if((!0!==y||!0===p.value)&&re.focus(),Be(),0===oe.value.length){const i=!0===e.emitValue?r:t;return n("add",{index:0,value:i}),void n("update:modelValue",!0===e.multiple?[i]:i)}const o=e.modelValue.slice(),a=Ie.value.findIndex((e=>(0,G.xb)(e,r)));if(a>-1)n("remove",{index:a,value:o.splice(a,1)[0]});else{if(void 0!==e.maxValues&&o.length>=e.maxValues)return;const i=!0===e.emitValue?r:t;n("add",{index:o.length,value:i}),o.push(i)}n("update:modelValue",o)}function Oe(e){if(!0!==l.platform.is.desktop)return;const t=e>-1&&e<O.value?e:-1;d.value!==t&&(d.value=t)}function Re(t=1,n){if(!0===u.value){let i=d.value;do{i=(0,U.Uz)(i+t,-1,O.value-1)}while(-1!==i&&i!==d.value&&!0===Ce.value(e.options[i]));d.value!==i&&(Oe(i),ne(i),!0!==n&&!0===e.useInput&&!0===e.fillInput&&Ye(i>=0?Me.value(e.options[i]):b))}}function Ee(t,n){const i=e=>(0,G.xb)(Se.value(e),t);return e.options.find(i)||n.find(i)||t}function Ne(e,t){const n=void 0!==e?e:t;return"function"===typeof n?n:e=>null!==e&&"object"===typeof e&&n in e?e[n]:e}function Fe(e){const t=Se.value(e);return void 0!==Ie.value.find((e=>(0,G.xb)(e,t)))}function Be(t){!0===e.useInput&&null!==I.value&&(void 0===t||I.value===t.target&&t.target.value===he.value)&&I.value.select()}function Ve(e){!0===(0,j.So)(e,27)&&!0===u.value&&((0,v.sT)(e),ut(),ct()),n("keyup",e)}function ze(t){const{value:n}=t.target;if(void 0===t.keyCode)if(t.target.value="",clearTimeout(g),ct(),"string"===typeof n&&n.length>0){const t=n.toLocaleLowerCase(),i=n=>{const i=e.options.find((e=>n.value(e).toLocaleLowerCase()===t));return void 0!==i&&(-1===oe.value.indexOf(i)?Pe(i):ut(),!0)},r=e=>{!0!==i(Se)&&!0!==i(Me)&&!0!==e&&Ke(n,!0,(()=>r(!0)))};r()}else re.clearValue(t);else Ve(t)}function qe(e){n("keypress",e)}function He(t){if(n("keydown",t),!0===(0,j.Wm)(t))return;const r=h.value.length>0&&(void 0!==e.newValueMode||void 0!==e.onNewValue),o=!0!==t.shiftKey&&!0!==e.multiple&&(d.value>-1||!0===r);if(27===t.keyCode)return void(0,v.X$)(t);if(9===t.keyCode&&!1===o)return void st();if(void 0===t.target||t.target.id!==re.targetUid.value)return;if(40===t.keyCode&&!0!==re.innerLoading.value&&!1===u.value)return(0,v.NS)(t),void lt();if(8===t.keyCode&&!0!==e.hideSelected&&0===h.value.length)return void(!0===e.multiple&&!0===Array.isArray(e.modelValue)?Ae(e.modelValue.length-1):!0!==e.multiple&&null!==e.modelValue&&n("update:modelValue",null));35!==t.keyCode&&36!==t.keyCode||"string"===typeof h.value&&0!==h.value.length||((0,v.NS)(t),d.value=-1,Re(36===t.keyCode?1:-1,e.multiple)),33!==t.keyCode&&34!==t.keyCode||void 0===J.value||((0,v.NS)(t),d.value=Math.max(-1,Math.min(O.value,d.value+(33===t.keyCode?-1:1)*J.value.view)),Re(33===t.keyCode?1:-1,e.multiple)),38!==t.keyCode&&40!==t.keyCode||((0,v.NS)(t),Re(38===t.keyCode?-1:1,e.multiple));const a=O.value;if((void 0===S||M<Date.now())&&(S=""),a>0&&!0!==e.useInput&&void 0!==t.key&&1===t.key.length&&t.altKey===t.ctrlKey&&(32!==t.keyCode||S.length>0)){!0!==u.value&&lt(t);const n=t.key.toLocaleLowerCase(),r=1===S.length&&S[0]===n;M=Date.now()+1500,!1===r&&((0,v.NS)(t),S+=n);const o=new RegExp("^"+S.split("").map((e=>$.indexOf(e)>-1?"\\"+e:e)).join(".*"),"i");let s=d.value;if(!0===r||s<0||!0!==o.test(Me.value(e.options[s])))do{s=(0,U.Uz)(s+1,-1,a-1)}while(s!==d.value&&(!0===Ce.value(e.options[s])||!0!==o.test(Me.value(e.options[s]))));d.value!==s&&(0,i.Y3)((()=>{Oe(s),ne(s),s>=0&&!0===e.useInput&&!0===e.fillInput&&Ye(Me.value(e.options[s]))}))}else if(13===t.keyCode||32===t.keyCode&&!0!==e.useInput&&""===S||9===t.keyCode&&!1!==o)if(9!==t.keyCode&&(0,v.NS)(t),d.value>-1&&d.value<a)Pe(e.options[d.value]);else{if(!0===r){const t=(t,n)=>{if(n){if(!0!==Z(n))return}else n=e.newValueMode;if(void 0===t||null===t)return;Xe("",!0!==e.multiple,!0);const i="toggle"===n?Pe:Le;i(t,"add-unique"===n),!0!==e.multiple&&(null!==I.value&&I.value.focus(),ut())};if(void 0!==e.onNewValue?n("new-value",h.value,t):t(h.value),!0!==e.multiple)return}!0===u.value?st():!0!==re.innerLoading.value&&lt()}}function We(){return!0===y?D.value:null!==T.value&&null!==T.value.__qPortalInnerRef.value?T.value.__qPortalInnerRef.value:void 0}function Ge(){return We()}function Ue(){return!0===e.hideSelected?[]:void 0!==t["selected-item"]?ye.value.map((e=>t["selected-item"](e))).slice():void 0!==t.selected?[].concat(t.selected()):!0===e.useChips?ye.value.map(((t,n)=>(0,i.h)(N.Z,{key:"option-"+n,removable:!0===re.editable.value&&!0!==Ce.value(t.opt),dense:!0,textColor:e.color,tabindex:ge.value,onRemove(){t.removeAtIndex(n)}},(()=>(0,i.h)("span",{class:"ellipsis",[!0===t.html?"innerHTML":"textContent"]:Me.value(t.opt)}))))):[(0,i.h)("span",{[!0===fe.value?"innerHTML":"textContent"]:void 0!==e.displayValue?e.displayValue:he.value})]}function je(){if(!0===de.value)return void 0!==t["no-option"]?t["no-option"]({inputValue:h.value}):void 0;const e=void 0!==t.option?t.option:e=>(0,i.h)(F.Z,{key:e.index,...e.itemProps},(()=>(0,i.h)(B.Z,(()=>(0,i.h)(V.Z,(()=>(0,i.h)("span",{[!0===e.html?"innerHTML":"textContent"]:e.label})))))));let n=ee("div",xe.value.map(e));return void 0!==t["before-options"]&&(n=t["before-options"]().concat(n)),(0,s.vs)(t["after-options"],n)}function Ze(t,n){const r=!0===n?{...ve.value,...re.splitAttrs.attributes.value}:void 0,o={ref:!0===n?I:void 0,key:"i_t",class:ue.value,style:e.inputStyle,value:void 0!==h.value?h.value:"",type:"search",...r,id:!0===n?re.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":!0!==t&&!0===e.autofocus||void 0,disabled:!0===e.disable,readonly:!0===e.readonly,...Te.value};return!0!==t&&!0===y&&(!0===Array.isArray(o.class)?o.class=[...o.class,"no-pointer-events"]:o.class+=" no-pointer-events"),(0,i.h)("input",o)}function $e(t){clearTimeout(g),t&&t.target&&!0===t.target.qComposing||(Ye(t.target.value||""),x=!0,b=h.value,!0===re.focused.value||!0===y&&!0!==p.value||re.focus(),void 0!==e.onFilter&&(g=setTimeout((()=>{Ke(h.value)}),e.inputDebounce)))}function Ye(e){h.value!==e&&(h.value=e,n("input-value",e))}function Xe(t,n,i){x=!0!==i,!0===e.useInput&&(Ye(t),!0!==n&&!0===i||(b=t),!0!==n&&Ke(t))}function Ke(t,r,o){if(void 0===e.onFilter||!0!==r&&!0!==re.focused.value)return;!0===re.innerLoading.value?n("filter-abort"):(re.innerLoading.value=!0,f.value=!0),""!==t&&!0!==e.multiple&&oe.value.length>0&&!0!==x&&t===Me.value(oe.value[0])&&(t="");const s=setTimeout((()=>{!0===u.value&&(u.value=!1)}),10);clearTimeout(_),_=s,n("filter",t,((e,t)=>{!0!==r&&!0!==re.focused.value||_!==s||(clearTimeout(_),"function"===typeof e&&e(),f.value=!1,(0,i.Y3)((()=>{re.innerLoading.value=!1,!0===re.editable.value&&(!0===r?!0===u.value&&ut():!0===u.value?dt(!0):u.value=!0),"function"===typeof t&&(0,i.Y3)((()=>{t(a)})),"function"===typeof o&&(0,i.Y3)((()=>{o(a)}))})))}),(()=>{!0===re.focused.value&&_===s&&(clearTimeout(_),re.innerLoading.value=!1,f.value=!1),!0===u.value&&(u.value=!1)}))}function Je(){return(0,i.h)(z.Z,{ref:T,class:ce.value,style:e.popupContentStyle,modelValue:u.value,fit:!0!==e.menuShrink,cover:!0===e.optionsCover&&!0!==de.value&&!0!==e.useInput,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:se.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:be.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...me.value,onScrollPassive:te,onBeforeShow:ft,onBeforeHide:Qe,onShow:et},je)}function Qe(e){gt(e),st()}function et(){ie()}function tt(e){(0,v.sT)(e),null!==I.value&&I.value.focus(),p.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function nt(e){(0,v.sT)(e),(0,i.Y3)((()=>{p.value=!1}))}function it(){const n=[(0,i.h)(E,{class:`col-auto ${re.fieldClass.value}`,...ae.value,for:re.targetUid.value,dark:se.value,square:!0,loading:f.value,itemAligned:!1,filled:!0,stackLabel:h.value.length>0,...re.splitAttrs.listeners.value,onFocus:tt,onBlur:nt},{...t,rawControl:()=>re.getControl(!0),before:void 0,after:void 0})];return!0===u.value&&n.push((0,i.h)("div",{ref:D,class:ce.value+" scroll",style:e.popupContentStyle,...me.value,onClick:v.X$,onScrollPassive:te},je())),(0,i.h)(q.Z,{ref:k,modelValue:c.value,position:!0===e.useInput?"top":void 0,transitionShow:w,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:ft,onBeforeHide:rt,onHide:ot,onShow:at},(()=>(0,i.h)("div",{class:"q-select__dialog"+(!0===se.value?" q-select__dialog--dark q-dark":"")+(!0===p.value?" q-select__dialog--focused":"")},n)))}function rt(e){gt(e),null!==k.value&&k.value.__updateRefocusTarget(re.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),re.focused.value=!1}function ot(e){ut(),!1===re.focused.value&&n("blur",e),ct()}function at(){const e=document.activeElement;null!==e&&e.id===re.targetUid.value||null===I.value||I.value===e||I.value.focus(),ie()}function st(){!0!==c.value&&(d.value=-1,!0===u.value&&(u.value=!1),!1===re.focused.value&&(clearTimeout(_),_=void 0,!0===re.innerLoading.value&&(n("filter-abort"),re.innerLoading.value=!1,f.value=!1)))}function lt(n){!0===re.editable.value&&(!0===y?(re.onControlFocusin(n),c.value=!0,(0,i.Y3)((()=>{re.focus()}))):re.focus(),void 0!==e.onFilter?Ke(h.value):!0===de.value&&void 0===t["no-option"]||(u.value=!0))}function ut(){c.value=!1,st()}function ct(){!0===e.useInput&&Xe(!0!==e.multiple&&!0===e.fillInput&&oe.value.length>0&&Me.value(oe.value[0])||"",!0,!0)}function dt(t){let n=-1;if(!0===t){if(oe.value.length>0){const t=Se.value(oe.value[0]);n=e.options.findIndex((e=>(0,G.xb)(Se.value(e),t)))}Q(n)}Oe(n)}function ht(e,t){!0===u.value&&!1===re.innerLoading.value&&(Q(-1,!0),(0,i.Y3)((()=>{!0===u.value&&!1===re.innerLoading.value&&(e>t?Q():dt(!0))})))}function pt(){!1===c.value&&null!==T.value&&T.value.updatePosition()}function ft(e){void 0!==e&&(0,v.sT)(e),n("popup-show",e),re.hasPopupOpen=!0,re.onControlFocusin(e)}function gt(e){void 0!==e&&(0,v.sT)(e),n("popup-hide",e),re.hasPopupOpen=!1,re.onControlFocusout(e)}function vt(){y=(!0===l.platform.is.mobile||"dialog"===e.behavior)&&("menu"!==e.behavior&&(!0!==e.useInput||(void 0!==t["no-option"]||void 0!==e.onFilter||!1===de.value))),w=!0===l.platform.is.ios&&!0===y&&!0===e.useInput?"fade":e.transitionShow}return(0,i.YP)(oe,(t=>{m=t,!0===e.useInput&&!0===e.fillInput&&!0!==e.multiple&&!0!==re.innerLoading.value&&(!0!==c.value&&!0!==u.value||!0!==le.value)&&(!0!==x&&ct(),!0!==c.value&&!0!==u.value||Ke(""))}),{immediate:!0}),(0,i.YP)((()=>e.fillInput),ct),(0,i.YP)(u,dt),(0,i.YP)(O,ht),(0,i.Xn)(vt),(0,i.ic)(pt),vt(),(0,i.Jd)((()=>{clearTimeout(g)})),Object.assign(a,{showPopup:lt,hidePopup:ut,removeAtIndex:Ae,add:Le,toggleOption:Pe,getOptionIndex:()=>d.value,setOptionIndex:Oe,moveOptionSelection:Re,filter:Ke,updateMenuPosition:pt,updateInputValue:Xe,isOptionSelected:Fe,getEmittingOptionValue:ke,isOptionDisabled:(...e)=>!0===Ce.value.apply(null,e),getOptionValue:(...e)=>Se.value.apply(null,e),getOptionLabel:(...e)=>Me.value.apply(null,e)}),Object.assign(re,{innerValue:oe,fieldClass:(0,i.Fl)((()=>`q-select q-field--auto-height q-select--with${!0!==e.useInput?"out":""}-input q-select--with${!0!==e.useChips?"out":""}-chips q-select--`+(!0===e.multiple?"multiple":"single"))),inputRef:C,targetRef:I,hasValue:le,showPopup:lt,floatingLabel:(0,i.Fl)((()=>!0!==e.hideSelected&&!0===le.value||"number"===typeof h.value||h.value.length>0||(0,R.yV)(e.displayValue))),getControlChild:()=>{if(!1!==re.editable.value&&(!0===c.value||!0!==de.value||void 0!==t["no-option"]))return!0===y?it():Je();!0===re.hasPopupOpen&&(re.hasPopupOpen=!1)},controlEvents:{onFocusin(e){re.onControlFocusin(e)},onFocusout(e){re.onControlFocusout(e,(()=>{ct(),st()}))},onClick(e){if((0,v.X$)(e),!0!==y&&!0===u.value)return st(),void(null!==I.value&&I.value.focus());lt(e)}},getControl:t=>{const n=Ue(),r=!0===t||!0!==c.value||!0!==y;if(!0===e.useInput)n.push(Ze(t,r));else if(!0===re.editable.value){const o=!0===r?ve.value:void 0;n.push((0,i.h)("input",{ref:!0===r?I:void 0,key:"d_t",class:"q-select__focus-target",id:!0===r?re.targetUid.value:void 0,readonly:!0,"data-autofocus":!0!==t&&!0===e.autofocus||void 0,...o,onKeydown:He,onKeyup:Ve,onKeypress:qe})),!0===r&&"string"===typeof e.autocomplete&&e.autocomplete.length>0&&n.push((0,i.h)("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,onKeyup:ze}))}if(void 0!==L.value&&!0!==e.disable&&Ie.value.length>0){const t=Ie.value.map((e=>(0,i.h)("option",{value:e,selected:!0})));n.push((0,i.h)("select",{class:"hidden",name:L.value,multiple:e.multiple},t))}const o=!0===e.useInput||!0!==r?void 0:re.splitAttrs.attributes.value;return(0,i.h)("div",{class:"q-field__native row items-center",...o},n)},getInnerAppend:()=>!0!==e.loading&&!0!==f.value&&!0!==e.hideDropdownIcon?[(0,i.h)(o.Z,{class:"q-select__dropdown-icon"+(!0===u.value?" rotate-180":""),name:_e.value})]:null}),(0,R.ZP)(re)}});var K=n(2417);const J={xs:2,sm:4,md:6,lg:10,xl:14};function Q(e,t,n){return{transform:!0===t?`translateX(${!0===n.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}const ee=(0,a.L)({name:"QLinearProgress",props:{...d.S,...K.LU,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:n}=(0,i.FN)(),r=(0,d.Z)(e,n.$q),o=(0,K.ZP)(e,J),a=(0,i.Fl)((()=>!0===e.indeterminate||!0===e.query)),l=(0,i.Fl)((()=>e.reverse!==e.query)),u=(0,i.Fl)((()=>({...null!==o.value?o.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`}))),c=(0,i.Fl)((()=>"q-linear-progress"+(void 0!==e.color?` text-${e.color}`:"")+(!0===e.reverse||!0===e.query?" q-linear-progress--reverse":"")+(!0===e.rounded?" rounded-borders":""))),h=(0,i.Fl)((()=>Q(void 0!==e.buffer?e.buffer:1,l.value,n.$q))),p=(0,i.Fl)((()=>`q-linear-progress__track absolute-full q-linear-progress__track--with${!0===e.instantFeedback?"out":""}-transition q-linear-progress__track--`+(!0===r.value?"dark":"light")+(void 0!==e.trackColor?` bg-${e.trackColor}`:""))),f=(0,i.Fl)((()=>Q(!0===a.value?1:e.value,l.value,n.$q))),g=(0,i.Fl)((()=>`q-linear-progress__model absolute-full q-linear-progress__model--with${!0===e.instantFeedback?"out":""}-transition q-linear-progress__model--${!0===a.value?"in":""}determinate`)),v=(0,i.Fl)((()=>({width:100*e.value+"%"}))),m=(0,i.Fl)((()=>"q-linear-progress__stripe absolute-"+(!0===e.reverse?"right":"left")));return()=>{const n=[(0,i.h)("div",{class:p.value,style:h.value}),(0,i.h)("div",{class:g.value,style:f.value})];return!0===e.stripe&&!1===a.value&&n.push((0,i.h)("div",{class:m.value,style:v.value})),(0,i.h)("div",{class:c.value,style:u.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===e.indeterminate?void 0:e.value},(0,s.vs)(t.default,n))}}});function te(e,t){const n=(0,r.iH)(null),o=(0,i.Fl)((()=>!0===e.disable?null:(0,i.h)("span",{ref:n,class:"no-outline",tabindex:-1})));function a(e){const i=t.value;void 0!==e&&0===e.type.indexOf("key")?null!==i&&document.activeElement!==i&&!0===i.contains(document.activeElement)&&i.focus():null!==n.value&&(void 0===e||null!==i&&!0===i.contains(e.target))&&n.value.focus()}return{refocusTargetEl:o,refocusTarget:a}}const ne={xs:30,sm:35,md:40,lg:50,xl:60},ie={...d.S,...K.LU,...H.Fz,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},re=["update:modelValue"];function oe(e,t){const{props:n,slots:o,emit:a,proxy:l}=(0,i.FN)(),{$q:u}=l,c=(0,d.Z)(n,u),h=(0,r.iH)(null),{refocusTargetEl:p,refocusTarget:f}=te(n,h),g=(0,K.ZP)(n,ne),m=(0,i.Fl)((()=>void 0!==n.val&&Array.isArray(n.modelValue))),y=(0,i.Fl)((()=>{const e=(0,r.IU)(n.val);return!0===m.value?n.modelValue.findIndex((t=>(0,r.IU)(t)===e)):-1})),x=(0,i.Fl)((()=>!0===m.value?y.value>-1:(0,r.IU)(n.modelValue)===(0,r.IU)(n.trueValue))),_=(0,i.Fl)((()=>!0===m.value?-1===y.value:(0,r.IU)(n.modelValue)===(0,r.IU)(n.falseValue))),b=(0,i.Fl)((()=>!1===x.value&&!1===_.value)),w=(0,i.Fl)((()=>!0===n.disable?-1:n.tabindex||0)),S=(0,i.Fl)((()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(!0===n.disable?" disabled":"")+(!0===c.value?` q-${e}--dark`:"")+(!0===n.dense?` q-${e}--dense`:"")+(!0===n.leftLabel?" reverse":""))),M=(0,i.Fl)((()=>{const t=!0===x.value?"truthy":!0===_.value?"falsy":"indet",i=void 0===n.color||!0!==n.keepColor&&("toggle"===e?!0!==x.value:!0===_.value)?"":` text-${n.color}`;return`q-${e}__inner relative-position non-selectable q-${e}__inner--${t}${i}`})),C=(0,i.Fl)((()=>{const e={type:"checkbox"};return void 0!==n.name&&Object.assign(e,{"^checked":!0===x.value?"checked":void 0,name:n.name,value:!0===m.value?n.val:n.trueValue}),e})),I=(0,H.eX)(C),T=(0,i.Fl)((()=>{const e={tabindex:w.value,role:"checkbox","aria-label":n.label,"aria-checked":!0===b.value?"mixed":!0===x.value?"true":"false"};return!0===n.disable&&(e["aria-disabled"]="true"),e}));function k(e){void 0!==e&&((0,v.NS)(e),f(e)),!0!==n.disable&&a("update:modelValue",A(),e)}function A(){if(!0===m.value){if(!0===x.value){const e=n.modelValue.slice();return e.splice(y.value,1),e}return n.modelValue.concat([n.val])}if(!0===x.value){if("ft"!==n.toggleOrder||!1===n.toggleIndeterminate)return n.falseValue}else{if(!0!==_.value)return"ft"!==n.toggleOrder?n.trueValue:n.falseValue;if("ft"===n.toggleOrder||!1===n.toggleIndeterminate)return n.trueValue}return n.indeterminateValue}function D(e){13!==e.keyCode&&32!==e.keyCode||(0,v.NS)(e)}function L(e){13!==e.keyCode&&32!==e.keyCode||k(e)}const P=t(x,b);return Object.assign(l,{toggle:k}),()=>{const t=P();!0!==n.disable&&I(t,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const r=[(0,i.h)("div",{class:M.value,style:g.value},t)];null!==p.value&&r.push(p.value);const a=void 0!==n.label?(0,s.vs)(o.default,[n.label]):(0,s.KR)(o.default);return void 0!==a&&r.push((0,i.h)("div",{class:`q-${e}__label q-anchor--skip`},a)),(0,i.h)("div",{ref:h,class:S.value,...T.value,onClick:k,onKeydown:D,onKeyup:L},r)}}const ae=(0,i.h)("div",{key:"svg",class:"q-checkbox__bg absolute"},[(0,i.h)("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24","aria-hidden":"true"},[(0,i.h)("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),(0,i.h)("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),se=(0,a.L)({name:"QCheckbox",props:ie,emits:re,setup(e){function t(t,n){const r=(0,i.Fl)((()=>(!0===t.value?e.checkedIcon:!0===n.value?e.indeterminateIcon:e.uncheckedIcon)||null));return()=>null!==r.value?[(0,i.h)("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[(0,i.h)(o.Z,{class:"q-checkbox__icon",name:r.value})])]:[ae]}return oe("checkbox",t)}});var le=n(8240),ue=n(6583),ce=n(7445);let de=0;const he={fullscreen:Boolean,noRouteFullscreenExit:Boolean},pe=["update:fullscreen","fullscreen"];function fe(){const e=(0,i.FN)(),{props:t,emit:n,proxy:o}=e;let a,s,l;const u=(0,r.iH)(!1);function c(){!0===u.value?h():d()}function d(){!0!==u.value&&(u.value=!0,l=o.$el.parentNode,l.replaceChild(s,o.$el),document.body.appendChild(o.$el),de++,1===de&&document.body.classList.add("q-body--fullscreen-mixin"),a={handler:h},ue.Z.add(a))}function h(){!0===u.value&&(void 0!==a&&(ue.Z.remove(a),a=void 0),l.replaceChild(o.$el,s),u.value=!1,de=Math.max(0,de-1),0===de&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==o.$el.scrollIntoView&&setTimeout((()=>{o.$el.scrollIntoView()}))))}return!0===(0,ce.Rb)(e)&&(0,i.YP)((()=>o.$route.fullPath),(()=>{!0!==t.noRouteFullscreenExit&&h()})),(0,i.YP)((()=>t.fullscreen),(e=>{u.value!==e&&c()})),(0,i.YP)(u,(e=>{n("update:fullscreen",e),n("fullscreen",e)})),(0,i.wF)((()=>{s=document.createElement("span")})),(0,i.bv)((()=>{!0===t.fullscreen&&d()})),(0,i.Jd)(h),Object.assign(o,{toggleFullscreen:c,setFullscreen:d,exitFullscreen:h}),{inFullscreen:u,toggleFullscreen:c}}function ge(e,t){return new Date(e)-new Date(t)}const ve={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function me(e,t,n,r){const o=(0,i.Fl)((()=>{const{sortBy:e}=t.value;return e&&n.value.find((t=>t.name===e))||null})),a=(0,i.Fl)((()=>void 0!==e.sortMethod?e.sortMethod:(e,t,i)=>{const r=n.value.find((e=>e.name===t));if(void 0===r||void 0===r.field)return e;const o=!0===i?-1:1,a="function"===typeof r.field?e=>r.field(e):e=>e[r.field];return e.sort(((e,t)=>{let n=a(e),i=a(t);return null===n||void 0===n?-1*o:null===i||void 0===i?1*o:void 0!==r.sort?r.sort(n,i,e,t)*o:!0===(0,G.hj)(n)&&!0===(0,G.hj)(i)?(n-i)*o:!0===(0,G.J_)(n)&&!0===(0,G.J_)(i)?ge(n,i)*o:"boolean"===typeof n&&"boolean"===typeof i?(n-i)*o:([n,i]=[n,i].map((e=>(e+"").toLocaleString().toLowerCase())),n<i?-1*o:n===i?0:o)}))}));function s(i){let o=e.columnSortOrder;if(!0===(0,G.Kn)(i))i.sortOrder&&(o=i.sortOrder),i=i.name;else{const e=n.value.find((e=>e.name===i));void 0!==e&&e.sortOrder&&(o=e.sortOrder)}let{sortBy:a,descending:s}=t.value;a!==i?(a=i,s="da"===o):!0===e.binaryStateSort?s=!s:!0===s?"ad"===o?a=null:s=!1:"ad"===o?s=!0:a=null,r({sortBy:a,descending:s,page:1})}return{columnToSort:o,computedSortMethod:a,sort:s}}const ye={filter:[String,Object],filterMethod:Function};function xe(e,t){const n=(0,i.Fl)((()=>void 0!==e.filterMethod?e.filterMethod:(e,t,n,i)=>{const r=t?t.toLowerCase():"";return e.filter((e=>n.some((t=>{const n=i(t,e)+"",o="undefined"===n||"null"===n?"":n.toLowerCase();return-1!==o.indexOf(r)}))))}));return(0,i.YP)((()=>e.filter),(()=>{(0,i.Y3)((()=>{t({page:1},!0)}))}),{deep:!0}),{computedFilterMethod:n}}function _e(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function be(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const we={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function Se(e,t){const{props:n,emit:o}=e,a=(0,r.iH)(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length>0?n.rowsPerPageOptions[0]:5},n.pagination)),s=(0,i.Fl)((()=>{const e=void 0!==n["onUpdate:pagination"]?{...a.value,...n.pagination}:a.value;return be(e)})),l=(0,i.Fl)((()=>void 0!==s.value.rowsNumber));function u(e){c({pagination:e,filter:n.filter})}function c(e={}){(0,i.Y3)((()=>{o("request",{pagination:e.pagination||s.value,filter:e.filter||n.filter,getCellValue:t})}))}function d(e,t){const i=be({...s.value,...e});!0!==_e(s.value,i)?!0!==l.value?void 0!==n.pagination&&void 0!==n["onUpdate:pagination"]?o("update:pagination",i):a.value=i:u(i):!0===l.value&&!0===t&&u(i)}return{innerPagination:a,computedPagination:s,isServerSide:l,requestServerInteraction:c,setPagination:d}}function Me(e,t,n,r,o,a){const{props:s,emit:l,proxy:{$q:u}}=e,c=(0,i.Fl)((()=>!0===r.value?n.value.rowsNumber||0:a.value)),d=(0,i.Fl)((()=>{const{page:e,rowsPerPage:t}=n.value;return(e-1)*t})),h=(0,i.Fl)((()=>{const{page:e,rowsPerPage:t}=n.value;return e*t})),p=(0,i.Fl)((()=>1===n.value.page)),f=(0,i.Fl)((()=>0===n.value.rowsPerPage?1:Math.max(1,Math.ceil(c.value/n.value.rowsPerPage)))),g=(0,i.Fl)((()=>0===h.value||n.value.page>=f.value)),v=(0,i.Fl)((()=>{const e=s.rowsPerPageOptions.includes(t.value.rowsPerPage)?s.rowsPerPageOptions:[t.value.rowsPerPage].concat(s.rowsPerPageOptions);return e.map((e=>({label:0===e?u.lang.table.allRows:""+e,value:e})))}));function m(){o({page:1})}function y(){const{page:e}=n.value;e>1&&o({page:e-1})}function x(){const{page:e,rowsPerPage:t}=n.value;h.value>0&&e*t<c.value&&o({page:e+1})}function _(){o({page:f.value})}return(0,i.YP)(f,((e,t)=>{if(e===t)return;const i=n.value.page;e&&!i?o({page:1}):e<i&&o({page:e})})),void 0!==s["onUpdate:pagination"]&&l("update:pagination",{...n.value}),{firstRowIndex:d,lastRowIndex:h,isFirstPage:p,isLastPage:g,pagesNumber:f,computedRowsPerPageOptions:v,computedRowsNumber:c,firstPage:m,prevPage:y,nextPage:x,lastPage:_}}const Ce={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},Ie=["update:selected","selection"];function Te(e,t,n,r){const o=(0,i.Fl)((()=>{const t={};return e.selected.map(r.value).forEach((e=>{t[e]=!0})),t})),a=(0,i.Fl)((()=>"none"!==e.selection)),s=(0,i.Fl)((()=>"single"===e.selection)),l=(0,i.Fl)((()=>"multiple"===e.selection)),u=(0,i.Fl)((()=>n.value.length>0&&n.value.every((e=>!0===o.value[r.value(e)])))),c=(0,i.Fl)((()=>!0!==u.value&&n.value.some((e=>!0===o.value[r.value(e)])))),d=(0,i.Fl)((()=>e.selected.length));function h(e){return!0===o.value[e]}function p(){t("update:selected",[])}function f(n,i,o,a){t("selection",{rows:i,added:o,keys:n,evt:a});const l=!0===s.value?!0===o?i:[]:!0===o?e.selected.concat(i):e.selected.filter((e=>!1===n.includes(r.value(e))));t("update:selected",l)}return{hasSelectionMode:a,singleSelection:s,multipleSelection:l,allRowsSelected:u,someRowsSelected:c,rowsSelectedNumber:d,isRowSelected:h,clearSelection:p,updateSelection:f}}function ke(e){return Array.isArray(e)?e.slice():[]}const Ae={expanded:Array},De=["update:expanded"];function Le(e,t){const n=(0,r.iH)(ke(e.expanded));function o(e){return n.value.includes(e)}function a(i){void 0!==e.expanded?t("update:expanded",i):n.value=i}function s(e,t){const i=n.value.slice(),r=i.indexOf(e);!0===t?-1===r&&(i.push(e),a(i)):-1!==r&&(i.splice(r,1),a(i))}return(0,i.YP)((()=>e.expanded),(e=>{n.value=ke(e)})),{isRowExpanded:o,setExpanded:a,updateExpanded:s}}const Pe={visibleColumns:Array};function Oe(e,t,n){const r=(0,i.Fl)((()=>{if(void 0!==e.columns)return e.columns;const t=e.rows[0];return void 0!==t?Object.keys(t).map((e=>({name:e,label:e.toUpperCase(),field:e,align:(0,G.hj)(t[e])?"right":"left",sortable:!0}))):[]})),o=(0,i.Fl)((()=>{const{sortBy:n,descending:i}=t.value,o=void 0!==e.visibleColumns?r.value.filter((t=>!0===t.required||!0===e.visibleColumns.includes(t.name))):r.value;return o.map((e=>{const t=e.align||"right",r=`text-${t}`;return{...e,align:t,__iconClass:`q-table__sort-icon q-table__sort-icon--${t}`,__thClass:r+(void 0!==e.headerClasses?" "+e.headerClasses:"")+(!0===e.sortable?" sortable":"")+(e.name===n?" sorted "+(!0===i?"sort-desc":""):""),__tdStyle:void 0!==e.style?"function"!==typeof e.style?()=>e.style:e.style:()=>null,__tdClass:void 0!==e.classes?"function"!==typeof e.classes?()=>r+" "+e.classes:t=>r+" "+e.classes(t):()=>r}}))})),a=(0,i.Fl)((()=>{const e={};return o.value.forEach((t=>{e[t.name]=t})),e})),s=(0,i.Fl)((()=>void 0!==e.tableColspan?e.tableColspan:o.value.length+(!0===n.value?1:0)));return{colList:r,computedCols:o,computedColsMap:a,computedColspan:s}}var Re=n(9085);const Ee="q-table__bottom row items-center",Ne={};T.forEach((e=>{Ne[e]={}}));const Fe=(0,a.L)({name:"QTable",props:{rows:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{default:void 0},...Ne,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...d.S,...he,...Pe,...ye,...we,...Ae,...Ce,...ve},emits:["request","virtual-scroll",...pe,...De,...Ie],setup(e,{slots:t,emit:n}){const a=(0,i.FN)(),{proxy:{$q:s}}=a,c=(0,d.Z)(e,s),{inFullscreen:h,toggleFullscreen:p}=fe(),g=(0,i.Fl)((()=>"function"===typeof e.rowKey?e.rowKey:t=>t[e.rowKey])),v=(0,r.iH)(null),m=(0,r.iH)(null),y=(0,i.Fl)((()=>!0!==e.grid&&!0===e.virtualScroll)),x=(0,i.Fl)((()=>" q-table__card"+(!0===c.value?" q-table__card--dark q-dark":"")+(!0===e.square?" q-table--square":"")+(!0===e.flat?" q-table--flat":"")+(!0===e.bordered?" q-table--bordered":""))),_=(0,i.Fl)((()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(!0===e.grid?" q-table--grid":x.value)+(!0===c.value?" q-table--dark":"")+(!0===e.dense?" q-table--dense":"")+(!1===e.wrapCells?" q-table--no-wrap":"")+(!0===h.value?" fullscreen scroll":""))),b=(0,i.Fl)((()=>_.value+(!0===e.loading?" q-table--loading":"")));(0,i.YP)((()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+_.value),(()=>{!0===y.value&&null!==m.value&&m.value.reset()}));const{innerPagination:w,computedPagination:S,isServerSide:M,requestServerInteraction:C,setPagination:I}=Se(a,Ne),{computedFilterMethod:k}=xe(e,I),{isRowExpanded:A,setExpanded:D,updateExpanded:L}=Le(e,n),P=(0,i.Fl)((()=>{let t=e.rows;if(!0===M.value||0===t.length)return t;const{sortBy:n,descending:i}=S.value;return e.filter&&(t=k.value(t,e.filter,j.value,Ne)),null!==Y.value&&(t=K.value(e.rows===t?t.slice():t,n,i)),t})),R=(0,i.Fl)((()=>P.value.length)),E=(0,i.Fl)((()=>{let t=P.value;if(!0===M.value)return t;const{rowsPerPage:n}=S.value;return 0!==n&&(0===Q.value&&e.rows!==t?t.length>te.value&&(t=t.slice(0,te.value)):t=t.slice(Q.value,te.value)),t})),{hasSelectionMode:N,singleSelection:F,multipleSelection:B,allRowsSelected:V,someRowsSelected:z,rowsSelectedNumber:q,isRowSelected:H,clearSelection:W,updateSelection:G}=Te(e,n,E,g),{colList:U,computedCols:j,computedColsMap:Z,computedColspan:$}=Oe(e,S,N),{columnToSort:Y,computedSortMethod:K,sort:J}=me(e,S,U,I),{firstRowIndex:Q,lastRowIndex:te,isFirstPage:ne,isLastPage:ie,pagesNumber:re,computedRowsPerPageOptions:oe,computedRowsNumber:ae,firstPage:ue,prevPage:ce,nextPage:de,lastPage:he}=Me(a,w,S,M,I,R),pe=(0,i.Fl)((()=>0===E.value.length)),ge=(0,i.Fl)((()=>{const t={};return T.forEach((n=>{t[n]=e[n]})),void 0===t.virtualScrollItemSize&&(t.virtualScrollItemSize=!0===e.dense?28:48),t}));function ve(){!0===y.value&&m.value.reset()}function ye(){if(!0===e.grid)return Ye();const n=!0!==e.hideHeader?ze:null;if(!0===y.value){const r=t["top-row"],o=t["bottom-row"],a={default:e=>Ce(e.item,t.body,e.index)};if(void 0!==r){const e=(0,i.h)("tbody",r({cols:j.value}));a.before=null===n?()=>e:()=>[n()].concat(e)}else null!==n&&(a.before=n);return void 0!==o&&(a.after=()=>(0,i.h)("tbody",o({cols:j.value}))),(0,i.h)(O,{ref:m,class:e.tableClass,style:e.tableStyle,...ge.value,scrollTarget:e.virtualScrollTarget,items:E.value,type:"__qtable",tableColspan:$.value,onVirtualScroll:be},a)}const r=[Ie()];return null!==n&&r.unshift(n()),f({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},r)}function _e(e,t){if(null!==m.value)return void m.value.scrollTo(e,t);e=parseInt(e,10);const i=v.value.querySelector(`tbody tr:nth-of-type(${e+1})`);if(null!==i){const t=v.value.querySelector(".q-table__middle.scroll"),{offsetTop:r}=i,o=r<t.scrollTop?"decrease":"increase";t.scrollTop=r,n("virtual-scroll",{index:e,from:0,to:w.value.rowsPerPage-1,direction:o})}}function be(e){n("virtual-scroll",e)}function we(){return[(0,i.h)(ee,{class:"q-table__linear-progress",color:e.color,dark:c.value,indeterminate:!0,trackColor:"transparent"})]}function Ce(r,o,a){const s=g.value(r),l=H(s);if(void 0!==o)return o(ke({key:s,row:r,pageIndex:a,__trClass:l?"selected":""}));const u=t["body-cell"],d=j.value.map((e=>{const n=t[`body-cell-${e.name}`],o=void 0!==n?n:u;return void 0!==o?o(Ae({key:s,row:r,pageIndex:a,col:e})):(0,i.h)("td",{class:e.__tdClass(r),style:e.__tdStyle(r)},Ne(e,r))}));if(!0===N.value){const n=t["body-selection"],o=void 0!==n?n(De({key:s,row:r,pageIndex:a})):[(0,i.h)(se,{modelValue:l,color:e.color,dark:c.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{G([s],[r],e,t)}})];d.unshift((0,i.h)("td",{class:"q-table--col-auto-width"},o))}const h={key:s,class:{selected:l}};return void 0!==e.onRowClick&&(h.class["cursor-pointer"]=!0,h.onClick=e=>{n("RowClick",e,r,a)}),void 0!==e.onRowDblclick&&(h.class["cursor-pointer"]=!0,h.onDblclick=e=>{n("RowDblclick",e,r,a)}),void 0!==e.onRowContextmenu&&(h.class["cursor-pointer"]=!0,h.onContextmenu=e=>{n("RowContextmenu",e,r,a)}),(0,i.h)("tr",h,d)}function Ie(){const e=t.body,n=t["top-row"],r=t["bottom-row"];let o=E.value.map(((t,n)=>Ce(t,e,n)));return void 0!==n&&(o=n({cols:j.value}).concat(o)),void 0!==r&&(o=o.concat(r({cols:j.value}))),(0,i.h)("tbody",o)}function ke(e){return Pe(e),e.cols=e.cols.map((t=>{const n={...t};return(0,Re.g)(n,"value",(()=>Ne(t,e.row))),n})),e}function Ae(e){return Pe(e),(0,Re.g)(e,"value",(()=>Ne(e.col,e.row))),e}function De(e){return Pe(e),e}function Pe(t){Object.assign(t,{cols:j.value,colsMap:Z.value,sort:J,rowIndex:Q.value+t.pageIndex,color:e.color,dark:c.value,dense:e.dense}),!0===N.value&&(0,Re.g)(t,"selected",(()=>H(t.key)),((e,n)=>{G([t.key],[t.row],e,n)})),(0,Re.g)(t,"expand",(()=>A(t.key)),(e=>{L(t.key,e)}))}function Ne(e,t){const n="function"===typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(n,t):n}const Fe=(0,i.Fl)((()=>({pagination:S.value,pagesNumber:re.value,isFirstPage:ne.value,isLastPage:ie.value,firstPage:ue,prevPage:ce,nextPage:de,lastPage:he,inFullscreen:h.value,toggleFullscreen:p})));function Be(){const n=t.top,r=t["top-left"],o=t["top-right"],a=t["top-selection"],s=!0===N.value&&void 0!==a&&q.value>0,l="q-table__top relative-position row items-center";if(void 0!==n)return(0,i.h)("div",{class:l},[n(Fe.value)]);let u;return!0===s?u=a(Fe.value).slice():(u=[],void 0!==r?u.push((0,i.h)("div",{class:"q-table-control"},[r(Fe.value)])):e.title&&u.push((0,i.h)("div",{class:"q-table__control"},[(0,i.h)("div",{class:["q-table__title",e.titleClass]},e.title)]))),void 0!==o&&(u.push((0,i.h)("div",{class:"q-table__separator col"})),u.push((0,i.h)("div",{class:"q-table__control"},[o(Fe.value)]))),0!==u.length?(0,i.h)("div",{class:l},u):void 0}const Ve=(0,i.Fl)((()=>!0===z.value?null:V.value));function ze(){const n=qe();return!0===e.loading&&void 0===t.loading&&n.push((0,i.h)("tr",{class:"q-table__progress"},[(0,i.h)("th",{class:"relative-position",colspan:$.value},we())])),(0,i.h)("thead",n)}function qe(){const n=t.header,r=t["header-cell"];if(void 0!==n)return n(He({header:!0})).slice();const o=j.value.map((e=>{const n=t[`header-cell-${e.name}`],o=void 0!==n?n:r,a=He({col:e});return void 0!==o?o(a):(0,i.h)(l,{key:e.name,props:a},(()=>e.label))}));if(!0===F.value&&!0!==e.grid)o.unshift((0,i.h)("th",{class:"q-table--col-auto-width"}," "));else if(!0===B.value){const n=t["header-selection"],r=void 0!==n?n(He({})):[(0,i.h)(se,{color:e.color,modelValue:Ve.value,dark:c.value,dense:e.dense,"onUpdate:modelValue":We})];o.unshift((0,i.h)("th",{class:"q-table--col-auto-width"},r))}return[(0,i.h)("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},o)]}function He(t){return Object.assign(t,{cols:j.value,sort:J,colsMap:Z.value,color:e.color,dark:c.value,dense:e.dense}),!0===B.value&&(0,Re.g)(t,"selected",(()=>Ve.value),We),t}function We(e){!0===z.value&&(e=!1),G(E.value.map(g.value),E.value,e)}const Ge=(0,i.Fl)((()=>{const t=[e.iconFirstPage||s.iconSet.table.firstPage,e.iconPrevPage||s.iconSet.table.prevPage,e.iconNextPage||s.iconSet.table.nextPage,e.iconLastPage||s.iconSet.table.lastPage];return!0===s.lang.rtl?t.reverse():t}));function Ue(){if(!0===e.hideBottom)return;if(!0===pe.value){if(!0===e.hideNoData)return;const n=!0===e.loading?e.loadingLabel||s.lang.table.loading:e.filter?e.noResultsLabel||s.lang.table.noResults:e.noDataLabel||s.lang.table.noData,r=t["no-data"],a=void 0!==r?[r({message:n,icon:s.iconSet.table.warning,filter:e.filter})]:[(0,i.h)(o.Z,{class:"q-table__bottom-nodata-icon",name:s.iconSet.table.warning}),n];return(0,i.h)("div",{class:Ee+" q-table__bottom--nodata"},a)}const n=t.bottom;if(void 0!==n)return(0,i.h)("div",{class:Ee},[n(Fe.value)]);const r=!0!==e.hideSelectedBanner&&!0===N.value&&q.value>0?[(0,i.h)("div",{class:"q-table__control"},[(0,i.h)("div",[(e.selectedRowsLabel||s.lang.table.selectedRecords)(q.value)])])]:[];return!0!==e.hidePagination?(0,i.h)("div",{class:Ee+" justify-end"},Ze(r)):r.length>0?(0,i.h)("div",{class:Ee},r):void 0}function je(e){I({page:1,rowsPerPage:e.value})}function Ze(n){let r;const{rowsPerPage:o}=S.value,a=e.paginationLabel||s.lang.table.pagination,l=t.pagination,u=e.rowsPerPageOptions.length>1;if(n.push((0,i.h)("div",{class:"q-table__separator col"})),!0===u&&n.push((0,i.h)("div",{class:"q-table__control"},[(0,i.h)("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||s.lang.table.recordsPerPage]),(0,i.h)(X,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:o,options:oe.value,displayValue:0===o?s.lang.table.allRows:o,dark:c.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":je})])),void 0!==l)r=l(Fe.value);else if(r=[(0,i.h)("span",0!==o?{class:"q-table__bottom-item"}:{},[o?a(Q.value+1,Math.min(te.value,ae.value),ae.value):a(1,R.value,ae.value)])],0!==o&&re.value>1){const t={color:e.color,round:!0,dense:!0,flat:!0};!0===e.dense&&(t.size="sm"),re.value>2&&r.push((0,i.h)(le.Z,{key:"pgFirst",...t,icon:Ge.value[0],disable:ne.value,onClick:ue})),r.push((0,i.h)(le.Z,{key:"pgPrev",...t,icon:Ge.value[1],disable:ne.value,onClick:ce}),(0,i.h)(le.Z,{key:"pgNext",...t,icon:Ge.value[2],disable:ie.value,onClick:de})),re.value>2&&r.push((0,i.h)(le.Z,{key:"pgLast",...t,icon:Ge.value[3],disable:ie.value,onClick:he}))}return n.push((0,i.h)("div",{class:"q-table__control"},r)),n}function $e(){const n=!0===e.gridHeader?[(0,i.h)("table",{class:"q-table"},[ze(i.h)])]:!0===e.loading&&void 0===t.loading?we(i.h):void 0;return(0,i.h)("div",{class:"q-table__middle"},n)}function Ye(){const r=void 0!==t.item?t.item:r=>{const o=r.cols.map((e=>(0,i.h)("div",{class:"q-table__grid-item-row"},[(0,i.h)("div",{class:"q-table__grid-item-title"},[e.label]),(0,i.h)("div",{class:"q-table__grid-item-value"},[e.value])])));if(!0===N.value){const n=t["body-selection"],a=void 0!==n?n(r):[(0,i.h)(se,{modelValue:r.selected,color:e.color,dark:c.value,dense:e.dense,"onUpdate:modelValue":(e,t)=>{G([r.key],[r.row],e,t)}})];o.unshift((0,i.h)("div",{class:"q-table__grid-item-row"},a),(0,i.h)(u.Z,{dark:c.value}))}const a={class:["q-table__grid-item-card"+x.value,e.cardClass],style:e.cardStyle};return void 0===e.onRowClick&&void 0===e.onRowDblclick||(a.class[0]+=" cursor-pointer",void 0!==e.onRowClick&&(a.onClick=e=>{n("RowClick",e,r.row,r.pageIndex)}),void 0!==e.onRowDblclick&&(a.onDblclick=e=>{n("RowDblclick",e,r.row,r.pageIndex)})),(0,i.h)("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===r.selected?" q-table__grid-item--selected":"")},[(0,i.h)("div",a,o)])};return(0,i.h)("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},E.value.map(((e,t)=>r(ke({key:g.value(e),row:e,pageIndex:t})))))}return Object.assign(a.proxy,{requestServerInteraction:C,setPagination:I,firstPage:ue,prevPage:ce,nextPage:de,lastPage:he,isRowSelected:H,clearSelection:W,isRowExpanded:A,setExpanded:D,sort:J,resetVirtualScroll:ve,scrollTo:_e,getCellValue:Ne}),(0,Re.K)(a.proxy,{filteredSortedRows:()=>P.value,computedRows:()=>E.value,computedRowsNumber:()=>ae.value}),()=>{const n=[Be()],r={ref:v,class:b.value};return!0===e.grid?n.push($e()):Object.assign(r,{class:[r.class,e.cardClass],style:e.cardStyle}),n.push(ye(),Ue()),!0===e.loading&&void 0!==t.loading&&n.push(t.loading()),(0,i.h)("div",r,n)}}})},3884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=(0,i.FN)(),r=(0,i.Fl)((()=>"q-td"+(!0===e.autoWidth?" q-table--col-auto-width":"")+(!0===e.noHover?" q-td--no-hover":"")+" "));return()=>{if(void 0===e.props)return(0,i.h)("td",{class:r.value},(0,o.KR)(t.default));const a=n.vnode.key,s=(void 0!==e.props.colsMap?e.props.colsMap[a]:null)||e.props.col;if(void 0===s)return;const{row:l}=e.props;return(0,i.h)("td",{class:r.value+s.__tdClass(l),style:s.__tdStyle(l)},(0,o.KR)(t.default))}}})},8186:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-tr"+(void 0===e.props||!0===e.props.header?"":" "+e.props.__trClass)+(!0===e.noHover?" q-tr--no-hover":"")));return()=>(0,i.h)("tr",{class:n.value},(0,o.KR)(t.default))}})},1432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(3610);var i=n(3673),r=n(2236),o=n(908),a=n(7657),s=n(2547);const l=(0,o.L)({name:"QTimeline",props:{...r.S,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(e,{slots:t}){const n=(0,i.FN)(),o=(0,r.Z)(e,n.proxy.$q);(0,i.JJ)(s.xP,e);const l=(0,i.Fl)((()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(!0===o.value?" q-timeline--dark":"")));return()=>(0,i.h)("ul",{class:l.value},(0,a.KR)(t.default))}})},3424:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(3610);var i=n(3673),r=n(4554),o=n(908),a=n(7657),s=n(2547);const l=(0,o.L)({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(e,{slots:t}){const n=(0,i.f3)(s.xP,(()=>{console.error("QTimelineEntry needs to be child of QTimeline")})),o=(0,i.Fl)((()=>`q-timeline__entry q-timeline__entry--${e.side}`+(void 0!==e.icon||void 0!==e.avatar?" q-timeline__entry--icon":""))),l=(0,i.Fl)((()=>`q-timeline__dot text-${e.color||n.color}`)),u=(0,i.Fl)((()=>"comfortable"===n.layout&&"left"===n.side));return()=>{const n=(0,a.Bl)(t.default,[]);if(void 0!==e.body&&n.unshift(e.body),!0===e.heading){const t=[(0,i.h)("div"),(0,i.h)("div"),(0,i.h)(e.tag,{class:"q-timeline__heading-title"},n)];return(0,i.h)("div",{class:"q-timeline__heading"},!0===u.value?t.reverse():t)}let s;void 0!==e.icon?s=[(0,i.h)(r.Z,{class:"row items-center justify-center",name:e.icon})]:void 0!==e.avatar&&(s=[(0,i.h)("img",{class:"q-timeline__dot-img",src:e.avatar})]);const c=[(0,i.h)("div",{class:"q-timeline__subtitle"},[(0,i.h)("span",{},(0,a.KR)(t.subtitle,[e.subtitle]))]),(0,i.h)("div",{class:l.value},s),(0,i.h)("div",{class:"q-timeline__content"},[(0,i.h)("h6",{class:"q-timeline__title"},(0,a.KR)(t.title,[e.title]))].concat(n))];return(0,i.h)("li",{class:o.value},!0===u.value?c.reverse():c)}}})},9570:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-toolbar row no-wrap items-center"+(!0===e.inset?" q-toolbar--inset":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},3747:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(3673),r=n(908),o=n(7657);const a=(0,r.L)({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const n=(0,i.Fl)((()=>"q-toolbar__title ellipsis"+(!0===e.shrink?" col-shrink":"")));return()=>(0,i.h)("div",{class:n.value},(0,o.KR)(t.default))}})},8870:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});n(71);var i=n(3673),r=n(1959),o=n(8880),a=n(5875),s=n(1372),l=n(3628),u=n(5911),c=n(6104),d=n(416),h=n(4955),p=n(908),f=n(8400),g=n(4716),v=n(9725),m=n(7657),y=n(9916),x=n(2657);const _=(0,p.L)({name:"QTooltip",inheritAttrs:!1,props:{...a.u,...l.vr,...c.D,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:x.$},self:{type:String,default:"top middle",validator:x.$},offset:{type:Array,default:()=>[14,14],validator:x.io},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},emits:[...l.gH],setup(e,{slots:t,emit:n,attrs:p}){let _,b;const w=(0,i.FN)(),{proxy:{$q:S}}=w,M=(0,r.iH)(null),C=(0,r.iH)(!1),I=(0,i.Fl)((()=>(0,x.li)(e.anchor,S.lang.rtl))),T=(0,i.Fl)((()=>(0,x.li)(e.self,S.lang.rtl))),k=(0,i.Fl)((()=>!0!==e.persistent)),{registerTick:A,removeTick:D}=(0,d.Z)(),{registerTimeout:L,removeTimeout:P}=(0,h.Z)(),{transition:O,transitionStyle:R}=(0,c.Z)(e,C),{localScrollTarget:E,changeScrollEvent:N,unconfigureScrollTarget:F}=(0,s.Z)(e,Q),{anchorEl:B,canShow:V,anchorEvents:z}=(0,a.Z)({showing:C,configureAnchorEl:J}),{show:q,hide:H}=(0,l.ZP)({showing:C,canShow:V,handleShow:j,handleHide:Z,hideOnRouteChange:k,processOnMount:!0});Object.assign(z,{delayShow:X,delayHide:K});const{showPortal:W,hidePortal:G,renderPortal:U}=(0,u.Z)(w,M,te);if(!0===S.platform.is.mobile){const t={anchorEl:B,innerRef:M,onClickOutside(e){return H(e),e.target.classList.contains("q-dialog__backdrop")&&(0,g.NS)(e),!0}},n=(0,i.Fl)((()=>null===e.modelValue&&!0!==e.persistent&&!0===C.value));(0,i.YP)(n,(e=>{const n=!0===e?y.m:y.D;n(t)})),(0,i.Jd)((()=>{(0,y.D)(t)}))}function j(t){D(),P(),W(),A((()=>{b=new MutationObserver((()=>Y())),b.observe(M.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),Y(),Q()})),void 0===_&&(_=(0,i.YP)((()=>S.screen.width+"|"+S.screen.height+"|"+e.self+"|"+e.anchor+"|"+S.lang.rtl),Y)),L((()=>{W(!0),n("show",t)}),e.transitionDuration)}function Z(t){D(),P(),G(),$(),L((()=>{G(!0),n("hide",t)}),e.transitionDuration)}function $(){void 0!==b&&(b.disconnect(),b=void 0),void 0!==_&&(_(),_=void 0),F(),(0,g.ul)(z,"tooltipTemp")}function Y(){const t=M.value;null!==B.value&&t&&(0,x.wq)({el:t,offset:e.offset,anchorEl:B.value,anchorOrigin:I.value,selfOrigin:T.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function X(t){if(!0===S.platform.is.mobile){(0,v.M)(),document.body.classList.add("non-selectable");const e=B.value,t=["touchmove","touchcancel","touchend","click"].map((t=>[e,t,"delayHide","passiveCapture"]));(0,g.M0)(z,"tooltipTemp",t)}L((()=>{q(t)}),e.delay)}function K(t){P(),!0===S.platform.is.mobile&&((0,g.ul)(z,"tooltipTemp"),(0,v.M)(),setTimeout((()=>{document.body.classList.remove("non-selectable")}),10)),L((()=>{H(t)}),e.hideDelay)}function J(){if(!0===e.noParentEvent||null===B.value)return;const t=!0===S.platform.is.mobile?[[B.value,"touchstart","delayShow","passive"]]:[[B.value,"mouseenter","delayShow","passive"],[B.value,"mouseleave","delayHide","passive"]];(0,g.M0)(z,"anchor",t)}function Q(){if(null!==B.value||void 0!==e.scrollTarget){E.value=(0,f.b0)(B.value,e.scrollTarget);const t=!0===e.noParentEvent?Y:H;N(E.value,t)}}function ee(){return!0===C.value?(0,i.h)("div",{...p,ref:M,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",p.class],style:[p.style,R.value],role:"complementary"},(0,m.KR)(t.default)):null}function te(){return(0,i.h)(o.uT,{name:O.value,appear:!0},ee)}return(0,i.Jd)($),Object.assign(w.proxy,{updatePosition:Y}),U}})},9992:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,jO:()=>a});n(3610);var i=n(3673);const r={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},o=Object.keys(r),a={align:{type:String,validator:e=>o.includes(e)}};function s(e){return(0,i.Fl)((()=>{const t=void 0===e.align?!0===e.vertical?"stretch":"left":e.align;return`${!0===e.vertical?"items":"justify"}-${r[t]}`}))}},5875:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,u:()=>l});var i=n(3673),r=n(1959),o=n(9725),a=n(4716),s=n(1436);const l={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function u({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:l,proxy:u,emit:c}=(0,i.FN)(),d=(0,r.iH)(null);let h;function p(e){return null!==d.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const f={};function g(){(0,a.ul)(f,"anchor")}function v(e){d.value=e;while(d.value.classList.contains("q-anchor--skip"))d.value=d.value.parentNode;n()}function m(){if(!1===l.target||""===l.target||null===u.$el.parentNode)d.value=null;else if(!0===l.target)v(u.$el.parentNode);else{let t=l.target;if("string"===typeof l.target)try{t=document.querySelector(l.target)}catch(e){t=void 0}void 0!==t&&null!==t?(d.value=t.$el||t,n()):(d.value=null,console.error(`Anchor: target "${l.target}" not found`))}}return void 0===n&&(Object.assign(f,{hide(e){u.hide(e)},toggle(e){u.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===(0,s.So)(e,13)&&f.toggle(e)},contextClick(e){u.hide(e),(0,a.X$)(e),(0,i.Y3)((()=>{u.show(e),e.qAnchorHandled=!0}))},prevent:a.X$,mobileTouch(e){if(f.mobileCleanup(e),!0!==p(e))return;u.hide(e),d.value.classList.add("non-selectable");const t=e.target;(0,a.M0)(f,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[d.value,"contextmenu","prevent","notPassive"]]),h=setTimeout((()=>{u.show(e),e.qAnchorHandled=!0}),300)},mobileCleanup(t){d.value.classList.remove("non-selectable"),clearTimeout(h),!0===e.value&&void 0!==t&&(0,o.M)()}}),n=function(e=l.contextMenu){if(!0===l.noParentEvent||null===d.value)return;let t;t=!0===e?!0===u.$q.platform.is.mobile?[[d.value,"touchstart","mobileTouch","passive"]]:[[d.value,"mousedown","hide","passive"],[d.value,"contextmenu","contextClick","notPassive"]]:[[d.value,"click","toggle","passive"],[d.value,"keyup","toggleKey","passive"]],(0,a.M0)(f,"anchor",t)}),(0,i.YP)((()=>l.contextMenu),(e=>{null!==d.value&&(g(),n(e))})),(0,i.YP)((()=>l.target),(()=>{null!==d.value&&g(),m()})),(0,i.YP)((()=>l.noParentEvent),(e=>{null!==d.value&&(!0===e?g():n())})),(0,i.bv)((()=>{m(),!0!==t&&!0===l.modelValue&&null===d.value&&c("update:modelValue",!1)})),(0,i.Jd)((()=>{clearTimeout(h),g()})),{anchorEl:d,canShow:p,anchorEvents:f}}},2236:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,Z:()=>o});var i=n(3673);const r={dark:{type:Boolean,default:null}};function o(e,t){return(0,i.Fl)((()=>null===e.dark?t.dark.isActive:e.dark))}},5:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>$,yV:()=>G,HJ:()=>j,Cl:()=>U,tL:()=>Z});var i=n(3673),r=n(1959),o=n(8880),a=n(4688),s=n(4554),l=n(9754),u=n(2236),c=(n(3610),n(71),n(2547));function d({validate:e,resetValidation:t,requiresQForm:n}){const r=(0,i.f3)(c.vh,!1);if(!1!==r){const{props:n,proxy:o}=(0,i.FN)();Object.assign(o,{validate:e,resetValidation:t}),(0,i.YP)((()=>n.disable),(e=>{!0===e?("function"===typeof t&&t(),r.unbindComponent(o)):r.bindComponent(o)})),!0!==n.disable&&r.bindComponent(o),(0,i.Jd)((()=>{!0!==n.disable&&r.unbindComponent(o)}))}else!0===n&&console.error("Parent QForm not found on useFormChild()!")}var h=n(9763);n(4406);n(2156);Object.prototype.toString,Object.prototype.hasOwnProperty;const p={};"Boolean Number String Function Array Date RegExp Object".split(" ").forEach((e=>{p["[object "+e+"]"]=e.toLowerCase()}));n(7965),n(6016),n(8240);var f=n(2417);const g={...f.LU,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean};var v=n(908),m=n(7657),y=n(2130);const x=50,_=2*x,b=_*Math.PI,w=Math.round(1e3*b)/1e3;(0,v.L)({name:"QCircularProgress",props:{...g,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=(0,i.FN)(),r=(0,f.ZP)(e),o=(0,i.Fl)((()=>{const t=(!0===n.lang.rtl?-1:1)*e.angle;return{transform:e.reverse!==(!0===n.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-t}deg)`:`rotate3d(0, 0, 1, ${t-90}deg)`}})),a=(0,i.Fl)((()=>!0!==e.instantFeedback&&!0!==e.indeterminate?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:"")),s=(0,i.Fl)((()=>_/(1-e.thickness/2))),l=(0,i.Fl)((()=>`${s.value/2} ${s.value/2} ${s.value} ${s.value}`)),u=(0,i.Fl)((()=>(0,y.vX)(e.value,e.min,e.max))),c=(0,i.Fl)((()=>b*(1-(u.value-e.min)/(e.max-e.min)))),d=(0,i.Fl)((()=>e.thickness/2*s.value));function h({thickness:e,offset:t,color:n,cls:r}){return(0,i.h)("circle",{class:"q-circular-progress__"+r+(void 0!==n?` text-${n}`:""),style:a.value,fill:"transparent",stroke:"currentColor","stroke-width":e,"stroke-dasharray":w,"stroke-dashoffset":t,cx:s.value,cy:s.value,r:x})}return()=>{const n=[];void 0!==e.centerColor&&"transparent"!==e.centerColor&&n.push((0,i.h)("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:x-d.value/2,cx:s.value,cy:s.value})),void 0!==e.trackColor&&"transparent"!==e.trackColor&&n.push(h({cls:"track",thickness:d.value,offset:0,color:e.trackColor})),n.push(h({cls:"circle",thickness:d.value,offset:c.value,color:e.color}));const a=[(0,i.h)("svg",{class:"q-circular-progress__svg",style:o.value,viewBox:l.value,"aria-hidden":"true"},n)];return!0===e.showValue&&a.push((0,i.h)("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},void 0!==t.default?t.default():[(0,i.h)("div",u.value)])),(0,i.h)("div",{class:`q-circular-progress q-circular-progress--${!0===e.indeterminate?"in":""}determinate`,style:r.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":!0===e.indeterminate?void 0:u.value},(0,m.pf)(t.internal,a))}}});var S=n(4716);const M={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},C=["rejected"];u.S,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const I=[...C,"start","finish","added","removed"];const T=()=>!0;function k(e){const t={};return e.forEach((e=>{t[e]=T})),t}n(782);k(I);n(5363),n(6701);n(9111);var A=n(9405);n(2012);n(8400),n(4398),n(6105),n(5123),n(8836),n(8685),n(2396),n(9802),n(2773);let D,L=0;const P=new Array(256);for(let Y=0;Y<256;Y++)P[Y]=(Y+256).toString(16).substring(1);const O=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return e=>{const t=[];for(let n=e;n>0;n--)t.push(Math.floor(256*Math.random()));return t}})(),R=4096;function E(){(void 0===D||L+16>R)&&(L=0,D=O(R));const e=Array.prototype.slice.call(D,L,L+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,P[e[0]]+P[e[1]]+P[e[2]]+P[e[3]]+"-"+P[e[4]]+P[e[5]]+"-"+P[e[6]]+P[e[7]]+"-"+P[e[8]]+P[e[9]]+"-"+P[e[10]]+P[e[11]]+P[e[12]]+P[e[13]]+P[e[14]]+P[e[15]]}var N=n(9085);const F=[!0,!1,"ondemand"],B={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],validator:e=>F.includes(e)}};function V(e,t){const{props:n,proxy:o}=(0,i.FN)(),a=(0,r.iH)(!1),s=(0,r.iH)(null),l=(0,r.iH)(null);d({validate:y,resetValidation:m});let u,c=0;const p=(0,i.Fl)((()=>void 0!==n.rules&&null!==n.rules&&n.rules.length>0)),f=(0,i.Fl)((()=>!0!==n.disable&&!0===p.value)),g=(0,i.Fl)((()=>!0===n.error||!0===a.value)),v=(0,i.Fl)((()=>"string"===typeof n.errorMessage&&n.errorMessage.length>0?n.errorMessage:s.value));function m(){c++,t.value=!1,l.value=null,a.value=!1,s.value=null,_.cancel()}function y(e=n.modelValue){if(!0!==f.value)return!0;const i=++c;!0!==t.value&&!0!==n.lazyRules&&(l.value=!0);const r=(e,n)=>{a.value!==e&&(a.value=e);const i=n||void 0;s.value!==i&&(s.value=i),t.value=!1},o=[];for(let t=0;t<n.rules.length;t++){const i=n.rules[t];let a;if("function"===typeof i?a=i(e):"string"===typeof i&&void 0!==h.E[i]&&(a=h.E[i](e)),!1===a||"string"===typeof a)return r(!0,a),!1;!0!==a&&void 0!==a&&o.push(a)}return 0===o.length?(r(!1),!0):(t.value=!0,Promise.all(o).then((e=>{if(void 0===e||!1===Array.isArray(e)||0===e.length)return i===c&&r(!1),!0;const t=e.find((e=>!1===e||"string"===typeof e));return i===c&&r(void 0!==t,t),void 0===t}),(e=>(i===c&&(console.error(e),r(!0)),!1))))}function x(e){!0===f.value&&"ondemand"!==n.lazyRules&&(!0===l.value||!0!==n.lazyRules&&!0!==e)&&_()}(0,i.YP)((()=>n.modelValue),(()=>{x()})),(0,i.YP)((()=>n.reactiveRules),(e=>{!0===e?void 0===u&&(u=(0,i.YP)((()=>n.rules),(()=>{x(!0)}))):void 0!==u&&(u(),u=void 0)}),{immediate:!0}),(0,i.YP)(e,(e=>{!0===e?null===l.value&&(l.value=!1):!1===l.value&&(l.value=!0,!0===f.value&&"ondemand"!==n.lazyRules&&!1===t.value&&_())}));const _=(0,A.Z)(y,0);return(0,i.Jd)((()=>{void 0!==u&&u(),_.cancel()})),Object.assign(o,{resetValidation:m,validate:y}),(0,N.g)(o,"hasError",(()=>g.value)),{isDirtyModel:l,hasRules:p,hasError:g,errorMessage:v,validate:y,resetValidation:m}}const z=/^on[A-Z]/;function q(e,t){const n={listeners:(0,r.iH)({}),attributes:(0,r.iH)({})};function o(){const i={},r={};for(const t in e)"class"!==t&&"style"!==t&&!1===z.test(t)&&(i[t]=e[t]);for(const e in t.props)!0===z.test(e)&&(r[e]=t.props[e]);n.attributes.value=i,n.listeners.value=r}return(0,i.Xn)(o),o(),n}var H=n(230);function W(e){return void 0===e?`f_${E()}`:e}function G(e){return void 0!==e&&null!==e&&(""+e).length>0}const U={...u.S,...B,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},j=["update:modelValue","clear","focus","blur","popup-show","popup-hide"];function Z(){const{props:e,attrs:t,proxy:n,vnode:o}=(0,i.FN)(),a=(0,u.Z)(e,n.$q);return{isDark:a,editable:(0,i.Fl)((()=>!0!==e.disable&&!0!==e.readonly)),innerLoading:(0,r.iH)(!1),focused:(0,r.iH)(!1),hasPopupOpen:!1,splitAttrs:q(t,o),targetUid:(0,r.iH)(W(e.for)),rootRef:(0,r.iH)(null),targetRef:(0,r.iH)(null),controlRef:(0,r.iH)(null)}}function $(e){const{props:t,emit:n,slots:r,attrs:u,proxy:c}=(0,i.FN)(),{$q:d}=c;let h;void 0===e.hasValue&&(e.hasValue=(0,i.Fl)((()=>G(t.modelValue)))),void 0===e.emitValue&&(e.emitValue=e=>{n("update:modelValue",e)}),void 0===e.controlEvents&&(e.controlEvents={onFocusin:P,onFocusout:O}),Object.assign(e,{clearValue:R,onControlFocusin:P,onControlFocusout:O,focus:D}),void 0===e.computedCounter&&(e.computedCounter=(0,i.Fl)((()=>{if(!1!==t.counter){const e="string"===typeof t.modelValue||"number"===typeof t.modelValue?(""+t.modelValue).length:!0===Array.isArray(t.modelValue)?t.modelValue.length:0,n=void 0!==t.maxlength?t.maxlength:t.maxValues;return e+(void 0!==n?" / "+n:"")}})));const{isDirtyModel:p,hasRules:f,hasError:g,errorMessage:v,resetValidation:y}=V(e.focused,e.innerLoading),x=void 0!==e.floatingLabel?(0,i.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.floatingLabel.value)):(0,i.Fl)((()=>!0===t.stackLabel||!0===e.focused.value||!0===e.hasValue.value)),_=(0,i.Fl)((()=>!0===t.bottomSlots||void 0!==t.hint||!0===f.value||!0===t.counter||null!==t.error)),b=(0,i.Fl)((()=>!0===t.filled?"filled":!0===t.outlined?"outlined":!0===t.borderless?"borderless":t.standout?"standout":"standard")),w=(0,i.Fl)((()=>`q-field row no-wrap items-start q-field--${b.value}`+(void 0!==e.fieldClass?` ${e.fieldClass.value}`:"")+(!0===t.rounded?" q-field--rounded":"")+(!0===t.square?" q-field--square":"")+(!0===x.value?" q-field--float":"")+(!0===C.value?" q-field--labeled":"")+(!0===t.dense?" q-field--dense":"")+(!0===t.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===e.isDark.value?" q-field--dark":"")+(void 0===e.getControl?" q-field--auto-height":"")+(!0===e.focused.value?" q-field--focused":"")+(!0===g.value?" q-field--error":"")+(!0===g.value||!0===e.focused.value?" q-field--highlighted":"")+(!0!==t.hideBottomSpace&&!0===_.value?" q-field--with-bottom":"")+(!0===t.disable?" q-field--disabled":!0===t.readonly?" q-field--readonly":""))),M=(0,i.Fl)((()=>"q-field__control relative-position row no-wrap"+(void 0!==t.bgColor?` bg-${t.bgColor}`:"")+(!0===g.value?" text-negative":"string"===typeof t.standout&&t.standout.length>0&&!0===e.focused.value?` ${t.standout}`:void 0!==t.color?` text-${t.color}`:""))),C=(0,i.Fl)((()=>!0===t.labelSlot||void 0!==t.label)),I=(0,i.Fl)((()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==t.labelColor&&!0!==g.value?` text-${t.labelColor}`:""))),T=(0,i.Fl)((()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:x.value,modelValue:t.modelValue,emitValue:e.emitValue}))),k=(0,i.Fl)((()=>{const n={for:e.targetUid.value};return!0===t.disable?n["aria-disabled"]="true":!0===t.readonly&&(n["aria-readonly"]="true"),n}));function A(){const t=document.activeElement;let n=void 0!==e.targetRef&&e.targetRef.value;!n||null!==t&&t.id===e.targetUid.value||(!0===n.hasAttribute("tabindex")||(n=n.querySelector("[tabindex]")),n&&n!==t&&n.focus({preventScroll:!0}))}function D(){(0,H.jd)(A)}function L(){(0,H.fP)(A);const t=document.activeElement;null!==t&&e.rootRef.value.contains(t)&&t.blur()}function P(t){clearTimeout(h),!0===e.editable.value&&!1===e.focused.value&&(e.focused.value=!0,n("focus",t))}function O(t,i){clearTimeout(h),h=setTimeout((()=>{(!0!==document.hasFocus()||!0!==e.hasPopupOpen&&void 0!==e.controlRef&&null!==e.controlRef.value&&!1===e.controlRef.value.contains(document.activeElement))&&(!0===e.focused.value&&(e.focused.value=!1,n("blur",t)),void 0!==i&&i())}))}function R(r){if((0,S.NS)(r),!0!==d.platform.is.mobile){const t=void 0!==e.targetRef&&e.targetRef.value||e.rootRef.value;t.focus()}else!0===e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===t.type&&(e.inputRef.value.value=null),n("update:modelValue",null),n("clear",t.modelValue),(0,i.Y3)((()=>{y(),!0!==d.platform.is.mobile&&(p.value=!1)}))}function E(){const n=[];return void 0!==r.prepend&&n.push((0,i.h)("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:S.X$},r.prepend())),n.push((0,i.h)("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},N())),!0===g.value&&!1===t.noErrorIcon&&n.push(B("error",[(0,i.h)(s.Z,{name:d.iconSet.field.error,color:"negative"})])),!0===t.loading||!0===e.innerLoading.value?n.push(B("inner-loading-append",void 0!==r.loading?r.loading():[(0,i.h)(l.Z,{color:t.color})])):!0===t.clearable&&!0===e.hasValue.value&&!0===e.editable.value&&n.push(B("inner-clearable-append",[(0,i.h)(s.Z,{class:"q-field__focusable-action",tag:"button",name:t.clearIcon||d.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:R})])),void 0!==r.append&&n.push((0,i.h)("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:S.X$},r.append())),void 0!==e.getInnerAppend&&n.push(B("inner-append",e.getInnerAppend())),void 0!==e.getControlChild&&n.push(e.getControlChild()),n}function N(){const n=[];return void 0!==t.prefix&&null!==t.prefix&&n.push((0,i.h)("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),void 0!==e.getShadowControl&&!0===e.hasShadow.value&&n.push(e.getShadowControl()),void 0!==e.getControl?n.push(e.getControl()):void 0!==r.rawControl?n.push(r.rawControl()):void 0!==r.control&&n.push((0,i.h)("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0},r.control(T.value))),!0===C.value&&n.push((0,i.h)("div",{class:I.value},(0,m.KR)(r.label,t.label))),void 0!==t.suffix&&null!==t.suffix&&n.push((0,i.h)("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),n.concat((0,m.KR)(r.default))}function F(){let n,a;!0===g.value?null!==v.value?(n=[(0,i.h)("div",{role:"alert"},v.value)],a=`q--slot-error-${v.value}`):(n=(0,m.KR)(r.error),a="q--slot-error"):!0===t.hideHint&&!0!==e.focused.value||(void 0!==t.hint?(n=[(0,i.h)("div",t.hint)],a=`q--slot-hint-${t.hint}`):(n=(0,m.KR)(r.hint),a="q--slot-hint"));const s=!0===t.counter||void 0!==r.counter;if(!0===t.hideBottomSpace&&!1===s&&void 0===n)return;const l=(0,i.h)("div",{key:a,class:"q-field__messages col"},n);return(0,i.h)("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==t.hideBottomSpace?"animated":"stale")},[!0===t.hideBottomSpace?l:(0,i.h)(o.uT,{name:"q-transition--field-message"},(()=>l)),!0===s?(0,i.h)("div",{class:"q-field__counter"},void 0!==r.counter?r.counter():e.computedCounter.value):null])}function B(e,t){return null===t?null:(0,i.h)("div",{key:e,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},t)}(0,i.YP)((()=>t.for),(t=>{e.targetUid.value=W(t)})),Object.assign(c,{focus:D,blur:L});let z=!1;return(0,i.se)((()=>{z=!0})),(0,i.dl)((()=>{!0===z&&!0===t.autofocus&&c.focus()})),(0,i.bv)((()=>{!0===a.uX.value&&void 0===t.for&&(e.targetUid.value=W()),!0===t.autofocus&&c.focus()})),(0,i.Jd)((()=>{clearTimeout(h)})),function(){const n=void 0===e.getControl&&void 0===r.control?{...e.splitAttrs.attributes.value,"data-autofocus":!0===t.autofocus||void 0,...k.value}:k.value;return(0,i.h)("label",{ref:e.rootRef,class:[w.value,u.class],style:u.style,...n},[void 0!==r.before?(0,i.h)("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:S.X$},r.before()):null,(0,i.h)("div",{class:"q-field__inner relative-position col self-stretch"},[(0,i.h)("div",{ref:e.controlRef,class:M.value,tabindex:-1,...e.controlEvents},E()),!0===_.value?F():null]),void 0!==r.after?(0,i.h)("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:S.X$},r.after()):null])}}},9550:(e,t,n)=>{"use strict";n.d(t,{Do:()=>s,Fz:()=>r,Vt:()=>o,eX:()=>a});var i=n(3673);const r={name:String};function o(e){return(0,i.Fl)((()=>({type:"hidden",name:e.name,value:e.modelValue})))}function a(e={}){return(t,n,r)=>{t[n]((0,i.h)("input",{class:"hidden"+(r||""),...e.value}))}}function s(e){return(0,i.Fl)((()=>e.name||e.for))}},69:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(3673),r=n(6583);function o(e,t,n){let o;function a(){void 0!==o&&(r.Z.remove(o),o=void 0)}return(0,i.Jd)((()=>{!0===e.value&&a()})),{removeFromHistory:a,addToHistory(){o={condition:()=>!0===n.value,handler:t},r.Z.add(o)}}}},4421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(4688);const r=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,o=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,a=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,s=/[a-z0-9_ -]$/i;function l(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,e(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"===typeof t.data){const e=!0===i.Lp.is.firefox?!1===s.test(t.data):!0===r.test(t.data)||!0===o.test(t.data)||!0===a.test(t.data);!0===e&&(t.target.qComposing=!0)}}}},3628:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,gH:()=>a,vr:()=>o});var i=n(3673),r=n(7445);const o={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},a=["before-show","show","before-hide","hide"];function s({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:a,processOnMount:s}){const l=(0,i.FN)(),{props:u,emit:c,proxy:d}=l;let h;function p(t){!0===e.value?v(t):f(t)}function f(e){if(!0===u.disable||void 0!==e&&!0===e.qAnchorHandled||void 0!==t&&!0!==t(e))return;const n=void 0!==u["onUpdate:modelValue"];!0===n&&(c("update:modelValue",!0),h=e,(0,i.Y3)((()=>{h===e&&(h=void 0)}))),null!==u.modelValue&&!1!==n||g(e)}function g(t){!0!==e.value&&(e.value=!0,c("before-show",t),void 0!==o?o(t):c("show",t))}function v(e){if(!0===u.disable)return;const t=void 0!==u["onUpdate:modelValue"];!0===t&&(c("update:modelValue",!1),h=e,(0,i.Y3)((()=>{h===e&&(h=void 0)}))),null!==u.modelValue&&!1!==t||m(e)}function m(t){!1!==e.value&&(e.value=!1,c("before-hide",t),void 0!==a?a(t):c("hide",t))}function y(t){if(!0===u.disable&&!0===t)void 0!==u["onUpdate:modelValue"]&&c("update:modelValue",!1);else if(!0===t!==e.value){const e=!0===t?g:m;e(h)}}(0,i.YP)((()=>u.modelValue),y),void 0!==n&&!0===(0,r.Rb)(l)&&(0,i.YP)((()=>d.$route.fullPath),(()=>{!0===n.value&&!0===e.value&&v()})),!0===s&&(0,i.bv)((()=>{y(u.modelValue)}));const x={show:f,hide:v,toggle:p};return Object.assign(d,x),x}},5911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(1959),r=n(3673),o=(n(4716),n(230)),a=n(5578);const s=[];let l=document.body;function u(e){const t=document.createElement("div");if(void 0!==e&&(t.id=e),void 0!==a.w6.globalNodes){const e=a.w6.globalNodes["class"];void 0!==e&&(t.className=e)}return l.appendChild(t),s.push(t),t}function c(e){s.splice(s.indexOf(e),1),e.remove()}var d=n(4312);function h(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function p(e,t,n,a){const s=(0,i.iH)(!1),l=(0,i.iH)(!1);let p=null;const f={},g=!0===a&&h(e);function v(t){if(!0===t)return(0,o.xF)(f),void(l.value=!0);l.value=!1,!1===s.value&&(!1===g&&null===p&&(p=u()),s.value=!0,d.wN.push(e.proxy),(0,o.YX)(f))}function m(t){if(l.value=!1,!0!==t)return;(0,o.xF)(f),s.value=!1;const n=d.wN.indexOf(e.proxy);n>-1&&d.wN.splice(n,1),null!==p&&(c(p),p=null)}return(0,r.Ah)((()=>{m(!0)})),Object.assign(e.proxy,{__qPortalInnerRef:t}),{showPortal:v,hidePortal:m,portalIsActive:s,portalIsAccessible:l,renderPortal:()=>!0===g?n():!0===s.value?[(0,r.h)(r.lR,{to:p},n())]:void 0}}},405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(4716),r=n(8400),o=n(4688);let a,s,l,u,c,d,h=0,p=!1;function f(e){g(e)&&(0,i.NS)(e)}function g(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=(0,i.AZ)(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=n||o?e.deltaY:e.deltaX;for(let i=0;i<t.length;i++){const e=t[i];if((0,r.QA)(e,o))return o?a<0&&0===e.scrollTop||a>0&&e.scrollTop+e.clientHeight===e.scrollHeight:a<0&&0===e.scrollLeft||a>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function v(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function m(e){!0!==p&&(p=!0,requestAnimationFrame((()=>{p=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:i}=document.scrollingElement;void 0!==l&&t===window.innerHeight||(l=n-t,document.scrollingElement.scrollTop=i),i>l&&(document.scrollingElement.scrollTop-=Math.ceil((i-l)/8))})))}function y(e){const t=document.body,n=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:l}=window.getComputedStyle(t);a=(0,r.OI)(window),s=(0,r.u3)(window),u=t.style.left,c=t.style.top,t.style.left=`-${a}px`,t.style.top=`-${s}px`,"hidden"!==l&&("scroll"===l||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===o.Lp.is.ios&&(!0===n?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",m,i.rU.passiveCapture),window.visualViewport.addEventListener("scroll",m,i.rU.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",v,i.rU.passiveCapture))}!0===o.Lp.is.desktop&&!0===o.Lp.is.mac&&window[`${e}EventListener`]("wheel",f,i.rU.notPassive),"remove"===e&&(!0===o.Lp.is.ios&&(!0===n?(window.visualViewport.removeEventListener("resize",m,i.rU.passiveCapture),window.visualViewport.removeEventListener("scroll",m,i.rU.passiveCapture)):window.removeEventListener("scroll",v,i.rU.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=u,t.style.top=c,window.scrollTo(a,s),l=void 0)}function x(e){let t="add";if(!0===e){if(h++,void 0!==d)return clearTimeout(d),void(d=void 0);if(h>1)return}else{if(0===h)return;if(h--,h>0)return;if(t="remove",!0===o.Lp.is.ios&&!0===o.Lp.is.nativeMobile)return clearTimeout(d),void(d=setTimeout((()=>{y(t),d=void 0}),100))}y(t)}function _(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,x(t))}}}},7277:(e,t,n)=>{"use strict";n.d(t,{$:()=>h,Z:()=>p});n(5363);var i=n(3673),r=n(4716),o=n(7445);function a(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function s(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function l(e,t){for(const n in t){const i=t[n],r=e[n];if("string"===typeof i){if(i!==r)return!1}else if(!1===Array.isArray(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}function u(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function c(e,t){return!0===Array.isArray(e)?u(e,t):!0===Array.isArray(t)?u(t,e):e===t}function d(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!1===c(e[n],t[n]))return!1;return!0}const h={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function p(e){const t=(0,i.FN)(),{props:n,proxy:u}=t,c=(0,o.Rb)(t),h=(0,i.Fl)((()=>!0!==n.disable&&void 0!==n.href)),p=(0,i.Fl)((()=>!0===c&&!0!==n.disable&&!0!==h.value&&void 0!==n.to&&null!==n.to&&""!==n.to)),f=(0,i.Fl)((()=>{if(!0===p.value)try{return u.$router.resolve(n.to)}catch(e){}return null})),g=(0,i.Fl)((()=>null!==f.value)),v=(0,i.Fl)((()=>!0===h.value||!0===g.value)),m=(0,i.Fl)((()=>"a"===n.type||!0===v.value?"a":n.tag||e||"div")),y=(0,i.Fl)((()=>!0===h.value?{href:n.href,target:n.target}:!0===g.value?{href:f.value.href,target:n.target}:{})),x=(0,i.Fl)((()=>{if(!1===g.value)return null;const{matched:e}=f.value,{length:t}=e,n=e[t-1];if(void 0===n)return-1;const i=u.$route.matched;if(0===i.length)return-1;const r=i.findIndex(s.bind(null,n));if(r>-1)return r;const o=a(e[t-2]);return t>1&&a(n)===o&&i[i.length-1].path!==o?i.findIndex(s.bind(null,e[t-2])):r})),_=(0,i.Fl)((()=>!0===g.value&&x.value>-1&&l(u.$route.params,f.value.params))),b=(0,i.Fl)((()=>!0===_.value&&x.value===u.$route.matched.length-1&&d(u.$route.params,f.value.params))),w=(0,i.Fl)((()=>!0===g.value?!0===b.value?` ${n.exactActiveClass} ${n.activeClass}`:!0===n.exact?"":!0===_.value?` ${n.activeClass}`:"":""));function S(e){return!(!0===n.disable||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||!0!==e.__qNavigate&&!0===e.defaultPrevented||void 0!==e.button&&0!==e.button||"_blank"===n.target)&&((0,r.X$)(e),u.$router[!0===n.replace?"replace":"push"](n.to).catch((e=>e)))}return{hasRouterLink:g,hasHrefLink:h,hasLink:v,linkTag:m,linkRoute:f,linkIsActive:_,linkIsExactActive:b,linkClass:w,linkProps:y,navigateToRouterLink:S}}},1372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(1959),r=n(3673),o=n(4716);function a(e,t){const n=(0,i.iH)(null);let a;function s(e,t){const n=(void 0!==t?"add":"remove")+"EventListener",i=void 0!==t?t:a;e!==window&&e[n]("scroll",i,o.rU.passive),window[n]("scroll",i,o.rU.passive),a=t}function l(){null!==n.value&&(s(n.value),n.value=null)}const u=(0,r.YP)((()=>e.noParentEvent),(()=>{null!==n.value&&(l(),t())}));return(0,r.Jd)(u),{localScrollTarget:n,unconfigureScrollTarget:l,changeScrollEvent:s}}},2417:(e,t,n)=>{"use strict";n.d(t,{LU:()=>o,Ok:()=>r,ZP:()=>a});var i=n(3673);const r={xs:18,sm:24,md:32,lg:38,xl:46},o={size:String};function a(e,t=r){return(0,i.Fl)((()=>void 0!==e.size?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null))}},416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(3673);function r(){let e;return(0,i.Jd)((()=>{e=void 0})),{registerTick(t){e=t,(0,i.Y3)((()=>{e===t&&(e(),e=void 0)}))},removeTick(){e=void 0}}}},4955:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(3673);function r(){let e;return(0,i.Jd)((()=>{clearTimeout(e)})),{registerTimeout(t,n){clearTimeout(e),e=setTimeout(t,n)},removeTimeout(){clearTimeout(e)}}}},6104:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,Z:()=>a});var i=n(1959),r=n(3673);const o={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function a(e,t){const n=(0,i.iH)(t.value);return(0,r.YP)(t,(e=>{(0,r.Y3)((()=>{n.value=e}))})),{transition:(0,r.Fl)((()=>"q-transition--"+(!0===n.value?e.transitionHide:e.transitionShow))),transitionStyle:(0,r.Fl)((()=>`--q-transition-duration: ${e.transitionDuration}ms`))}}},677:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(908),r=n(4312),o=n(1436);function a(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}const s=(0,i.f)({name:"close-popup",beforeMount(e,{value:t}){const n={depth:a(t),handler(t){0!==n.depth&&setTimeout((()=>{const i=(0,r.HW)(e);void 0!==i&&(0,r.S7)(i,t,n.depth)}))},handlerKey(e){!0===(0,o.So)(e,13)&&n.handler(e)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:t,oldValue:n}){t!==n&&(e.__qclosepopup.depth=a(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}})},860:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(908),r=n(2012),o=n(4716),a=n(1436),s=n(3317);function l(e,t,n,i){!0===n.modifiers.stop&&(0,o.sT)(e);const a=n.modifiers.color;let s=n.modifiers.center;s=!0===s||!0===i;const l=document.createElement("span"),u=document.createElement("span"),c=(0,o.FK)(e),{left:d,top:h,width:p,height:f}=t.getBoundingClientRect(),g=Math.sqrt(p*p+f*f),v=g/2,m=(p-g)/2+"px",y=s?m:c.left-d-v+"px",x=(f-g)/2+"px",_=s?x:c.top-h-v+"px";u.className="q-ripple__inner",(0,r.iv)(u,{height:`${g}px`,width:`${g}px`,transform:`translate3d(${y},${_},0) scale3d(.2,.2,1)`,opacity:0}),l.className="q-ripple"+(a?" text-"+a:""),l.setAttribute("dir","ltr"),l.appendChild(u),t.appendChild(l);const b=()=>{l.remove(),clearTimeout(w)};n.abort.push(b);let w=setTimeout((()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${m},${x},0) scale3d(1,1,1)`,u.style.opacity=.2,w=setTimeout((()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,w=setTimeout((()=>{l.remove(),n.abort.splice(n.abort.indexOf(b),1)}),275)}),250)}),50)}function u(e,{modifiers:t,value:n,arg:i}){const r=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:!0===r.early,stop:!0===r.stop,center:!0===r.center,color:r.color||i,keyCodes:[].concat(r.keyCodes||13)}}const c=(0,i.f)({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===n.ripple)return;const i={cfg:n,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===i.enabled&&!0!==t.qSkipRipple&&t.type===(!0===i.modifiers.early?"pointerdown":"click")&&l(t,e,i,!0===t.qKeyEvent)},keystart:(0,s.Z)((t=>{!0===i.enabled&&!0!==t.qSkipRipple&&!0===(0,a.So)(t,i.modifiers.keyCodes)&&t.type==="key"+(!0===i.modifiers.early?"down":"up")&&l(t,e,i,!0)}),300)};u(i,t),e.__qripple=i,(0,o.M0)(i,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;void 0!==n&&(n.enabled=!1!==t.value,!0===n.enabled&&Object(t.value)===t.value&&u(n,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach((e=>{e()})),(0,o.ul)(t,"main"),delete e._qripple)}})},5777:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(4688),r=n(908),o=n(7801),a=n(4716),s=n(9725);function l(e,t,n){const i=(0,a.FK)(e);let r,o=i.left-t.event.x,s=i.top-t.event.y,l=Math.abs(o),u=Math.abs(s);const c=t.direction;!0===c.horizontal&&!0!==c.vertical?r=o<0?"left":"right":!0!==c.horizontal&&!0===c.vertical?r=s<0?"up":"down":!0===c.up&&s<0?(r="up",l>u&&(!0===c.left&&o<0?r="left":!0===c.right&&o>0&&(r="right"))):!0===c.down&&s>0?(r="down",l>u&&(!0===c.left&&o<0?r="left":!0===c.right&&o>0&&(r="right"))):!0===c.left&&o<0?(r="left",l<u&&(!0===c.up&&s<0?r="up":!0===c.down&&s>0&&(r="down"))):!0===c.right&&o>0&&(r="right",l<u&&(!0===c.up&&s<0?r="up":!0===c.down&&s>0&&(r="down")));let d=!1;if(void 0===r&&!1===n){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};r=t.event.lastDir,d=!0,"left"===r||"right"===r?(i.left-=o,l=0,o=0):(i.top-=s,u=0,s=0)}return{synthetic:d,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:i,direction:r,isFirst:t.event.isFirst,isFinal:!0===n,duration:Date.now()-t.event.time,distance:{x:l,y:u},offset:{x:o,y:s},delta:{x:i.left-t.event.lastX,y:i.top-t.event.lastY}}}}let u=0;const c=(0,r.f)({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(!0!==n.mouse&&!0!==i.Lp.has.touch)return;function r(e,t){!0===n.mouse&&!0===t?(0,a.NS)(e):(!0===n.stop&&(0,a.sT)(e),!0===n.prevent&&(0,a.X$)(e))}const c={uid:"qvtp_"+u++,handler:t,modifiers:n,direction:(0,o.R)(n),noop:a.ZT,mouseStart(e){(0,o.n)(e,c)&&(0,a.du)(e)&&((0,a.M0)(c,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),c.start(e,!0))},touchStart(e){if((0,o.n)(e,c)){const t=e.target;(0,a.M0)(c,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),c.start(e)}},start(t,r){if(!0===i.Lp.is.firefox&&(0,a.Jf)(e,!0),c.lastEvt=t,!0===r||!0===n.stop){if(!0!==c.direction.all&&(!0!==r||!0!==c.modifiers.mouseAllDir)){const e=t.type.indexOf("mouse")>-1?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&(0,a.X$)(e),!0===t.cancelBubble&&(0,a.sT)(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:void 0===t.qClonedBy?[c.uid]:t.qClonedBy.concat(c.uid)}),c.initialEvent={target:t.target,event:e}}(0,a.sT)(t)}const{left:o,top:s}=(0,a.FK)(t);c.event={x:o,y:s,time:Date.now(),mouse:!0===r,detected:!1,isFirst:!0,isFinal:!1,lastX:o,lastY:s}},move(e){if(void 0===c.event)return;const t=(0,a.FK)(e),i=t.left-c.event.x,o=t.top-c.event.y;if(0===i&&0===o)return;c.lastEvt=e;const u=!0===c.event.mouse,d=()=>{r(e,u),!0!==n.preserveCursor&&(document.documentElement.style.cursor="grabbing"),!0===u&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),(0,s.M)(),c.styleCleanup=e=>{if(c.styleCleanup=void 0,!0!==n.preserveCursor&&(document.documentElement.style.cursor=""),document.body.classList.remove("non-selectable"),!0===u){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout((()=>{t(),e()}),50):t()}else void 0!==e&&e()}};if(!0===c.event.detected){!0!==c.event.isFirst&&r(e,c.event.mouse);const{payload:t,synthetic:n}=l(e,c,!1);return void(void 0!==t&&(!1===c.handler(t)?c.end(e):(void 0===c.styleCleanup&&!0===c.event.isFirst&&d(),c.event.lastX=t.position.left,c.event.lastY=t.position.top,c.event.lastDir=!0===n?void 0:t.direction,c.event.isFirst=!1)))}if(!0===c.direction.all||!0===u&&!0===c.modifiers.mouseAllDir)return d(),c.event.detected=!0,void c.move(e);const h=Math.abs(i),p=Math.abs(o);h!==p&&(!0===c.direction.horizontal&&h>p||!0===c.direction.vertical&&h<p||!0===c.direction.up&&h<p&&o<0||!0===c.direction.down&&h<p&&o>0||!0===c.direction.left&&h>p&&i<0||!0===c.direction.right&&h>p&&i>0?(c.event.detected=!0,c.move(e)):c.end(e,!0))},end(t,n){if(void 0!==c.event){if((0,a.ul)(c,"temp"),!0===i.Lp.is.firefox&&(0,a.Jf)(e,!1),!0===n)void 0!==c.styleCleanup&&c.styleCleanup(),!0!==c.event.detected&&void 0!==c.initialEvent&&c.initialEvent.target.dispatchEvent(c.initialEvent.event);else if(!0===c.event.detected){!0===c.event.isFirst&&c.handler(l(void 0===t?c.lastEvt:t,c).payload);const{payload:e}=l(void 0===t?c.lastEvt:t,c,!0),n=()=>{c.handler(e)};void 0!==c.styleCleanup?c.styleCleanup(n):n()}c.event=void 0,c.initialEvent=void 0,c.lastEvt=void 0}}};e.__qtouchpan=c,!0===n.mouse&&(0,a.M0)(c,"main",[[e,"mousedown","mouseStart","passive"+(!0===n.mouseCapture?"Capture":"")]]),!0===i.Lp.has.touch&&(0,a.M0)(c,"main",[[e,"touchstart","touchStart","passive"+(!0===n.capture?"Capture":"")],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;void 0!==n&&(t.oldValue!==t.value&&("function"!==typeof value&&n.end(),n.handler=t.value),n.direction=(0,o.R)(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),(0,a.ul)(t,"main"),(0,a.ul)(t,"temp"),!0===i.Lp.is.firefox&&(0,a.Jf)(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}})},6583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(71),n(3610);var i=n(4688),r=n(4716);const o=()=>!0;function a(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function s(e){return!0===e.startsWith("#")&&(e=e.substring(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substring(0,e.length-1)),"#"+e}function l(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return o;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(a).map(s)),()=>t.includes(window.location.hash)}const u={__history:[],add:r.ZT,remove:r.ZT,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:n}=i.Lp.is;if(!0!==t&&!0!==n)return;const r=e.config[!0===t?"cordova":"capacitor"];if(void 0!==r&&!1===r.backButton)return;if(!0===n&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=e=>{void 0===e.condition&&(e.condition=o),this.__history.push(e)},this.remove=e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)};const a=l(Object.assign({backButtonExit:!0},r)),s=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",(()=>{document.addEventListener("backbutton",s,!1)})):window.Capacitor.Plugins.App.addListener("backButton",s)}}},9111:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,F:()=>r});n(5363);var i=n(2002);const r={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function o(){const e=!0===Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map(((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase())).join("-")}const a=(0,i.Z)({__langPack:{}},{getLocale:o,set(e=r,t){const n={...e,rtl:!0===e.rtl,getLocale:o};{const e=document.documentElement;e.setAttribute("dir",!0===n.rtl?"rtl":"ltr"),e.setAttribute("lang",n.isoName),n.set=a.set,Object.assign(a.__langPack,n),a.props=n,a.isoName=n.isoName,a.nativeName=n.nativeName}},install({$q:e,lang:t,ssrContext:n}){e.lang=a.__langPack,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||r)}}),s=a},2471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});n(5363);function i(e){return encodeURIComponent(e)}function r(e){return decodeURIComponent(e)}function o(e){return i(e===Object(e)?JSON.stringify(e):""+e)}function a(e){if(""===e)return e;0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=r(e.replace(/\+/g," "));try{const t=JSON.parse(e);t!==Object(t)&&!0!==Array.isArray(t)||(e=t)}catch(t){}return e}function s(e){const t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function l(e){let t=0;const n=e.match(/(\d+)d/),i=e.match(/(\d+)h/),r=e.match(/(\d+)m/),o=e.match(/(\d+)s/);return n&&(t+=864e5*n[1]),i&&(t+=36e5*i[1]),r&&(t+=6e4*r[1]),o&&(t+=1e3*o[1]),0===t?e:s(t)}function u(e,t,n={},r){let a,u;void 0!==n.expires&&("[object Date]"===Object.prototype.toString.call(n.expires)?a=n.expires.toUTCString():"string"===typeof n.expires?a=l(n.expires):(u=parseFloat(n.expires),a=!1===isNaN(u)?s(864e5*u):n.expires));const d=`${i(e)}=${o(t)}`,h=[d,void 0!==a?"; Expires="+a:"",n.path?"; Path="+n.path:"",n.domain?"; Domain="+n.domain:"",n.sameSite?"; SameSite="+n.sameSite:"",n.httpOnly?"; HttpOnly":"",n.secure?"; Secure":"",n.other?"; "+n.other:""].join("");if(r){r.req.qCookies?r.req.qCookies.push(h):r.req.qCookies=[h],r.res.setHeader("Set-Cookie",r.req.qCookies);let t=r.req.headers.cookie||"";if(void 0!==a&&u<0){const n=c(e,r);void 0!==n&&(t=t.replace(`${e}=${n}; `,"").replace(`; ${e}=${n}`,"").replace(`${e}=${n}`,""))}else t=t?`${d}; ${t}`:h;r.req.headers.cookie=t}else document.cookie=h}function c(e,t){const n=t?t.req.headers:document,i=n.cookie?n.cookie.split("; "):[],o=i.length;let s,l,u,c=e?null:{},d=0;for(;d<o;d++)if(s=i[d].split("="),l=r(s.shift()),u=s.join("="),e){if(e===l){c=a(u);break}}else c[l]=u;return c}function d(e,t,n){u(e,"",{expires:-1,...t},n)}function h(e,t){return null!==c(e,t)}function p(e){return{get:t=>c(t,e),set:(t,n,i)=>u(t,n,i,e),has:t=>h(t,e),remove:(t,n)=>d(t,n,e),getAll:()=>c(null,e)}}const f={install({$q:e,ssrContext:t}){e.cookies=this}};Object.assign(f,p());const g=f},4688:(e,t,n)=>{"use strict";n.d(t,{Lp:()=>g,ZP:()=>m,aG:()=>a,uX:()=>o});var i=n(1959),r=n(9085);const o=(0,i.iH)(!1);let a,s=!1;function l(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:t[0]||""}}function u(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const c="ontouchstart"in window||window.navigator.maxTouchPoints>0;function d(e){a={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function h(e){const t=e.toLowerCase(),n=u(t),i=l(t,n),r={};i.browser&&(r[i.browser]=!0,r.version=i.version,r.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(r[i.platform]=!0);const o=r.android||r.ios||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"];return!0===o||t.indexOf("mobile")>-1?(r.mobile=!0,r.edga||r.edgios?(r.edge=!0,i.browser="edge"):r.crios?(r.chrome=!0,i.browser="chrome"):r.fxios&&(r.firefox=!0,i.browser="firefox")):r.desktop=!0,(r.ipod||r.ipad||r.iphone)&&(r.ios=!0),r["windows phone"]&&(r.winphone=!0,delete r["windows phone"]),(r.chrome||r.opr||r.safari||r.vivaldi||!0===r.mobile&&!0!==r.ios&&!0!==o)&&(r.webkit=!0),r.edg&&(i.browser="edgechromium",r.edgeChromium=!0),(r.safari&&r.blackberry||r.bb)&&(i.browser="blackberry",r.blackberry=!0),r.safari&&r.playbook&&(i.browser="playbook",r.playbook=!0),r.opr&&(i.browser="opera",r.opera=!0),r.safari&&r.android&&(i.browser="android",r.android=!0),r.safari&&r.kindle&&(i.browser="kindle",r.kindle=!0),r.safari&&r.silk&&(i.browser="silk",r.silk=!0),r.vivaldi&&(i.browser="vivaldi",r.vivaldi=!0),r.name=i.browser,r.platform=i.platform,t.indexOf("electron")>-1?r.electron=!0:document.location.href.indexOf("-extension://")>-1?r.bex=!0:(void 0!==window.Capacitor?(r.capacitor=!0,r.nativeMobile=!0,r.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(r.cordova=!0,r.nativeMobile=!0,r.nativeMobileWrapper="cordova"),!0===c&&!0===r.mac&&(!0===r.desktop&&!0===r.safari||!0===r.nativeMobile&&!0!==r.android&&!0!==r.ios&&!0!==r.ipad)&&d(r)),r}const p=navigator.userAgent||navigator.vendor||window.opera,f={has:{touch:!1,webStorage:!1},within:{iframe:!1}},g={userAgent:p,is:h(p),has:{touch:c},within:{iframe:window.self!==window.top}},v={install(e){const{$q:t}=e;!0===o.value?(e.onSSRHydrated.push((()=>{o.value=!1,Object.assign(t.platform,g),a=void 0})),t.platform=(0,i.qj)(this)):t.platform=this}};{let e;(0,r.g)(g.has,"webStorage",(()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(t){}return e=!1,!1})),s=!0===g.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple"),!0===o.value?Object.assign(v,g,a,f):Object.assign(v,g)}const m=v},2156:(e,t,n)=>{"use strict";n.d(t,{Nn:()=>o,T2:()=>c,WE:()=>s,id:()=>u,oo:()=>a,py:()=>l,vq:()=>r});n(6701),n(5363);const i=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function r({r:e,g:t,b:n,a:i}){const r=void 0!==i;if(e=Math.round(e),t=Math.round(t),n=Math.round(n),e>255||t>255||n>255||r&&i>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return i=r?(256|Math.round(255*i/100)).toString(16).slice(1):"","#"+(n|t<<8|e<<16|1<<24).toString(16).slice(1)+i}function o({r:e,g:t,b:n,a:i}){return`rgb${void 0!==i?"a":""}(${e},${t},${n}${void 0!==i?","+i/100:""})`}function a(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function s({h:e,s:t,v:n,a:i}){let r,o,a;t/=100,n/=100,e/=360;const s=Math.floor(6*e),l=6*e-s,u=n*(1-t),c=n*(1-l*t),d=n*(1-(1-l)*t);switch(s%6){case 0:r=n,o=d,a=u;break;case 1:r=c,o=n,a=u;break;case 2:r=u,o=n,a=d;break;case 3:r=u,o=c,a=n;break;case 4:r=d,o=u,a=n;break;case 5:r=n,o=u,a=c;break}return{r:Math.round(255*r),g:Math.round(255*o),b:Math.round(255*a),a:i}}function l({r:e,g:t,b:n,a:i}){const r=Math.max(e,t,n),o=Math.min(e,t,n),a=r-o,s=0===r?0:a/r,l=r/255;let u;switch(r){case o:u=0;break;case e:u=t-n+a*(t<n?6:0),u/=6*a;break;case t:u=n-e+2*a,u/=6*a;break;case n:u=e-t+4*a,u/=6*a;break}return{h:Math.round(360*u),s:Math.round(100*s),v:Math.round(100*l),a:i}}function u(e){if("string"!==typeof e)throw new TypeError("Expected a string");const t=e.replace(/ /g,""),n=i.exec(t);if(null===n)return a(t);const r={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){const e=parseFloat(n[5]);r.a=100*Math.min(1,!0===isNaN(e)?1:e)}return r}function c(e){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const t="string"===typeof e?u(e):e,n=t.r/255,i=t.g/255,r=t.b/255,o=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),a=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),s=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4);return.2126*o+.7152*a+.0722*s}},9405:(e,t,n)=>{"use strict";function i(e,t=250,n){let i;function r(){const r=arguments,o=()=>{i=void 0,!0!==n&&e.apply(this,r)};clearTimeout(i),!0===n&&void 0===i&&e.apply(this,r),i=setTimeout(o,t)}return r.cancel=()=>{clearTimeout(i)},r}n.d(t,{Z:()=>i})},2012:(e,t,n)=>{"use strict";n.d(t,{iv:()=>r,mY:()=>a,sb:()=>o});var i=n(1959);function r(e,t){const n=e.style;for(const i in t)n[i]=t[i]}function o(e){if(void 0===e||null===e)return;if("string"===typeof e)try{return document.querySelector(e)||void 0}catch(n){return}const t=!0===(0,i.dq)(e)?e.value:e;return t?t.$el||t:void 0}function a(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let n=e.nextElementSibling;null!==n;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}},4716:(e,t,n)=>{"use strict";n.d(t,{AZ:()=>s,FK:()=>a,Jf:()=>d,M0:()=>h,NS:()=>c,X$:()=>u,ZT:()=>r,du:()=>o,rU:()=>i,sT:()=>l,ul:()=>p});n(71);const i={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(i,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(f){}function r(){}function o(e){return 0===e.button}function a(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function s(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;while(n){if(t.push(n),"HTML"===n.tagName)return t.push(document),t.push(window),t;n=n.parentElement}}function l(e){e.stopPropagation()}function u(e){!1!==e.cancelable&&e.preventDefault()}function c(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function d(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const n=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",u,i.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",u,i.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function h(e,t,n){const r=`__q_${t}_evt`;e[r]=void 0!==e[r]?e[r].concat(n):n,n.forEach((t=>{t[0].addEventListener(t[1],e[t[2]],i[t[3]])}))}function p(e,t){const n=`__q_${t}_evt`;void 0!==e[n]&&(e[n].forEach((t=>{t[0].removeEventListener(t[1],e[t[2]],i[t[3]])})),e[n]=void 0)}},2130:(e,t,n)=>{"use strict";n.d(t,{Uz:()=>o,kC:()=>i,vX:()=>r,vk:()=>a});function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function o(e,t,n){if(n<=t)return t;const i=n-t+1;let r=t+(e-t)%i;return r<t&&(r=i+r),0===r?0:r}function a(e,t=2,n="0"){if(void 0===e||null===e)return e;const i=""+e;return i.length>=t?i:new Array(t-i.length+1).join(n)+i}},9763:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});const i=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,r=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,o=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,a=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,s=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,l={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>i.test(e),hexaColor:e=>r.test(e),hexOrHexaColor:e=>o.test(e),rgbColor:e=>a.test(e),rgbaColor:e=>s.test(e),rgbOrRgbaColor:e=>a.test(e)||s.test(e),hexOrRgbColor:e=>i.test(e)||a.test(e),hexaOrRgbaColor:e=>r.test(e)||s.test(e),anyColor:e=>o.test(e)||a.test(e)||s.test(e)}},9916:(e,t,n)=>{"use strict";n.d(t,{D:()=>c,m:()=>u});var i=n(4716),r=n(4312);let o;const{notPassiveCapture:a}=i.rU,s=[];function l(e){clearTimeout(o);const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let n=r.wN.length-1;while(n>=0){const e=r.wN[n].$;if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;n--}for(let i=s.length-1;i>=0;i--){const n=s[i];if(null!==n.anchorEl.value&&!1!==n.anchorEl.value.contains(t)||t!==document.body&&(null===n.innerRef.value||!1!==n.innerRef.value.contains(t)))return;e.qClickOutside=!0,n.onClickOutside(e)}}function u(e){s.push(e),1===s.length&&(document.addEventListener("mousedown",l,a),document.addEventListener("touchstart",l,a))}function c(e){const t=s.findIndex((t=>t===e));t>-1&&(s.splice(t,1),0===s.length&&(clearTimeout(o),document.removeEventListener("mousedown",l,a),document.removeEventListener("touchstart",l,a)))}},908:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,f:()=>a});var i=n(1959),r=n(3673);const o=e=>(0,i.Xl)((0,r.aZ)(e)),a=e=>(0,i.Xl)(e)},2002:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(1959),r=n(9085);const o=(e,t)=>{const n=(0,i.qj)(e);for(const i in e)(0,r.g)(t,i,(()=>n[i]),(e=>{n[i]=e}));return t}},4704:(e,t,n)=>{"use strict";n.d(t,{c:()=>d,k:()=>h});var i=n(4688),r=n(1436);const o=[];let a;function s(e){a=27===e.keyCode}function l(){!0===a&&(a=!1)}function u(e){!0===a&&(a=!1,!0===(0,r.So)(e,27)&&o[o.length-1](e))}function c(e){window[e]("keydown",s),window[e]("blur",l),window[e]("keyup",u),a=!1}function d(e){!0===i.Lp.is.desktop&&(o.push(e),1===o.length&&c("addEventListener"))}function h(e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),0===o.length&&c("removeEventListener"))}},230:(e,t,n)=>{"use strict";n.d(t,{YX:()=>a,fP:()=>u,jd:()=>l,xF:()=>s});let i=[],r=[];function o(e){r=r.filter((t=>t!==e))}function a(e){o(e),r.push(e)}function s(e){o(e),0===r.length&&i.length>0&&(i[i.length-1](),i=[])}function l(e){0===r.length?e():i.push(e)}function u(e){i=i.filter((t=>t!==e))}},8517:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,i:()=>a});var i=n(4688);const r=[];function o(e){r[r.length-1](e)}function a(e){!0===i.Lp.is.desktop&&(r.push(e),1===r.length&&document.body.addEventListener("focusin",o))}function s(e){const t=r.indexOf(e);t>-1&&(r.splice(t,1),0===r.length&&document.body.removeEventListener("focusin",o))}},5578:(e,t,n)=>{"use strict";n.d(t,{Uf:()=>r,tP:()=>o,w6:()=>i});const i={};let r=!1;function o(){r=!0}},9085:(e,t,n)=>{"use strict";function i(e,t,n,i){Object.defineProperty(e,t,{get:n,set:i,enumerable:!0})}function r(e,t){for(const n in t)i(e,n,t[n])}n.d(t,{K:()=>r,g:()=>i})},782:(e,t,n)=>{"use strict";n.d(t,{J_:()=>l,Kn:()=>s,hj:()=>u,xb:()=>a});n(71),n(4406);const i="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer;function a(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let n,s;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(s=n;0!==s--;)if(!0!==a(e[s],t[s]))return!1;return!0}if(!0===i&&e.constructor===Map){if(e.size!==t.size)return!1;s=e.entries().next();while(!0!==s.done){if(!0!==t.has(s.value[0]))return!1;s=s.next()}s=e.entries().next();while(!0!==s.done){if(!0!==a(s.value[1],t.get(s.value[0])))return!1;s=s.next()}return!0}if(!0===r&&e.constructor===Set){if(e.size!==t.size)return!1;s=e.entries().next();while(!0!==s.done){if(!0!==t.has(s.value[0]))return!1;s=s.next()}return!0}if(!0===o&&null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(s=n;0!==s--;)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const l=Object.keys(e).filter((t=>void 0!==e[t]));if(n=l.length,n!==Object.keys(t).filter((e=>void 0!==t[e])).length)return!1;for(s=n;0!==s--;){const n=l[s];if(!0!==a(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function s(e){return null!==e&&"object"===typeof e&&!0!==Array.isArray(e)}function l(e){return"[object Date]"===Object.prototype.toString.call(e)}function u(e){return"number"===typeof e&&isFinite(e)}},1436:(e,t,n)=>{"use strict";n.d(t,{So:()=>a,Wm:()=>o,ZK:()=>r});n(3610);let i=!1;function r(e){i=!0===e.isComposing}function o(e){return!0===i||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function a(e,t){return!0!==o(e)&&[].concat(t).includes(e.keyCode)}},4312:(e,t,n)=>{"use strict";n.d(t,{AH:()=>a,HW:()=>o,S7:()=>s,wN:()=>r});var i=n(7445);const r=[];function o(e){return r.find((t=>null!==t.__qPortalInnerRef.value&&t.__qPortalInnerRef.value.contains(e)))}function a(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return(0,i.Kq)(e)}else if(void 0!==e.__qPortalInnerRef){const n=(0,i.Kq)(e);return void 0!==n&&"QPopupProxy"===n.$options.name?(e.hide(t),n):e}e=(0,i.Kq)(e)}while(void 0!==e&&null!==e)}function s(e,t,n){while(0!==n&&void 0!==e&&null!==e){if(void 0!==e.__qPortalInnerRef){if(n--,"QMenu"===e.$options.name){e=a(e,t);continue}e.hide(t)}e=(0,i.Kq)(e)}}},2657:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,io:()=>l,li:()=>c,wq:()=>p});n(3610);var i=n(8400),r=n(4688);let o,a;function s(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function l(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const u={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function c(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:u[`${n[1]}#${!0===t?"rtl":"ltr"}`]}}function d(e,t){let{top:n,left:i,right:r,bottom:o,width:a,height:s}=e.getBoundingClientRect();return void 0!==t&&(n-=t[1],i-=t[0],o+=t[1],r+=t[0],a+=t[0],s+=t[1]),{top:n,left:i,right:r,bottom:o,width:a,height:s,middle:i+(r-i)/2,center:n+(o-n)/2}}function h(e){return{top:0,center:e.offsetHeight/2,bottom:e.offsetHeight,left:0,middle:e.offsetWidth/2,right:e.offsetWidth}}function p(e){if(!0===r.Lp.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:n}=window.visualViewport;t!==o&&(e.setProperty("--q-pe-left",t+"px"),o=t),n!==a&&(e.setProperty("--q-pe-top",n+"px"),a=n)}let t;const{scrollLeft:n,scrollTop:i}=e.el;if(void 0===e.absoluteOffset)t=d(e.anchorEl,!0===e.cover?[0,0]:e.offset);else{const{top:n,left:i}=e.anchorEl.getBoundingClientRect(),r=n+e.absoluteOffset.top,o=i+e.absoluteOffset.left;t={top:r,left:o,width:1,height:1,right:o+1,center:r,middle:o,bottom:r+1}}let s={maxHeight:e.maxHeight,maxWidth:e.maxWidth,visibility:"visible"};!0!==e.fit&&!0!==e.cover||(s.minWidth=t.width+"px",!0===e.cover&&(s.minHeight=t.height+"px")),Object.assign(e.el.style,s);const l=h(e.el),u={top:t[e.anchorOrigin.vertical]-l[e.selfOrigin.vertical],left:t[e.anchorOrigin.horizontal]-l[e.selfOrigin.horizontal]};f(u,t,l,e.anchorOrigin,e.selfOrigin),s={top:u.top+"px",left:u.left+"px"},void 0!==u.maxHeight&&(s.maxHeight=u.maxHeight+"px",t.height>u.maxHeight&&(s.minHeight=s.maxHeight)),void 0!==u.maxWidth&&(s.maxWidth=u.maxWidth+"px",t.width>u.maxWidth&&(s.minWidth=s.maxWidth)),Object.assign(e.el.style,s),e.el.scrollTop!==i&&(e.el.scrollTop=i),e.el.scrollLeft!==n&&(e.el.scrollLeft=n)}function f(e,t,n,r,o){const a=n.bottom,s=n.right,l=(0,i.np)(),u=window.innerHeight-l,c=document.body.clientWidth;if(e.top<0||e.top+a>u)if("center"===o.vertical)e.top=t[r.vertical]>u/2?Math.max(0,u-a):0,e.maxHeight=Math.min(a,u);else if(t[r.vertical]>u/2){const n=Math.min(u,"center"===r.vertical?t.center:r.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,n),e.top=Math.max(0,n-a)}else e.top=Math.max(0,"center"===r.vertical?t.center:r.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,u-e.top);if(e.left<0||e.left+s>c)if(e.maxWidth=Math.min(s,c),"middle"===o.horizontal)e.left=t[r.horizontal]>c/2?Math.max(0,c-s):0;else if(t[r.horizontal]>c/2){const n=Math.min(c,"middle"===r.horizontal?t.middle:r.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(s,n),e.left=Math.max(0,n-e.maxWidth)}else e.left=Math.max(0,"middle"===r.horizontal?t.middle:r.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(s,c-e.left)}["left","middle","right"].forEach((e=>{u[`${e}#ltr`]=e,u[`${e}#rtl`]=e}))},7657:(e,t,n)=>{"use strict";n.d(t,{Bl:()=>o,Jl:()=>l,KR:()=>r,pf:()=>s,vs:()=>a});var i=n(3673);function r(e,t){return void 0!==e&&e()||t}function o(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function a(e,t){return void 0!==e?t.concat(e()):t}function s(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function l(e,t,n,r,o,a){t.key=r+o;const s=(0,i.h)(e,t,n);return!0===o?(0,i.wy)(s,a()):s}},5811:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});let i=!1;{const e=document.createElement("div"),t=document.createElement("div");e.setAttribute("dir","rtl"),e.style.width="1px",e.style.height="1px",e.style.overflow="auto",t.style.width="1000px",t.style.height="1px",document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,i=e.scrollLeft>=0,e.remove()}},9725:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(4688);function r(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==i.ZP.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}},2547:(e,t,n)=>{"use strict";n.d(t,{Mw:()=>a,Nd:()=>l,Ng:()=>i,YE:()=>o,vh:()=>s,xP:()=>r});const i="_q_",r="_q_t_",o="_q_l_",a="_q_pc_",s="_q_fo_",l="_q_tabs_"},7801:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,n:()=>a});n(71);const i={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},r=Object.keys(i);function o(e){const t={};for(const n of r)!0===e[n]&&(t[n]=!0);return 0===Object.keys(t).length?i:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}function a(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&"INPUT"!==e.target.nodeName.toUpperCase()&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}i.all=!0},7445:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>i,Pf:()=>o,Rb:()=>a});n(71);function i(e){if(Object(e.$parent)===e.$parent)return e.$parent;e=e.$.parent;while(Object(e)===e){if(Object(e.proxy)===e.proxy)return e.proxy;e=e.parent}}function r(e,t){"symbol"===typeof t.type?!0===Array.isArray(t.children)&&t.children.forEach((t=>{r(e,t)})):e.add(t)}function o(e){const t=new Set;return e.forEach((e=>{r(t,e)})),Array.from(t)}function a(e){return void 0!==e.appContext.config.globalProperties.$router}},8400:(e,t,n)=>{"use strict";n.d(t,{OI:()=>s,QA:()=>c,b0:()=>o,np:()=>u,u3:()=>a});n(3610);var i=n(2012);const r=[null,document,document.body,document.scrollingElement,document.documentElement];function o(e,t){let n=(0,i.sb)(t);if(void 0===n){if(void 0===e||null===e)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return r.includes(n)?window:n}function a(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function s(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}let l;function u(){if(void 0!==l)return l;const e=document.createElement("p"),t=document.createElement("div");(0,i.iv)(e,{width:"100%",height:"200px"}),(0,i.iv)(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),l=n-r,l}function c(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"])))}},4398:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(6701);function i(e,t,n=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(n instanceof Element))throw new TypeError("Expected a DOM element");n.style.setProperty(`--q-${e}`,t)}},3317:(e,t,n)=>{"use strict";function i(e,t=250){let n,i=!1;return function(){return!1===i&&(i=!0,setTimeout((()=>{i=!1}),t),n=e.apply(this,arguments)),n}}n.d(t,{Z:()=>i})},9782:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});n(3610);var i=n(4688),r=(n(71),n(2002)),o=n(4716),a=n(9405);const s=["sm","md","lg","xl"],{passive:l}=o.rU,u=(0,r.Z)({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:o.ZT,setDebounce:o.ZT,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const{visualViewport:n}=window,r=n||window,o=document.scrollingElement||document.documentElement,u=void 0===n||!0===i.Lp.is.mobile?()=>[Math.max(window.innerWidth,o.clientWidth),Math.max(window.innerHeight,o.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-o.clientWidth,n.height*n.scale+window.innerHeight-o.clientHeight],c=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=e=>{const[t,n]=u();if(n!==this.height&&(this.height=n),t!==this.width)this.width=t;else if(!0!==e)return;let i=this.sizes;this.gt.xs=t>=i.sm,this.gt.sm=t>=i.md,this.gt.md=t>=i.lg,this.gt.lg=t>=i.xl,this.lt.sm=t<i.sm,this.lt.md=t<i.md,this.lt.lg=t<i.lg,this.lt.xl=t<i.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg,i=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl",i!==this.name&&(!0===c&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${i}`)),this.name=i)};let d,h={},p=16;this.setSizes=e=>{s.forEach((t=>{void 0!==e[t]&&(h[t]=e[t])}))},this.setDebounce=e=>{p=e};const f=()=>{const e=getComputedStyle(document.body);e.getPropertyValue("--q-size-sm")&&s.forEach((t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)})),this.setSizes=e=>{s.forEach((t=>{e[t]&&(this.sizes[t]=e[t])})),this.__update(!0)},this.setDebounce=e=>{void 0!==d&&r.removeEventListener("resize",d,l),d=e>0?(0,a.Z)(this.__update,e):this.__update,r.addEventListener("resize",d,l)},this.setDebounce(p),Object.keys(h).length>0?(this.setSizes(h),h=void 0):this.__update(),!0===c&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===i.uX.value?t.push(f):f()}});n(5363);const c=(0,r.Z)({isActive:!1,mode:!1},{__media:void 0,set(e){c.mode=e,"auto"===e?(void 0===c.__media&&(c.__media=window.matchMedia("(prefers-color-scheme: dark)"),c.__updateMedia=()=>{c.set("auto")},c.__media.addListener(c.__updateMedia)),e=c.__media.matches):void 0!==c.__media&&(c.__media.removeListener(c.__updateMedia),c.__media=void 0),c.isActive=!0===e,document.body.classList.remove("body--"+(!0===e?"light":"dark")),document.body.classList.add("body--"+(!0===e?"dark":"light"))},toggle(){c.set(!1===c.isActive)},install({$q:e,onSSRHydrated:t,ssrContext:n}){const{dark:r}=e.config;if(e.dark=this,!0===this.__installed&&void 0===r)return;this.isActive=!0===r;const o=void 0!==r&&r;if(!0===i.uX.value){const e=e=>{this.__fromSSR=e},n=this.set;this.set=e,e(o),t.push((()=>{this.set=n,this.set(this.__fromSSR)}))}else this.set(o)}}),d=c;var h=n(6583),p=n(9111),f=n(4398),g=n(1436);function v(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function m({is:e,has:t,within:n},i){const r=[!0===e.desktop?"desktop":"mobile",(!1===t.touch?"no-":"")+"touch"];if(!0===e.mobile){const t=v(e);void 0!==t&&r.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;r.push(t),r.push("native-mobile"),!0!==e.ios||void 0!==i[t]&&!1===i[t].iosStatusBarPadding||r.push("q-ios-padding")}else!0===e.electron?r.push("electron"):!0===e.bex&&r.push("bex");return!0===n.iframe&&r.push("within-iframe"),r}function y(){const e=document.body.className;let t=e;void 0!==i.aG&&(t=t.replace("desktop","platform-ios mobile")),!0===i.Lp.has.touch&&(t=t.replace("no-touch","touch")),!0===i.Lp.within.iframe&&(t+=" within-iframe"),e!==t&&(document.body.className=t)}function x(e){for(const t in e)(0,f.Z)(t,e[t])}const _={install(e){if(!0!==this.__installed){if(!0===i.uX.value)y();else{const{$q:t}=e;void 0!==t.config.brand&&x(t.config.brand);const n=m(i.Lp,t.config);document.body.classList.add.apply(document.body.classList,n)}!0===i.Lp.is.ios&&document.body.addEventListener("touchstart",o.ZT),window.addEventListener("keydown",g.ZK,!0)}}};var b=n(9085);const w={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},S=(0,r.Z)({iconMapFn:null,__icons:{}},{set(e,t){const n={...e,rtl:!0===e.rtl};n.set=S.set,Object.assign(S.__icons,n)},install({$q:e,iconSet:t,ssrContext:n}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,(0,b.g)(e,"iconMapFn",(()=>this.iconMapFn),(e=>{this.iconMapFn=e})),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||w)}}),M=S;var C=n(2547),I=n(5578),T=n(782);const k=[i.ZP,_,d,u,h.Z,p.Z,M];function A(e,t){t.forEach((t=>{t.install(e),t.__installed=!0}))}function D(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(C.Ng,n.$q),A(n,k),void 0!==t.components&&Object.values(t.components).forEach((t=>{!0===(0,T.Kn)(t)&&void 0!==t.name&&e.component(t.name,t)})),void 0!==t.directives&&Object.values(t.directives).forEach((t=>{!0===(0,T.Kn)(t)&&void 0!==t.name&&e.directive(t.name,t)})),void 0!==t.plugins&&A(n,Object.values(t.plugins).filter((e=>"function"===typeof e.install&&!1===k.includes(e)))),!0===i.uX.value&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach((e=>{e()})),n.$q.onSSRHydrated=()=>{}})}const L=function(e,t={}){const n={version:"2.7.7"};!1===I.Uf?(void 0!==t.config&&Object.assign(I.w6,t.config),n.config={...I.w6},(0,I.tP)()):n.config=t.config||{},D(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},P={version:"2.7.7",install:L,lang:p.Z,iconSet:M}},392:(e,t,n)=>{var i=n(419),r=n(3353),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a function")}},2722:(e,t,n)=>{var i=n(7593),r=n(3353),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a constructor")}},8248:(e,t,n)=>{var i=n(419),r=String,o=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},2852:(e,t,n)=>{var i=n(854),r=n(1074),o=n(928).f,a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},6412:(e,t,n)=>{"use strict";var i=n(1021).charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},2827:(e,t,n)=>{var i=n(7673),r=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw r("Incorrect invocation")}},7950:(e,t,n)=>{var i=n(776),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not an object")}},6257:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},683:(e,t,n)=>{"use strict";var i,r,o,a=n(6257),s=n(9631),l=n(7358),u=n(419),c=n(776),d=n(7322),h=n(5976),p=n(3353),f=n(1904),g=n(3460),v=n(928).f,m=n(7673),y=n(4945),x=n(6184),_=n(854),b=n(6862),w=n(7624),S=w.enforce,M=w.get,C=l.Int8Array,I=C&&C.prototype,T=l.Uint8ClampedArray,k=T&&T.prototype,A=C&&y(C),D=I&&y(I),L=Object.prototype,P=l.TypeError,O=_("toStringTag"),R=b("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",N=a&&!!x&&"Opera"!==h(l.opera),F=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},V={BigInt64Array:8,BigUint64Array:8},z=function(e){if(!c(e))return!1;var t=h(e);return"DataView"===t||d(B,t)||d(V,t)},q=function(e){var t=y(e);if(c(t)){var n=M(t);return n&&d(n,E)?n[E]:q(t)}},H=function(e){if(!c(e))return!1;var t=h(e);return d(B,t)||d(V,t)},W=function(e){if(H(e))return e;throw P("Target is not a typed array")},G=function(e){if(u(e)&&(!x||m(A,e)))return e;throw P(p(e)+" is not a typed array constructor")},U=function(e,t,n,i){if(s){if(n)for(var r in B){var o=l[r];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(u){}}}D[e]&&!n||g(D,e,n?t:N&&I[e]||t,i)}},j=function(e,t,n){var i,r;if(s){if(x){if(n)for(i in B)if(r=l[i],r&&d(r,e))try{delete r[e]}catch(o){}if(A[e]&&!n)return;try{return g(A,e,n?t:N&&A[e]||t)}catch(o){}}for(i in B)r=l[i],!r||r[e]&&!n||g(r,e,t)}};for(i in B)r=l[i],o=r&&r.prototype,o?S(o)[E]=r:N=!1;for(i in V)r=l[i],o=r&&r.prototype,o&&(S(o)[E]=r);if((!N||!u(A)||A===Function.prototype)&&(A=function(){throw P("Incorrect invocation")},N))for(i in B)l[i]&&x(l[i],A);if((!N||!D||D===L)&&(D=A.prototype,N))for(i in B)l[i]&&x(l[i].prototype,D);if(N&&y(k)!==D&&x(k,D),s&&!d(D,O))for(i in F=!0,v(D,O,{get:function(){return c(this)?this[R]:void 0}}),B)l[i]&&f(l[i],R,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:F&&R,aTypedArray:W,aTypedArrayConstructor:G,exportTypedArrayMethod:U,exportTypedArrayStaticMethod:j,getTypedArrayConstructor:q,isView:z,isTypedArray:H,TypedArray:A,TypedArrayPrototype:D}},62:(e,t,n)=>{"use strict";var i=n(7358),r=n(1890),o=n(9631),a=n(6257),s=n(7961),l=n(1904),u=n(6703),c=n(6400),d=n(2827),h=n(1860),p=n(4068),f=n(833),g=n(8830),v=n(4945),m=n(6184),y=n(1454).f,x=n(928).f,_=n(5786),b=n(5771),w=n(1061),S=n(7624),M=s.PROPER,C=s.CONFIGURABLE,I=S.get,T=S.set,k="ArrayBuffer",A="DataView",D="prototype",L="Wrong length",P="Wrong index",O=i[k],R=O,E=R&&R[D],N=i[A],F=N&&N[D],B=Object.prototype,V=i.Array,z=i.RangeError,q=r(_),H=r([].reverse),W=g.pack,G=g.unpack,U=function(e){return[255&e]},j=function(e){return[255&e,e>>8&255]},Z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},$=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Y=function(e){return W(e,23,4)},X=function(e){return W(e,52,8)},K=function(e,t){x(e[D],t,{get:function(){return I(this)[t]}})},J=function(e,t,n,i){var r=f(n),o=I(e);if(r+t>o.byteLength)throw z(P);var a=I(o.buffer).bytes,s=r+o.byteOffset,l=b(a,s,s+t);return i?l:H(l)},Q=function(e,t,n,i,r,o){var a=f(n),s=I(e);if(a+t>s.byteLength)throw z(P);for(var l=I(s.buffer).bytes,u=a+s.byteOffset,c=i(+r),d=0;d<t;d++)l[u+d]=c[o?d:t-d-1]};if(a){var ee=M&&O.name!==k;if(c((function(){O(1)}))&&c((function(){new O(-1)}))&&!c((function(){return new O,new O(1.5),new O(NaN),ee&&!C})))ee&&C&&l(O,"name",k);else{R=function(e){return d(this,E),new O(f(e))},R[D]=E;for(var te,ne=y(O),ie=0;ne.length>ie;)(te=ne[ie++])in R||l(R,te,O[te]);E.constructor=R}m&&v(F)!==B&&m(F,B);var re=new N(new R(2)),oe=r(F.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||u(F,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else R=function(e){d(this,E);var t=f(e);T(this,{bytes:q(V(t),0),byteLength:t}),o||(this.byteLength=t)},E=R[D],N=function(e,t,n){d(this,F),d(e,E);var i=I(e).byteLength,r=h(t);if(r<0||r>i)throw z("Wrong offset");if(n=void 0===n?i-r:p(n),r+n>i)throw z(L);T(this,{buffer:e,byteLength:n,byteOffset:r}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=r)},F=N[D],o&&(K(R,"byteLength"),K(N,"buffer"),K(N,"byteLength"),K(N,"byteOffset")),u(F,{getInt8:function(e){return J(this,1,e)[0]<<24>>24},getUint8:function(e){return J(this,1,e)[0]},getInt16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=J(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return $(J(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return $(J(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return G(J(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return G(J(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Q(this,1,e,U,t)},setUint8:function(e,t){Q(this,1,e,U,t)},setInt16:function(e,t){Q(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Q(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Q(this,4,e,Z,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Q(this,4,e,Z,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Q(this,4,e,Y,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Q(this,8,e,X,t,arguments.length>2?arguments[2]:void 0)}});w(R,k),w(N,A),e.exports={ArrayBuffer:R,DataView:N}},5786:(e,t,n)=>{"use strict";var i=n(7475),r=n(1801),o=n(6042);e.exports=function(e){var t=i(this),n=o(t),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);while(u>s)t[s++]=e;return t}},2029:(e,t,n)=>{"use strict";var i=n(422),r=n(3577),o=n(7475),a=n(9234),s=n(1558),l=n(7593),u=n(6042),c=n(6496),d=n(2151),h=n(7143),p=Array;e.exports=function(e){var t=o(e),n=l(this),f=arguments.length,g=f>1?arguments[1]:void 0,v=void 0!==g;v&&(g=i(g,f>2?arguments[2]:void 0));var m,y,x,_,b,w,S=h(t),M=0;if(!S||this===p&&s(S))for(m=u(t),y=n?new this(m):p(m);m>M;M++)w=v?g(t[M],M):t[M],c(y,M,w);else for(_=d(t,S),b=_.next,y=n?new this:[];!(x=r(b,_)).done;M++)w=v?a(_,g,[x.value,M],!0):x.value,c(y,M,w);return y.length=M,y}},6963:(e,t,n)=>{var i=n(7120),r=n(1801),o=n(6042),a=function(e){return function(t,n,a){var s,l=i(t),u=o(l),c=r(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},5416:(e,t,n)=>{var i=n(422),r=n(2985),o=n(7475),a=n(6042),s=function(e){var t=1==e;return function(n,s,l){var u,c,d=o(n),h=r(d),p=i(s,l),f=a(h);while(f-- >0)if(u=h[f],c=p(u,f,d),c)switch(e){case 0:return u;case 1:return f}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},2099:(e,t,n)=>{var i=n(422),r=n(1890),o=n(2985),a=n(7475),s=n(6042),l=n(6340),u=r([].push),c=function(e){var t=1==e,n=2==e,r=3==e,c=4==e,d=6==e,h=7==e,p=5==e||d;return function(f,g,v,m){for(var y,x,_=a(f),b=o(_),w=i(g,v),S=s(b),M=0,C=m||l,I=t?C(f,S):n||h?C(f,0):void 0;S>M;M++)if((p||M in b)&&(y=b[M],x=w(y,M,_),e))if(t)I[M]=x;else if(x)switch(e){case 3:return!0;case 5:return y;case 6:return M;case 2:u(I,y)}else switch(e){case 4:return!1;case 7:u(I,y)}return d?-1:r||c?c:I}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},5771:(e,t,n)=>{var i=n(1801),r=n(6042),o=n(6496),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=r(e),u=i(t,l),c=i(void 0===n?l:n,l),d=a(s(c-u,0)),h=0;u<c;u++,h++)o(d,h,e[u]);return d.length=h,d}},6534:(e,t,n)=>{var i=n(5771),r=Math.floor,o=function(e,t){var n=e.length,l=r(n/2);return n<8?a(e,t):s(e,o(i(e,0,l),t),o(i(e,l),t),t)},a=function(e,t){var n,i,r=e.length,o=1;while(o<r){i=o,n=e[o];while(i&&t(e[i-1],n)>0)e[i]=e[--i];i!==o++&&(e[i]=n)}return e},s=function(e,t,n,i){var r=t.length,o=n.length,a=0,s=0;while(a<r||s<o)e[a+s]=a<r&&s<o?i(t[a],n[s])<=0?t[a++]:n[s++]:a<r?t[a++]:n[s++];return e};e.exports=o},330:(e,t,n)=>{var i=n(6894),r=n(7593),o=n(776),a=n(854),s=a("species"),l=Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,r(t)&&(t===l||i(t.prototype))?t=void 0:o(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?l:t}},6340:(e,t,n)=>{var i=n(330);e.exports=function(e,t){return new(i(e))(0===t?0:t)}},9234:(e,t,n)=>{var i=n(7950),r=n(8105);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(a){r(e,"throw",a)}}},8047:(e,t,n)=>{var i=n(854),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},5173:(e,t,n)=>{var i=n(1890),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},5976:(e,t,n)=>{var i=n(5705),r=n(419),o=n(5173),a=n(854),s=a("toStringTag"),l=Object,u="Arguments"==o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=l(e),s))?n:u?o(t):"Object"==(i=o(t))&&r(t.callee)?"Arguments":i}},767:(e,t,n)=>{var i=n(1890),r=Error,o=i("".replace),a=function(e){return String(r(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)while(t--)e=o(e,s,"");return e}},8438:(e,t,n)=>{var i=n(7322),r=n(7764),o=n(2404),a=n(928);e.exports=function(e,t,n){for(var s=r(t),l=a.f,u=o.f,c=0;c<s.length;c++){var d=s[c];i(e,d)||n&&i(n,d)||l(e,d,u(t,d))}}},123:(e,t,n)=>{var i=n(6400);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5912:(e,t,n)=>{"use strict";var i=n(4848).IteratorPrototype,r=n(1074),o=n(5442),a=n(1061),s=n(2184),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=r(i,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},1904:(e,t,n)=>{var i=n(9631),r=n(928),o=n(5442);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},5442:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6496:(e,t,n)=>{"use strict";var i=n(8618),r=n(928),o=n(5442);e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},9468:(e,t,n)=>{var i=n(9843),r=n(928);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},3460:(e,t,n)=>{var i=n(419),r=n(928),o=n(9843),a=n(1615);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(i(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(c){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6703:(e,t,n)=>{var i=n(3460);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},1615:(e,t,n)=>{var i=n(7358),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},8810:(e,t,n)=>{"use strict";var i=n(8934),r=n(3577),o=n(6692),a=n(7961),s=n(419),l=n(5912),u=n(4945),c=n(6184),d=n(1061),h=n(1904),p=n(3460),f=n(854),g=n(2184),v=n(4848),m=a.PROPER,y=a.CONFIGURABLE,x=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,b=f("iterator"),w="keys",S="values",M="entries",C=function(){return this};e.exports=function(e,t,n,a,f,v,I){l(n,t,a);var T,k,A,D=function(e){if(e===f&&E)return E;if(!_&&e in O)return O[e];switch(e){case w:return function(){return new n(this,e)};case S:return function(){return new n(this,e)};case M:return function(){return new n(this,e)}}return function(){return new n(this)}},L=t+" Iterator",P=!1,O=e.prototype,R=O[b]||O["@@iterator"]||f&&O[f],E=!_&&R||D(f),N="Array"==t&&O.entries||R;if(N&&(T=u(N.call(new e)),T!==Object.prototype&&T.next&&(o||u(T)===x||(c?c(T,x):s(T[b])||p(T,b,C)),d(T,L,!0,!0),o&&(g[L]=C))),m&&f==S&&R&&R.name!==S&&(!o&&y?h(O,"name",S):(P=!0,E=function(){return r(R,this)})),f)if(k={values:D(S),keys:v?E:D(w),entries:D(M)},I)for(A in k)(_||P||!(A in O))&&p(O,A,k[A]);else i({target:t,proto:!0,forced:_||P},k);return o&&!I||O[b]===E||p(O,b,E,{name:f}),g[t]=E,k}},9631:(e,t,n)=>{var i=n(6400);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5354:(e,t,n)=>{var i=n(7358),r=n(776),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},4296:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8753:(e,t,n)=>{var i=n(5354),r=i("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},1544:(e,t,n)=>{var i=n(9173),r=i.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},8979:(e,t,n)=>{var i=n(9173);e.exports=/MSIE|Trident/.test(i)},9173:(e,t,n)=>{var i=n(9694);e.exports=i("navigator","userAgent")||""},5068:(e,t,n)=>{var i,r,o=n(7358),a=n(9173),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=c.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),e.exports=r},1513:(e,t,n)=>{var i=n(9173),r=i.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},2875:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6429:(e,t,n)=>{var i=n(6400),r=n(5442);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},8934:(e,t,n)=>{var i=n(7358),r=n(2404).f,o=n(1904),a=n(3460),s=n(1615),l=n(8438),u=n(4389);e.exports=function(e,t){var n,c,d,h,p,f,g=e.target,v=e.global,m=e.stat;if(c=v?i:m?i[g]||s(g,{}):(i[g]||{}).prototype,c)for(d in t){if(p=t[d],e.dontCallGetSet?(f=r(c,d),h=f&&f.value):h=c[d],n=u(v?d:g+(m?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&o(p,"sham",!0),a(c,d,p,e)}}},6400:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},9529:(e,t,n)=>{"use strict";n(7280);var i=n(1890),r=n(3460),o=n(4348),a=n(6400),s=n(854),l=n(1904),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),p=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),f=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!p||!f||n){var g=i(/./[h]),v=t(h,""[e],(function(e,t,n,r,a){var s=i(e),l=t.exec;return l===o||l===c.exec?p&&!a?{done:!0,value:g(t,n,r)}:{done:!0,value:s(n,t,r)}:{done:!1}}));r(String.prototype,e,v[0]),r(c,h,v[1])}d&&l(c[h],"sham",!0)}},4157:(e,t,n)=>{var i=n(8427),r=Function.prototype,o=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},422:(e,t,n)=>{var i=n(1890),r=n(392),o=n(8427),a=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},8427:(e,t,n)=>{var i=n(6400);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3577:(e,t,n)=>{var i=n(8427),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},7961:(e,t,n)=>{var i=n(9631),r=n(7322),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},1890:(e,t,n)=>{var i=n(8427),r=Function.prototype,o=r.bind,a=r.call,s=i&&o.bind(a,a);e.exports=i?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},9694:(e,t,n)=>{var i=n(7358),r=n(419),o=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e]):i[e]&&i[e][t]}},7143:(e,t,n)=>{var i=n(5976),r=n(2344),o=n(2184),a=n(854),s=a("iterator");e.exports=function(e){if(void 0!=e)return r(e,s)||r(e,"@@iterator")||o[i(e)]}},2151:(e,t,n)=>{var i=n(3577),r=n(392),o=n(7950),a=n(3353),s=n(7143),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return o(i(n,e));throw l(a(e)+" is not iterable")}},2344:(e,t,n)=>{var i=n(392);e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},8716:(e,t,n)=>{var i=n(1890),r=n(7475),o=Math.floor,a=i("".charAt),s=i("".replace),l=i("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,d,h){var p=n+e.length,f=i.length,g=c;return void 0!==d&&(d=r(d),g=u),s(h,g,(function(r,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return r;if(c>f){var h=o(c/10);return 0===h?r:h<=f?void 0===i[h-1]?a(s,1):i[h-1]+a(s,1):r}u=i[c-1]}return void 0===u?"":u}))}},7358:(e,t,n)=>{var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},7322:(e,t,n)=>{var i=n(1890),r=n(7475),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},600:e=>{e.exports={}},9970:(e,t,n)=>{var i=n(9694);e.exports=i("document","documentElement")},7021:(e,t,n)=>{var i=n(9631),r=n(6400),o=n(5354);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8830:e=>{var t=Array,n=Math.abs,i=Math.pow,r=Math.floor,o=Math.log,a=Math.LN2,s=function(e,s,l){var u,c,d,h=t(l),p=8*l-s-1,f=(1<<p)-1,g=f>>1,v=23===s?i(2,-24)-i(2,-77):0,m=e<0||0===e&&1/e<0?1:0,y=0;e=n(e),e!=e||e===1/0?(c=e!=e?1:0,u=f):(u=r(o(e)/a),d=i(2,-u),e*d<1&&(u--,d*=2),e+=u+g>=1?v/d:v*i(2,1-g),e*d>=2&&(u++,d/=2),u+g>=f?(c=0,u=f):u+g>=1?(c=(e*d-1)*i(2,s),u+=g):(c=e*i(2,g-1)*i(2,s),u=0));while(s>=8)h[y++]=255&c,c/=256,s-=8;u=u<<s|c,p+=s;while(p>0)h[y++]=255&u,u/=256,p-=8;return h[--y]|=128*m,h},l=function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<<o)-1,s=a>>1,l=o-7,u=r-1,c=e[u--],d=127&c;c>>=7;while(l>0)d=256*d+e[u--],l-=8;n=d&(1<<-l)-1,d>>=-l,l+=t;while(l>0)n=256*n+e[u--],l-=8;if(0===d)d=1-s;else{if(d===a)return n?NaN:c?-1/0:1/0;n+=i(2,t),d-=s}return(c?-1:1)*n*i(2,d-t)};e.exports={pack:s,unpack:l}},2985:(e,t,n)=>{var i=n(1890),r=n(6400),o=n(5173),a=Object,s=i("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},9941:(e,t,n)=>{var i=n(419),r=n(776),o=n(6184);e.exports=function(e,t,n){var a,s;return o&&i(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},3725:(e,t,n)=>{var i=n(1890),r=n(419),o=n(1089),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},5684:(e,t,n)=>{var i=n(776),r=n(1904);e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},7624:(e,t,n)=>{var i,r,o,a=n(9262),s=n(7358),l=n(1890),u=n(776),c=n(1904),d=n(7322),h=n(1089),p=n(203),f=n(600),g="Object already initialized",v=s.TypeError,m=s.WeakMap,y=function(e){return o(e)?r(e):i(e,{})},x=function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(a||h.state){var _=h.state||(h.state=new m),b=l(_.get),w=l(_.has),S=l(_.set);i=function(e,t){if(w(_,e))throw new v(g);return t.facade=e,S(_,e,t),t},r=function(e){return b(_,e)||{}},o=function(e){return w(_,e)}}else{var M=p("state");f[M]=!0,i=function(e,t){if(d(e,M))throw new v(g);return t.facade=e,c(e,M,t),t},r=function(e){return d(e,M)?e[M]:{}},o=function(e){return d(e,M)}}e.exports={set:i,get:r,has:o,enforce:y,getterFor:x}},1558:(e,t,n)=>{var i=n(854),r=n(2184),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},6894:(e,t,n)=>{var i=n(5173);e.exports=Array.isArray||function(e){return"Array"==i(e)}},419:e=>{e.exports=function(e){return"function"==typeof e}},7593:(e,t,n)=>{var i=n(1890),r=n(6400),o=n(419),a=n(5976),s=n(9694),l=n(3725),u=function(){},c=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=i(h.exec),f=!h.exec(u),g=function(e){if(!o(e))return!1;try{return d(u,c,e),!0}catch(t){return!1}},v=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(h,l(e))}catch(t){return!0}};v.sham=!0,e.exports=!d||r((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?v:g},4389:(e,t,n)=>{var i=n(6400),r=n(419),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(r(t)?i(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},2818:(e,t,n)=>{var i=n(776),r=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},776:(e,t,n)=>{var i=n(419);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},6692:e=>{e.exports=!1},410:(e,t,n)=>{var i=n(9694),r=n(419),o=n(7673),a=n(8476),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&o(t.prototype,s(e))}},8105:(e,t,n)=>{var i=n(3577),r=n(7950),o=n(2344);e.exports=function(e,t,n){var a,s;r(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=i(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return r(a),n}},4848:(e,t,n)=>{"use strict";var i,r,o,a=n(6400),s=n(419),l=n(1074),u=n(4945),c=n(3460),d=n(854),h=n(6692),p=d("iterator"),f=!1;[].keys&&(o=[].keys(),"next"in o?(r=u(u(o)),r!==Object.prototype&&(i=r)):f=!0);var g=void 0==i||a((function(){var e={};return i[p].call(e)!==e}));g?i={}:h&&(i=l(i)),s(i[p])||c(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},2184:e=>{e.exports={}},6042:(e,t,n)=>{var i=n(4068);e.exports=function(e){return i(e.length)}},9843:(e,t,n)=>{var i=n(6400),r=n(419),o=n(7322),a=n(9631),s=n(7961).CONFIGURABLE,l=n(3725),u=n(7624),c=u.enforce,d=u.get,h=Object.defineProperty,p=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),f=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&o(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=c(e);return o(i,"source")||(i.source=f.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return r(this)&&d(this).source||l(this)}),"toString")},1243:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},7529:(e,t,n)=>{var i=n(5068),r=n(6400);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},6595:(e,t,n)=>{var i=n(6400),r=n(854),o=n(6692),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},9262:(e,t,n)=>{var i=n(7358),r=n(419),o=n(3725),a=i.WeakMap;e.exports=r(a)&&/native code/.test(o(a))},7598:(e,t,n)=>{var i=n(4481);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},8439:(e,t,n)=>{"use strict";var i=n(9631),r=n(1890),o=n(3577),a=n(6400),s=n(9158),l=n(4199),u=n(5604),c=n(7475),d=n(2985),h=Object.assign,p=Object.defineProperty,f=r([].concat);e.exports=!h||a((function(){if(i&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=h({},e)[n]||s(h({},t)).join("")!=r}))?function(e,t){var n=c(e),r=arguments.length,a=1,h=l.f,p=u.f;while(r>a){var g,v=d(arguments[a++]),m=h?f(s(v),h(v)):s(v),y=m.length,x=0;while(y>x)g=m[x++],i&&!o(p,v,g)||(n[g]=v[g])}return n}:h},1074:(e,t,n)=>{var i,r=n(7950),o=n(3605),a=n(2875),s=n(600),l=n(9970),u=n(5354),c=n(203),d=">",h="<",p="prototype",f="script",g=c("IE_PROTO"),v=function(){},m=function(e){return h+f+d+e+h+"/"+f+d},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},x=function(){var e,t=u("iframe"),n="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},_=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}_="undefined"!=typeof document?document.domain&&i?y(i):x():y(i);var e=a.length;while(e--)delete _[p][a[e]];return _()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[p]=r(e),n=new v,v[p]=null,n[g]=e):n=_(),void 0===t?n:o.f(n,t)}},3605:(e,t,n)=>{var i=n(9631),r=n(5953),o=n(928),a=n(7950),s=n(7120),l=n(9158);t.f=i&&!r?Object.defineProperties:function(e,t){a(e);var n,i=s(t),r=l(t),u=r.length,c=0;while(u>c)o.f(e,n=r[c++],i[n]);return e}},928:(e,t,n)=>{var i=n(9631),r=n(7021),o=n(5953),a=n(7950),s=n(8618),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=i?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=c(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return u(e,t,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2404:(e,t,n)=>{var i=n(9631),r=n(3577),o=n(5604),a=n(5442),s=n(7120),l=n(8618),u=n(7322),c=n(7021),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return a(!r(o.f,e,t),e[t])}},1454:(e,t,n)=>{var i=n(1587),r=n(2875),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},4199:(e,t)=>{t.f=Object.getOwnPropertySymbols},4945:(e,t,n)=>{var i=n(7322),r=n(419),o=n(7475),a=n(203),s=n(123),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},7673:(e,t,n)=>{var i=n(1890);e.exports=i({}.isPrototypeOf)},1587:(e,t,n)=>{var i=n(1890),r=n(7322),o=n(7120),a=n(6963).indexOf,s=n(600),l=i([].push);e.exports=function(e,t){var n,i=o(e),u=0,c=[];for(n in i)!r(s,n)&&r(i,n)&&l(c,n);while(t.length>u)r(i,n=t[u++])&&(~a(c,n)||l(c,n));return c}},9158:(e,t,n)=>{var i=n(1587),r=n(2875);e.exports=Object.keys||function(e){return i(e,r)}},5604:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},6184:(e,t,n)=>{var i=n(1890),r=n(7950),o=n(8248);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),t?e(n,i):n.__proto__=i,n}}():void 0)},9308:(e,t,n)=>{var i=n(3577),r=n(419),o=n(776),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!o(s=i(n,e)))return s;if(r(n=e.valueOf)&&!o(s=i(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!o(s=i(n,e)))return s;throw a("Can't convert object to primitive value")}},7764:(e,t,n)=>{var i=n(9694),r=n(1890),o=n(1454),a=n(4199),s=n(7950),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},4836:(e,t,n)=>{var i=n(928).f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},9395:(e,t,n)=>{var i=n(3577),r=n(7950),o=n(419),a=n(5173),s=n(4348),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=i(n,e,t);return null!==u&&r(u),u}if("RegExp"===a(e))return i(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},4348:(e,t,n)=>{"use strict";var i=n(3577),r=n(1890),o=n(4481),a=n(136),s=n(2351),l=n(1586),u=n(1074),c=n(7624).get,d=n(5337),h=n(1442),p=l("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,v=r("".charAt),m=r("".indexOf),y=r("".replace),x=r("".slice),_=function(){var e=/a/,t=/b*/g;return i(f,e,"a"),i(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),b=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=_||w||b||d||h;S&&(g=function(e){var t,n,r,s,l,d,h,S=this,M=c(S),C=o(e),I=M.raw;if(I)return I.lastIndex=S.lastIndex,t=i(g,I,C),S.lastIndex=I.lastIndex,t;var T=M.groups,k=b&&S.sticky,A=i(a,S),D=S.source,L=0,P=C;if(k&&(A=y(A,"y",""),-1===m(A,"g")&&(A+="g"),P=x(C,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(C,S.lastIndex-1))&&(D="(?: "+D+")",P=" "+P,L++),n=new RegExp("^(?:"+D+")",A)),w&&(n=new RegExp("^"+D+"$(?!\\s)",A)),_&&(r=S.lastIndex),s=i(f,k?n:S,P),k?s?(s.input=x(s.input,L),s[0]=x(s[0],L),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:_&&s&&(S.lastIndex=S.global?s.index+s[0].length:r),w&&s&&s.length>1&&i(p,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&T)for(s.groups=d=u(null),l=0;l<T.length;l++)h=T[l],d[h[0]]=s[h[1]];return s}),e.exports=g},136:(e,t,n)=>{"use strict";var i=n(7950);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},2351:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp,a=i((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=a||i((function(){return!o("a","y").sticky})),l=a||i((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:a}},5337:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp;e.exports=i((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},1442:(e,t,n)=>{var i=n(6400),r=n(7358),o=r.RegExp;e.exports=i((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},7933:e=>{var t=TypeError;e.exports=function(e){if(void 0==e)throw t("Can't call method on "+e);return e}},4114:(e,t,n)=>{"use strict";var i=n(9694),r=n(928),o=n(854),a=n(9631),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},1061:(e,t,n)=>{var i=n(928).f,r=n(7322),o=n(854),a=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,a)&&i(e,a,{configurable:!0,value:t})}},203:(e,t,n)=>{var i=n(1586),r=n(6862),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},1089:(e,t,n)=>{var i=n(7358),r=n(1615),o="__core-js_shared__",a=i[o]||r(o,{});e.exports=a},1586:(e,t,n)=>{var i=n(6692),r=n(1089);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},1021:(e,t,n)=>{var i=n(1890),r=n(1860),o=n(4481),a=n(7933),s=i("".charAt),l=i("".charCodeAt),u=i("".slice),c=function(e){return function(t,n){var i,c,d=o(a(t)),h=r(n),p=d.length;return h<0||h>=p?e?"":void 0:(i=l(d,h),i<55296||i>56319||h+1===p||(c=l(d,h+1))<56320||c>57343?e?s(d,h):i:e?u(d,h,h+2):c-56320+(i-55296<<10)+65536)}};e.exports={codeAt:c(!1),charAt:c(!0)}},5253:(e,t,n)=>{"use strict";var i=n(1890),r=2147483647,o=36,a=1,s=26,l=38,u=700,c=72,d=128,h="-",p=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,g="Overflow: input needs wider integers to process",v=o-a,m=RangeError,y=i(f.exec),x=Math.floor,_=String.fromCharCode,b=i("".charCodeAt),w=i([].join),S=i([].push),M=i("".replace),C=i("".split),I=i("".toLowerCase),T=function(e){var t=[],n=0,i=e.length;while(n<i){var r=b(e,n++);if(r>=55296&&r<=56319&&n<i){var o=b(e,n++);56320==(64512&o)?S(t,((1023&r)<<10)+(1023&o)+65536):(S(t,r),n--)}else S(t,r)}return t},k=function(e){return e+22+75*(e<26)},A=function(e,t,n){var i=0;e=n?x(e/u):e>>1,e+=x(e/t);while(e>v*s>>1)e=x(e/v),i+=o;return x(i+(v+1)*e/(e+l))},D=function(e){var t=[];e=T(e);var n,i,l=e.length,u=d,p=0,f=c;for(n=0;n<e.length;n++)i=e[n],i<128&&S(t,_(i));var v=t.length,y=v;v&&S(t,h);while(y<l){var b=r;for(n=0;n<e.length;n++)i=e[n],i>=u&&i<b&&(b=i);var M=y+1;if(b-u>x((r-p)/M))throw m(g);for(p+=(b-u)*M,u=b,n=0;n<e.length;n++){if(i=e[n],i<u&&++p>r)throw m(g);if(i==u){var C=p,I=o;while(1){var D=I<=f?a:I>=f+s?s:I-f;if(C<D)break;var L=C-D,P=o-D;S(t,_(k(D+L%P))),C=x(L/P),I+=o}S(t,_(k(C))),f=A(p,M,y==v),p=0,y++}}p++,u++}return w(t,"")};e.exports=function(e){var t,n,i=[],r=C(M(I(e),f,"."),".");for(t=0;t<r.length;t++)n=r[t],S(i,y(p,n)?"xn--"+D(n):n);return w(i,".")}},1801:(e,t,n)=>{var i=n(1860),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},5492:(e,t,n)=>{var i=n(2181),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw r("Can't convert number to bigint");return BigInt(t)}},833:(e,t,n)=>{var i=n(1860),r=n(4068),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw o("Wrong length or index");return n}},7120:(e,t,n)=>{var i=n(2985),r=n(7933);e.exports=function(e){return i(r(e))}},1860:(e,t,n)=>{var i=n(1243);e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},4068:(e,t,n)=>{var i=n(1860),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},7475:(e,t,n)=>{var i=n(7933),r=Object;e.exports=function(e){return r(i(e))}},701:(e,t,n)=>{var i=n(1443),r=RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw r("Wrong offset");return n}},1443:(e,t,n)=>{var i=n(1860),r=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw r("The argument can't be less than 0");return t}},2181:(e,t,n)=>{var i=n(3577),r=n(776),o=n(410),a=n(2344),s=n(9308),l=n(854),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8618:(e,t,n)=>{var i=n(2181),r=n(410);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},5705:(e,t,n)=>{var i=n(854),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},4481:(e,t,n)=>{var i=n(5976),r=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},3353:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},6968:(e,t,n)=>{"use strict";var i=n(8934),r=n(7358),o=n(3577),a=n(9631),s=n(8689),l=n(683),u=n(62),c=n(2827),d=n(5442),h=n(1904),p=n(2818),f=n(4068),g=n(833),v=n(701),m=n(8618),y=n(7322),x=n(5976),_=n(776),b=n(410),w=n(1074),S=n(7673),M=n(6184),C=n(1454).f,I=n(9401),T=n(2099).forEach,k=n(4114),A=n(928),D=n(2404),L=n(7624),P=n(9941),O=L.get,R=L.set,E=L.enforce,N=A.f,F=D.f,B=Math.round,V=r.RangeError,z=u.ArrayBuffer,q=z.prototype,H=u.DataView,W=l.NATIVE_ARRAY_BUFFER_VIEWS,G=l.TYPED_ARRAY_TAG,U=l.TypedArray,j=l.TypedArrayPrototype,Z=l.aTypedArrayConstructor,$=l.isTypedArray,Y="BYTES_PER_ELEMENT",X="Wrong length",K=function(e,t){Z(e);var n=0,i=t.length,r=new e(i);while(i>n)r[n]=t[n++];return r},J=function(e,t){N(e,t,{get:function(){return O(this)[t]}})},Q=function(e){var t;return S(q,e)||"ArrayBuffer"==(t=x(e))||"SharedArrayBuffer"==t},ee=function(e,t){return $(e)&&!b(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=m(t),ee(e,t)?d(2,e[t]):F(e,t)},ne=function(e,t,n){return t=m(t),!(ee(e,t)&&_(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};a?(W||(D.f=te,A.f=ne,J(j,"buffer"),J(j,"byteOffset"),J(j,"byteLength"),J(j,"length")),i({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,d="set"+e,p=r[l],m=p,y=m&&m.prototype,x={},b=function(e,t){var n=O(e);return n.view[u](t*a+n.byteOffset,!0)},S=function(e,t,i){var r=O(e);n&&(i=(i=B(i))<0?0:i>255?255:255&i),r.view[d](t*a+r.byteOffset,i,!0)},A=function(e,t){N(e,t,{get:function(){return b(this,t)},set:function(e){return S(this,t,e)},enumerable:!0})};W?s&&(m=t((function(e,t,n,i){return c(e,y),P(function(){return _(t)?Q(t)?void 0!==i?new p(t,v(n,a),i):void 0!==n?new p(t,v(n,a)):new p(t):$(t)?K(m,t):o(I,m,t):new p(g(t))}(),e,m)})),M&&M(m,U),T(C(p),(function(e){e in m||h(m,e,p[e])})),m.prototype=y):(m=t((function(e,t,n,i){c(e,y);var r,s,l,u=0,d=0;if(_(t)){if(!Q(t))return $(t)?K(m,t):o(I,m,t);r=t,d=v(n,a);var h=t.byteLength;if(void 0===i){if(h%a)throw V(X);if(s=h-d,s<0)throw V(X)}else if(s=f(i)*a,s+d>h)throw V(X);l=s/a}else l=g(t),s=l*a,r=new z(s);R(e,{buffer:r,byteOffset:d,byteLength:s,length:l,view:new H(r)});while(u<l)A(e,u++)})),M&&M(m,U),y=m.prototype=w(j)),y.constructor!==m&&h(y,"constructor",m),E(y).TypedArrayConstructor=m,G&&h(y,G,l);var D=m!=p;x[l]=m,i({global:!0,constructor:!0,forced:D,sham:!W},x),Y in m||h(m,Y,a),Y in y||h(y,Y,a),k(l)}):e.exports=function(){}},8689:(e,t,n)=>{var i=n(7358),r=n(6400),o=n(8047),a=n(683).NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;e.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},9401:(e,t,n)=>{var i=n(422),r=n(3577),o=n(2722),a=n(7475),s=n(6042),l=n(2151),u=n(7143),c=n(1558),d=n(683).aTypedArrayConstructor;e.exports=function(e){var t,n,h,p,f,g,v=o(this),m=a(e),y=arguments.length,x=y>1?arguments[1]:void 0,_=void 0!==x,b=u(m);if(b&&!c(b)){f=l(m,b),g=f.next,m=[];while(!(p=r(g,f)).done)m.push(p.value)}for(_&&y>2&&(x=i(x,arguments[2])),n=s(m),h=new(d(v))(n),t=0;n>t;t++)h[t]=_?x(m[t],t):m[t];return h}},6862:(e,t,n)=>{var i=n(1890),r=0,o=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+o,36)}},8476:(e,t,n)=>{var i=n(7529);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5953:(e,t,n)=>{var i=n(9631),r=n(6400);e.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6596:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},854:(e,t,n)=>{var i=n(7358),r=n(1586),o=n(7322),a=n(6862),s=n(7529),l=n(8476),u=r("wks"),c=i.Symbol,d=c&&c["for"],h=l?c:c&&c.withoutSetter||a;e.exports=function(e){if(!o(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&o(c,e)?u[e]=c[e]:u[e]=l&&d?d(t):h(t)}return u[e]}},7971:(e,t,n)=>{"use strict";var i=n(9694),r=n(7322),o=n(1904),a=n(7673),s=n(6184),l=n(8438),u=n(4836),c=n(9941),d=n(7598),h=n(5684),p=n(767),f=n(6429),g=n(9631),v=n(6692);e.exports=function(e,t,n,m){var y="stackTraceLimit",x=m?2:1,_=e.split("."),b=_[_.length-1],w=i.apply(null,_);if(w){var S=w.prototype;if(!v&&r(S,"cause")&&delete S.cause,!n)return w;var M=i("Error"),C=t((function(e,t){var n=d(m?t:e,void 0),i=m?new w(e):new w;return void 0!==n&&o(i,"message",n),f&&o(i,"stack",p(i.stack,2)),this&&a(S,this)&&c(i,this,C),arguments.length>x&&h(i,arguments[x]),i}));if(C.prototype=S,"Error"!==b?s?s(C,M):l(C,M,{name:!0}):g&&y in w&&(u(C,w,y),u(C,w,"prepareStackTrace")),l(C,w),!v)try{S.name!==b&&o(S,"name",b),S.constructor=C}catch(I){}return C}}},3610:(e,t,n)=>{"use strict";var i=n(8934),r=n(6963).includes,o=n(6400),a=n(2852),s=o((function(){return!Array(1).includes()}));i({target:"Array",proto:!0,forced:s},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6843:(e,t,n)=>{"use strict";var i=n(7120),r=n(2852),o=n(2184),a=n(7624),s=n(928).f,l=n(8810),u=n(6692),c=n(9631),d="Array Iterator",h=a.set,p=a.getterFor(d);e.exports=l(Array,"Array",(function(e,t){h(this,{type:d,target:i(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");var f=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!u&&c&&"values"!==f.name)try{s(f,"name",{value:"values"})}catch(g){}},6701:(e,t,n)=>{var i=n(8934),r=n(7358),o=n(4157),a=n(7971),s="WebAssembly",l=r[s],u=7!==Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=a(e,t,u),i({global:!0,constructor:!0,arity:1,forced:u},n)},d=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,u),i({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},7280:(e,t,n)=>{"use strict";var i=n(8934),r=n(4348);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},4406:(e,t,n)=>{var i=n(7358),r=n(9631),o=n(9468),a=n(136),s=n(6400),l=i.RegExp,u=l.prototype,c=r&&s((function(){var e=!0;try{l(".","d")}catch(c){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",r=function(e,i){Object.defineProperty(t,e,{get:function(){return n+=i,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)r(a,o[a]);var s=Object.getOwnPropertyDescriptor(u,"flags").get.call(t);return s!==i||n!==i}));c&&o(u,"flags",{configurable:!0,get:a})},839:(e,t,n)=>{"use strict";var i=n(1021).charAt,r=n(4481),o=n(7624),a=n(8810),s="String Iterator",l=o.set,u=o.getterFor(s);a(String,"String",(function(e){l(this,{type:s,string:r(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},5363:(e,t,n)=>{"use strict";var i=n(4157),r=n(3577),o=n(1890),a=n(9529),s=n(6400),l=n(7950),u=n(419),c=n(1860),d=n(4068),h=n(4481),p=n(7933),f=n(6412),g=n(2344),v=n(8716),m=n(9395),y=n(854),x=y("replace"),_=Math.max,b=Math.min,w=o([].concat),S=o([].push),M=o("".indexOf),C=o("".slice),I=function(e){return void 0===e?e:String(e)},T=function(){return"$0"==="a".replace(/./,"$0")}(),k=function(){return!!/./[x]&&""===/./[x]("a","$0")}(),A=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));a("replace",(function(e,t,n){var o=k?"$":"$0";return[function(e,n){var i=p(this),o=void 0==e?void 0:g(e,x);return o?r(o,e,i,n):r(t,h(i),e,n)},function(e,r){var a=l(this),s=h(e);if("string"==typeof r&&-1===M(r,o)&&-1===M(r,"$<")){var p=n(t,a,s,r);if(p.done)return p.value}var g=u(r);g||(r=h(r));var y=a.global;if(y){var x=a.unicode;a.lastIndex=0}var T=[];while(1){var k=m(a,s);if(null===k)break;if(S(T,k),!y)break;var A=h(k[0]);""===A&&(a.lastIndex=f(s,d(a.lastIndex),x))}for(var D="",L=0,P=0;P<T.length;P++){k=T[P];for(var O=h(k[0]),R=_(b(c(k.index),s.length),0),E=[],N=1;N<k.length;N++)S(E,I(k[N]));var F=k.groups;if(g){var B=w([O],E,R,s);void 0!==F&&S(B,F);var V=h(i(r,void 0,B))}else V=v(O,s,R,E,F,r);R>=L&&(D+=C(s,L,R)+V,L=R+O.length)}return D+C(s,L)}]}),!A||!T||k)},5123:(e,t,n)=>{"use strict";var i=n(683),r=n(6042),o=n(1860),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("at",(function(e){var t=a(this),n=r(t),i=o(e),s=i>=0?i:n+i;return s<0||s>=n?void 0:t[s]}))},8836:(e,t,n)=>{"use strict";var i=n(683),r=n(5786),o=n(5492),a=n(5976),s=n(3577),l=n(1890),u=n(6400),c=i.aTypedArray,d=i.exportTypedArrayMethod,h=l("".slice),p=u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));d("fill",(function(e){var t=arguments.length;c(this);var n="Big"===h(a(this),0,3)?o(e):+e;return s(r,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),p)},7648:(e,t,n)=>{"use strict";var i=n(683),r=n(5416).findLastIndex,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLastIndex",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},4331:(e,t,n)=>{"use strict";var i=n(683),r=n(5416).findLast,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLast",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)}))},8685:(e,t,n)=>{"use strict";var i=n(7358),r=n(3577),o=n(683),a=n(6042),s=n(701),l=n(7475),u=n(6400),c=i.RangeError,d=i.Int8Array,h=d&&d.prototype,p=h&&h.set,f=o.aTypedArray,g=o.exportTypedArrayMethod,v=!u((function(){var e=new Uint8ClampedArray(2);return r(p,e,{length:1,0:3},1),3!==e[1]})),m=v&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){f(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(v)return r(p,this,n,t);var i=this.length,o=a(n),u=0;if(o+t>i)throw c("Wrong length");while(u<o)this[t+u]=n[u++]}),!v||m)},2396:(e,t,n)=>{"use strict";var i=n(7358),r=n(1890),o=n(6400),a=n(392),s=n(6534),l=n(683),u=n(1544),c=n(8979),d=n(5068),h=n(1513),p=l.aTypedArray,f=l.exportTypedArrayMethod,g=i.Uint16Array,v=g&&r(g.prototype.sort),m=!!v&&!(o((function(){v(new g(2),null)}))&&o((function(){v(new g(2),{})}))),y=!!v&&!o((function(){if(d)return d<74;if(u)return u<67;if(c)return!0;if(h)return h<602;var e,t,n=new g(516),i=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,i[e]=e-2*t+3;for(v(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==i[e])return!0})),x=function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}};f("sort",(function(e){return void 0!==e&&a(e),y?v(this,e):s(p(this),x(e))}),!y||m)},6105:(e,t,n)=>{var i=n(6968);i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},2773:(e,t,n)=>{n(7648)},9802:(e,t,n)=>{n(4331)},71:(e,t,n)=>{var i=n(7358),r=n(4296),o=n(8753),a=n(6843),s=n(1904),l=n(854),u=l("iterator"),c=l("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(i){e[u]=d}if(e[c]||s(e,c,t),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(i){e[n]=a[n]}}};for(var p in r)h(i[p]&&i[p].prototype,p);h(o,"DOMTokenList")},1999:(e,t,n)=>{"use strict";n(6843);var i=n(8934),r=n(7358),o=n(3577),a=n(1890),s=n(9631),l=n(6595),u=n(3460),c=n(6703),d=n(1061),h=n(5912),p=n(7624),f=n(2827),g=n(419),v=n(7322),m=n(422),y=n(5976),x=n(7950),_=n(776),b=n(4481),w=n(1074),S=n(5442),M=n(2151),C=n(7143),I=n(6596),T=n(854),k=n(6534),A=T("iterator"),D="URLSearchParams",L=D+"Iterator",P=p.set,O=p.getterFor(D),R=p.getterFor(L),E=Object.getOwnPropertyDescriptor,N=function(e){if(!s)return r[e];var t=E(r,e);return t&&t.value},F=N("fetch"),B=N("Request"),V=N("Headers"),z=B&&B.prototype,q=V&&V.prototype,H=r.RegExp,W=r.TypeError,G=r.decodeURIComponent,U=r.encodeURIComponent,j=a("".charAt),Z=a([].join),$=a([].push),Y=a("".replace),X=a([].shift),K=a([].splice),J=a("".split),Q=a("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=H("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return G(e)}catch(t){return e}},re=function(e){var t=Y(e,ee," "),n=4;try{return G(t)}catch(i){while(n)t=Y(t,ne(n--),ie);return t}},oe=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ae[e]},le=function(e){return Y(U(e),oe,se)},ue=h((function(e,t){P(this,{type:L,iterator:M(O(e).entries),kind:t})}),"Iterator",(function(){var e=R(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===j(e,0)?Q(e,1):e:b(e)))};ce.prototype={type:D,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,a,s,l,u=C(e);if(u){t=M(e,u),n=t.next;while(!(i=o(n,t)).done){if(r=M(x(i.value)),a=r.next,(s=o(a,r)).done||(l=o(a,r)).done||!o(a,r).done)throw W("Expected sequence with length 2");$(this.entries,{key:b(s.value),value:b(l.value)})}}else for(var c in e)v(e,c)&&$(this.entries,{key:c,value:b(e[c])})},parseQuery:function(e){if(e){var t,n,i=J(e,"&"),r=0;while(r<i.length)t=i[r++],t.length&&(n=J(t,"="),$(this.entries,{key:re(X(n)),value:re(Z(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],i=0;while(i<t.length)e=t[i++],$(n,le(e.key)+"="+le(e.value));return Z(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var de=function(){f(this,he);var e=arguments.length>0?arguments[0]:void 0;P(this,new ce(e))},he=de.prototype;if(c(he,{append:function(e,t){I(arguments.length,2);var n=O(this);$(n.entries,{key:b(e),value:b(t)}),n.updateURL()},delete:function(e){I(arguments.length,1);var t=O(this),n=t.entries,i=b(e),r=0;while(r<n.length)n[r].key===i?K(n,r,1):r++;t.updateURL()},get:function(e){I(arguments.length,1);for(var t=O(this).entries,n=b(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){I(arguments.length,1);for(var t=O(this).entries,n=b(e),i=[],r=0;r<t.length;r++)t[r].key===n&&$(i,t[r].value);return i},has:function(e){I(arguments.length,1);var t=O(this).entries,n=b(e),i=0;while(i<t.length)if(t[i++].key===n)return!0;return!1},set:function(e,t){I(arguments.length,1);for(var n,i=O(this),r=i.entries,o=!1,a=b(e),s=b(t),l=0;l<r.length;l++)n=r[l],n.key===a&&(o?K(r,l--,1):(o=!0,n.value=s));o||$(r,{key:a,value:s}),i.updateURL()},sort:function(){var e=O(this);k(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=O(this).entries,i=m(e,arguments.length>1?arguments[1]:void 0),r=0;while(r<n.length)t=n[r++],i(t.value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),u(he,A,he.entries,{name:"entries"}),u(he,"toString",(function(){return O(this).serialize()}),{enumerable:!0}),d(de,D),i({global:!0,constructor:!0,forced:!l},{URLSearchParams:de}),!l&&g(V)){var pe=a(q.has),fe=a(q.set),ge=function(e){if(_(e)){var t,n=e.body;if(y(n)===D)return t=e.headers?new V(e.headers):new V,pe(t,"content-type")||fe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(e,{body:S(0,b(n)),headers:S(0,t)})}return e};if(g(F)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?ge(arguments[1]):{})}}),g(B)){var ve=function(e){return f(this,z),new B(e,arguments.length>1?ge(arguments[1]):{})};z.constructor=ve,ve.prototype=z,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:de,getState:O}},6016:(e,t,n)=>{n(1999)},6295:(e,t,n)=>{"use strict";n(839);var i,r=n(8934),o=n(9631),a=n(6595),s=n(7358),l=n(422),u=n(1890),c=n(3460),d=n(9468),h=n(2827),p=n(7322),f=n(8439),g=n(2029),v=n(5771),m=n(1021).codeAt,y=n(5253),x=n(4481),_=n(1061),b=n(6596),w=n(1999),S=n(7624),M=S.set,C=S.getterFor("URL"),I=w.URLSearchParams,T=w.getState,k=s.URL,A=s.TypeError,D=s.parseInt,L=Math.floor,P=Math.pow,O=u("".charAt),R=u(/./.exec),E=u([].join),N=u(1..toString),F=u([].pop),B=u([].push),V=u("".replace),z=u([].shift),q=u("".split),H=u("".slice),W=u("".toLowerCase),G=u([].unshift),U="Invalid authority",j="Invalid scheme",Z="Invalid host",$="Invalid port",Y=/[a-z]/i,X=/[\d+-.a-z]/i,K=/\d/,J=/^0x/i,Q=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ie=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ae=function(e){var t,n,i,r,o,a,s,l=q(e,".");if(l.length&&""==l[l.length-1]&&l.length--,t=l.length,t>4)return e;for(n=[],i=0;i<t;i++){if(r=l[i],""==r)return e;if(o=10,r.length>1&&"0"==O(r,0)&&(o=R(J,r)?16:8,r=H(r,8==o?1:2)),""===r)a=0;else{if(!R(10==o?ee:8==o?Q:te,r))return e;a=D(r,o)}B(n,a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=P(256,5-t))return null}else if(a>255)return null;for(s=F(n),i=0;i<n.length;i++)s+=n[i]*P(256,3-i);return s},se=function(e){var t,n,i,r,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,h=function(){return O(e,d)};if(":"==h()){if(":"!=O(e,1))return;d+=2,u++,c=u}while(h()){if(8==u)return;if(":"!=h()){t=n=0;while(n<4&&R(te,h()))t=16*t+D(h(),16),d++,n++;if("."==h()){if(0==n)return;if(d-=n,u>6)return;i=0;while(h()){if(r=null,i>0){if(!("."==h()&&i<4))return;d++}if(!R(K,h()))return;while(R(K,h())){if(o=D(h(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;d++}l[u]=256*l[u]+r,i++,2!=i&&4!=i||u++}if(4!=i)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[u++]=t}else{if(null!==c)return;d++,u++,c=u}}if(null!==c){a=u-c,u=7;while(0!=u&&a>0)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s}else if(8!=u)return;return l},le=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t},ue=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)G(t,e%256),e=L(e/256);return E(t,".")}if("object"==typeof e){for(t="",i=le(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=N(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ce={},de=f({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),he=f({},de,{"#":1,"?":1,"{":1,"}":1}),pe=f({},he,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=m(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},ge={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var n;return 2==e.length&&R(Y,O(e,0))&&(":"==(n=O(e,1))||!t&&"|"==n)},me=function(e){var t;return e.length>1&&ve(H(e,0,2))&&(2==e.length||"/"===(t=O(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===W(e)},xe=function(e){return e=W(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},_e={},be={},we={},Se={},Me={},Ce={},Ie={},Te={},ke={},Ae={},De={},Le={},Pe={},Oe={},Re={},Ee={},Ne={},Fe={},Be={},Ve={},ze={},qe=function(e,t,n){var i,r,o,a=x(e);if(t){if(r=this.parse(a),r)throw A(r);this.searchParams=null}else{if(void 0!==n&&(i=new qe(n,!0)),r=this.parse(a,null,i),r)throw A(r);o=T(new I),o.bindURL(this),this.searchParams=o}};qe.prototype={type:"URL",parse:function(e,t,n){var r,o,a,s,l=this,u=t||_e,c=0,d="",h=!1,f=!1,m=!1;e=x(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=V(e,re,"")),e=V(e,oe,""),r=g(e);while(c<=r.length){switch(o=r[c],u){case _e:if(!o||!R(Y,o)){if(t)return j;u=we;continue}d+=W(o),u=be;break;case be:if(o&&(R(X,o)||"+"==o||"-"==o||"."==o))d+=W(o);else{if(":"!=o){if(t)return j;d="",u=we,c=0;continue}if(t&&(l.isSpecial()!=p(ge,d)||"file"==d&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=d,t)return void(l.isSpecial()&&ge[l.scheme]==l.port&&(l.port=null));d="","file"==l.scheme?u=Oe:l.isSpecial()&&n&&n.scheme==l.scheme?u=Se:l.isSpecial()?u=Te:"/"==r[c+1]?(u=Me,c++):(l.cannotBeABaseURL=!0,B(l.path,""),u=Be)}break;case we:if(!n||n.cannotBeABaseURL&&"#"!=o)return j;if(n.cannotBeABaseURL&&"#"==o){l.scheme=n.scheme,l.path=v(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=ze;break}u="file"==n.scheme?Oe:Ce;continue;case Se:if("/"!=o||"/"!=r[c+1]){u=Ce;continue}u=ke,c++;break;case Me:if("/"==o){u=Ae;break}u=Fe;continue;case Ce:if(l.scheme=n.scheme,o==i)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query=n.query;else if("/"==o||"\\"==o&&l.isSpecial())u=Ie;else if("?"==o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query="",u=Ve;else{if("#"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.path.length--,u=Fe;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query=n.query,l.fragment="",u=ze}break;case Ie:if(!l.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=Fe;continue}u=Ae}else u=ke;break;case Te:if(u=ke,"/"!=o||"/"!=O(d,c+1))continue;c++;break;case ke:if("/"!=o&&"\\"!=o){u=Ae;continue}break;case Ae:if("@"==o){h&&(d="%40"+d),h=!0,a=g(d);for(var y=0;y<a.length;y++){var _=a[y];if(":"!=_||m){var b=fe(_,pe);m?l.password+=b:l.username+=b}else m=!0}d=""}else if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(h&&""==d)return U;c-=g(d).length+1,d="",u=De}else d+=o;break;case De:case Le:if(t&&"file"==l.scheme){u=Ee;continue}if(":"!=o||f){if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(l.isSpecial()&&""==d)return Z;if(t&&""==d&&(l.includesCredentials()||null!==l.port))return;if(s=l.parseHost(d),s)return s;if(d="",u=Ne,t)return;continue}"["==o?f=!0:"]"==o&&(f=!1),d+=o}else{if(""==d)return Z;if(s=l.parseHost(d),s)return s;if(d="",u=Pe,t==Le)return}break;case Pe:if(!R(K,o)){if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()||t){if(""!=d){var w=D(d,10);if(w>65535)return $;l.port=l.isSpecial()&&w===ge[l.scheme]?null:w,d=""}if(t)return;u=Ne;continue}return $}d+=o;break;case Oe:if(l.scheme="file","/"==o||"\\"==o)u=Re;else{if(!n||"file"!=n.scheme){u=Fe;continue}if(o==i)l.host=n.host,l.path=v(n.path),l.query=n.query;else if("?"==o)l.host=n.host,l.path=v(n.path),l.query="",u=Ve;else{if("#"!=o){me(E(v(r,c),""))||(l.host=n.host,l.path=v(n.path),l.shortenPath()),u=Fe;continue}l.host=n.host,l.path=v(n.path),l.query=n.query,l.fragment="",u=ze}}break;case Re:if("/"==o||"\\"==o){u=Ee;break}n&&"file"==n.scheme&&!me(E(v(r,c),""))&&(ve(n.path[0],!0)?B(l.path,n.path[0]):l.host=n.host),u=Fe;continue;case Ee:if(o==i||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&ve(d))u=Fe;else if(""==d){if(l.host="",t)return;u=Ne}else{if(s=l.parseHost(d),s)return s;if("localhost"==l.host&&(l.host=""),t)return;d="",u=Ne}continue}d+=o;break;case Ne:if(l.isSpecial()){if(u=Fe,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=i&&(u=Fe,"/"!=o))continue}else l.fragment="",u=ze;else l.query="",u=Ve;break;case Fe:if(o==i||"/"==o||"\\"==o&&l.isSpecial()||!t&&("?"==o||"#"==o)){if(xe(d)?(l.shortenPath(),"/"==o||"\\"==o&&l.isSpecial()||B(l.path,"")):ye(d)?"/"==o||"\\"==o&&l.isSpecial()||B(l.path,""):("file"==l.scheme&&!l.path.length&&ve(d)&&(l.host&&(l.host=""),d=O(d,0)+":"),B(l.path,d)),d="","file"==l.scheme&&(o==i||"?"==o||"#"==o))while(l.path.length>1&&""===l.path[0])z(l.path);"?"==o?(l.query="",u=Ve):"#"==o&&(l.fragment="",u=ze)}else d+=fe(o,he);break;case Be:"?"==o?(l.query="",u=Ve):"#"==o?(l.fragment="",u=ze):o!=i&&(l.path[0]+=fe(o,ce));break;case Ve:t||"#"!=o?o!=i&&("'"==o&&l.isSpecial()?l.query+="%27":l.query+="#"==o?"%23":fe(o,ce)):(l.fragment="",u=ze);break;case ze:o!=i&&(l.fragment+=fe(o,de));break}c++}},parseHost:function(e){var t,n,i;if("["==O(e,0)){if("]"!=O(e,e.length-1))return Z;if(t=se(H(e,1,-1)),!t)return Z;this.host=t}else if(this.isSpecial()){if(e=y(e),R(ne,e))return Z;if(t=ae(e),null===t)return Z;this.host=t}else{if(R(ie,e))return Z;for(t="",n=g(e),i=0;i<n.length;i++)t+=fe(n[i],ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(ge,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&ve(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==r?(u+="//",e.includesCredentials()&&(u+=n+(i?":"+i:"")+"@"),u+=ue(r),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+E(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw A(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new He(e.path[0]).origin}catch(n){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ue(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(x(e)+":",_e)},getUsername:function(){return this.username},setUsername:function(e){var t=g(x(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=fe(t[n],pe)}},getPassword:function(){return this.password},setPassword:function(e){var t=g(x(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=fe(t[n],pe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ue(e):ue(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,De)},getHostname:function(){var e=this.host;return null===e?"":ue(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Le)},getPort:function(){var e=this.port;return null===e?"":x(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=x(e),""==e?this.port=null:this.parse(e,Pe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+E(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ne))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=x(e),""==e?this.query=null:("?"==O(e,0)&&(e=H(e,1)),this.query="",this.parse(e,Ve)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=x(e),""!=e?("#"==O(e,0)&&(e=H(e,1)),this.fragment="",this.parse(e,ze)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var He=function(e){var t=h(this,We),n=b(arguments.length,1)>1?arguments[1]:void 0,i=M(t,new qe(e,!1,n));o||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},We=He.prototype,Ge=function(e,t){return{get:function(){return C(this)[e]()},set:t&&function(e){return C(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(We,"href",Ge("serialize","setHref")),d(We,"origin",Ge("getOrigin")),d(We,"protocol",Ge("getProtocol","setProtocol")),d(We,"username",Ge("getUsername","setUsername")),d(We,"password",Ge("getPassword","setPassword")),d(We,"host",Ge("getHost","setHost")),d(We,"hostname",Ge("getHostname","setHostname")),d(We,"port",Ge("getPort","setPort")),d(We,"pathname",Ge("getPathname","setPathname")),d(We,"search",Ge("getSearch","setSearch")),d(We,"searchParams",Ge("getSearchParams")),d(We,"hash",Ge("getHash","setHash"))),c(We,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),c(We,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),k){var Ue=k.createObjectURL,je=k.revokeObjectURL;Ue&&c(He,"createObjectURL",l(Ue,k)),je&&c(He,"revokeObjectURL",l(je,k))}_(He,"URL"),r({global:!0,constructor:!0,forced:!a,sham:!o},{URL:He})},7965:(e,t,n)=>{n(6295)},2256:(e,t,n)=>{"use strict";n.d(t,{S1:()=>Tw});var i={};n.r(i),n.d(i,{Arc:()=>Jm,BezierCurve:()=>Ym,BoundingRect:()=>oo,Circle:()=>lm,CompoundPath:()=>ey,Ellipse:()=>dm,Group:()=>Lo,Image:()=>iu,IncrementalDisplayable:()=>gy,Line:()=>Gm,LinearGradient:()=>ry,OrientedBoundingRect:()=>hy,Path:()=>Yl,Point:()=>Yr,Polygon:()=>Fm,Polyline:()=>zm,RadialGradient:()=>ay,Rect:()=>hu,Ring:()=>Pm,Sector:()=>Am,Text:()=>Du,applyTransform:()=>Oy,clipPointsByRect:()=>By,clipRectByRect:()=>Vy,createIcon:()=>zy,extendPath:()=>by,extendShape:()=>xy,getShapeClass:()=>Sy,getTransform:()=>Py,groupTransition:()=>Fy,initProps:()=>Kc,isElementRemoved:()=>Jc,lineLineIntersect:()=>Hy,linePolygonIntersect:()=>qy,makeImage:()=>Cy,makePath:()=>My,mergePath:()=>Ty,registerShape:()=>wy,removeElement:()=>Qc,removeElementWithFadeOut:()=>td,resizePath:()=>ky,setTooltipConfig:()=>Uy,subPixelOptimize:()=>Ly,subPixelOptimizeLine:()=>Ay,subPixelOptimizeRect:()=>Dy,transformDirection:()=>Ry,traverseElements:()=>Zy,updateProps:()=>Xc});
/*! *****************************************************************************
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 r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var a=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),s=function(){function e(){this.browser=new a,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),l=new s;function u(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(l.wxa=!0,l.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?l.worker=!0:"undefined"===typeof navigator?(l.node=!0,l.svgSupported=!0):u(navigator.userAgent,l);const c=l;var d=12,h="sans-serif",p=d+"px "+h,f=20,g=100,v="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function m(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),r=(e.charCodeAt(n)-f)/g;t[i]=r}return t}var y=m(v),x={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,i){if(!e){var r=x.createCanvas();e=r&&r.getContext("2d")}if(e)return t!==i&&(t=e.font=i||p),e.measureText(n);n=n||"",i=i||p;var o=/^([0-9]*?)px$/.exec(i),a=+(o&&o[1])||d,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=y[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i}};var _=U(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),b=U(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),w=Object.prototype.toString,S=Array.prototype,M=S.forEach,C=S.filter,I=S.slice,T=S.map,k=function(){}.constructor,A=k?k.prototype:null,D="__proto__",L=2311;function P(){return L++}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!==typeof console&&console.error.apply(console,e)}function R(e){if(null==e||"object"!==typeof e)return e;var t=e,n=w.call(e);if("[object Array]"===n){if(!_e(e)){t=[];for(var i=0,r=e.length;i<r;i++)t[i]=R(e[i])}}else if(b[n]){if(!_e(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(i=0,r=e.length;i<r;i++)t[i]=e[i]}}}else if(!_[n]&&!_e(e)&&!ae(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==D&&(t[a]=R(e[a]));return t}function E(e,t,n){if(!ie(t)||!ie(e))return n?R(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==D){var r=e[i],o=t[i];!ie(o)||!ie(r)||J(o)||J(r)||ae(o)||ae(r)||re(o)||re(r)||_e(o)||_e(r)?!n&&i in e||(e[i]=R(t[i])):E(r,o,n)}return e}function N(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=E(n,e[i],t);return n}function F(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==D&&(e[n]=t[n]);return e}function B(e,t,n){for(var i=$(t),r=0;r<i.length;r++){var o=i[r];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}x.createCanvas;function V(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function z(e,t){var n=e.prototype;function i(){}for(var r in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t}function q(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else B(e,t,n)}function H(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function W(e,t,n){if(e&&t)if(e.forEach&&e.forEach===M)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function G(e,t,n){if(!e)return[];if(!t)return fe(e);if(e.map&&e.map===T)return e.map(t,n);for(var i=[],r=0,o=e.length;r<o;r++)i.push(t.call(n,e[r],r,e));return i}function U(e,t,n,i){if(e&&t){for(var r=0,o=e.length;r<o;r++)n=t.call(i,n,e[r],r,e);return n}}function j(e,t,n){if(!e)return[];if(!t)return fe(e);if(e.filter&&e.filter===C)return e.filter(t,n);for(var i=[],r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}function Z(e,t,n){if(e&&t)for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]}function $(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Y(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(I.call(arguments)))}}var X=A&&Q(A.bind)?A.call.bind(A.bind):Y;function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(I.call(arguments)))}}function J(e){return Array.isArray?Array.isArray(e):"[object Array]"===w.call(e)}function Q(e){return"function"===typeof e}function ee(e){return"string"===typeof e}function te(e){return"[object String]"===w.call(e)}function ne(e){return"number"===typeof e}function ie(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function re(e){return!!_[w.call(e)]}function oe(e){return!!b[w.call(e)]}function ae(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function se(e){return null!=e.colorStops}function le(e){return null!=e.image}function ue(e){return"[object RegExp]"===w.call(e)}function ce(e){return e!==e}function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e.length;n<i;n++)if(null!=e[n])return e[n]}function he(e,t){return null!=e?e:t}function pe(e,t,n){return null!=e?e:null!=t?t:n}function fe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return I.apply(e,t)}function ge(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function ve(e,t){if(!e)throw new Error(t)}function me(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ye="__ec_primitive__";function xe(e){e[ye]=!0}function _e(e){return e[ye]}var be=function(){function e(t){this.data={};var n=J(t);this.data={};var i=this;function r(e,t){n?i.set(e,t):i.set(t,e)}t instanceof e?t.each(r):t&&W(t,r)}return e.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},e.prototype.set=function(e,t){return this.data[e]=t},e.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},e.prototype.keys=function(){return $(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function we(e){return new be(e)}function Se(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var r=e.length;for(i=0;i<t.length;i++)n[i+r]=t[i];return n}function Me(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&F(n,t),n}function Ce(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ie(e,t){return e.hasOwnProperty(t)}function Te(){}var ke=180/Math.PI,Ae=function(e,t){return Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ae(e,t)};function De(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ae(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;function Le(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Pe(e,t){return e[0]=t[0],e[1]=t[1],e}function Oe(e){return[e[0],e[1]]}function Re(e,t,n){return e[0]=t,e[1]=n,e}function Ee(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Ne(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function Fe(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Be(e){return Math.sqrt(Ve(e))}function Ve(e){return e[0]*e[0]+e[1]*e[1]}function ze(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function qe(e,t){var n=Be(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function He(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var We=He;function Ge(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ue=Ge;function je(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function Ze(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function $e(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ye(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Xe=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Ke=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Xe(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(r,o,e),this.handler.dispatchToElement(new Xe(t,e),"drag",e.event);var a=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Xe(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new Xe(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Xe(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Xe(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}();const Je=Ke;var Qe=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof t&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),r[e]||(r[e]=[]);for(var a=0;a<r[e].length;a++)if(r[e][a].h===n)return this;var s={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[e].length-1,u=r[e][l];return u&&u.callAtLast?r[e].splice(l,0,s):r[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,o=n[e].length;r<o;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,a=t[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}();const et=Qe;var tt=Math.log(2);function nt(e,t,n,i,r,o){var a=i+"-"+r,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~r)/tt);return e[n][l]}var u=i|1<<n,c=n+1;while(i&1<<c)c++;for(var d=0,h=0,p=0;h<s;h++){var f=1<<h;f&r||(d+=(p%2?-1:1)*e[n][h]*nt(e,t-1,c,u,r|f,o),p++)}return o[a]=d,d}function it(e,t){var n=[[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]]],i={},r=nt(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*nt(n,7,0===a?1:0,1<<a,1<<s,i)/r*t[a];return function(e,t,n){var i=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/i,e[1]=(t*o[3]+n*o[4]+o[5])/i}}}var rt="___zrEVENTSAVED",ot=[];function at(e,t,n,i,r){return st(ot,t,i,r,!0)&&st(e,n,ot[0],ot[1])}function st(e,t,n,i,r){if(t.getBoundingClientRect&&c.domSupported&&!ct(t)){var o=t[rt]||(t[rt]={}),a=lt(t,o),s=ut(a,o,r);if(s)return s(e,n,i),!0}return!1}function lt(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function ut(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,p=c.top;a.push(h,p),l=l&&o&&h===o[d]&&p===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?it(s,a):it(a,s))}function ct(e){return"CANVAS"===e.nodeName.toUpperCase()}var dt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ht=[],pt=c.browser.firefox&&+c.browser.version.split(".")[0]<39;function ft(e,t,n,i){return n=n||{},i?gt(e,t,n):pt&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):gt(e,t,n),n}function gt(e,t,n){if(c.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(ct(e)){var o=e.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(st(ht,e,i,r))return n.zrX=ht[0],void(n.zrY=ht[1])}n.zrX=n.zrY=0}function vt(e){return e||window.event}function mt(e,t,n){if(t=vt(t),null!=t.zrX)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&ft(e,o,t,n)}else{ft(e,t,t,n);var a=yt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&dt.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function yt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function xt(e,t,n,i){e.addEventListener(t,n,i)}function _t(e,t,n,i){e.removeEventListener(t,n,i)}var bt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function wt(e){return 2===e.which||3===e.which}var St=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o<a;o++){var s=i[o],l=ft(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},e.prototype._recognize=function(e){for(var t in It)if(It.hasOwnProperty(t)){var n=It[t](this._track,e);if(n)return n}},e}();function Mt(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Ct(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var It={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,r=(e[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Mt(i)/Mt(r);!isFinite(o)&&(o=1),t.pinchScale=o;var a=Ct(i);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},Tt="silent";function kt(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:At}}function At(){bt(this.event)}var Dt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return De(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(et),Lt=function(){function e(e,t){this.x=e,this.y=t}return e}(),Pt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ot=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o._hovered=new Lt(0,0),o.storage=t,o.painter=n,o.painterRoot=r,i=i||new Dt,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new Je(o),o}return De(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(W(Pt,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=Et(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Lt(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Lt(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){var r="on"+t,o=kt(t,e,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){for(var i=this.storage.getDisplayList(),r=new Lt(e,t),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=Rt(i[o],e,t))&&(!r.topTarget&&(r.topTarget=i[o]),a!==Tt)){r.target=i[o];break}}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new St);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var o=new Lt;o.target=i.target,this.dispatchToElement(o,r,i.event)}},t}(et);function Rt(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var i=e,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||Tt}return!1}function Et(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Ot.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,a=Et(this,r,o);if("mouseup"===e&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||We(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));const Nt=Ot;var Ft=32,Bt=7;function Vt(e){var t=0;while(e>=Ft)t|=1&e,e>>=1;return e+t}function zt(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r<n&&i(e[r],e[r-1])<0)r++;qt(e,t,r)}else while(r<n&&i(e[r],e[r-1])>=0)r++;return r-t}function qt(e,t,n){n--;while(t<n){var i=e[t];e[t++]=e[n],e[n--]=i}}function Ht(e,t,n,i,r){for(i===t&&i++;i<n;i++){var o,a=e[i],s=t,l=i;while(s<l)o=s+l>>>1,r(a,e[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=a}}function Wt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){s=i-r;while(l<s&&o(e,t[n+r+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(l<s&&o(e,t[n+r-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a<l){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Gt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){s=r+1;while(l<s&&o(e,t[n+r-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l<s&&o(e,t[n+r+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a<l){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Ut(e,t){var n,i,r=Bt,o=0,a=0;o=e.length;var s=[];function l(e,t){n[a]=e,i[a]=t,a+=1}function u(){while(a>1){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;d(e)}}function c(){while(a>1){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,d(e)}}function d(r){var o=n[r],s=i[r],l=n[r+1],u=i[r+1];i[r]=s+u,r===a-3&&(n[r+1]=n[r+2],i[r+1]=i[r+2]),a--;var c=Gt(e[l],e,o,s,0,t);o+=c,s-=c,0!==s&&(u=Wt(e[o+s-1],e,l,u,u-1,t),0!==u&&(s<=u?h(o,s,l,u):p(o,s,l,u)))}function h(n,i,o,a){var l=0;for(l=0;l<i;l++)s[l]=e[n+l];var u=0,c=o,d=n;if(e[d++]=e[c++],0!==--a)if(1!==i){var h,p,f,g=r;while(1){h=0,p=0,f=!1;do{if(t(e[c],s[u])<0){if(e[d++]=e[c++],p++,h=0,0===--a){f=!0;break}}else if(e[d++]=s[u++],h++,p=0,1===--i){f=!0;break}}while((h|p)<g);if(f)break;do{if(h=Gt(e[c],s,u,i,0,t),0!==h){for(l=0;l<h;l++)e[d+l]=s[u+l];if(d+=h,u+=h,i-=h,i<=1){f=!0;break}}if(e[d++]=e[c++],0===--a){f=!0;break}if(p=Wt(s[u],e,c,a,0,t),0!==p){for(l=0;l<p;l++)e[d+l]=e[c+l];if(d+=p,c+=p,a-=p,0===a){f=!0;break}}if(e[d++]=s[u++],1===--i){f=!0;break}g--}while(h>=Bt||p>=Bt);if(f)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l<a;l++)e[d+l]=e[c+l];e[d+a]=s[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)e[d+l]=s[u+l]}}else{for(l=0;l<a;l++)e[d+l]=e[c+l];e[d+a]=s[u]}else for(l=0;l<i;l++)e[d+l]=s[u+l]}function p(n,i,o,a){var l=0;for(l=0;l<a;l++)s[l]=e[o+l];var u=n+i-1,c=a-1,d=o+a-1,h=0,p=0;if(e[d--]=e[u--],0!==--i)if(1!==a){var f=r;while(1){var g=0,v=0,m=!1;do{if(t(s[c],e[u])<0){if(e[d--]=e[u--],g++,v=0,0===--i){m=!0;break}}else if(e[d--]=s[c--],v++,g=0,1===--a){m=!0;break}}while((g|v)<f);if(m)break;do{if(g=i-Gt(s[c],e,n,i,i-1,t),0!==g){for(d-=g,u-=g,i-=g,p=d+1,h=u+1,l=g-1;l>=0;l--)e[p+l]=e[h+l];if(0===i){m=!0;break}}if(e[d--]=s[c--],1===--a){m=!0;break}if(v=a-Wt(e[u],s,0,a,a-1,t),0!==v){for(d-=v,c-=v,a-=v,p=d+1,h=c+1,l=0;l<v;l++)e[p+l]=s[h+l];if(a<=1){m=!0;break}}if(e[d--]=e[u--],0===--i){m=!0;break}f--}while(g>=Bt||v>=Bt);if(m)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(d-=i,u-=i,p=d+1,h=u+1,l=i-1;l>=0;l--)e[p+l]=e[h+l];e[d]=s[c]}else{if(0===a)throw new Error;for(h=d-(a-1),l=0;l<a;l++)e[h+l]=s[l]}}else{for(d-=i,u-=i,p=d+1,h=u+1,l=i-1;l>=0;l--)e[p+l]=e[h+l];e[d]=s[c]}else for(h=d-(a-1),l=0;l<a;l++)e[h+l]=s[l]}return o<120?5:o<1542?10:o<119151?19:40,n=[],i=[],{mergeRuns:u,forceMergeRuns:c,pushRun:l}}function jt(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(r<2)){var o=0;if(r<Ft)return o=zt(e,n,i,t),void Ht(e,n,i,n+o,t);var a=Ut(e,t),s=Vt(r);do{if(o=zt(e,n,i,t),o<s){var l=r;l>s&&(l=s),Ht(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var Zt=1,$t=2,Yt=4,Xt=!1;function Kt(){Xt||(Xt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Jt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Qt=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jt}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,jt(n,Jt)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];var r=i,o=e;while(r)r.parent=o,r.updateTransform(),t.push(r),o=r,r=r.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=Zt),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Kt(),u.z=0),isNaN(u.z2)&&(Kt(),u.z2=0),isNaN(u.zlevel)&&(Kt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var i=V(this._roots,e);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}();const en=Qt;var tn;tn=c.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const nn=tn;var rn={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 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},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,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-rn.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?.5*rn.bounceIn(2*e):.5*rn.bounceOut(2*e-1)+.5}};const on=rn;var an=Math.pow,sn=Math.sqrt,ln=1e-8,un=1e-4,cn=sn(3),dn=1/3,hn=Le(),pn=Le(),fn=Le();function gn(e){return e>-ln&&e<ln}function vn(e){return e>ln||e<-ln}function mn(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function yn(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function xn(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-r,c=s*s-3*a*l,d=s*l-9*a*u,h=l*l-3*s*u,p=0;if(gn(c)&&gn(d))if(gn(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=d*d-4*c*h;if(gn(g)){var v=d/c,m=(f=-s/a+v,-v/2);f>=0&&f<=1&&(o[p++]=f),m>=0&&m<=1&&(o[p++]=m)}else if(g>0){var y=sn(g),x=c*s+1.5*a*(-d+y),_=c*s+1.5*a*(-d-y);x=x<0?-an(-x,dn):an(x,dn),_=_<0?-an(-_,dn):an(_,dn);f=(-s-(x+_))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var b=(2*c*s-3*a*d)/(2*sn(c*c*c)),w=Math.acos(b)/3,S=sn(c),M=Math.cos(w),C=(f=(-s-2*S*M)/(3*a),m=(-s+S*(M+cn*Math.sin(w)))/(3*a),(-s+S*(M-cn*Math.sin(w)))/(3*a));f>=0&&f<=1&&(o[p++]=f),m>=0&&m<=1&&(o[p++]=m),C>=0&&C<=1&&(o[p++]=C)}}return p}function _n(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(gn(a)){if(vn(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(gn(c))r[0]=-o/(2*a);else if(c>0){var d=sn(c),h=(u=(-o+d)/(2*a),(-o-d)/(2*a));u>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}function bn(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,d=(c-u)*r+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=i}function wn(e,t,n,i,r,o,a,s,l,u,c){var d,h,p,f,g,v=.005,m=1/0;hn[0]=l,hn[1]=u;for(var y=0;y<1;y+=.05)pn[0]=mn(e,n,r,a,y),pn[1]=mn(t,i,o,s,y),f=Ue(hn,pn),f<m&&(d=y,m=f);m=1/0;for(var x=0;x<32;x++){if(v<un)break;h=d-v,p=d+v,pn[0]=mn(e,n,r,a,h),pn[1]=mn(t,i,o,s,h),f=Ue(pn,hn),h>=0&&f<m?(d=h,m=f):(fn[0]=mn(e,n,r,a,p),fn[1]=mn(t,i,o,s,p),g=Ue(fn,hn),p<=1&&g<m?(d=p,m=g):v*=.5)}return c&&(c[0]=mn(e,n,r,a,d),c[1]=mn(t,i,o,s,d)),sn(m)}function Sn(e,t,n,i,r,o,a,s,l){for(var u=e,c=t,d=0,h=1/l,p=1;p<=l;p++){var f=p*h,g=mn(e,n,r,a,f),v=mn(t,i,o,s,f),m=g-u,y=v-c;d+=Math.sqrt(m*m+y*y),u=g,c=v}return d}function Mn(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function Cn(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function In(e,t,n,i,r){var o=e-2*t+n,a=2*(t-e),s=e-i,l=0;if(gn(o)){if(vn(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(gn(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var d=sn(c),h=(u=(-a+d)/(2*o),(-a-d)/(2*o));u>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}function Tn(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function kn(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function An(e,t,n,i,r,o,a,s,l){var u,c=.005,d=1/0;hn[0]=a,hn[1]=s;for(var h=0;h<1;h+=.05){pn[0]=Mn(e,n,r,h),pn[1]=Mn(t,i,o,h);var p=Ue(hn,pn);p<d&&(u=h,d=p)}d=1/0;for(var f=0;f<32;f++){if(c<un)break;var g=u-c,v=u+c;pn[0]=Mn(e,n,r,g),pn[1]=Mn(t,i,o,g);p=Ue(pn,hn);if(g>=0&&p<d)u=g,d=p;else{fn[0]=Mn(e,n,r,v),fn[1]=Mn(t,i,o,v);var m=Ue(fn,hn);v<=1&&m<d?(u=v,d=m):c*=.5}}return l&&(l[0]=Mn(e,n,r,u),l[1]=Mn(t,i,o,u)),sn(d)}function Dn(e,t,n,i,r,o,a){for(var s=e,l=t,u=0,c=1/a,d=1;d<=a;d++){var h=d*c,p=Mn(e,n,r,h),f=Mn(t,i,o,h),g=p-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=p,l=f}return u}var Ln=/cubic-bezier\(([0-9,\.e ]+)\)/;function Pn(e){var t=e&&Ln.exec(e);if(t){var n=t[1].split(","),i=+me(n[0]),r=+me(n[1]),o=+me(n[2]),a=+me(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:xn(0,i,o,1,e,s)&&mn(0,r,a,1,s[0])}}}var On=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Te,this.ondestroy=e.ondestroy||Te,this.onrestart=e.onrestart||Te,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Q(e)?e:on[e]||Pn(e)},e}();const Rn=On;var En=function(){function e(e){this.value=e}return e}(),Nn=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new En(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Fn=function(){function e(e){this._list=new Nn,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,r=null;if(null==i[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new En(t),a.key=e,n.insertEntry(a),i[e]=a}return r},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Bn=Fn;var Vn={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 zn(e){return e=Math.round(e),e<0?0:e>255?255:e}function qn(e){return e=Math.round(e),e<0?0:e>360?360:e}function Hn(e){return e<0?0:e>1?1:e}function Wn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?zn(parseFloat(t)/100*255):zn(parseInt(t,10))}function Gn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Hn(parseFloat(t)/100):Hn(parseFloat(t))}function Un(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function jn(e,t,n){return e+(t-e)*n}function Zn(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function $n(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Yn=new Bn(20),Xn=null;function Kn(e,t){Xn&&$n(Xn,t),Xn=Yn.put(e,Xn||t.slice())}function Jn(e,t){if(e){t=t||[];var n=Yn.get(e);if(n)return $n(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in Vn)return $n(t,Vn[i]),Kn(e,t),t;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?Zn(t,+l[0],+l[1],+l[2],1):Zn(t,0,0,0,1);u=Gn(l.pop());case"rgb":return 3!==l.length?void Zn(t,0,0,0,1):(Zn(t,Wn(l[0]),Wn(l[1]),Wn(l[2]),u),Kn(e,t),t);case"hsla":return 4!==l.length?void Zn(t,0,0,0,1):(l[3]=Gn(l[3]),Qn(l,t),Kn(e,t),t);case"hsl":return 3!==l.length?void Zn(t,0,0,0,1):(Qn(l,t),Kn(e,t),t);default:return}}Zn(t,0,0,0,1)}else{if(4===r||5===r){var c=parseInt(i.slice(1,4),16);return c>=0&&c<=4095?(Zn(t,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===r?parseInt(i.slice(4),16)/15:1),Kn(e,t),t):void Zn(t,0,0,0,1)}if(7===r||9===r){c=parseInt(i.slice(1,7),16);return c>=0&&c<=16777215?(Zn(t,(16711680&c)>>16,(65280&c)>>8,255&c,9===r?parseInt(i.slice(7),16)/255:1),Kn(e,t),t):void Zn(t,0,0,0,1)}}}}function Qn(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=Gn(e[1]),r=Gn(e[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return t=t||[],Zn(t,zn(255*Un(a,o,n+1/3)),zn(255*Un(a,o,n)),zn(255*Un(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function ei(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,d=((s-r)/6+l/2)/l,h=((s-o)/6+l/2)/l;i===s?t=h-d:r===s?t=1/3+c-h:o===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,u];return null!=e[3]&&p.push(e[3]),p}}function ti(e,t){var n=Jn(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return ai(n,4===n.length?"rgba":"rgb")}}function ni(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return n[0]=zn(jn(a[0],s[0],l)),n[1]=zn(jn(a[1],s[1],l)),n[2]=zn(jn(a[2],s[2],l)),n[3]=Hn(jn(a[3],s[3],l)),n}}function ii(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=Jn(t[r]),s=Jn(t[o]),l=i-r,u=ai([zn(jn(a[0],s[0],l)),zn(jn(a[1],s[1],l)),zn(jn(a[2],s[2],l)),Hn(jn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function ri(e,t,n,i){var r=Jn(e);if(e)return r=ei(r),null!=t&&(r[0]=qn(t)),null!=n&&(r[1]=Gn(n)),null!=i&&(r[2]=Gn(i)),ai(Qn(r),"rgba")}function oi(e,t){var n=Jn(e);if(n&&null!=t)return n[3]=Hn(t),ai(n,"rgba")}function ai(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function si(e,t){var n=Jn(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var li=Math.round;function ui(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Jn(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var ci=1e-4;function di(e){return e<ci&&e>-ci}function hi(e){return li(1e3*e)/1e3}function pi(e){return li(1e4*e)/1e4}function fi(e){return"matrix("+hi(e[0])+","+hi(e[1])+","+hi(e[2])+","+hi(e[3])+","+pi(e[4])+","+pi(e[5])+")"}var gi={left:"start",right:"end",center:"middle",middle:"middle"};function vi(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function mi(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function yi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function xi(e){return e&&!!e.image}function _i(e){return e&&!!e.svgElement}function bi(e){return xi(e)||_i(e)}function wi(e){return"linear"===e.type}function Si(e){return"radial"===e.type}function Mi(e){return e&&("linear"===e.type||"radial"===e.type)}function Ci(e){return"url(#"+e+")"}function Ii(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ti(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*ke,r=he(e.scaleX,1),o=he(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+li(a*ke)+"deg, "+li(s*ke)+"deg)"),l.join(" ")}var ki=function(){return c.hasGlobalWindow&&Q(window.btoa)?function(e){return window.btoa(unescape(e))}:"undefined"!==typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),Ai=Array.prototype.slice;function Di(e,t,n){return(t-e)*n+e}function Li(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=Di(t[o],n[o],i);return e}function Pi(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=Di(t[a][s],n[a][s],i)}return e}function Oi(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=t[o]+n[o]*i;return e}function Ri(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*i}return e}function Ei(e,t){for(var n=e.length,i=t.length,r=n>i?t:e,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Ni(e,t,n){var i=e,r=t;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(1===n?r[l]:Ai.call(r[l]))}var u=i[0]&&i[0].length;for(l=0;l<i.length;l++)if(1===n)isNaN(i[l])&&(i[l]=r[l]);else for(var c=0;c<u;c++)isNaN(i[l][c])&&(i[l][c]=r[l][c])}}function Fi(e){if(H(e)){var t=e.length;if(H(e[0])){for(var n=[],i=0;i<t;i++)n.push(Ai.call(e[i]));return n}return Ai.call(e)}return e}function Bi(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function Vi(e){return H(e&&e[0])?2:1}var zi=0,qi=1,Hi=2,Wi=3,Gi=4,Ui=5,ji=6;function Zi(e){return e===Gi||e===Ui}function $i(e){return e===qi||e===Hi}var Yi=[0,0,0,0],Xi=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=ji,s=t;if(H(t)){var l=Vi(t);a=l,(1===l&&!ne(t[0])||2===l&&!ne(t[0][0]))&&(o=!0)}else if(ne(t)&&!ce(t))a=zi;else if(ee(t))if(isNaN(+t)){var u=Jn(t);u&&(s=u,a=Wi)}else a=zi;else if(se(t)){var c=F({},s);c.colorStops=G(t.colorStops,(function(e){return{offset:e.offset,color:Jn(e.color)}})),wi(t)?a=Gi:Si(t)&&(a=Ui),s=c}0===r?this.valType=a:a===this.valType&&a!==ji||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=Q(n)?n:on[n]||Pn(n)),i.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=$i(i),l=Zi(i),u=0;u<r;u++){var c=n[u],d=c.value,h=o.value;c.percent=c.time/e,a||(s&&u!==r-1?Ni(d,h,i):l&&Ei(d.colorStops,h.colorStops))}if(!a&&i!==Ui&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;var p=n[0].value;for(u=0;u<r;u++)i===zi?n[u].additiveValue=n[u].value-p:i===Wi?n[u].additiveValue=Oi([],n[u].value,p,-1):$i(i)&&(n[u].additiveValue=i===qi?Oi([],n[u].value,p,-1):Ri([],n[u].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=s===Wi,h=this._lastFr,p=Math.min;if(1===u)i=r=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){var f=p(h+1,u-1);for(n=f;n>=0;n--)if(l[n].percent<=t)break;n=p(n,u-2)}else{for(n=h;n<u;n++)if(l[n].percent>t)break;n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var g=r.percent-i.percent,v=0===g?1:p((t-i.percent)/g,1);r.easingFunc&&(v=r.easingFunc(v));var m=o?this._additiveValue:d?Yi:e[c];if(!$i(s)&&!d||m||(m=this._additiveValue=[]),this.discrete)e[c]=v<1?i.rawValue:r.rawValue;else if($i(s))s===qi?Li(m,i[a],r[a],v):Pi(m,i[a],r[a],v);else if(Zi(s)){var y=i[a],x=r[a],_=s===Gi;e[c]={type:_?"linear":"radial",x:Di(y.x,x.x,v),y:Di(y.y,x.y,v),colorStops:G(y.colorStops,(function(e,t){var n=x.colorStops[t];return{offset:Di(e.offset,n.offset,v),color:Bi(Li([],e.color,n.color,v))}})),global:x.global},_?(e[c].x2=Di(y.x2,x.x2,v),e[c].y2=Di(y.y2,x.y2,v)):e[c].r=Di(y.r,x.r,v)}else if(d)Li(m,i[a],r[a],v),o||(e[c]=Bi(m));else{var b=Di(i[a],r[a],v);o?this._additiveValue=b:e[c]=b}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===zi?e[n]=e[n]+i:t===Wi?(Jn(e[n],Yi),Oi(Yi,Yi,i,1),e[n]=Bi(Yi)):t===qi?Oi(e[n],e[n],i,1):t===Hi&&Ri(e[n],e[n],i,1)},e}(),Ki=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?O("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,$(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new Xi(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,u.valType===Wi&&l&&(l=Bi(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,Fi(l),i),this._trackKeys.push(a)}s.addKeyframe(e,Fi(t[a]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(e);r&&(t=r)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new Rn({life:i,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var i=t._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return G(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<e.length;r++){var o=n[e[r]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var r=t[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[r]=Fi(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||$(e);for(var n=0;n<t.length;n++){var i=t[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}();const Ji=Ki;function Qi(){return(new Date).getTime()}var er=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return De(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=Qi()-this._pausedTime,n=t-this._time,i=this._head;while(i){var r=i.next,o=i.step(t,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(nn(t),!e._paused&&e.update())}this._running=!0,nn(t)},t.prototype.start=function(){this._running||(this._time=Qi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Qi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Qi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Ji(e,t.loop);return this.addAnimator(n),n},t}(et);const tr=er;var nr=300,ir=c.domSupported,rr=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=G(e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:i}}(),or={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ar=!1;function sr(e){var t=e.pointerType;return"pen"===t||"touch"===t}function lr(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function ur(e){e&&(e.zrByTouch=!0)}function cr(e,t){return mt(e.dom,new hr(e,t),!0)}function dr(e,t){var n=t,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return i}var hr=function(){function e(e,t){this.stopPropagation=Te,this.stopImmediatePropagation=Te,this.preventDefault=Te,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),pr={mousedown:function(e){e=mt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=mt(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=mt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=mt(this.dom,e);var t=e.toElement||e.relatedTarget;dr(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){ar=!0,e=mt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){ar||(e=mt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=mt(this.dom,e),ur(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),pr.mousemove.call(this,e),pr.mousedown.call(this,e)},touchmove:function(e){e=mt(this.dom,e),ur(e),this.handler.processGesture(e,"change"),pr.mousemove.call(this,e)},touchend:function(e){e=mt(this.dom,e),ur(e),this.handler.processGesture(e,"end"),pr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<nr&&pr.click.call(this,e)},pointerdown:function(e){pr.mousedown.call(this,e)},pointermove:function(e){sr(e)||pr.mousemove.call(this,e)},pointerup:function(e){pr.mouseup.call(this,e)},pointerout:function(e){sr(e)||pr.mouseout.call(this,e)}};W(["click","dblclick","contextmenu"],(function(e){pr[e]=function(t){t=mt(this.dom,t),this.trigger(e,t)}}));var fr={pointermove:function(e){sr(e)||fr.mousemove.call(this,e)},pointerup:function(e){fr.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 gr(e,t){var n=t.domHandlers;c.pointerEventsSupported?W(rr.pointer,(function(i){mr(t,i,(function(t){n[i].call(e,t)}))})):(c.touchEventsSupported&&W(rr.touch,(function(i){mr(t,i,(function(r){n[i].call(e,r),lr(t)}))})),W(rr.mouse,(function(i){mr(t,i,(function(r){r=vt(r),t.touching||n[i].call(e,r)}))})))}function vr(e,t){function n(n){function i(i){i=vt(i),dr(e,i.target)||(i=cr(e,i),t.domHandlers[n].call(e,i))}mr(t,n,i,{capture:!0})}c.pointerEventsSupported?W(or.pointer,n):c.touchEventsSupported||W(or.mouse,n)}function mr(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,xt(e.domTarget,t,n,i)}function yr(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&_t(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var xr=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),_r=function(e){function t(t,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new xr(t,pr),ir&&(i._globalHandlerScope=new xr(document,fr)),gr(i,i._localHandlerScope),i}return De(t,e),t.prototype.dispose=function(){yr(this._localHandlerScope),ir&&yr(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,ir&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?vr(this,t):yr(t)}},t}(et);const br=_r;var wr=1;c.hasGlobalWindow&&(wr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sr=wr,Mr=.4,Cr="#333",Ir="#ccc",Tr="#eee";function kr(){return[1,0,0,1,0,0]}function Ar(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Dr(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 Lr(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Pr(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Or(e,t,n){var i=t[0],r=t[2],o=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=i*c+a*u,e[1]=-i*u+a*c,e[2]=r*c+s*u,e[3]=-r*u+c*s,e[4]=c*o+u*l,e[5]=c*l-u*o,e}function Rr(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function Er(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*i;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*r)*l,e[5]=(o*r-n*s)*l,e):null}function Nr(e){var t=kr();return Dr(t,e),t}var Fr=Ar,Br=5e-5;function Vr(e){return e>Br||e<-Br}var zr=[],qr=[],Hr=kr(),Wr=Math.abs,Gr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Vr(this.rotation)||Vr(this.x)||Vr(this.y)||Vr(this.scaleX-1)||Vr(this.scaleY-1)||Vr(this.skewX)||Vr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||kr(),t?this.getLocalTransform(n):Fr(n),e&&(t?Lr(n,e,n):Dr(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Fr(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(zr);var n=zr[0]<0?-1:1,i=zr[1]<0?-1:1,r=((zr[0]-n)*t+n)/zr[0]||0,o=((zr[1]-i)*t+i)/zr[1]||0;e[0]*=r,e[1]*=r,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||kr(),Er(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Lr(qr,e.invTransform,t),t=qr);var n=this.originX,i=this.originY;(n||i)&&(Hr[4]=n,Hr[5]=i,Lr(qr,t,Hr),qr[4]-=n,qr[5]-=i,t=qr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&Ze(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&Ze(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Wr(e[0]-1)>1e-10&&Wr(e[3]-1)>1e-10?Math.sqrt(Wr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){jr(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,r=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;t[4]=-p*r-d*f*o,t[5]=-f*o-h*p*r}else t[4]=t[5]=0;return t[0]=r,t[3]=o,t[1]=h*r,t[2]=d*o,l&&Or(t,t,l),t[4]+=n+u,t[5]+=i+c,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Ur=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function jr(e,t){for(var n=0;n<Ur.length;n++){var i=Ur[n];e[i]=t[i]}}const Zr=Gr;var $r=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var r=1-i;e.x=r*t.x+i*n.x,e.y=r*t.y+i*n.y},e}();const Yr=$r;var Xr=Math.min,Kr=Math.max,Jr=new Yr,Qr=new Yr,eo=new Yr,to=new Yr,no=new Yr,io=new Yr,ro=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=Xr(e.x,this.x),n=Xr(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Kr(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Kr(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,r=kr();return Pr(r,r,[-t.x,-t.y]),Rr(r,r,[n,i]),Pr(r,r,[e.x,e.y]),r},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(o<l||u<r||s<c||d<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),v=Math.abs(u-r),m=Math.abs(s-c),y=Math.abs(d-a),x=Math.min(g,v),_=Math.min(m,y);o<l||u<r?x>f&&(f=x,g<v?Yr.set(io,-g,0):Yr.set(io,v,0)):x<p&&(p=x,g<v?Yr.set(no,g,0):Yr.set(no,-v,0)),s<c||d<a?_>f&&(f=_,m<y?Yr.set(io,0,-m):Yr.set(io,0,y)):x<p&&(p=x,m<y?Yr.set(no,0,m):Yr.set(no,0,-y))}return n&&Yr.copy(n,h?no:io),h},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=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 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Jr.x=eo.x=n.x,Jr.y=to.y=n.y,Qr.x=to.x=n.x+n.width,Qr.y=eo.y=n.y+n.height,Jr.transform(i),to.transform(i),Qr.transform(i),eo.transform(i),t.x=Xr(Jr.x,Qr.x,eo.x,to.x),t.y=Xr(Jr.y,Qr.y,eo.y,to.y);var l=Kr(Jr.x,Qr.x,eo.x,to.x),u=Kr(Jr.y,Qr.y,eo.y,to.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}();const oo=ro;var ao={};function so(e,t){t=t||p;var n=ao[t];n||(n=ao[t]=new Bn(500));var i=n.get(e);return null==i&&(i=x.measureText(e,t).width,n.put(e,i)),i}function lo(e,t,n,i){var r=so(e,t),o=po(t),a=co(0,r,n),s=ho(0,o,i),l=new oo(a,s,r,o);return l}function uo(e,t,n,i){var r=((e||"")+"").split("\n"),o=r.length;if(1===o)return lo(r[0],t,n,i);for(var a=new oo(0,0,0,0),s=0;s<r.length;s++){var l=lo(r[s],t,n,i);0===s?a.copy(l):a.union(l)}return a}function co(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function ho(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function po(e){return so("国",e)}function fo(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function go(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(i instanceof Array)l+=fo(i[0],n.width),u+=fo(i[1],n.height),c=null,d=null;else switch(i){case"left":l-=r,u+=s,c="right",d="middle";break;case"right":l+=r+a,u+=s,d="middle";break;case"top":l+=a/2,u-=r,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=r,u+=s,d="middle";break;case"insideRight":l+=a-r,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",d="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,d="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var vo="__zr_normal__",mo=Ur.concat(["ignore"]),yo=U(Ur,(function(e,t){return e[t]=!0,e}),{ignore:!1}),xo={},_o=new oo(0,0,0,0),bo=function(){function e(e){this.id=P(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){var u=_o;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(xo,n,u):go(xo,n,u),r.x=xo.x,r.y=xo.y,o=xo.align,a=xo.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,h=void 0;"center"===c?(d=.5*u.width,h=.5*u.height):(d=fo(c[0],u.width),h=fo(c[1],u.height)),l=!0,r.originX=-r.x+d+(i?0:u.x),r.originY=-r.y+h+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),v=v||"#000",v===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=Zt,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ir:Cr},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Jn(t);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,ai(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},F(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(ie(e))for(var n=e,i=$(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,e[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==vo)){var o=i.targetName,a=o?t[o]:t;i.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,mo)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null==e[r]||r in t||(t[r]=this[r])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(vo,!1,e)},e.prototype.useState=function(e,t,n,i){var r=e===vo,o=this.hasState();if(o||!r){var a=this.currentStates,s=this.stateTransition;if(!(V(a,e)>=0)||!t&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||r){r||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,d=this._textGuide;return c&&c.useState(e,t,n,u),d&&d.useState(e,t,n,u),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zt),l}O("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,o=e.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(e[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,d),g&&g.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Zt)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=V(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=V(i,e),o=V(i,t)>=0;r>=0?o?i.splice(r,1):i[r]=t:n&&!o&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i<e.length;i++){var r=e[i];F(n,r),r.textConfig&&(t=t||{},F(t,r.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,i,r,o){var a=!(t&&i);t&&t.textConfig?(this.textConfig=F({},i?this.textConfig:n.textConfig),F(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<mo.length;u++){var c=mo[u],d=r&&yo[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||n)[p]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Zr,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),F(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Zt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var i=e?this[e]:this;var r=new Ji(i,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during((function(){i.updateDuringAnimation(t)})).done((function(){var t=i.animators,n=V(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];e&&e!==a.scope?r.push(a):a.stop(t)}return this.animators=r,this},e.prototype.animateTo=function(e,t,n){wo(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){wo(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,i){for(var r=wo(this,t,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Zt;function n(e,n,i,r){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[r]},set:function(t){e[r]=t}})}Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];o(this,e)}return this[n]},set:function(e){this[i]=e[0],this[r]=e[1],this[n]=e,o(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function wo(e,t,n,i,r){n=n||{};var o=[];ko(e,"",e,t,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},d=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var h=0;h<o.length;h++){var p=o[h];c&&p.done(c),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function So(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}function Mo(e){return H(e[0])}function Co(e,t,n){if(H(t[n]))if(H(e[n])||(e[n]=[]),oe(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),So(e[n],t[n],i))}else{var r=t[n],o=e[n],a=r.length;if(Mo(r))for(var s=r[0].length,l=0;l<a;l++)o[l]?So(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else So(o,r,a);o.length=r.length}else e[n]=t[n]}function Io(e,t){return e===t||H(e)&&H(t)&&To(e,t)}function To(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function ko(e,t,n,i,r,o,a,s){for(var l=$(i),u=r.duration,c=r.delay,d=r.additive,h=r.setToFinal,p=!ie(o),f=e.animators,g=[],v=0;v<l.length;v++){var m=l[v],y=i[m];if(null!=y&&null!=n[m]&&(p||o[m]))if(!ie(y)||H(y)||se(y))g.push(m);else{if(t){s||(n[m]=y,e.updateDuringAnimation(t));continue}ko(e,m,n[m],y,r,o&&o[m],a,s)}else s||(n[m]=y,e.updateDuringAnimation(t),g.push(m))}var x=g.length;if(!d&&x)for(var _=0;_<f.length;_++){var b=f[_];if(b.targetName===t){var w=b.stopTracks(g);if(w){var S=V(f,b);f.splice(S,1)}}}if(r.force||(g=j(g,(function(e){return!Io(i[e],n[e])})),x=g.length),x>0||r.force&&!a.length){var M=void 0,C=void 0,I=void 0;if(s){C={},h&&(M={});for(_=0;_<x;_++){m=g[_];C[m]=n[m],h?M[m]=i[m]:n[m]=i[m]}}else if(h){I={};for(_=0;_<x;_++){m=g[_];I[m]=Fi(n[m]),Co(n,i,m)}}b=new Ji(n,!1,!1,d?j(f,(function(e){return e.targetName===t})):null);b.targetName=t,r.scope&&(b.scope=r.scope),h&&M&&b.whenWithKeys(0,M,g),I&&b.whenWithKeys(0,I,g),b.whenWithKeys(null==u?500:u,s?C:i,g).delay(c||0),e.addAnimator(b,t),a.push(b)}}q(bo,et),q(bo,Zr);const Ao=bo;var Do=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return De(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=V(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=V(n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var i=e[n];t&&i.removeSelfFromZr(t),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=e.call(t,i);i.isGroup&&!r&&i.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new oo(0,0,0,0),n=e||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(oo.applyTransform(t,s,l),r=r||t.clone(),r.union(t)):(r=r||s.clone(),r.union(s))}}return r||t},t}(Ao);Do.prototype.type="group";const Lo=Do;
/*!
* 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 Po={},Oo={};function Ro(e){delete Oo[e]}function Eo(e){if(!e)return!1;if("string"===typeof e)return si(e,1)<Mr;if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=si(t[r].color,1);return n/=i,n<Mr}return!1}var No=function(){function e(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var r=new en,o=n.renderer||"canvas";Po[o]||(o=$(Po)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Po[o](t,r,n,e),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l=c.node||c.worker||s?null:new br(a.getViewportRoot(),a.root);this.handler=new Nt(r,a,l,a.root),this.animation=new tr({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Eo(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||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(e){var t,n=Qi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=Qi();t?(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(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.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.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Lo&&e[t].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,Ro(this.id)},e}();function Fo(e,t){var n=new No(P(),e,t);return Oo[n.id]=n,n}function Bo(e,t){Po[e]=t}var Vo=1e-4,zo=20;function qo(e){return e.replace(/^\s+|\s+$/g,"")}function Ho(e,t,n,i){var r=t[0],o=t[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*u+a}function Wo(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 ee(e)?qo(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function Go(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),zo),e=(+e).toFixed(t),n?e:+e}function Uo(e){return e.sort((function(e,t){return e-t})),e}function jo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return Zo(e)}function Zo(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function $o(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Yo(e,t,n){if(!e[t])return 0;var i=U(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;var r=Math.pow(10,n),o=G(e,(function(e){return(isNaN(e)?0:e)/i*r*100})),a=100*r,s=G(o,(function(e){return Math.floor(e)})),l=U(s,(function(e,t){return e+t}),0),u=G(o,(function(e,t){return e-s[t]}));while(l<a){for(var c=Number.NEGATIVE_INFINITY,d=null,h=0,p=u.length;h<p;++h)u[h]>c&&(c=u[h],d=h);++s[d],u[d]=0,++l}return s[t]/r}function Xo(e,t){var n=Math.max(jo(e),jo(t)),i=e+t;return n>zo?i:Go(i,n)}var Ko=9007199254740991;function Jo(e){var t=2*Math.PI;return(e%t+t)%t}function Qo(e){return e>-Vo&&e<Vo}var ea=/^(?:(\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 ta(e){if(e instanceof Date)return e;if(ee(e)){var t=ea.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}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)}return null==e?new Date(NaN):new Date(Math.round(e))}function na(e){return Math.pow(10,ia(e))}function ia(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function ra(e,t){var n,i=ia(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function oa(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function aa(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,o=e[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-n),t=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!==1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function sa(e){var t=parseFloat(e);return t==e&&(0!==t||!ee(e)||e.indexOf("x")<=0)?t:NaN}function la(e){return!isNaN(sa(e))}function ua(){return Math.round(9*Math.random())}function ca(e,t){return 0===t?e:ca(t,e%t)}function da(e,t){return null==e?t:null==t?e:e*t/ca(e,t)}function ha(e,t,n){return(t-e)*n+e}var pa="series\0",fa="\0_ec_\0";function ga(e){return e instanceof Array?e:null==e?[]:[e]}function va(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var ma=["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 ya(e){return!ie(e)||J(e)||e instanceof Date?e:e.value}function xa(e){return ie(e)&&!(e instanceof Array)}function _a(e,t,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=we();W(t,(function(e,n){ie(e)||(t[n]=null)}));var s=ba(e,a,n);return(i||r)&&wa(s,e,a,t),i&&Sa(s,t),i||r?Ma(s,t,r):o&&Ca(s,t),Ia(s),s}function ba(e,t,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<e.length;r++){var o=e[r];o&&null!=o.id&&t.set(o.id,r),i.push({existing:"replaceMerge"===n||La(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function wa(e,t,n,i){W(i,(function(r,o){if(r&&null!=r.id){var a=ka(r.id),s=n.get(a);if(null!=s){var l=e[s];ve(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=t[s],i[o]=null}}}))}function Sa(e,t){W(t,(function(n,i){if(n&&null!=n.name)for(var r=0;r<e.length;r++){var o=e[r].existing;if(!e[r].newOption&&o&&(null==o.id||null==n.id)&&!La(n)&&!La(o)&&Ta("name",o,n))return e[r].newOption=n,void(t[i]=null)}}))}function Ma(e,t,n){W(t,(function(t){if(t){var i,r=0;while((i=e[r])&&(i.newOption||La(i.existing)||i.existing&&null!=t.id&&!Ta("id",t,i.existing)))r++;i?(i.newOption=t,i.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),r++}}))}function Ca(e,t){W(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}function Ia(e){var t=we();W(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),W(e,(function(e){var n=e.newOption;ve(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})})),W(e,(function(e,n){var i=e.existing,r=e.newOption,o=e.keyInfo;if(ie(r)){if(o.name=null!=r.name?ka(r.name):i?i.name:pa+n,i)o.id=ka(i.id);else if(null!=r.id)o.id=ka(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(t.get(o.id))}t.set(o.id,e)}}))}function Ta(e,t,n){var i=Aa(t[e],null),r=Aa(n[e],null);return null!=i&&null!=r&&i===r}function ka(e){return Aa(e,"")}function Aa(e,t){return null==e?t:ee(e)?e:ne(e)||te(e)?e+"":t}function Da(e){var t=e.name;return!(!t||!t.indexOf(pa))}function La(e){return e&&null!=e.id&&0===ka(e.id).indexOf(fa)}function Pa(e){return fa+e}function Oa(e,t,n){W(e,(function(e){var i=e.newOption;ie(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Ra(t,i,e.existing,n))}))}function Ra(e,t,n,i){var r=t.type?t.type:n?n.subType:i.determineSubType(e,t);return r}function Ea(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[o(n),o(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++){var o=Aa(e[i].seriesId,null);if(null==o)return;for(var a=ga(e[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(t[o]||(t[o]={}))[c]=1}}}function o(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=o(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function Na(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?J(t.dataIndex)?G(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?J(t.name)?G(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function Fa(){var e="__ec_inner_"+Ba++;return function(t){return t[e]||(t[e]={})}}var Ba=ua();function Va(e,t,n){var i=za(t,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each((function(t,i){var r=Wa(e,i,t,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]})),s}function za(e,t){var n;if(ee(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var r=we(),o={},a=!1;return W(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&V(t.includeMainTypes,s)<0)){a=a||!!s;var u=r.get(s)||r.set(s,{});u[l]=e}}else o[n]=e})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var qa={useDefault:!0,enableAll:!1,enableNone:!1},Ha={useDefault:!1,enableAll:!0,enableNone:!0};function Wa(e,t,n,i){i=i||qa;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===r||!1===r?(ve(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(ve(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=e.queryComponents({mainType:t,index:r,id:o,name:a}),s)}function Ga(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Ua(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function ja(e){return"auto"===e?c.domSupported?"html":"richText":e||"html"}function Za(e,t){var n=we(),i=[];return W(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}function $a(e,t,n,i,r){var o=null==t||"auto"===t;if(null==i)return i;if(ne(i)){var a=ha(n||0,i,r);return Go(a,o?Math.max(jo(n||0),jo(i)):t)}if(ee(i))return r<1?n:i;for(var s=[],l=n,u=i,c=Math.max(l?l.length:0,u.length),d=0;d<c;++d){var h=e.getDimensionInfo(d);if(h&&"ordinal"===h.type)s[d]=(r<1&&l?l:u)[d];else{var p=l&&l[d]?l[d]:0,f=u[d];a=ha(p,f,r);s[d]=Go(a,o?Math.max(jo(p),jo(f)):t)}}return s}var Ya=".",Xa="___EC__COMPONENT__CONTAINER___",Ka="___EC__EXTENDED_CLASS___";function Ja(e){var t={main:"",sub:""};if(e){var n=e.split(Ya);t.main=n[0]||"",t.sub=n[1]||""}return t}function Qa(e){ve(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function es(e){return!(!e||!e[Ka])}function ts(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return ns(n)?t=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(n):(t=function(){(e.$constructor||n).apply(this,arguments)},z(t,this)),F(t.prototype,e),t[Ka]=!0,t.extend=this.extend,t.superCall=as,t.superApply=ss,t.superClass=n,t}}function ns(e){return Q(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function is(e,t){e.extend=t.extend}var rs=Math.round(10*Math.random());function os(e){var t=["__\0is_clz",rs++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function as(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function ss(e,t,n){return this.superClass.prototype[t].apply(e,n)}function ls(e){var t={};function n(e){var n=t[e.main];return n&&n[Xa]||(n=t[e.main]={},n[Xa]=!0),n}e.registerClass=function(e){var i=e.type||e.prototype.type;if(i){Qa(i),e.prototype.type=i;var r=Ja(i);if(r.sub){if(r.sub!==Xa){var o=n(r);o[r.sub]=e}}else t[r.main]=e}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[Xa]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=Ja(e),i=[],r=t[n.main];return r&&r[Xa]?W(r,(function(e,t){t!==Xa&&i.push(e)})):i.push(r),i},e.hasClass=function(e){var n=Ja(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return W(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=Ja(e),i=t[n.main];return i&&i[Xa]}}function us(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,r){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(i&&V(i,s)>=0||r&&V(r,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var cs=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ds=us(cs),hs=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return ds(this,e,t)},e}(),ps=new Bn(50);function fs(e){if("string"===typeof e){var t=ps.get(e);return t&&t.image}return e}function gs(e,t,n,i,r){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=ps.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?(t=o.image,!ms(t)&&o.pending.push(a)):(t=x.loadImage(e,vs,vs),t.__zrImageSrc=e,ps.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function vs(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function ms(e){return e&&e.width&&e.height}var ys=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function xs(e,t,n,i,r){if(!t)return"";var o=(e+"").split("\n");r=_s(t,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=bs(o[a],r);return o.join("\n")}function _s(e,t,n,i){i=i||{};var r=F({},i);r.font=t,n=he(n,"..."),r.maxIterations=he(i.maxIterations,2);var o=r.minChar=he(i.minChar,0);r.cnCharWidth=so("国",t);var a=r.ascCharWidth=so("a",t);r.placeholder=he(i.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=so(n,t);return u>s&&(n="",u=0),s=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=e,r}function bs(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var o=so(e,i);if(o<=n)return e;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?ws(e,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*r/o):0;e=e.substr(0,s),o=so(e,i)}return""===e&&(e=t.placeholder),e}function ws(e,t,n,i){for(var r=0,o=0,a=e.length;o<a&&r<t;o++){var s=e.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}function Ss(e,t){null!=e&&(e+="");var n,i=t.overflow,r=t.padding,o=t.font,a="truncate"===i,s=po(o),l=he(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,d=t.width;n=null==d||"break"!==i&&"breakAll"!==i?e?e.split("\n"):[]:e?Ps(e,t.font,d,"breakAll"===i,0).lines:[];var h=n.length*l,p=he(t.height,h);if(h>p&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(e&&a&&null!=d)for(var g=_s(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;v<n.length;v++)n[v]=bs(n[v],g);var m=p,y=0;for(v=0;v<n.length;v++)y=Math.max(so(n[v],o),y);null==d&&(d=y);var x=y;return r&&(m+=r[0]+r[2],x+=r[1]+r[3],d+=r[1]+r[3]),u&&(x=d),{lines:n,height:p,outerWidth:x,outerHeight:m,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:h,width:d}}var Ms=function(){function e(){}return e}(),Cs=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Is=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 Ts(e,t){var n=new Is;if(null!=e&&(e+=""),!e)return n;var i,r=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=ys.lastIndex=0;while(null!=(i=ys.exec(e))){var u=i.index;u>l&&ks(n,e.substring(l,u),t,s),ks(n,i[2],t,s,i[1]),l=ys.lastIndex}l<e.length&&ks(n,e.substring(l,e.length),t,s);var c=[],d=0,h=0,p=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow;function v(e,t,n){e.width=t,e.lineHeight=n,d+=n,h=Math.max(h,t)}e:for(var m=0;m<n.lines.length;m++){for(var y=n.lines[m],x=0,_=0,b=0;b<y.tokens.length;b++){var w=y.tokens[b],S=w.styleName&&t.rich[w.styleName]||{},M=w.textPadding=S.padding,C=M?M[1]+M[3]:0,I=w.font=S.font||t.font;w.contentHeight=po(I);var T=he(S.height,w.contentHeight);if(w.innerHeight=T,M&&(T+=M[0]+M[2]),w.height=T,w.lineHeight=pe(S.lineHeight,t.lineHeight,T),w.align=S&&S.align||t.align,w.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&d+w.lineHeight>o){b>0?(y.tokens=y.tokens.slice(0,b),v(y,_,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var k=S.width,A=null==k||"auto"===k;if("string"===typeof k&&"%"===k.charAt(k.length-1))w.percentWidth=k,c.push(w),w.contentWidth=so(w.text,I);else{if(A){var D=S.backgroundColor,L=D&&D.image;L&&(L=fs(L),ms(L)&&(w.width=Math.max(w.width,L.width*T/L.height)))}var P=f&&null!=r?r-_:null;null!=P&&P<w.width?!A||P<C?(w.text="",w.width=w.contentWidth=0):(w.text=xs(w.text,P-C,I,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=so(w.text,I)):w.contentWidth=so(w.text,I)}w.width+=C,_+=w.width,S&&(x=Math.max(x,w.lineHeight))}v(y,_,x)}n.outerWidth=n.width=he(r,h),n.outerHeight=n.height=he(o,d),n.contentHeight=d,n.contentWidth=h,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(m=0;m<c.length;m++){w=c[m];var O=w.percentWidth;w.width=parseInt(O,10)/100*n.width}return n}function ks(e,t,n,i,r){var o,a,s=""===t,l=r&&n.rich[r]||{},u=e.lines,c=l.font||n.font,d=!1;if(i){var h=l.padding,p=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=fo(l.width,i.width)+p;u.length>0&&f+i.accumWidth>i.width&&(o=t.split("\n"),d=!0),i.accumWidth=f}else{var g=Ps(t,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var v=0;v<o.length;v++){var m=o[v],y=new Ms;if(y.styleName=r,y.text=m,y.isLineHolder=!m&&!s,"number"===typeof l.width?y.width=l.width:y.width=a?a[v]:so(m,c),v||d)u.push(new Cs([y]));else{var x=(u[u.length-1]||(u[0]=new Cs)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=y:(m||!_||s)&&x.push(y)}}}function As(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var Ds=U(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Ls(e){return!As(e)||!!Ds[e]}function Ps(e,t,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"!==h){var p=so(h,t),f=!i&&!Ls(h);(o.length?c+p>n:r+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=h,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=p)):f?(o.push(l),a.push(u),l=h,u=p):(o.push(h),a.push(p)):(c+=p,f?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var Os="__zr_style_"+Math.round(10*Math.random()),Rs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Es={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Rs[Os]=!0;var Ns=["z","z2","invisible"],Fs=["invisible"],Bs=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype._init=function(t){for(var n=$(t),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(t[r]):e.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&qs(this,e,t)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new oo(0,0,0,0)),t?oo.applyTransform(e,n,t):e.copy(n),(r||o||a)&&(e.width+=2*r+Math.abs(o),e.height+=2*r+Math.abs(a),e.x=Math.min(e.x,e.x+o-r),e.y=Math.min(e.y,e.y+a-r));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new oo(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"===typeof e?this.style[e]=t:F(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=$t,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&$t)},t.prototype.styleUpdated=function(){this.__dirty&=~$t},t.prototype.createStyle=function(e){return Me(Rs,e)},t.prototype.useStyle=function(e){e[Os]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Os]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Ns)},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=$(u),d=0;d<c.length;d++){var h=c[d];h in s&&(s[h]=s[h],this.style[h]=u[h])}var p=$(s);for(d=0;d<p.length;d++){h=p[d];this.style[h]=this.style[h]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Fs:Ns;for(d=0;d<f.length;d++){h=f[d];n&&null!=n[h]?this[h]=n[h]:l&&null!=i[h]&&(this[h]=i[h])}},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,t){return F(e,t),e},t.prototype.getAnimationStyleProps=function(){return Es},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Zt|$t}(),t}(Ao),Vs=new oo(0,0,0,0),zs=new oo(0,0,0,0);function qs(e,t,n){return Vs.copy(e.getBoundingRect()),e.transform&&Vs.applyTransform(e.transform),zs.width=t,zs.height=n,!Vs.intersect(zs)}const Hs=Bs;var Ws=Math.min,Gs=Math.max,Us=Math.sin,js=Math.cos,Zs=2*Math.PI,$s=Le(),Ys=Le(),Xs=Le();function Ks(e,t,n){if(0!==e.length){for(var i=e[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<e.length;l++)i=e[l],r=Ws(r,i[0]),o=Gs(o,i[0]),a=Ws(a,i[1]),s=Gs(s,i[1]);t[0]=r,t[1]=a,n[0]=o,n[1]=s}}function Js(e,t,n,i,r,o){r[0]=Ws(e,n),r[1]=Ws(t,i),o[0]=Gs(e,n),o[1]=Gs(t,i)}var Qs=[],el=[];function tl(e,t,n,i,r,o,a,s,l,u){var c=_n,d=mn,h=c(e,n,r,a,Qs);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<h;p++){var f=d(e,n,r,a,Qs[p]);l[0]=Ws(f,l[0]),u[0]=Gs(f,u[0])}h=c(t,i,o,s,el);for(p=0;p<h;p++){var g=d(t,i,o,s,el[p]);l[1]=Ws(g,l[1]),u[1]=Gs(g,u[1])}l[0]=Ws(e,l[0]),u[0]=Gs(e,u[0]),l[0]=Ws(a,l[0]),u[0]=Gs(a,u[0]),l[1]=Ws(t,l[1]),u[1]=Gs(t,u[1]),l[1]=Ws(s,l[1]),u[1]=Gs(s,u[1])}function nl(e,t,n,i,r,o,a,s){var l=Tn,u=Mn,c=Gs(Ws(l(e,n,r),1),0),d=Gs(Ws(l(t,i,o),1),0),h=u(e,n,r,c),p=u(t,i,o,d);a[0]=Ws(e,r,h),a[1]=Ws(t,o,p),s[0]=Gs(e,r,h),s[1]=Gs(t,o,p)}function il(e,t,n,i,r,o,a,s,l){var u=$e,c=Ye,d=Math.abs(r-o);if(d%Zs<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if($s[0]=js(r)*n+e,$s[1]=Us(r)*i+t,Ys[0]=js(o)*n+e,Ys[1]=Us(o)*i+t,u(s,$s,Ys),c(l,$s,Ys),r%=Zs,r<0&&(r+=Zs),o%=Zs,o<0&&(o+=Zs),r>o&&!a?o+=Zs:r<o&&a&&(r+=Zs),a){var h=o;o=r,r=h}for(var p=0;p<o;p+=Math.PI/2)p>r&&(Xs[0]=js(p)*n+e,Xs[1]=Us(p)*i+t,u(s,Xs,s),c(l,Xs,l))}var rl={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ol=[],al=[],sl=[],ll=[],ul=[],cl=[],dl=Math.min,hl=Math.max,pl=Math.cos,fl=Math.sin,gl=Math.abs,vl=Math.PI,ml=2*vl,yl="undefined"!==typeof Float32Array,xl=[];function _l(e){var t=Math.round(e/vl*1e8)/1e8;return t%2*vl}function bl(e,t){var n=_l(e[0]);n<0&&(n+=ml);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=ml?r=n+ml:t&&n-r>=ml?r=n-ml:!t&&n>r?r=n+(ml-_l(n-r)):t&&n<r&&(r=n-(ml-_l(r-n))),e[0]=n,e[1]=r}var wl=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(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(e,t,n){n=n||0,n>0&&(this._ux=gl(n/Sr/e)||0,this._uy=gl(n/Sr/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(rl.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=gl(e-this._xi),i=gl(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(rl.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(rl.C,e,t,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(rl.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),xl[0]=i,xl[1]=r,bl(xl,o),i=xl[0],r=xl[1];var a=r-i;return this.addData(rl.A,e,t,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=pl(r)*n+e,this._yi=fl(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(rl.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(rl.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!yl||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();yl&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<t;r++)for(var o=e[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},e.prototype.addData=function(e,t,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[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 e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,yl&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){sl[0]=sl[1]=ul[0]=ul[1]=Number.MAX_VALUE,ll[0]=ll[1]=cl[0]=cl[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(n=t[e],i=t[e+1],r=n,o=i),a){case rl.M:n=r=t[e++],i=o=t[e++],ul[0]=r,ul[1]=o,cl[0]=r,cl[1]=o;break;case rl.L:Js(n,i,t[e],t[e+1],ul,cl),n=t[e++],i=t[e++];break;case rl.C:tl(n,i,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],ul,cl),n=t[e++],i=t[e++];break;case rl.Q:nl(n,i,t[e++],t[e++],t[e],t[e+1],ul,cl),n=t[e++],i=t[e++];break;case rl.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],h=t[e++],p=t[e++]+h;e+=1;var f=!t[e++];s&&(r=pl(h)*c+l,o=fl(h)*d+u),il(l,u,c,d,h,p,f,ul,cl),n=pl(p)*c+l,i=fl(p)*d+u;break;case rl.R:r=n=t[e++],o=i=t[e++];var g=t[e++],v=t[e++];Js(r,o,r+g,o+v,ul,cl);break;case rl.Z:n=r,i=o;break}$e(sl,sl,ul),Ye(ll,ll,cl)}return 0===e&&(sl[0]=sl[1]=ll[0]=ll[1]=0),new oo(sl[0],sl[1],ll[0]-sl[0],ll[1]-sl[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var h=e[d++],p=1===d;p&&(r=e[d],o=e[d+1],a=r,s=o);var f=-1;switch(h){case rl.M:r=a=e[d++],o=s=e[d++];break;case rl.L:var g=e[d++],v=e[d++],m=g-r,y=v-o;(gl(m)>n||gl(y)>i||d===t-1)&&(f=Math.sqrt(m*m+y*y),r=g,o=v);break;case rl.C:var x=e[d++],_=e[d++],b=(g=e[d++],v=e[d++],e[d++]),w=e[d++];f=Sn(r,o,x,_,g,v,b,w,10),r=b,o=w;break;case rl.Q:x=e[d++],_=e[d++],g=e[d++],v=e[d++];f=Dn(r,o,x,_,g,v,10),r=g,o=v;break;case rl.A:var S=e[d++],M=e[d++],C=e[d++],I=e[d++],T=e[d++],k=e[d++],A=k+T;d+=1;e[d++];p&&(a=pl(T)*C+S,s=fl(T)*I+M),f=hl(C,I)*dl(ml,Math.abs(k)),r=pl(A)*C+S,o=fl(A)*I+M;break;case rl.R:a=r=e[d++],s=o=e[d++];var D=e[d++],L=e[d++];f=2*D+2*L;break;case rl.Z:m=a-r,y=s-o;f=Math.sqrt(m*m+y*y),r=a,o=s;break}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,i,r,o,a,s,l,u,c,d,h,p=this.data,f=this._ux,g=this._uy,v=this._len,m=t<1,y=0,x=0,_=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=t*u,c))e:for(var b=0;b<v;){var w=p[b++],S=1===b;switch(S&&(r=p[b],o=p[b+1],n=r,i=o),w!==rl.L&&_>0&&(e.lineTo(d,h),_=0),w){case rl.M:n=r=p[b++],i=o=p[b++],e.moveTo(r,o);break;case rl.L:a=p[b++],s=p[b++];var M=gl(a-r),C=gl(s-o);if(M>f||C>g){if(m){var I=l[x++];if(y+I>c){var T=(c-y)/I;e.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break e}y+=I}e.lineTo(a,s),r=a,o=s,_=0}else{var k=M*M+C*C;k>_&&(d=a,h=s,_=k)}break;case rl.C:var A=p[b++],D=p[b++],L=p[b++],P=p[b++],O=p[b++],R=p[b++];if(m){I=l[x++];if(y+I>c){T=(c-y)/I;bn(r,A,L,O,T,ol),bn(o,D,P,R,T,al),e.bezierCurveTo(ol[1],al[1],ol[2],al[2],ol[3],al[3]);break e}y+=I}e.bezierCurveTo(A,D,L,P,O,R),r=O,o=R;break;case rl.Q:A=p[b++],D=p[b++],L=p[b++],P=p[b++];if(m){I=l[x++];if(y+I>c){T=(c-y)/I;kn(r,A,L,T,ol),kn(o,D,P,T,al),e.quadraticCurveTo(ol[1],al[1],ol[2],al[2]);break e}y+=I}e.quadraticCurveTo(A,D,L,P),r=L,o=P;break;case rl.A:var E=p[b++],N=p[b++],F=p[b++],B=p[b++],V=p[b++],z=p[b++],q=p[b++],H=!p[b++],W=F>B?F:B,G=gl(F-B)>.001,U=V+z,j=!1;if(m){I=l[x++];y+I>c&&(U=V+z*(c-y)/I,j=!0),y+=I}if(G&&e.ellipse?e.ellipse(E,N,F,B,q,V,U,H):e.arc(E,N,W,V,U,H),j)break e;S&&(n=pl(V)*F+E,i=fl(V)*B+N),r=pl(U)*F+E,o=fl(U)*B+N;break;case rl.R:n=r=p[b],i=o=p[b+1],a=p[b++],s=p[b++];var Z=p[b++],$=p[b++];if(m){I=l[x++];if(y+I>c){var Y=c-y;e.moveTo(a,s),e.lineTo(a+dl(Y,Z),s),Y-=Z,Y>0&&e.lineTo(a+Z,s+dl(Y,$)),Y-=$,Y>0&&e.lineTo(a+hl(Z-Y,0),s+$),Y-=Z,Y>0&&e.lineTo(a,s+hl($-Y,0));break e}y+=I}e.rect(a,s,Z,$);break;case rl.Z:if(m){I=l[x++];if(y+I>c){T=(c-y)/I;e.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break e}y+=I}e.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=rl,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Sl=wl;function Ml(e,t,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=e;if(a>t+s&&a>i+s||a<t-s&&a<i-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;l=(t-i)/(e-n),u=(e*i-n*t)/(e-n);var c=l*o-a+u,d=c*c/(l*l+1);return d<=s/2*s/2}function Cl(e,t,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var d=l;if(c>t+d&&c>i+d&&c>o+d&&c>s+d||c<t-d&&c<i-d&&c<o-d&&c<s-d||u>e+d&&u>n+d&&u>r+d&&u>a+d||u<e-d&&u<n-d&&u<r-d&&u<a-d)return!1;var h=wn(e,t,n,i,r,o,a,s,u,c,null);return h<=d/2}function Il(e,t,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>t+u&&l>i+u&&l>o+u||l<t-u&&l<i-u&&l<o-u||s>e+u&&s>n+u&&s>r+u||s<e-u&&s<n-u&&s<r-u)return!1;var c=An(e,t,n,i,r,o,s,l,null);return c<=u/2}var Tl=2*Math.PI;function kl(e){return e%=Tl,e<0&&(e+=Tl),e}var Al=2*Math.PI;function Dl(e,t,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%Al<1e-4)return!0;if(o){var d=i;i=kl(r),r=kl(d)}else i=kl(i),r=kl(r);i>r&&(r+=Al);var h=Math.atan2(l,s);return h<0&&(h+=Al),h>=i&&h<=r||h+Al>=i&&h+Al<=r}function Ll(e,t,n,i,r,o){if(o>t&&o>i||o<t&&o<i)return 0;if(i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;1!==a&&0!==a||(s=i<t?.5:-.5);var l=a*(n-e)+e;return l===r?1/0:l>r?s:0}var Pl=Sl.CMD,Ol=2*Math.PI,Rl=1e-4;function El(e,t){return Math.abs(e-t)<Rl}var Nl=[-1,-1,-1],Fl=[-1,-1];function Bl(){var e=Fl[0];Fl[0]=Fl[1],Fl[1]=e}function Vl(e,t,n,i,r,o,a,s,l,u){if(u>t&&u>i&&u>o&&u>s||u<t&&u<i&&u<o&&u<s)return 0;var c=xn(t,i,o,s,u,Nl);if(0===c)return 0;for(var d=0,h=-1,p=void 0,f=void 0,g=0;g<c;g++){var v=Nl[g],m=0===v||1===v?.5:1,y=mn(e,n,r,a,v);y<l||(h<0&&(h=_n(t,i,o,s,Fl),Fl[1]<Fl[0]&&h>1&&Bl(),p=mn(t,i,o,s,Fl[0]),h>1&&(f=mn(t,i,o,s,Fl[1]))),2===h?v<Fl[0]?d+=p<t?m:-m:v<Fl[1]?d+=f<p?m:-m:d+=s<f?m:-m:v<Fl[0]?d+=p<t?m:-m:d+=s<p?m:-m)}return d}function zl(e,t,n,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=In(t,i,o,s,Nl);if(0===l)return 0;var u=Tn(t,i,o);if(u>=0&&u<=1){for(var c=0,d=Mn(t,i,o,u),h=0;h<l;h++){var p=0===Nl[h]||1===Nl[h]?.5:1,f=Mn(e,n,r,Nl[h]);f<a||(Nl[h]<u?c+=d<t?p:-p:c+=o<d?p:-p)}return c}p=0===Nl[0]||1===Nl[0]?.5:1,f=Mn(e,n,r,Nl[0]);return f<a?0:o<t?p:-p}function ql(e,t,n,i,r,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Nl[0]=-l,Nl[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Ol-1e-4){i=0,r=Ol;var c=o?1:-1;return a>=Nl[0]+e&&a<=Nl[1]+e?c:0}if(i>r){var d=i;i=r,r=d}i<0&&(i+=Ol,r+=Ol);for(var h=0,p=0;p<2;p++){var f=Nl[p];if(f+e>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Ol+g),(g>=i&&g<=r||g+Ol>=i&&g+Ol<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function Hl(e,t,n,i,r){for(var o,a,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,p=0,f=0;f<l;){var g=s[f++],v=1===f;switch(g===Pl.M&&f>1&&(n||(u+=Ll(c,d,h,p,i,r))),v&&(c=s[f],d=s[f+1],h=c,p=d),g){case Pl.M:h=s[f++],p=s[f++],c=h,d=p;break;case Pl.L:if(n){if(Ml(c,d,s[f],s[f+1],t,i,r))return!0}else u+=Ll(c,d,s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case Pl.C:if(n){if(Cl(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=Vl(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case Pl.Q:if(n){if(Il(c,d,s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=zl(c,d,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case Pl.A:var m=s[f++],y=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(b)*x+m,a=Math.sin(b)*_+y,v?(h=o,p=a):u+=Ll(c,d,o,a,i,r);var M=(i-m)*_/x+m;if(n){if(Dl(m,y,_,b,b+w,S,t,M,r))return!0}else u+=ql(m,y,_,b,b+w,S,M,r);c=Math.cos(b+w)*x+m,d=Math.sin(b+w)*_+y;break;case Pl.R:h=c=s[f++],p=d=s[f++];var C=s[f++],I=s[f++];if(o=h+C,a=p+I,n){if(Ml(h,p,o,p,t,i,r)||Ml(o,p,o,a,t,i,r)||Ml(o,a,h,a,t,i,r)||Ml(h,a,h,p,t,i,r))return!0}else u+=Ll(o,p,o,a,i,r),u+=Ll(h,a,h,p,i,r);break;case Pl.Z:if(n){if(Ml(c,d,h,p,t,i,r))return!0}else u+=Ll(c,d,h,p,i,r);c=h,d=p;break}}return n||El(d,p)||(u+=Ll(c,d,h,p,i,r)||0),0!==u}function Wl(e,t,n){return Hl(e,0,!1,t,n)}function Gl(e,t,n,i){return Hl(e,t,!0,n,i)}var Ul=B({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Rs),jl={style:B({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Es.style)},Zl=Ur.concat(["invisible","culling","z","z2","zlevel","parent"]),$l=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Zl.length;++s)r[Zl[s]]=this[Zl[s]];r.__dirty|=Zt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=$(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=t[o];"style"===o?this.style?F(this.style,a):this.useStyle(a):"shape"===o?F(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(ee(e)){var t=si(e,0);return t>.5?Cr:t>.2?Tr:Ir}if(e)return Ir}return Cr},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(ee(t)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=si(e,0)<Mr;if(i===r)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Yt},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Sl(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Yt)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Gl(o,a/s,e,t)))return!0}if(this.hasFill())return Wl(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Yt,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:F(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Yt)},t.prototype.createStyle=function(e){return Me(Ul,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=F({},i.shape),F(s,n.shape)):(s=F({},r?this.shape:i.shape),F(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=F({},this.shape);for(var u={},c=$(s),d=0;d<c.length;d++){var h=c[d];"object"===typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return jl},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var i=t.call(this,n)||this;return e.init&&e.init.call(i,n),i}return De(n,t),n.prototype.getDefaultStyle=function(){return R(e.style)},n.prototype.getDefaultShape=function(){return R(e.shape)},n}(t);for(var i in e)"function"===typeof e[i]&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Zt|$t|Yt}(),t}(Hs);const Yl=$l;var Xl=B({strokeFirst:!0,font:p,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ul),Kl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Me(Xl,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=uo(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Hs);Kl.prototype.type="tspan";const Jl=Kl;var Ql=B({x:0,y:0},Rs),eu={style:B({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Es.style)};function tu(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t.prototype.createStyle=function(e){return Me(Ql,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i=tu(t.image)?t.image:this.__image;if(!i)return 0;var r="width"===e?"height":"width",o=t[r];return null==o?i[e]:i[e]/i[r]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return eu},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new oo(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Hs);nu.prototype.type="image";const iu=nu;function ru(e,t){var n,i,r,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof d?n=i=r=o=d:d instanceof Array?1===d.length?n=i=r=o=d[0]:2===d.length?(n=r=d[0],i=o=d[1]):3===d.length?(n=d[0],i=o=d[1],r=d[2]):(n=d[0],i=d[1],r=d[2],o=d[3]):n=i=r=o=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),i+r>c&&(a=i+r,i*=c/a,r*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-i,l),0!==i&&e.arc(s+u-i,l+i,i,-Math.PI/2,0),e.lineTo(s+u,l+c-r),0!==r&&e.arc(s+u-r,l+c-r,r,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ou=Math.round;function au(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(ou(2*i)===ou(2*r)&&(e.x1=e.x2=lu(i,s,!0)),ou(2*o)===ou(2*a)&&(e.y1=e.y2=lu(o,s,!0)),e):e}}function su(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=lu(i,s,!0),e.y=lu(r,s,!0),e.width=Math.max(lu(i+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(lu(r+a,s,!1)-e.y,0===a?0:1),e):e}}function lu(e,t,n){if(!t)return e;var i=ou(2*e);return(i+ou(t))%2===0?i/2:(i+(n?1:-1))/2}var uu=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),cu={},du=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new uu},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=su(cu,t,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,r=t.width,o=t.height;t.r?ru(e,t):e.rect(n,i,r,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Yl);du.prototype.type="rect";const hu=du;var pu={fill:"#000"},fu=2,gu={style:B({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},Es.style)},vu=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=pu,n.attr(t),n}return De(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];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 t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},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,Su(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);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 e=new oo(0,0,0,0),t=this._children,n=[],i=null,r=0;r<t.length;r++){var o=t[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),i=i||e.clone(),i.union(e)):(i=i||a.clone(),i.union(a))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||pu},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,i=e.rich||n&&{};return F(e,t),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,t){for(var n=$(t),i=0;i<n.length;i++){var r=n[i];e[r]=e[r]||{},F(e[r],t[r])}},t.prototype.getAnimationStyleProps=function(){return gu},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||p,n=e.padding,i=ku(e),r=Ss(i,e),o=Au(e),a=!!e.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,c=r.lines,d=r.lineHeight,h=this._defaultStyle,f=e.x||0,g=e.y||0,v=e.align||h.align||"left",m=e.verticalAlign||h.verticalAlign||"top",y=f,x=ho(g,r.contentHeight,m);if(o||n){var _=co(f,l,v),b=ho(g,s,m);o&&this._renderBackground(e,e,_,b,l,s)}x+=d/2,n&&(y=Tu(f,v,n),"top"===m?x+=n[0]:"bottom"===m&&(x-=n[2]));for(var w=0,S=!1,M=(Iu("fill"in e?e.fill:(S=!0,h.fill))),C=(Cu("stroke"in e?e.stroke:a||h.autoStroke&&!S?null:(w=fu,h.stroke))),I=e.textShadowBlur>0,T=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),k=r.calculatedLineHeight,A=0;A<c.length;A++){var D=this._getOrCreateChild(Jl),L=D.createStyle();D.useStyle(L),L.text=c[A],L.x=y,L.y=x,v&&(L.textAlign=v),L.textBaseline="middle",L.opacity=e.opacity,L.strokeFirst=!0,I&&(L.shadowBlur=e.textShadowBlur||0,L.shadowColor=e.textShadowColor||"transparent",L.shadowOffsetX=e.textShadowOffsetX||0,L.shadowOffsetY=e.textShadowOffsetY||0),L.stroke=C,L.fill=M,C&&(L.lineWidth=e.lineWidth||w,L.lineDash=e.lineDash,L.lineDashOffset=e.lineDashOffset||0),L.font=t,bu(L,e),x+=d,T&&D.setBoundingRect(new oo(co(L.x,e.width,L.textAlign),ho(L.y,k,L.textBaseline),u,k))}},t.prototype._updateRichTexts=function(){var e=this.style,t=ku(e),n=Ts(t,e),i=n.width,r=n.outerWidth,o=n.outerHeight,a=e.padding,s=e.x||0,l=e.y||0,u=this._defaultStyle,c=e.align||u.align,d=e.verticalAlign||u.verticalAlign,h=co(s,r,c),p=ho(l,o,d),f=h,g=p;a&&(f+=a[3],g+=a[0]);var v=f+i;Au(e)&&this._renderBackground(e,e,h,p,r,o);for(var m=!!e.backgroundColor,y=0;y<n.lines.length;y++){var x=n.lines[y],_=x.tokens,b=_.length,w=x.lineHeight,S=x.width,M=0,C=f,I=v,T=b-1,k=void 0;while(M<b&&(k=_[M],!k.align||"left"===k.align))this._placeToken(k,e,w,g,C,"left",m),S-=k.width,C+=k.width,M++;while(T>=0&&(k=_[T],"right"===k.align))this._placeToken(k,e,w,g,I,"right",m),S-=k.width,I-=k.width,T--;C+=(i-(C-f)-(v-I)-S)/2;while(M<=T)k=_[M],this._placeToken(k,e,w,g,C+k.width/2,"center",m),C+=k.width,M++;g+=w}},t.prototype._placeToken=function(e,t,n,i,r,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=i+n/2;"top"===l?u=i+e.height/2:"bottom"===l&&(u=i+n-e.height/2);var c=!e.isLineHolder&&Au(s);c&&this._renderBackground(s,t,"right"===o?r-e.width:"center"===o?r-e.width/2:r,u-e.height/2,e.width,e.height);var d=!!s.backgroundColor,h=e.textPadding;h&&(r=Tu(r,o,h),u-=e.height/2-h[0]-e.innerHeight/2);var f=this._getOrCreateChild(Jl),g=f.createStyle();f.useStyle(g);var v=this._defaultStyle,m=!1,y=0,x=Iu("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,v.fill)),_=Cu("stroke"in s?s.stroke:"stroke"in t?t.stroke:d||a||v.autoStroke&&!m?null:(y=fu,v.stroke)),b=s.textShadowBlur>0||t.textShadowBlur>0;g.text=e.text,g.x=r,g.y=u,b&&(g.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,g.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",g.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,g.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),g.textAlign=o,g.textBaseline="middle",g.font=e.font||p,g.opacity=pe(s.opacity,t.opacity,1),bu(g,s),_&&(g.lineWidth=pe(s.lineWidth,t.lineWidth,y),g.lineDash=he(s.lineDash,t.lineDash),g.lineDashOffset=t.lineDashOffset||0,g.stroke=_),x&&(g.fill=x);var w=e.contentWidth,S=e.contentHeight;f.setBoundingRect(new oo(co(g.x,w,g.textAlign),ho(g.y,S,g.textBaseline),w,S))},t.prototype._renderBackground=function(e,t,n,i,r,o){var a,s,l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,d=l&&l.image,h=l&&!d,p=e.borderRadius,f=this;if(h||e.lineHeight||u&&c){a=this._getOrCreateChild(hu),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=p,a.dirtyShape()}if(h){var v=a.style;v.fill=l||null,v.fillOpacity=he(e.fillOpacity,1)}else if(d){s=this._getOrCreateChild(iu),s.onload=function(){f.dirtyStyle()};var m=s.style;m.image=l.image,m.x=n,m.y=i,m.width=r,m.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=he(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=pe(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return wu(e)&&(t=[e.fontStyle,e.fontWeight,_u(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&me(t)||e.textFont||e.font},t}(Hs),mu={left:!0,right:1,center:1},yu={top:1,bottom:1,middle:1},xu=["fontStyle","fontWeight","fontSize","fontFamily"];function _u(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?d+"px":e+"px":e}function bu(e,t){for(var n=0;n<xu.length;n++){var i=xu[n],r=t[i];null!=r&&(e[i]=r)}}function wu(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function Su(e){return Mu(e),W(e.rich,Mu),e}function Mu(e){if(e){e.font=vu.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||mu[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||yu[n]?n:"top";var i=e.padding;i&&(e.padding=ge(e.padding))}}function Cu(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Iu(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function Tu(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function ku(e){var t=e.text;return null!=t&&(t+=""),t}function Au(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Du=vu;var Lu=Fa(),Pu=function(e,t,n,i){if(i){var r=Lu(i);r.dataIndex=n,r.dataType=t,r.seriesIndex=e,"group"===i.type&&i.traverse((function(i){var r=Lu(i);r.seriesIndex=e,r.dataIndex=n,r.dataType=t}))}},Ou=1,Ru={},Eu=Fa(),Nu=Fa(),Fu=0,Bu=1,Vu=2,zu=["emphasis","blur","select"],qu=["normal","emphasis","blur","select"],Hu=10,Wu=9,Gu="highlight",Uu="downplay",ju="select",Zu="unselect",$u="toggleSelect";function Yu(e){return null!=e&&"none"!==e}var Xu=new Bn(100);function Ku(e){if(ee(e)){var t=Xu.get(e);return t||(t=ti(e,-.1),Xu.put(e,t)),t}if(se(e)){var n=F({},e);return n.colorStops=G(e.colorStops,(function(e){return{offset:e.offset,color:ti(e.color,-.1)}})),n}return e}function Ju(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Qu(e){Ju(e,"emphasis",Vu)}function ec(e){e.hoverState===Vu&&Ju(e,"normal",Fu)}function tc(e){Ju(e,"blur",Bu)}function nc(e){e.hoverState===Bu&&Ju(e,"normal",Fu)}function ic(e){e.selected=!0}function rc(e){e.selected=!1}function oc(e,t,n){t(e,n)}function ac(e,t,n){oc(e,t,n),e.isGroup&&e.traverse((function(e){oc(e,t,n)}))}function sc(e,t){switch(t){case"emphasis":e.hoverState=Vu;break;case"normal":e.hoverState=Fu;break;case"blur":e.hoverState=Bu;break;case"select":e.selected=!0}}function lc(e,t,n,i){for(var r=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}function uc(e,t,n,i){var r=n&&V(n,"select")>=0,o=!1;if(e instanceof Yl){var a=Eu(e),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Yu(s)||Yu(l)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=F({},i),u=F({},u),u.fill=s):!Yu(u.fill)&&Yu(s)?(o=!0,i=F({},i),u=F({},u),u.fill=Ku(s)):!Yu(u.stroke)&&Yu(l)&&(o||(i=F({},i),u=F({},u)),u.stroke=Ku(l)),i.style=u}}if(i&&null==i.z2){o||(i=F({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(null!=c?c:Hu)}return i}function cc(e,t,n){if(n&&null==n.z2){n=F({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:Wu)}return n}function dc(e,t,n){var i=V(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:lc(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=F({},n),a=F({opacity:i?r:.1*o.opacity},a),n.style=a),n}function hc(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return uc(this,e,t,n);if("blur"===e)return dc(this,e,n);if("select"===e)return cc(this,e,n)}return n}function pc(e){e.stateProxy=hc;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=hc),n&&(n.stateProxy=hc)}function fc(e,t){!wc(e,t)&&!e.__highByOuter&&ac(e,Qu)}function gc(e,t){!wc(e,t)&&!e.__highByOuter&&ac(e,ec)}function vc(e,t){e.__highByOuter|=1<<(t||0),ac(e,Qu)}function mc(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ac(e,ec)}function yc(e){ac(e,tc)}function xc(e){ac(e,nc)}function _c(e){ac(e,ic)}function bc(e){ac(e,rc)}function wc(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Sc(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,r){var o=Nu(r),a="series"===t,s=a?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(e){nc(e)})),a&&n.push(r)),o.isBlured=!1})),W(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Mc(e,t,n,i){var r=i.getModel();function o(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&xc(i)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=r.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(e){var r=a===e,u=e.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!c||"series"===t&&r)){var d=i.getViewOfSeriesModel(e);if(d.group.traverse((function(e){tc(e)})),H(t))o(e.getData(),t);else if(ie(t))for(var h=$(t),p=0;p<h.length;p++)o(e.getData(h[p]),t[h[p]]);l.push(e),Nu(e).isBlured=!0}})),r.eachComponent((function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function Cc(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){Nu(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(e){tc(e)}))}}}function Ic(e,t,n){var i=e.seriesIndex,r=e.getData(t.dataType);if(r){var o=Na(r,t);o=(J(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a){var s=r.count(),l=0;while(!a&&l<s)a=r.getItemGraphicEl(l++)}if(a){var u=Lu(a);Mc(i,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&Mc(i,c,d,n)}}}function Tc(e,t,n,i){var r={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return r;var o=i.getModel().getComponent(e,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Lu(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function kc(e,t,n){var i=Lu(e),r=Tc(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&Cc(i.componentMainType,i.componentIndex,n),W(o,(function(e){return fc(e,t)}))):(Mc(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Cc(i.componentMainType,i.componentIndex,n),fc(e,t))}function Ac(e,t,n){Sc(n);var i=Lu(e),r=Tc(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?W(r,(function(e){return gc(e,t)})):gc(e,t)}function Dc(e,t,n){if(Gc(t)){var i=t.dataType,r=e.getData(i),o=Na(r,t);J(o)||(o=[o]),e[t.type===$u?"toggleSelect":t.type===ju?"select":"unselect"](o,i)}}function Lc(e){var t=e.getAllData();W(t,(function(t){var n=t.data,i=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,i)?_c(t):bc(t)}))}))}function Pc(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();W(n,(function(n){n.data;var i=n.type,r=e.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function Oc(e,t,n){zc(e,!0),ac(e,pc),Nc(e,t,n)}function Rc(e){zc(e,!1)}function Ec(e,t,n,i){i?Rc(e):Oc(e,t,n)}function Nc(e,t,n){var i=Lu(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var Fc=["emphasis","blur","select"],Bc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Vc(e,t,n,i){n=n||"itemStyle";for(var r=0;r<Fc.length;r++){var o=Fc[r],a=t.getModel([o,n]),s=e.ensureState(o);s.style=i?i(a):a[Bc[n]]()}}function zc(e,t){var n=!1===t,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function qc(e){return!(!e||!e.__highDownDispatcher)}function Hc(e,t,n){var i=Lu(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n}function Wc(e){var t=Ru[e];return null==t&&Ou<=32&&(t=Ru[e]=Ou++),t}function Gc(e){var t=e.type;return t===ju||t===Zu||t===$u}function Uc(e){var t=e.type;return t===Gu||t===Uu}function jc(e){var t=Eu(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Zc=Fa();function $c(e,t,n,i,r){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l="update"===e;if(s){var u=void 0,c=void 0,d=void 0;i?(u=he(i.duration,200),c=he(i.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(d=o.delay)),Q(d)&&(d=d(n,r)),Q(u)&&(u=u(n));var h={duration:u||0,delay:d,easing:c};return h}return null}function Yc(e,t,n,i,r,o,a){var s,l=!1;Q(r)?(a=o,o=r,r=null):ie(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=$c(e,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(c&&c.duration>0){var d=c.duration,h=c.delay,p=c.easing,f={duration:d,delay:h||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,f):t.animateTo(n,f)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function Xc(e,t,n,i,r,o){Yc("update",e,t,n,i,r,o)}function Kc(e,t,n,i,r,o){Yc("enter",e,t,n,i,r,o)}function Jc(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if("leave"===n.scope)return!0}return!1}function Qc(e,t,n,i,r,o){Jc(e)||Yc("leave",e,t,n,i,r,o)}function ed(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),Qc(e,{style:{opacity:0}},t,n,i)}function td(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||ed(e,t,n,i)})):ed(e,t,n,i)}function nd(e){Zc(e).oldStyle=e.style}function id(e){return Zc(e).oldStyle}var rd={};function od(e,t){for(var n=0;n<zu.length;n++){var i=zu[n],r=t[i],o=e.ensureState(i);o.style=o.style||{},o.style.text=r}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function ad(e,t,n){var i,r=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Q(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:i},u=0;u<zu.length;u++){var c=zu[u],d=t[c];l[c]=he(r?r.getFormattedLabel(o,c,null,a,d&&d.get("formatter")):null,i)}return l}function sd(e,t,n,i){n=n||rd;for(var r=e instanceof Du,o=!1,a=0;a<qu.length;a++){var s=t[qu[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?e:e.getTextContent();if(o){r||(l||(l=new Du,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=ad(n,t),c=t.normal,d=!!c.getShallow("show"),h=ud(c,i&&i.normal,n,!1,!r);h.text=u.normal,r||e.setTextConfig(cd(c,n,!1));for(a=0;a<zu.length;a++){var p=zu[a];s=t[p];if(s){var f=l.ensureState(p),g=!!he(s.getShallow("show"),d);if(g!==d&&(f.ignore=!g),f.style=ud(s,i&&i[p],n,!0,!r),f.style.text=u[p],!r){var v=e.ensureState(p);v.textConfig=cd(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(h.x=l.style.x),null!=l.style.y&&(h.y=l.style.y),l.ignore=!d,l.useStyle(h),l.dirty(),n.enableTextSetter&&(yd(l).setLabelText=function(e){var i=ad(n,t,e);od(l,i)})}else l&&(l.ignore=!0);e.dirty()}function ld(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<zu.length;i++){var r=zu[i];n[r]=e.getModel([r,t])}return n}function ud(e,t,n,i,r){var o={};return dd(o,e,n,i,r),t&&F(o,t),o}function cd(e,t,n){t=t||{};var i,r={},o=e.getShallow("rotate"),a=he(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=t.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",r}function dd(e,t,n,i,r){n=n||rd;var o,a=t.ecModel,s=a&&a.option.textStyle,l=hd(t);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);vd(o[u]={},c,s,n,i,r,!1,!0)}o&&(e.rich=o);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h),vd(e,t,s,n,i,r,!0,!1)}function hd(e){var t;while(e&&e!==e.ecModel){var n=(e.option||rd).rich;if(n){t=t||{};for(var i=$(n),r=0;r<i.length;r++){var o=i[r];t[o]=1}}e=e.parentModel}return t}var pd=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],fd=["align","lineHeight","width","height","tag","verticalAlign"],gd=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function vd(e,t,n,i,r,o,a,s){n=!r&&n||rd;var l=i&&i.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=he(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var h=he(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var p=he(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=he(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),r||null!=d||s||(d=i&&i.defaultOpacity),null!=d&&(e.opacity=d),r||o||null==e.fill&&i.inheritColor&&(e.fill=i.inheritColor);for(var g=0;g<pd.length;g++){var v=pd[g],m=he(t.getShallow(v),n[v]);null!=m&&(e[v]=m)}for(g=0;g<fd.length;g++){v=fd[g],m=t.getShallow(v);null!=m&&(e[v]=m)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!a||!i.disableBox){for(g=0;g<gd.length;g++){v=gd[g],m=t.getShallow(v);null!=m&&(e[v]=m)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}function md(e,t){var n=t&&t.getModel("textStyle");return me([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var yd=Fa();function xd(e,t,n,i){if(e){var r=yd(e);r.prevValue=r.value,r.value=n;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function _d(e,t,n,i,r){var o=yd(e);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=he(o.interpolatedValue,o.prevValue),l=o.value;e.percent=0,(null==o.prevValue?Kc:Xc)(e,{percent:1},i,t,null,u)}function u(i){var u=$a(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:u;var c=ad({labelDataIndex:t,labelFetcher:r,defaultText:a?a(u):u+""},o.statesModels,u);od(e,c)}}var bd=["textStyle","color"],wd=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Sd=new Du,Md=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(bd):null)},e.prototype.getFont=function(){return md({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<wd.length;n++)t[wd[n]]=this.getShallow(wd[n]);return Sd.useStyle(t),Sd.update(),Sd.getBoundingRect()},e}();const Cd=Md;var Id=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Td=us(Id),kd=function(){function e(){}return e.prototype.getLineStyle=function(e){return Td(this,e)},e}(),Ad=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Dd=us(Ad),Ld=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Dd(this,e,t)},e}(),Pd=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},e.prototype.mergeOption=function(e,t){E(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var r=this.parentModel;r&&(i=r.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,r=i?this.parsePath(t):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(R(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!c.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length;i++)if(e[i]&&(n=n&&"object"===typeof n?n[e[i]]:null,null==n))break;return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();ts(Pd),os(Pd),q(Pd,kd),q(Pd,Ld),q(Pd,hs),q(Pd,Cd);const Od=Pd;var Rd=Math.round(10*Math.random());function Ed(e){return[e||"",Rd++].join("_")}function Nd(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=Ja(e);t[i.main]=n},e.determineSubType=function(n,i){var r=i.type;if(!r){var o=Ja(n).main;e.hasSubTypes(n)&&t[o]&&(r=t[o](i))}return r}}function Fd(e,t){function n(e){var n={},o=[];return W(e,(function(a){var s=i(n,a),l=s.originalDeps=t(a),u=r(l,e);s.entryCount=u.length,0===s.entryCount&&o.push(a),W(u,(function(e){V(s.predecessor,e)<0&&s.predecessor.push(e);var t=i(n,e);V(t.successor,e)<0&&t.successor.push(a)}))})),{graph:n,noEntryList:o}}function i(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function r(e,t){var n=[];return W(e,(function(e){V(t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,r){if(e.length){var o=n(t),a=o.graph,s=o.noEntryList,l={};W(e,(function(e){l[e]=!0}));while(s.length){var u=s.pop(),c=a[u],d=!!l[u];d&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),W(c.successor,d?p:h)}W(l,(function(){var e="";throw new Error(e)}))}function h(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function p(e){l[e]=!0,h(e)}}}function Bd(e,t){return E(E({},e,!0),t,!0)}const Vd={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:". "}}}},zd={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};var qd="ZH",Hd="EN",Wd=Hd,Gd={},Ud={},jd=c.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(qd)>-1?qd:Wd}():Wd;function Zd(e,t){e=e.toUpperCase(),Ud[e]=new Od(t),Gd[e]=t}function $d(e){if(ee(e)){var t=Gd[e.toUpperCase()]||{};return e===qd||e===Hd?R(t):E(R(t),R(Gd[Wd]),!1)}return E(R(e),R(Gd[Wd]),!1)}function Yd(e){return Ud[e]}function Xd(){return Ud[Wd]}Zd(Hd,Vd),Zd(qd,zd);var Kd=1e3,Jd=60*Kd,Qd=60*Jd,eh=24*Qd,th=365*eh,nh={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}"},ih="{yyyy}-{MM}-{dd}",rh={year:"{yyyy}",month:"{yyyy}-{MM}",day:ih,hour:ih+" "+nh.hour,minute:ih+" "+nh.minute,second:ih+" "+nh.second,millisecond:nh.none},oh=["year","month","day","hour","minute","second","millisecond"],ah=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function sh(e,t){return e+="","0000".substr(0,t-e.length)+e}function lh(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 uh(e){return e===lh(e)}function ch(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function dh(e,t,n,i){var r=ta(e),o=r[gh(n)](),a=r[vh(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[mh(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[yh(n)](),d=(c-1)%12+1,h=r[xh(n)](),p=r[_h(n)](),f=r[bh(n)](),g=i instanceof Od?i:Yd(i||jd)||Xd(),v=g.getModel("time"),m=v.get("month"),y=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,sh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,sh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,sh(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,sh(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,sh(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,sh(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,sh(f,3)).replace(/{S}/g,f+"")}function hh(e,t,n,i,r){var o=null;if(ee(n))o=n;else if(Q(n))o=n(e.value,t,{level:e.level});else{var a=F({},nh);if(e.level>0)for(var s=0;s<oh.length;++s)a[oh[s]]="{primary|"+a[oh[s]]+"}";var l=n?!1===n.inherit?n:B(n,a):a,u=ph(e.value,r);if(l[u])o=l[u];else if(l.inherit){var c=ah.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(J(o)){var d=null==e.level?0:e.level>=0?e.level:o.length+e.level;d=Math.min(d,o.length-1),o=o[d]}}return dh(new Date(e.value),o,r,i)}function ph(e,t){var n=ta(e),i=n[vh(t)]()+1,r=n[mh(t)](),o=n[yh(t)](),a=n[xh(t)](),s=n[_h(t)](),l=n[bh(t)](),u=0===l,c=u&&0===s,d=c&&0===a,h=d&&0===o,p=h&&1===r,f=p&&1===i;return f?"year":p?"month":h?"day":d?"hour":c?"minute":u?"second":"millisecond"}function fh(e,t,n){var i=ne(e)?ta(e):e;switch(t=t||ph(e,n),t){case"year":return i[gh(n)]();case"half-year":return i[vh(n)]()>=6?1:0;case"quarter":return Math.floor((i[vh(n)]()+1)/4);case"month":return i[vh(n)]();case"day":return i[mh(n)]();case"half-day":return i[yh(n)]()/24;case"hour":return i[yh(n)]();case"minute":return i[xh(n)]();case"second":return i[_h(n)]();case"millisecond":return i[bh(n)]()}}function gh(e){return e?"getUTCFullYear":"getFullYear"}function vh(e){return e?"getUTCMonth":"getMonth"}function mh(e){return e?"getUTCDate":"getDate"}function yh(e){return e?"getUTCHours":"getHours"}function xh(e){return e?"getUTCMinutes":"getMinutes"}function _h(e){return e?"getUTCSeconds":"getSeconds"}function bh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function wh(e){return e?"setUTCFullYear":"setFullYear"}function Sh(e){return e?"setUTCMonth":"setMonth"}function Mh(e){return e?"setUTCDate":"setDate"}function Ch(e){return e?"setUTCHours":"setHours"}function Ih(e){return e?"setUTCMinutes":"setMinutes"}function Th(e){return e?"setUTCSeconds":"setSeconds"}function kh(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Ah(e){if(!la(e))return ee(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Dh(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Lh=ge,Ph=/([&<>"'])/g,Oh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Rh(e){return null==e?"":(e+"").replace(Ph,(function(e,t){return Oh[t]}))}function Eh(e,t,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(e){return e&&me(e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,s=e instanceof Date;if(a||s){var l=a?ta(e):e;if(!isNaN(+l))return dh(l,i,n);if(s)return"-"}if("ordinal"===t)return te(e)?r(e):ne(e)&&o(e)?e+"":"-";var u=sa(e);return o(u)?Ah(u):te(e)?r(e):"boolean"===typeof e?e+"":"-"}var Nh=["a","b","c","d","e","f","g"],Fh=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Bh(e,t,n){J(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=Nh[o];e=e.replace(Fh(a),Fh(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];e=e.replace(Fh(Nh[l],s),n?Rh(u):u)}return e}function Vh(e,t,n){return W(t,(function(t,i){e=e.replace("{"+i+"}",n?Rh(t):t)})),e}function zh(e,t){var n=ee(e)?{color:e,extraCssText:t}:e||{},i=n.color,r=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if("html"===o)return"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Rh(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Rh(i)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function qh(e,t){return t=t||"transparent",ee(e)?e:ie(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Hh(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Wh=W,Gh=["left","right","top","bottom","width","height"],Uh=[["width","left","right"],["height","top","bottom"]];function jh(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,u){var c,d,h=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var g=h.width+(f?-f.x+h.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var v=h.height+(f?-f.y+h.y:0);d=a+v,d>r||l.newline?(o+=s+n,a=0,d=v,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)}))}var Zh=jh;K(jh,"vertical"),K(jh,"horizontal");function $h(e,t,n){var i=t.width,r=t.height,o=Wo(e.left,i),a=Wo(e.top,r),s=Wo(e.right,i),l=Wo(e.bottom,r);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=r),n=Lh(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function Yh(e,t,n){n=Lh(n||0);var i=t.width,r=t.height,o=Wo(e.left,i),a=Wo(e.top,r),s=Wo(e.right,i),l=Wo(e.bottom,r),u=Wo(e.width,i),c=Wo(e.height,r),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=i-s-h-o),isNaN(c)&&(c=r-l-d-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-h),isNaN(a)&&(a=r-l-c-d),e.left||e.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-h;break}switch(e.top||e.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-d;break}o=o||0,a=a||0,isNaN(u)&&(u=i-h-o-(s||0)),isNaN(c)&&(c=r-d-a-(l||0));var f=new oo(o+n[3],a+n[0],u,c);return f.margin=n,f}function Xh(e,t,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!s&&!l)return!1;if("raw"===u)a="group"===e.type?new oo(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();a=a.clone(),a.applyTransform(c)}var d=Yh(B({width:a.width,height:a.height},t),n,i),h=s?d.x-a.x:0,p=l?d.y-a.y:0;return"raw"===u?(o.x=h,o.y=p):(o.x+=h,o.y+=p),o===e&&e.markRedraw(),!0}function Kh(e,t){return null!=e[Uh[t][0]]||null!=e[Uh[t][1]]&&null!=e[Uh[t][2]]}function Jh(e){var t=e.layoutMode||e.constructor.layoutMode;return ie(t)?t:t?{type:t}:null}function Qh(e,t,n){var i=n&&n.ignoreSize;!J(i)&&(i=[i,i]);var r=a(Uh[0],0),o=a(Uh[1],1);function a(n,r){var o={},a=0,u={},c=0,d=2;if(Wh(n,(function(t){u[t]=e[t]})),Wh(n,(function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++})),i[r])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(c!==d&&a){if(a>=d)return o;for(var h=0;h<n.length;h++){var p=n[h];if(!s(o,p)&&s(e,p)){o[p]=e[p];break}}return o}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){Wh(e,(function(e){t[e]=n[e]}))}u(Uh[0],e,r),u(Uh[1],e,o)}function ep(e){return tp({},e)}function tp(e,t){return t&&e&&Wh(Gh,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var np=Fa(),ip=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.uid=Ed("ec_cpt_model"),r}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Jh(this),i=n?ep(e):{},r=t.getTheme();E(e,r.get(this.mainType)),E(e,this.getDefaultOption()),n&&Qh(e,i,n)},t.prototype.mergeOption=function(e,t){E(this.option,e,!0);var n=Jh(this);n&&Qh(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!es(e))return e.defaultOption;var t=np(this);if(!t.defaultOption){var n=[],i=e;while(i){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=E(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return Wa(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Od);function rp(e){var t=[];return W(ip.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=G(t,(function(e){return Ja(e).main})),"dataset"!==e&&V(t,"dataset")<=0&&t.unshift("dataset"),t}is(ip,Od),ls(ip),Nd(ip),Fd(ip,rp);const op=ip;var ap="";"undefined"!==typeof navigator&&(ap=navigator.platform||"");var sp="rgba(0, 0, 0, 0.2)";const lp={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sp,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sp,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sp,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sp,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sp,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sp,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ap.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var up=we(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),cp="original",dp="arrayRows",hp="objectRows",pp="keyedColumns",fp="typedArray",gp="unknown",vp="column",mp="row",yp={Must:1,Might:2,Not:3},xp=Fa();function _p(e){xp(e).datasetMap=we()}function bp(e,t,n){var i={},r=Sp(t);if(!r||!e)return i;var o,a,s=[],l=[],u=t.ecModel,c=xp(u).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;e=e.slice(),W(e,(function(t,n){var r=ie(t)?t:e[n]={name:t};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var h=c.get(d)||c.set(d,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function f(e){var t=e.dimsDef;return t?t.length:1}return W(e,(function(e,t){var n=e.name,r=f(e);if(null==o){var a=h.valueWayDim;p(i[n],a,r),p(l,a,r),h.valueWayDim+=r}else if(o===t)p(i[n],0,r),p(s,0,r);else{a=h.categoryWayDim;p(i[n],a,r),p(l,a,r),h.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function wp(e,t,n){var i={},r=Sp(e);if(!r)return i;var o,a=t.sourceFormat,s=t.dimensionsDefine;a!==hp&&a!==pp||W(s,(function(e,t){"name"===(ie(e)?e.name:e)&&(o=t)}));var l=function(){for(var e={},i={},r=[],l=0,u=Math.min(5,n);l<u;l++){var c=Ip(t.data,a,t.seriesLayoutBy,s,t.startIndex,l);r.push(c);var d=c===yp.Not;if(d&&null==e.v&&l!==o&&(e.v=l),(null==e.n||e.n===e.v||!d&&r[e.n]===yp.Not)&&(e.n=l),h(e)&&r[e.n]!==yp.Not)return e;d||(c===yp.Might&&null==i.v&&l!==o&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function h(e){return null!=e.v&&null!=e.n}return h(e)?e:h(i)?i:null}();if(l){i.value=[l.v];var u=null!=o?o:l.n;i.itemName=[u],i.seriesName=[u]}return i}function Sp(e){var t=e.get("data",!0);if(!t)return Wa(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},qa).models[0]}function Mp(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Wa(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},qa).models:[]}function Cp(e,t){return Ip(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Ip(e,t,n,i,r,o){var a,s,l,u=5;if(oe(e))return yp.Not;if(i){var c=i[o];ie(c)?(s=c.name,l=c.type):ee(c)&&(s=c)}if(null!=l)return"ordinal"===l?yp.Must:yp.Not;if(t===dp){var d=e;if(n===mp){for(var h=d[o],p=0;p<(h||[]).length&&p<u;p++)if(null!=(a=_(h[r+p])))return a}else for(p=0;p<d.length&&p<u;p++){var f=d[r+p];if(f&&null!=(a=_(f[o])))return a}}else if(t===hp){var g=e;if(!s)return yp.Not;for(p=0;p<g.length&&p<u;p++){var v=g[p];if(v&&null!=(a=_(v[s])))return a}}else if(t===pp){var m=e;if(!s)return yp.Not;h=m[s];if(!h||oe(h))return yp.Not;for(p=0;p<h.length&&p<u;p++)if(null!=(a=_(h[p])))return a}else if(t===cp){var y=e;for(p=0;p<y.length&&p<u;p++){v=y[p];var x=ya(v);if(!J(x))return yp.Not;if(null!=(a=_(x[o])))return a}}function _(e){var t=ee(e);return null!=e&&isFinite(e)&&""!==e?t?yp.Might:yp.Not:t&&"-"!==e?yp.Must:void 0}return yp.Not}var Tp=we();function kp(e,t){ve(null==Tp.get(e)&&t),Tp.set(e,t)}function Ap(e,t,n){var i=Tp.get(t);if(!i)return n;var r=i(e);return r?n.concat(r):n}var Dp,Lp,Pp,Op=Fa(),Rp=Fa(),Ep=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var i=ga(this.get("color",!0)),r=this.get("colorLayer",!0);return Bp(this,Op,i,r,e,t,n)},e.prototype.clearColorPalette=function(){Vp(this,Op)},e}();function Np(e,t,n,i){var r=ga(e.get(["aria","decal","decals"]));return Bp(e,Rp,r,null,t,n,i)}function Fp(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}function Bp(e,t,n,i,r,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?Fp(i,a):n;if(c=c||n,c&&c.length){var d=c[l];return r&&(u[r]=d),s.paletteIdx=(l+1)%c.length,d}}function Vp(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var zp="\0_ec_inner",qp=1;var Hp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new Od(i),this._locale=new Od(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=Zp(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Zp(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):Pp(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&W(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=we(),s=t&&t.replaceMergeMainTypeMap;function l(t){var o=Ap(this,t,ga(e[t])),a=i.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=_a(a,o,l);Oa(u,t,op),n[t]=null,i.set(t,null),r.set(t,0);var c,d=[],h=[],p=0;W(u,(function(e,n){var i=e.existing,r=e.newOption;if(r){var o="series"===t,a=op.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(c)return void 0;c=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=F({componentIndex:n},e.keyInfo);i=new a(r,this,this,s),F(i,s),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),h.push(i),p++):(d.push(void 0),h.push(void 0))}),this),n[t]=d,i.set(t,h),r.set(t,p),"series"===t&&Dp(this)}_p(this),W(e,(function(e,t){null!=e&&(op.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?R(e):E(n[t],e,!0))})),s&&s.each((function(e,t){op.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),op.topologicalTravel(o,op.getAllClassMainTypes(),l,this),this._seriesIndices||Dp(this)},t.prototype.getOption=function(){var e=R(this.option);return W(e,(function(t,n){if(op.hasClass(n)){for(var i=ga(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!La(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[zp],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=i?(n=[],W(ga(i),(function(e){a[e]&&n.push(a[e])}))):n=null!=r?Up("id",r,a):null!=o?Up("name",o,a):j(a,(function(e){return!!e})),jp(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,i=o(t),r=i?this.queryComponents(i):j(this._componentsMap.get(n),(function(e){return!!e}));return a(jp(r,e));function o(e){var t=n+"Index",i=n+"Id",r=n+"Name";return!e||null==e[t]&&null==e[i]&&null==e[r]?null:{mainType:n,index:e[t],id:e[i],name:e[r]}}function a(t){return e.filter?j(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if(Q(e)){var r=t,o=e;i.each((function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&o.call(r,t,i,i.componentIndex)}}))}else for(var a=ee(e)?i.get(e):ie(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Aa(e,null);return j(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return j(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return j(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){Lp(this),W(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},t.prototype.eachRawSeries=function(e,t){W(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){Lp(this),W(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return W(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Lp(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Lp(this);var n=[];W(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=we(n)},t.prototype.restoreData=function(e){Dp(this);var t=this._componentsMap,n=[];t.each((function(e,t){op.hasClass(t)&&n.push(t)})),op.topologicalTravel(n,op.getAllClassMainTypes(),(function(n){W(t.get(n),(function(t){!t||"series"===n&&Wp(t,e)||t.restoreData()}))}))},t.internalField=function(){Dp=function(e){var t=e._seriesIndices=[];W(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=we(t)},Lp=function(e){0},Pp=function(e,t){e.option={},e.option[zp]=qp,e._componentsMap=we({series:[]}),e._componentsCount=we();var n=t.aria;ie(n)&&null==n.enabled&&(n.enabled=!0),Gp(t,e._theme.option),E(t,lp,!1),e._mergeOption(t,null)}}(),t}(Od);function Wp(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}function Gp(e,t){var n=e.color&&!e.colorLayer;W(t,(function(t,i){"colorLayer"===i&&n||op.hasClass(i)||("object"===typeof t?e[i]=e[i]?E(e[i],t,!1):R(t):null==e[i]&&(e[i]=t))}))}function Up(e,t,n){if(J(t)){var i=we();return W(t,(function(e){if(null!=e){var t=Aa(e,null);null!=t&&i.set(e,!0)}})),j(n,(function(t){return t&&i.get(t[e])}))}var r=Aa(t,null);return j(n,(function(t){return t&&null!=r&&t[e]===r}))}function jp(e,t){return t.hasOwnProperty("subType")?j(e,(function(e){return e&&e.subType===t.subType})):e}function Zp(e){var t=we();return e&&W(ga(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}q(Hp,Ep);const $p=Hp;var Yp=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Xp=function(){function e(e){W(Yp,(function(t){this[t]=X(e[t],e)}),this)}return e}();const Kp=Xp;var Jp={},Qp=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];W(Jp,(function(i,r){var o=i.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){W(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Jp[e]=t},e.get=function(e){return Jp[e]},e}();const ef=Qp;var tf=/^(min|max)?(.+)$/,nf=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(W(ga(e.series),(function(e){e&&e.data&&oe(e.data)&&xe(e.data)})),W(ga(e.dataset),(function(e){e&&e.source&&oe(e.source)&&xe(e.source)}))),e=R(e);var i=this._optionBackup,r=rf(e,t,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],R(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=R(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var s=0,l=i.length;s<l;s++)of(i[s].query,t,n)&&o.push(s);return!o.length&&r&&(o=[-1]),o.length&&!sf(o,this._currentMediaIndices)&&(a=G(o,(function(e){return R(-1===e?r.option:i[e].option)}))),this._currentMediaIndices=o,a},e}();function rf(e,t,n){var i,r,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||a&&a.timeline);function h(e){W(t,(function(t){t(e,n)}))}return a?(r=a,r.timeline||(r.timeline=s)):((d||c)&&(e.options=e.media=null),r=e),c&&J(u)&&W(u,(function(e){e&&e.option&&(e.query?o.push(e):i||(i=e))})),h(r),W(l,(function(e){return h(e)})),W(o,(function(e){return h(e.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}function of(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return W(e,(function(e,t){var n=t.match(tf);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();af(i[a],e,o)||(r=!1)}})),r}function af(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function sf(e,t){return e.join(",")===t.join(",")}const lf=nf;var uf=W,cf=ie,df=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hf(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=df.length;n<i;n++){var r=df[n],o=t.normal,a=t.emphasis;o&&o[r]&&(e[r]=e[r]||{},e[r].normal?E(e[r].normal,o[r]):e[r].normal=o[r],o[r]=null),a&&a[r]&&(e[r]=e[r]||{},e[r].emphasis?E(e[r].emphasis,a[r]):e[r].emphasis=a[r],a[r]=null)}}function pf(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,B(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function ff(e){pf(e,"itemStyle"),pf(e,"lineStyle"),pf(e,"areaStyle"),pf(e,"label"),pf(e,"labelLine"),pf(e,"upperLabel"),pf(e,"edgeLabel")}function gf(e,t){var n=cf(e)&&e[t],i=cf(n)&&n.textStyle;if(i){0;for(var r=0,o=ma.length;r<o;r++){var a=ma[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function vf(e){e&&(ff(e),gf(e,"label"),e.emphasis&&gf(e.emphasis,"label"))}function mf(e){if(cf(e)){hf(e),ff(e),gf(e,"label"),gf(e,"upperLabel"),gf(e,"edgeLabel"),e.emphasis&&(gf(e.emphasis,"label"),gf(e.emphasis,"upperLabel"),gf(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(hf(t),vf(t));var n=e.markLine;n&&(hf(n),vf(n));var i=e.markArea;i&&vf(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var o=e.links||e.edges;if(o&&!oe(o))for(var a=0;a<o.length;a++)vf(o[a]);W(e.categories,(function(e){ff(e)}))}if(r&&!oe(r))for(a=0;a<r.length;a++)vf(r[a]);if(t=e.markPoint,t&&t.data){var s=t.data;for(a=0;a<s.length;a++)vf(s[a])}if(n=e.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)J(l[a])?(vf(l[a][0]),vf(l[a][1])):vf(l[a])}"gauge"===e.type?(gf(e,"axisLabel"),gf(e,"title"),gf(e,"detail")):"treemap"===e.type?(pf(e.breadcrumb,"itemStyle"),W(e.levels,(function(e){ff(e)}))):"tree"===e.type&&ff(e.leaves)}}function yf(e){return J(e)?e:e?[e]:[]}function xf(e){return(J(e)?e[0]:e)||{}}function _f(e,t){uf(yf(e.series),(function(e){cf(e)&&mf(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),uf(n,(function(t){uf(yf(e[t]),(function(e){e&&(gf(e,"axisLabel"),gf(e.axisPointer,"label"))}))})),uf(yf(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;gf(t,"axisLabel"),gf(t&&t.axisPointer,"label")})),uf(yf(e.calendar),(function(e){pf(e,"itemStyle"),gf(e,"dayLabel"),gf(e,"monthLabel"),gf(e,"yearLabel")})),uf(yf(e.radar),(function(e){gf(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),uf(yf(e.geo),(function(e){cf(e)&&(vf(e),uf(yf(e.regions),(function(e){vf(e)})))})),uf(yf(e.timeline),(function(e){vf(e),pf(e,"label"),pf(e,"itemStyle"),pf(e,"controlStyle",!0);var t=e.data;J(t)&&W(t,(function(e){ie(e)&&(pf(e,"label"),pf(e,"itemStyle"))}))})),uf(yf(e.toolbox),(function(e){pf(e,"iconStyle"),uf(e.feature,(function(e){pf(e,"iconStyle")}))})),gf(xf(e.axisPointer),"label"),gf(xf(e.tooltip).axisPointer,"label")}function bf(e,t){for(var n=t.split(","),i=e,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function wf(e,t,n,i){for(var r,o=t.split(","),a=e,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function Sf(e){e&&W(Mf,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var Mf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Cf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],If=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Tf(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<If.length;n++){var i=If[n][1],r=If[n][0];null!=t[i]&&(t[r]=t[i])}}function kf(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function Af(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Df(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}function Lf(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Lf(e[n].children,t)}function Pf(e,t){_f(e,t),e.series=ga(e.series),W(e.series,(function(e){if(ie(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),kf(e.label);var n=e.data;if(n&&!oe(n))for(var i=0;i<n.length;i++)kf(n[i]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=bf(e,"pointer.color");null!=r&&wf(e,"itemStyle.color",r)}else if("bar"===t){Tf(e),Tf(e.backgroundStyle),Tf(e.emphasis);n=e.data;if(n&&!oe(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(Tf(n[i]),Tf(n[i]&&n[i].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),Af(e),Lf(e.data,Af)}else"graph"===t||"sankey"===t?Df(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&B(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),Sf(e)}})),e.dataRange&&(e.visualMap=e.dataRange),W(Cf,(function(t){var n=e[t];n&&(J(n)||(n=[n]),W(n,(function(e){Sf(e)})))}))}function Of(e){var t=we();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),t.each(Rf)}function Rf(e){W(e,(function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var d,h,p=a.get(t.stackedDimension,c);if(isNaN(p))return r;s?h=a.getRawIndex(c):d=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var v=e[g];if(s||(h=v.data.rawIndexOf(v.stackedByDimension,d)),h>=0){var m=v.data.getByRawIndex(v.stackResultDimension,h);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&p>=0&&m>0||"samesign"===l&&p<=0&&m<0){p=Xo(p,m),f=m;break}}}return i[0]=p,i[1]=f,i}))}))}var Ef,Nf,Ff,Bf,Vf,zf=function(){function e(e){this.data=e.data||(e.sourceFormat===pp?{}:[]),this.sourceFormat=e.sourceFormat||gp,this.seriesLayoutBy=e.seriesLayoutBy||vp,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&Cp(this,n)===yp.Must&&(i.type="ordinal")}}return e}();function qf(e){return e instanceof zf}function Hf(e,t,n){n=n||Uf(e);var i=t.seriesLayoutBy,r=jf(e,n,i,t.sourceHeader,t.dimensions),o=new zf({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:R(t)});return o}function Wf(e){return new zf({data:e,sourceFormat:oe(e)?fp:cp})}function Gf(e){return new zf({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:R(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Uf(e){var t=gp;if(oe(e))t=fp;else if(J(e)){0===e.length&&(t=dp);for(var n=0,i=e.length;n<i;n++){var r=e[n];if(null!=r){if(J(r)){t=dp;break}if(ie(r)){t=hp;break}}}}else if(ie(e))for(var o in e)if(Ie(e,o)&&H(e[o])){t=pp;break}return t}function jf(e,t,n,i,r){var o,a;if(!e)return{dimensionsDefine:$f(r),startIndex:a,dimensionsDetectedCount:o};if(t===dp){var s=e;"auto"===i||null==i?Yf((function(e){null!=e&&"-"!==e&&(ee(e)?null==a&&(a=1):a=0)}),n,s,10):a=ne(i)?i:i?1:0,r||1!==a||(r=[],Yf((function(e,t){r[t]=null!=e?e+"":""}),n,s,1/0)),o=r?r.length:n===mp?s.length:s[0]?s[0].length:null}else if(t===hp)r||(r=Zf(e));else if(t===pp)r||(r=[],W(e,(function(e,t){r.push(t)})));else if(t===cp){var l=ya(e[0]);o=J(l)&&l.length||1}return{startIndex:a,dimensionsDefine:$f(r),dimensionsDetectedCount:o}}function Zf(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t){var i=[];return W(t,(function(e,t){i.push(t)})),i}}function $f(e){if(e){var t=we();return G(e,(function(e,n){e=ie(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=t.get(i.name);return r?i.name+="-"+r.count++:t.set(i.name,{count:1}),i}))}}function Yf(e,t,n,i){if(t===mp)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)e(o[r],r)}}function Xf(e){var t=e.sourceFormat;return t===hp||t===pp}var Kf=function(){function e(e,t){var n=qf(e)?e:Wf(e);this._source=n;var i=this._data=n.data;n.sourceFormat===fp&&(this._offset=0,this._dimSize=t,this._data=i),Vf(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Vf=function(e,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Bf[sg(a,s)];if(F(e,c),a===fp)e.getItem=t,e.count=i,e.fillStorage=n;else{var d=eg(a,s);e.getItem=X(d,null,r,l,u);var h=ig(a,s);e.count=X(h,null,r,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,r=i*e,o=0;o<i;o++)t[o]=n[r+o];return t},n=function(e,t,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[a],h=0;h<c;h++){var p=r[h*o+a];d[e+h]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}e={},e[dp+"_"+vp]={pure:!0,appendData:r},e[dp+"_"+mp]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[hp]={pure:!0,appendData:r},e[pp]={pure:!0,appendData:function(e){var t=this._data;W(e,(function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])}))}},e[cp]={appendData:r},e[fp]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Bf=e}(),e}(),Jf=function(e,t,n,i){return e[i]},Qf=(Ef={},Ef[dp+"_"+vp]=function(e,t,n,i){return e[i+t]},Ef[dp+"_"+mp]=function(e,t,n,i,r){i+=t;for(var o=r||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Ef[hp]=Jf,Ef[pp]=function(e,t,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=e[s];o[a]=l?l[i]:null}return o},Ef[cp]=Jf,Ef);function eg(e,t){var n=Qf[sg(e,t)];return n}var tg=function(e,t,n){return e.length},ng=(Nf={},Nf[dp+"_"+vp]=function(e,t,n){return Math.max(0,e.length-t)},Nf[dp+"_"+mp]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},Nf[hp]=tg,Nf[pp]=function(e,t,n){var i=n[0].name;var r=e[i];return r?r.length:0},Nf[cp]=tg,Nf);function ig(e,t){var n=ng[sg(e,t)];return n}var rg=function(e,t,n){return e[t]},og=(Ff={},Ff[dp]=rg,Ff[hp]=function(e,t,n){return e[n]},Ff[pp]=rg,Ff[cp]=function(e,t,n){var i=ya(e);return i instanceof Array?i[t]:i},Ff[fp]=rg,Ff);function ag(e){var t=og[e];return t}function sg(e,t){return e===dp?e+"_"+t:e}function lg(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r=e.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=r.getDimensionProperty(a);return ag(o)(i,a,s)}var l=i;return o===cp&&(l=ya(i)),l}}}var ug=/\{@(.+?)\}/g,cg=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:r,data:a,dataType:t,value:i,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,i,r,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);if(o&&(s.value=o.interpolatedValue),null!=i&&J(s.value)&&(s.value=s.value[i]),!r){var l=a.getItemModel(e);r=l.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if(Q(r))return s.status=t,s.dimensionIndex=i,r(s);if(ee(r)){var u=Bh(r,s);return u.replace(ug,(function(t,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=lg(a,e,r);if(o&&J(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return lg(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function dg(e){var t,n;return ie(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function hg(e){return new pg(e)}var pg=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||h<p)){var f=this._progress;if(J(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],h,p,l,u);else this._doProgress(f,h,p,l,u)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,r){fg.reset(t,n,i,r),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:fg.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),J(t)&&!t.length&&(t=null)),this._progress=t,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(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),fg=function(){var e,t,n,i,r,o={reset:function(l,u,c,d){t=l,e=u,n=c,i=d,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%r*n+Math.ceil(t/r),a=t>=e?null:o<i?o:t;return t++,a}}();"undefined"!==typeof console&&console.warn&&console.log;function gg(e){0}function vg(e){throw new Error(e)}function mg(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||ne(e)||null==e||"-"===e||(e=+ta(e)),null==e||""===e?NaN:+e)}var yg=we({number:function(e){return parseFloat(e)},time:function(e){return+ta(e)},trim:function(e){return ee(e)?me(e):e}});function xg(e){return yg.get(e)}var _g={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},bg=function(){function e(e,t){if(!ne(t)){var n="";0,vg(n)}this._opFn=_g[e],this._rvalFloat=sa(t)}return e.prototype.evaluate=function(e){return ne(e)?this._opFn(e,this._rvalFloat):this._opFn(sa(e),this._rvalFloat)},e}(),wg=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ne(e)?e:sa(e),i=ne(t)?t:sa(t),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=ee(e),s=ee(t);a&&(n=s?e:0),s&&(i=a?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Sg=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=sa(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=sa(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Mg(e,t){return"eq"===e||"ne"===e?new Sg("eq"===e,t):Ie(_g,e)?new bg(e,t):null}var Cg=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return mg(e,t)},e}();function Ig(e,t){var n=new Cg,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==vp&&vg(a);var s=[],l={},u=e.dimensionsDefine;if(u)W(u,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(s.push(i),null!=n){var r="";Ie(l,n)&&vg(r),l[n]=i}}));else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var d=eg(r,vp);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(i,o,s,e)},n.getRawData=X(Tg,null,e)),n.cloneRawData=X(kg,null,e);var h=ig(r,vp);n.count=X(h,null,i,o,s);var p=ag(r);n.retrieveValue=function(e,t){var n=d(i,o,s,e);return f(n,t)};var f=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=s[t];return n?p(e,t,n.name):void 0}};return n.getDimensionInfo=X(Ag,null,s,l),n.cloneAllDimensionInfo=X(Dg,null,s),n}function Tg(e){var t=e.sourceFormat;if(!Eg(t)){var n="";0,vg(n)}return e.data}function kg(e){var t=e.sourceFormat,n=e.data;if(!Eg(t)){var i="";0,vg(i)}if(t===dp){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}if(t===hp){for(r=[],o=0,a=n.length;o<a;o++)r.push(F({},n[o]));return r}}function Ag(e,t,n){if(null!=n)return ne(n)||!isNaN(n)&&!Ie(t,n)?e[n]:Ie(t,n)?t[n]:void 0}function Dg(e){return R(e)}var Lg=we();function Pg(e){e=R(e);var t=e.type,n="";t||vg(n);var i=t.split(":");2!==i.length&&vg(n);var r=!1;"echarts"===i[0]&&(t=i[1],r=!0),e.__isBuiltIn=r,Lg.set(t,e)}function Og(e,t,n){var i=ga(e),r=i.length,o="";r||vg(o);for(var a=0,s=r;a<s;a++){var l=i[a];t=Rg(l,t,n,1===r?null:a),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function Rg(e,t,n,i){var r="";t.length||vg(r),ie(e)||vg(r);var o=e.type,a=Lg.get(o);a||vg(r);var s=G(t,(function(e){return Ig(e,a)})),l=ga(a.transform({upstream:s[0],upstreamList:s,config:R(e.config)}));return G(l,(function(e,n){var i="";ie(e)||vg(i),e.data||vg(i);var r,o=Uf(e.data);Eg(o)||vg(i);var a=t[0];if(a&&0===n&&!e.dimensions){var s=a.startIndex;s&&(e.data=a.data.slice(0,s).concat(e.data)),r={seriesLayoutBy:vp,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:vp,sourceHeader:0,dimensions:e.dimensions};return Hf(e.data,r,null)}))}function Eg(e){return e===dp||e===hp}var Ng,Fg="undefined",Bg=typeof Uint32Array===Fg?Array:Uint32Array,Vg=typeof Uint16Array===Fg?Array:Uint16Array,zg=typeof Int32Array===Fg?Array:Int32Array,qg=typeof Float64Array===Fg?Array:Float64Array,Hg={float:qg,int:zg,ordinal:Array,number:Array,time:qg};function Wg(e){return e>65535?Bg:Vg}function Gg(){return[1/0,-1/0]}function Ug(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function jg(e,t,n,i,r){var o=Hg[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(i)}var Zg=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=we()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),r=this.defaultDimValueGetter=Ng[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];Xf(i);this._dimensions=G(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(e);if(null!=r){if(i[r].type===t)return r}else r=i.length;return i[r]={type:t},n.set(e,r),this._chunks[r]=new Hg[t||"float"](this._rawCount),this._rawExtent[r]=Gg(),r},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[e]=Gg());for(var s=r[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=t,i.ordinalOffset=a,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<r;l++){var u=i[l];jg(n,l,u.type,s,!0)}for(var c=[],d=a;d<s;d++)for(var h=d-a,p=0;p<r;p++){u=i[p];var f=Ng.arrayRows.call(this,e[h]||c,u.property,h,p);n[p][d]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=G(o,(function(e){return e.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=Gg()),jg(r,u,c.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,r,s);else for(var d=[],h=e;h<t;h++){d=i.getItem(h,d);for(var p=0;p<a;p++){var f=r[p],g=this._dimValueGetter(d,l[p],h,p);f[h]=g;var v=s[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=e;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,r=this.count();i<r;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var i=0,r=this._count-1;while(i<=r){var o=(i+r)/2|0;if(t[o]<e)i=o+1;else{if(!(t[o]>e))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var d=this.getRawIndex(u),h=t-r[d],p=Math.abs(h);p<=n&&((p<a||p===a&&h>=0&&s<0)&&(a=p,s=h,l=0),h===s&&(o[l++]=u))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r<i;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else{n=Wg(this._rawCount);e=new n(this.count());for(r=0;r<e.length;r++)e[r]=r}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=Wg(n._rawCount),o=new r(i),a=[],s=e.length,l=0,u=e[0],c=n._chunks,d=0;d<i;d++){var h=void 0,p=n.getRawIndex(d);if(0===s)h=t(d);else if(1===s){var f=c[u][p];h=t(f,d)}else{for(var g=0;g<s;g++)a[g]=c[e[g]][p];a[g]=d,h=t.apply(null,a)}h&&(o[l++]=p)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=$(e),r=i.length;if(!r)return this;var o=t.count(),a=Wg(t._rawCount),s=new a(o),l=0,u=i[0],c=e[u][0],d=e[u][1],h=t._chunks,p=!1;if(!t._indices){var f=0;if(1===r){for(var g=h[i[0]],v=0;v<n;v++){var m=g[v];(m>=c&&m<=d||isNaN(m))&&(s[l++]=f),f++}p=!0}else if(2===r){g=h[i[0]];var y=h[i[1]],x=e[i[1]][0],_=e[i[1]][1];for(v=0;v<n;v++){m=g[v];var b=y[v];(m>=c&&m<=d||isNaN(m))&&(b>=x&&b<=_||isNaN(b))&&(s[l++]=f),f++}p=!0}}if(!p)if(1===r)for(v=0;v<o;v++){var w=t.getRawIndex(v);m=h[i[0]][w];(m>=c&&m<=d||isNaN(m))&&(s[l++]=w)}else for(v=0;v<o;v++){for(var S=!0,M=(w=t.getRawIndex(v),0);M<r;M++){var C=i[M];m=h[C][w];(m<e[C][0]||m>e[C][1])&&(S=!1)}S&&(s[l++]=t.getRawIndex(v))}return l<o&&(t._indices=s),t._count=l,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,r=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=Gg();for(var c=0;c<a;c++){for(var d=e.getRawIndex(c),h=0;h<o;h++)s[h]=i[t[h]][d];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(r[0]=p,p=r);for(u=0;u<p.length;u++){var f=t[u],g=p[u],v=l[f],m=i[f];m&&(m[d]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),u=0,c=Math.floor(1/t),d=this.getRawIndex(0),h=new(Wg(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));h[u++]=d;for(var p=1;p<l-1;p+=c){for(var f=Math.min(p+c,l-1),g=Math.min(p+2*c,l),v=(g+f)/2,m=0,y=f;y<g;y++){var x=this.getRawIndex(y),_=s[x];isNaN(_)||(m+=_)}m/=g-f;var b=p,w=Math.min(p+c,l),S=p-1,M=s[d];n=-1,r=b;var C=-1,I=0;for(y=b;y<w;y++){x=this.getRawIndex(y),_=s[x];isNaN(_)?(I++,C<0&&(C=x)):(i=Math.abs((S-v)*(_-M)-(S-y)*(m-M)),i>n&&(n=i,r=x))}I>0&&I<w-b&&(h[u++]=Math.min(C,r),r=Math.max(C,r)),h[u++]=r,d=r}return h[u++]=this.getRawIndex(l-1),o._count=u,o._indices=h,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,i){for(var r=this.clone([e],!0),o=r._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=r._rawExtent[e]=Gg(),d=new(Wg(this._rawCount))(Math.ceil(u/s)),h=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(p+i(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),d[h++]=m}return r._count=h,r._indices=d,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:t(r);break;case 1:t(i[e[0]][a],r);break;case 2:t(i[e[0]][a],i[e[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][a];l[s]=r,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Gg();if(!t)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[e].slice();if(i=this._extent[e],i)return i.slice();i=n;for(var a=i[0],s=i[1],l=0;l<r;l++){var u=this.getRawIndex(l),c=t[u];c<a&&(a=c),c>s&&(s=c)}return i=[a,s],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][t]);return n},e.prototype.clone=function(t,n){var i=new e,r=this._chunks,o=t&&U(t,(function(e,t){return e[t]=!0,e}),{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?Ug(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=R(this._extent),e._rawExtent=R(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return mg(e[i],this._dimensions[i])}Ng={arrayRows:e,objectRows:function(e,t,n,i){return mg(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return mg(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}();const $g=Zg;var Yg=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Kg(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,t=[u._getVersionSign()]}else a=o.get("data",!0),s=oe(a)?fp:cp,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},h=he(c.seriesLayoutBy,d.seriesLayoutBy)||null,p=he(c.sourceHeader,d.sourceHeader),f=he(c.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!==!!d.sourceHeader||f;e=g?[Hf(a,{seriesLayoutBy:h,sourceHeader:p,dimensions:f},s)]:[]}else{var v=n;if(r){var m=this._applyTransform(i);e=m.sourceList,t=m.upstreamSignList}else{var y=v.get("source",!0);e=[Hf(y,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==e.length&&Jg(o)}var a=[],s=[];return W(e,(function(e){e.prepareSource();var t=e.getSource(r||0),n="";null==r||t||Jg(n),a.push(t),s.push(e._getVersionSign())})),i?t=Og(i,a,{datasetIndex:n.componentIndex}):null!=r&&(t=[Gf(a[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=0,r=this._storeList,o=r[i];o||(o=r[i]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];Kg(this._sourceHost)&&s?a=s._innerGetDataStore(e,t,n):(a=new $g,a.initData(new Kf(t,e.length),e)),o[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Kg(e)){var t=Sp(e);return t?[t.getSourceManager()]:[]}return G(Mp(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;if(Kg(i))e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Xg(e){var t=e.option.transform;t&&xe(e.option.transform)}function Kg(e){return"series"===e.mainType}function Jg(e){throw new Error(e)}var Qg="line-height:1";function ev(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,r=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Rh(i+"")+"px;color:"+Rh(n)+";font-weight:"+Rh(r+""),valueStyle:"font-size:"+Rh(a+"")+"px;color:"+Rh(o)+";font-weight:"+Rh(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var tv=[0,10,20,30],nv=["","\n","\n\n","\n\n\n"];function iv(e,t){return t.type=e,t}function rv(e){return"section"===e.type}function ov(e){return rv(e)?sv:lv}function av(e){if(rv(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return W(e.blocks,(function(e){var n=av(e);n>=t&&(t=n+ +(i&&(!n||rv(e)&&!e.noHeader)))})),t}return 0}function sv(e,t,n,i){var r=t.noHeader,o=cv(av(t)),a=[],s=t.blocks||[];ve(!s||J(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ie(u,l)){var c=new wg(u[l],null);s.sort((function(e,t){return c.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}W(s,(function(n,r){var s=t.valueFormatter,l=ov(n)(s?F(F({},e),{valueFormatter:s}):e,n,r>0?o.html:0,i);null!=l&&a.push(l)}));var d="richText"===e.renderMode?a.join(o.richText):dv(a.join(""),r?n:o.html);if(r)return d;var h=Eh(t.header,"ordinal",e.useUTC),p=ev(i,e.renderMode).nameStyle;return"richText"===e.renderMode?fv(e,h,p)+o.richText+d:dv('<div style="'+p+";"+Qg+';">'+Rh(h)+"</div>"+d,n)}function lv(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return e=J(e)?e:[e],G(e,(function(e,t){return Eh(e,J(p)?p[t]:p,u)}))};if(!o||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),h=o?"":Eh(l,"ordinal",u),p=t.valueType,f=a?[]:c(t.value),g=!s||!o,v=!s&&o,m=ev(i,r),y=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":d)+(o?"":fv(e,h,y))+(a?"":gv(e,f,g,v,x)):dv((s?"":d)+(o?"":hv(h,!s,y))+(a?"":pv(f,g,v,x)),n)}}function uv(e,t,n,i,r,o){if(e){var a=ov(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function cv(e){return{html:tv[e],richText:nv[e]}}function dv(e,t){var n='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+Qg+';">'+e+n+"</div>"}function hv(e,t,n){var i=t?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+Rh(e)+"</span>"}function pv(e,t,n,i){var r=n?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return e=J(e)?e:[e],'<span style="'+o+";"+i+'">'+G(e,(function(e){return Rh(e)})).join("&nbsp;&nbsp;")+"</span>"}function fv(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function gv(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(J(t)?t.join(" "):t,o)}function vv(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return qh(i)}function mv(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var yv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=ua()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,r=zh({color:t,type:e,renderMode:n,markerId:i});return ee(r)?r:(this.richTextStyles[i]=r.style,r.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};J(t)?W(t,(function(e){return F(n,e)})):F(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function xv(e){var t,n,i,r,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=o.getRawValue(a),h=J(d),p=vv(o,a);if(c>1||h&&!c){var f=_v(d,o,a,u,p);t=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=t=lg(l,a,u[0]),n=g.type}else r=t=h?d[0]:d;var v=Da(o),m=v&&o.name||"",y=l.getName(a),x=s?m:y;return iv("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[iv("nameValue",{markerType:"item",markerColor:p,name:x,noName:!me(x),value:t,valueType:n})].concat(i||[])})}function _v(e,t,n,i,r){var o=t.getData(),a=U(e,(function(e,t,n){var i=o.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(iv("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return i.length?W(i,(function(e){c(lg(o,n,e),e)})):W(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var bv=Fa();function wv(e,t){return e.getName(t)||e.getId(t)}var Sv="__universalTransitionEnabled",Mv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return o(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=hg({count:Tv,reset:kv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=bv(this).sourceManager=new Yg(this);i.prepareSource();var r=this.getInitialData(e,n);Dv(r,this),this.dataTask.context.data=r,bv(this).dataBeforeProcessed=r,Cv(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Jh(this),i=n?ep(e):{},r=this.subType;op.hasClass(r)&&(r+="Series"),E(e,t.getTheme().get(this.subType)),E(e,this.getDefaultOption()),va(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Qh(e,i,n)},t.prototype.mergeOption=function(e,t){e=E(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Jh(this);n&&Qh(this.option,e,n);var i=bv(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);Dv(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,bv(this).dataBeforeProcessed=r,Cv(this),this._initSelectedMapFromData(r)},t.prototype.fillDataTextStyle=function(e){if(e&&!oe(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&va(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){var t=this.getRawData();t.appendData(e.data)},t.prototype.getData=function(e){var t=Pv(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return bv(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Pv(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}bv(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return we(e)},t.prototype.getSourceManager=function(){return bv(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return bv(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return xv({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(c.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=Ep.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=e[o],s=wv(r,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=$(e),n=[],i=0;i<t.length;i++){var r=e[t[i]];r>=0&&n.push(r)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[wv(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Sv])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,r=this.option,o=r.selectedMode,a=t.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){ie(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=t[l],c=wv(e,u);s[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(u)}}else if("single"===o||!0===o){var d=t[a-1];c=wv(e,d);r.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(i={},i[c]=e.getRawIndex(d),i)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return op.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(op);function Cv(e){var t=e.name;Da(e)||(e.name=Iv(e)||t)}function Iv(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return W(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function Tv(e){return e.model.getRawData().count()}function kv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Av}function Av(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Dv(e,t){W(Se(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,K(Lv,t))}))}function Lv(e,t){var n=Pv(e);return n&&n.setOutputEnd((t||this).count()),t}function Pv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}q(Mv,cg),q(Mv,Ep),is(Mv,op);const Ov=Mv;var Rv=function(){function e(){this.group=new Lo,this.uid=Ed("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();ts(Rv),ls(Rv);const Ev=Rv;function Nv(){var e=Fa();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Fv=Sl.CMD,Bv=[[],[],[]],Vv=Math.sqrt,zv=Math.atan2;function qv(e,t){if(t){var n,i,r,o,a,s,l=e.data,u=e.len(),c=Fv.M,d=Fv.C,h=Fv.L,p=Fv.R,f=Fv.A,g=Fv.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:i=1;break;case h:i=1;break;case d:i=3;break;case g:i=2;break;case f:var v=t[4],m=t[5],y=Vv(t[0]*t[0]+t[1]*t[1]),x=Vv(t[2]*t[2]+t[3]*t[3]),_=zv(-t[1]/x,t[0]/y);l[r]*=y,l[r++]+=v,l[r]*=x,l[r++]+=m,l[r++]*=y,l[r++]*=x,l[r++]+=_,l[r++]+=_,r+=2,o=r;break;case p:s[0]=l[r++],s[1]=l[r++],Ze(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],Ze(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=Bv[a];b[0]=l[r++],b[1]=l[r++],Ze(b,b,t),l[o++]=b[0],l[o++]=b[1]}}e.increaseVersion()}}var Hv=Math.sqrt,Wv=Math.sin,Gv=Math.cos,Uv=Math.PI;function jv(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Zv(e,t){return(e[0]*t[0]+e[1]*t[1])/(jv(e)*jv(t))}function $v(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Zv(e,t))}function Yv(e,t,n,i,r,o,a,s,l,u,c){var d=l*(Uv/180),h=Gv(d)*(e-n)/2+Wv(d)*(t-i)/2,p=-1*Wv(d)*(e-n)/2+Gv(d)*(t-i)/2,f=h*h/(a*a)+p*p/(s*s);f>1&&(a*=Hv(f),s*=Hv(f));var g=(r===o?-1:1)*Hv((a*a*(s*s)-a*a*(p*p)-s*s*(h*h))/(a*a*(p*p)+s*s*(h*h)))||0,v=g*a*p/s,m=g*-s*h/a,y=(e+n)/2+Gv(d)*v-Wv(d)*m,x=(t+i)/2+Wv(d)*v+Gv(d)*m,_=$v([1,0],[(h-v)/a,(p-m)/s]),b=[(h-v)/a,(p-m)/s],w=[(-1*h-v)/a,(-1*p-m)/s],S=$v(b,w);if(Zv(b,w)<=-1&&(S=Uv),Zv(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Uv*1e6)/1e6;S=2*Uv+M%2*Uv}c.addData(u,y,x,a,s,_,S,d,o)}var Xv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Kv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jv(e){var t=new Sl;if(!e)return t;var n,i=0,r=0,o=i,a=r,s=Sl.CMD,l=e.match(Xv);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,p=c.match(Kv)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);var v=0;while(v<f){var m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=i,C=r,I=void 0,T=void 0;switch(d){case"l":i+=p[v++],r+=p[v++],h=s.L,t.addData(h,i,r);break;case"L":i=p[v++],r=p[v++],h=s.L,t.addData(h,i,r);break;case"m":i+=p[v++],r+=p[v++],h=s.M,t.addData(h,i,r),o=i,a=r,d="l";break;case"M":i=p[v++],r=p[v++],h=s.M,t.addData(h,i,r),o=i,a=r,d="L";break;case"h":i+=p[v++],h=s.L,t.addData(h,i,r);break;case"H":i=p[v++],h=s.L,t.addData(h,i,r);break;case"v":r+=p[v++],h=s.L,t.addData(h,i,r);break;case"V":r=p[v++],h=s.L,t.addData(h,i,r);break;case"C":h=s.C,t.addData(h,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),i=p[v-2],r=p[v-1];break;case"c":h=s.C,t.addData(h,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r),i+=p[v-2],r+=p[v-1];break;case"S":m=i,y=r,I=t.len(),T=t.data,n===s.C&&(m+=i-T[I-4],y+=r-T[I-3]),h=s.C,M=p[v++],C=p[v++],i=p[v++],r=p[v++],t.addData(h,m,y,M,C,i,r);break;case"s":m=i,y=r,I=t.len(),T=t.data,n===s.C&&(m+=i-T[I-4],y+=r-T[I-3]),h=s.C,M=i+p[v++],C=r+p[v++],i+=p[v++],r+=p[v++],t.addData(h,m,y,M,C,i,r);break;case"Q":M=p[v++],C=p[v++],i=p[v++],r=p[v++],h=s.Q,t.addData(h,M,C,i,r);break;case"q":M=p[v++]+i,C=p[v++]+r,i+=p[v++],r+=p[v++],h=s.Q,t.addData(h,M,C,i,r);break;case"T":m=i,y=r,I=t.len(),T=t.data,n===s.Q&&(m+=i-T[I-4],y+=r-T[I-3]),i=p[v++],r=p[v++],h=s.Q,t.addData(h,m,y,i,r);break;case"t":m=i,y=r,I=t.len(),T=t.data,n===s.Q&&(m+=i-T[I-4],y+=r-T[I-3]),i+=p[v++],r+=p[v++],h=s.Q,t.addData(h,m,y,i,r);break;case"A":x=p[v++],_=p[v++],b=p[v++],w=p[v++],S=p[v++],M=i,C=r,i=p[v++],r=p[v++],h=s.A,Yv(M,C,i,r,w,S,x,_,b,h,t);break;case"a":x=p[v++],_=p[v++],b=p[v++],w=p[v++],S=p[v++],M=i,C=r,i+=p[v++],r+=p[v++],h=s.A,Yv(M,C,i,r,w,S,x,_,b,h,t);break}}"z"!==d&&"Z"!==d||(h=s.Z,t.addData(h),i=o,r=a),n=h}return t.toStatic(),t}var Qv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t.prototype.applyTransform=function(e){},t}(Yl);function em(e){return null!=e.setData}function tm(e,t){var n=Jv(e),i=F({},t);return i.buildPath=function(e){if(em(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{t=e;n.rebuildPath(t,1)}},i.applyTransform=function(e){qv(n,e),this.dirtyShape()},i}function nm(e,t){return new Qv(tm(e,t))}function im(e,t){var n=tm(e,t),i=function(e){function t(t){var i=e.call(this,t)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return De(t,e),t}(Qv);return i}function rm(e,t){for(var n=[],i=e.length,r=0;r<i;r++){var o=e[r];n.push(o.getUpdatedPathProxy(!0))}var a=new Yl(t);return a.createPathProxy(),a.buildPath=function(e){if(em(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a}function om(e,t){t=t||{};var n=new Yl;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?qv(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var am=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),sm=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new am},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(Yl);sm.prototype.type="circle";const lm=sm;var um=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),cm=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new um},t.prototype.buildPath=function(e,t){var n=.5522848,i=t.cx,r=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(i-o,r),e.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),e.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),e.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),e.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),e.closePath()},t}(Yl);cm.prototype.type="ellipse";const dm=cm;var hm=Math.PI,pm=2*hm,fm=Math.sin,gm=Math.cos,vm=Math.acos,mm=Math.atan2,ym=Math.abs,xm=Math.sqrt,_m=Math.max,bm=Math.min,wm=1e-4;function Sm(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,d=s-o,h=d*l-c*u;if(!(h*h<wm))return h=(c*(t-o)-d*(e-r))/h,[e+h*l,t+h*u]}function Mm(e,t,n,i,r,o,a){var s=e-n,l=t-i,u=(a?o:-o)/xm(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=i+d,v=(h+f)/2,m=(p+g)/2,y=f-h,x=g-p,_=y*y+x*x,b=r-o,w=h*g-f*p,S=(x<0?-1:1)*xm(_m(0,b*b*_-w*w)),M=(w*x-y*S)/_,C=(-w*y-x*S)/_,I=(w*x+y*S)/_,T=(-w*y+x*S)/_,k=M-v,A=C-m,D=I-v,L=T-m;return k*k+A*A>D*D+L*L&&(M=I,C=T),{cx:M,cy:C,x0:-c,y0:-d,x1:M*(r/b-1),y1:C*(r/b-1)}}function Cm(e){var t;if(J(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Im(e,t){var n,i=_m(t.r,0),r=_m(t.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,u=t.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=t.cx,d=t.cy,h=!!t.clockwise,p=ym(u-l),f=p>pm&&p%pm;if(f>wm&&(p=f),i>wm)if(p>pm-wm)e.moveTo(c+i*gm(l),d+i*fm(l)),e.arc(c,d,i,l,u,!h),r>wm&&(e.moveTo(c+r*gm(u),d+r*fm(u)),e.arc(c,d,r,u,l,h));else{var g=void 0,v=void 0,m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,C=void 0,I=void 0,T=void 0,k=void 0,A=void 0,D=void 0,L=i*gm(l),P=i*fm(l),O=r*gm(u),R=r*fm(u),E=p>wm;if(E){var N=t.cornerRadius;N&&(n=Cm(N),g=n[0],v=n[1],m=n[2],y=n[3]);var F=ym(i-r)/2;if(x=bm(F,m),_=bm(F,y),b=bm(F,g),w=bm(F,v),C=S=_m(x,_),I=M=_m(b,w),(S>wm||M>wm)&&(T=i*gm(u),k=i*fm(u),A=r*gm(l),D=r*fm(l),p<hm)){var B=Sm(L,P,A,D,T,k,O,R);if(B){var V=L-B[0],z=P-B[1],q=T-B[0],H=k-B[1],W=1/fm(vm((V*q+z*H)/(xm(V*V+z*z)*xm(q*q+H*H)))/2),G=xm(B[0]*B[0]+B[1]*B[1]);C=bm(S,(i-G)/(W+1)),I=bm(M,(r-G)/(W-1))}}}if(E)if(C>wm){var U=bm(m,C),j=bm(y,C),Z=Mm(A,D,L,P,i,U,h),$=Mm(T,k,O,R,i,j,h);e.moveTo(c+Z.cx+Z.x0,d+Z.cy+Z.y0),C<S&&U===j?e.arc(c+Z.cx,d+Z.cy,C,mm(Z.y0,Z.x0),mm($.y0,$.x0),!h):(U>0&&e.arc(c+Z.cx,d+Z.cy,U,mm(Z.y0,Z.x0),mm(Z.y1,Z.x1),!h),e.arc(c,d,i,mm(Z.cy+Z.y1,Z.cx+Z.x1),mm($.cy+$.y1,$.cx+$.x1),!h),j>0&&e.arc(c+$.cx,d+$.cy,j,mm($.y1,$.x1),mm($.y0,$.x0),!h))}else e.moveTo(c+L,d+P),e.arc(c,d,i,l,u,!h);else e.moveTo(c+L,d+P);if(r>wm&&E)if(I>wm){U=bm(g,I),j=bm(v,I),Z=Mm(O,R,T,k,r,-j,h),$=Mm(L,P,A,D,r,-U,h);e.lineTo(c+Z.cx+Z.x0,d+Z.cy+Z.y0),I<M&&U===j?e.arc(c+Z.cx,d+Z.cy,I,mm(Z.y0,Z.x0),mm($.y0,$.x0),!h):(j>0&&e.arc(c+Z.cx,d+Z.cy,j,mm(Z.y0,Z.x0),mm(Z.y1,Z.x1),!h),e.arc(c,d,r,mm(Z.cy+Z.y1,Z.cx+Z.x1),mm($.cy+$.y1,$.cx+$.x1),h),U>0&&e.arc(c+$.cx,d+$.cy,U,mm($.y1,$.x1),mm($.y0,$.x0),!h))}else e.lineTo(c+O,d+R),e.arc(c,d,r,u,l,h);else e.lineTo(c+O,d+R)}else e.moveTo(c,d);e.closePath()}}}var Tm=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),km=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new Tm},t.prototype.buildPath=function(e,t){Im(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Yl);km.prototype.type="sector";const Am=km;var Dm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Lm=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new Dm},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}(Yl);Lm.prototype.type="ring";const Pm=Lm;function Om(e,t,n,i){var r,o,a,s,l=[],u=[],c=[],d=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)$e(a,a,e[h]),Ye(s,s,e[h]);$e(a,a,i[0]),Ye(s,s,i[1])}for(h=0,p=e.length;h<p;h++){var f=e[h];if(n)r=e[h?h-1:p-1],o=e[(h+1)%p];else{if(0===h||h===p-1){l.push(Oe(e[h]));continue}r=e[h-1],o=e[h+1]}Fe(u,o,r),ze(u,u,t);var g=He(f,r),v=He(f,o),m=g+v;0!==m&&(g/=m,v/=m),ze(c,u,-g),ze(d,u,v);var y=Ee([],f,c),x=Ee([],f,d);i&&(Ye(y,y,a),$e(y,y,s),Ye(x,x,a),$e(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l}function Rm(e,t,n){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=Om(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(r[0][0],r[0][1]);s=1;for(var d=r.length;s<d;s++)e.lineTo(r[s][0],r[s][1])}n&&e.closePath()}}var Em=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Nm=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultShape=function(){return new Em},t.prototype.buildPath=function(e,t){Rm(e,t,!0)},t}(Yl);Nm.prototype.type="polygon";const Fm=Nm;var Bm=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Vm=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Bm},t.prototype.buildPath=function(e,t){Rm(e,t,!1)},t}(Yl);Vm.prototype.type="polyline";const zm=Vm;var qm={},Hm=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Wm=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Hm},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=au(qm,t,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=t.x1,i=t.y1,r=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),e.lineTo(r,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Yl);Wm.prototype.type="line";const Gm=Wm;var Um=[],jm=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 Zm(e,t,n){var i=e.cpx2,r=e.cpy2;return null!=i||null!=r?[(n?yn:mn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?yn:mn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Cn:Mn)(e.x1,e.cpx1,e.x2,t),(n?Cn:Mn)(e.y1,e.cpy1,e.y2,t)]}var $m=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jm},t.prototype.buildPath=function(e,t){var n=t.x1,i=t.y1,r=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,i),null==l||null==u?(c<1&&(kn(n,a,r,c,Um),a=Um[1],r=Um[2],kn(i,s,o,c,Um),s=Um[1],o=Um[2]),e.quadraticCurveTo(a,s,r,o)):(c<1&&(bn(n,a,l,r,c,Um),a=Um[1],l=Um[2],r=Um[3],bn(i,s,u,o,c,Um),s=Um[1],u=Um[2],o=Um[3]),e.bezierCurveTo(a,s,l,u,r,o)))},t.prototype.pointAt=function(e){return Zm(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Zm(this.shape,e,!0);return qe(t,t)},t}(Yl);$m.prototype.type="bezier-curve";const Ym=$m;var Xm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),Km=function(e){function t(t){return e.call(this,t)||this}return De(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Xm},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*r+n,u*r+i),e.arc(n,i,r,o,a,!s)},t}(Yl);Km.prototype.type="arc";const Jm=Km;var Qm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return De(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Yl.prototype.getBoundingRect.call(this)},t}(Yl);const ey=Qm;var ty=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();const ny=ty;var iy=function(e){function t(t,n,i,r,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return De(t,e),t}(ny);const ry=iy;var oy=function(e){function t(t,n,i,r,o){var a=e.call(this,r)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return De(t,e),t}(ny);const ay=oy;var sy=[0,0],ly=[0,0],uy=new Yr,cy=new Yr,dy=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Yr;for(n=0;n<2;n++)this._axes[n]=new Yr;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,r=e.x,o=e.y,a=r+e.width,s=o+e.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),t)for(var l=0;l<4;l++)n[l].transform(t);Yr.sub(i[0],n[1],n[0]),Yr.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return uy.set(1/0,1/0),cy.set(0,0),!this._intersectCheckOneSide(this,e,uy,cy,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,uy,cy,i,-1)&&(n=!1,i)||i||Yr.copy(t,n?uy:cy),n},e.prototype._intersectCheckOneSide=function(e,t,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,sy),this._getProjMinMaxOnAxis(s,t._corners,ly),sy[1]<ly[0]||sy[0]>ly[1]){if(a=!1,r)return a;var u=Math.abs(ly[0]-sy[1]),c=Math.abs(sy[0]-ly[1]);Math.min(u,c)>i.len()&&(u<c?Yr.scale(i,l,-u*o):Yr.scale(i,l,c*o))}else if(n){u=Math.abs(ly[0]-sy[1]),c=Math.abs(sy[0]-ly[1]);Math.min(u,c)<n.len()&&(u<c?Yr.scale(n,l,u*o):Yr.scale(n,l,-c*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],r=this._origin,o=t[0].dot(i)+r[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(i)+r[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}();const hy=dy;var py=[],fy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return De(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new oo(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(py)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(e,t))return!0}return!1},t}(Hs);const gy=fy;var vy=Math.max,my=Math.min,yy={};function xy(e){return Yl.extend(e)}var _y=im;function by(e,t){return _y(e,t)}function wy(e,t){yy[e]=t}function Sy(e){if(yy.hasOwnProperty(e))return yy[e]}function My(e,t,n,i){var r=nm(e,t);return n&&("center"===i&&(n=Iy(n,r.getBoundingRect())),ky(r,n)),r}function Cy(e,t,n){var i=new iu({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(Iy(t,r))}}});return i}function Iy(e,t){var n,i=t.width/t.height,r=e.height*i;r<=e.width?n=e.height:(r=e.width,n=r/i);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var Ty=rm;function ky(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function Ay(e){return au(e.shape,e.shape,e.style),e}function Dy(e){return su(e.shape,e.shape,e.style),e}var Ly=lu;function Py(e,t){var n=Ar([]);while(e&&e!==t)Lr(n,e.getLocalTransform(),n),e=e.parent;return n}function Oy(e,t,n){return t&&!H(t)&&(t=Zr.getLocalTransform(t)),n&&(t=Er([],t)),Ze([],e,t)}function Ry(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return o=Oy(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ey(e){return!e.isGroup}function Ny(e){return null!=e.shape}function Fy(e,t,n){if(e&&t){var i=r(e);t.traverse((function(e){if(Ey(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),Xc(e,r,n,Lu(e).dataIndex)}}}))}function r(e){var t={};return e.traverse((function(e){Ey(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Ny(e)&&(t.shape=F({},e.shape)),t}}function By(e,t){return G(e,(function(e){var n=e[0];n=vy(n,t.x),n=my(n,t.x+t.width);var i=e[1];return i=vy(i,t.y),i=my(i,t.y+t.height),[n,i]}))}function Vy(e,t){var n=vy(e.x,t.x),i=my(e.x+e.width,t.x+t.width),r=vy(e.y,t.y),o=my(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function zy(e,t,n){var i=F({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),B(r,n),new iu(i)):My(e.replace("path://",""),i,n,"center")}function qy(e,t,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Hy(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Hy(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,d=s-o,h=Wy(c,d,l,u);if(Gy(h))return!1;var p=e-r,f=t-o,g=Wy(p,f,l,u)/h;if(g<0||g>1)return!1;var v=Wy(p,f,c,d)/h;return!(v<0||v>1)}function Wy(e,t,n,i){return e*i-n*t}function Gy(e){return e<=1e-6&&e>=-1e-6}function Uy(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=ee(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&W($(l),(function(e){Ie(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Lu(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:B({content:i,formatterParams:s},r)}}function jy(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Zy(e,t){if(e)if(J(e))for(var n=0;n<e.length;n++)jy(e[n],t);else jy(e,t)}wy("circle",lm),wy("ellipse",dm),wy("sector",Am),wy("ring",Pm),wy("polygon",Fm),wy("polyline",zm),wy("rect",hu),wy("line",Gm),wy("bezierCurve",Ym),wy("arc",Jm);var $y=Fa(),Yy=Nv(),Xy=function(){function e(){this.group=new Lo,this.uid=Ed("viewChart"),this.renderTask=hg({plan:Qy,reset:ex}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){0},e.prototype.highlight=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&Jy(r,i,"emphasis")},e.prototype.downplay=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&Jy(r,i,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){Zy(this.group,e)},e.markUpdateMethod=function(e,t){$y(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Ky(e,t,n){e&&qc(e)&&("emphasis"===t?vc:mc)(e,n)}function Jy(e,t,n){var i=Na(e,t),r=t&&null!=t.highlightKey?Wc(t.highlightKey):null;null!=i?W(ga(i),(function(t){Ky(e.getItemGraphicEl(t),n,r)})):e.eachItemGraphicEl((function(e){Ky(e,n,r)}))}function Qy(e){return Yy(e.model)}function ex(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=r&&$y(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,i,r),tx[l]}ts(Xy,["dispose"]),ls(Xy);var tx={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)}}};const nx=Xy;var ix="\0__throttleOriginMethod",rx="\0__throttleRate",ox="\0__throttleType";function ax(e,t,n){var i,r,o,a,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];i=(new Date).getTime(),o=this,a=e;var p=s||t,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(d,p):r>=0?d():c=setTimeout(d,-r),l=i};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function sx(e,t,n,i){var r=e[t];if(r){var o=r[ix]||r,a=r[ox],s=r[rx];if(s!==n||a!==i){if(null==n||!i)return e[t]=o;r=e[t]=ax(o,n,"debounce"===i),r[ix]=o,r[ox]=i,r[rx]=n}return r}}function lx(e,t){var n=e[t];n&&n[ix]&&(n.clear&&n.clear(),e[t]=n[ix])}var ux=Fa(),cx={itemStyle:us(Ad,!0),lineStyle:us(Id,!0)},dx={lineStyle:"stroke",itemStyle:"fill"};function hx(e,t){var n=e.visualStyleMapper||cx[t];return n||(console.warn("Unkown style type '"+t+"'."),cx.itemStyle)}function px(e,t){var n=e.visualDrawType||dx[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var fx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=hx(e,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=px(e,i),u=a[l],c=Q(u)?u:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||d){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=h,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Q(a.fill)?h:a.fill,a.stroke="auto"===a.stroke||Q(a.stroke)?h:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=F({},a);r[l]=c(i),t.setItemVisual(n,"style",r)}}}},gx=new Od,vx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=hx(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){gx.option=n[i];var a=r(gx),s=e.ensureUniqueItemVisual(t,"style");F(s,a),gx.option.decal&&(e.setItemVisual(t,"decal",gx.option.decal),gx.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},mx={performRawSeries:!0,overallReset:function(e){var t=we();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),ux(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=ux(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=px(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",d=n.count();u[s]=t.getColorFromPalette(c,o,d)}}))}}))}},yx=Math.PI;function xx(e,t){t=t||{},B(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 n=new Lo,i=new hu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,o=new Du({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 hu({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(r=new Jm({shape:{startAngle:-yx/2,endAngle:-yx/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*yx/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*yx/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var _x=function(){function e(e,t,n,i){this._stageTaskMap=we(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=we();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;W(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{}),o="";ve(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}W(e,(function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each((function(e){a(i,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);h.each((function(e){e.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,o=t.seriesTaskMap,a=t.seriesTaskMap=we(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||hg({plan:Ix,reset:Tx,count:Dx}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,o=t.overallTask=t.overallTask||hg({reset:bx});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=we(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1,h="";function p(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(d=!0,hg({reset:Sx,onDirty:Cx})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,r._pipe(e,n)}ve(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(c=!1,W(n.getSeries(),p)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Q(e)&&(e={overallReset:e,seriesType:Lx(e)}),e.uid=Ed("stageHandler"),t&&(e.visualType=t),e},e}();function bx(e){e.overallReset(e.ecModel,e.api,e.payload)}function Sx(e){return e.overallProgress&&Mx}function Mx(){this.agent.dirty(),this.getDownstream().dirty()}function Cx(){this.agent&&this.agent.dirty()}function Ix(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Tx(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ga(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?G(t,(function(e,t){return Ax(t)})):kx}var kx=Ax(0);function Ax(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function Dx(e){return e.data.count()}function Lx(e){Px=null;try{e(Ox,Rx)}catch(wm){}return Px}var Px,Ox={},Rx={};function Ex(e,t){for(var n in t.prototype)e[n]=Te}Ex(Ox,$p),Ex(Rx,Kp),Ox.eachSeriesByType=Ox.eachRawSeriesByType=function(e){Px=e},Ox.eachComponent=function(e){"series"===e.mainType&&e.subType&&(Px=e.subType)};const Nx=_x;var Fx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Bx={color:Fx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Fx]};var Vx="#B9B8CE",zx="#100C2A",qx=function(){return{axisLine:{lineStyle:{color:Vx}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Hx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Wx={darkMode:!0,color:Hx,backgroundColor:zx,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Vx}},textStyle:{color:Vx},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Vx}},dataZoom:{borderColor:"#71708A",textStyle:{color:Vx},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:Vx}},timeline:{lineStyle:{color:Vx},label:{color:Vx},controlStyle:{color:Vx,borderColor:Vx}},calendar:{itemStyle:{color:zx},dayLabel:{color:Vx},monthLabel:{color:Vx},yearLabel:{color:Vx}},timeAxis:qx(),logAxis:qx(),valueAxis:qx(),categoryAxis:qx(),line:{symbol:"circle"},graph:{color:Hx},gauge:{title:{color:Vx},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Vx},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Wx.categoryAxis.splitLine.show=!1;const Gx=Wx;var Ux=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(ee(e)){var r=Ja(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};W(e,(function(e,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var d=r.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),jx=["symbol","symbolSize","symbolRotate","symbolOffset"],Zx=jx.concat(["symbolKeepAspect"]),$x={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<jx.length;a++){var s=jx[a],l=e.get(s);Q(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(F({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var u=$(r);return{dataEach:o?c:null}}}function c(t,n){for(var i=e.getRawValue(n),o=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,r[s](i,o))}}}},Yx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e)){var n=e.getData();return{dataEach:n.hasItemOption?i:null}}function i(e,t){for(var n=e.getItemModel(t),i=0;i<Zx.length;i++){var r=Zx[i],o=n.getShallow(r,!0);null!=o&&e.setItemVisual(t,r,o)}}}};function Xx(e,t,n){switch(n){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function Kx(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function Jx(e,t,n,i){switch(n){case"color":var r=e.ensureUniqueItemVisual(t,"style");r[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i);break;default:0}}function Qx(e,t){function n(t,n){var i=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){i.push(e.seriesIndex)})),i}W([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,i,r){t=F({},t),r.dispatchAction(F(t,{type:e[1],seriesIndex:n(i,t)}))}))}))}function e_(e,t,n,i,r){var o=e+t;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,i=e.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=Na(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:J(u)?l.getName(u[0]):l.getName(u),selected:ee(i)?i:F({},i)})}}))}function t_(e,t,n){e.on("selectchanged",(function(e){var i=n.getModel();e.isFromClick?(e_("map","selectchanged",t,i,e),e_("pie","selectchanged",t,i,e)):"select"===e.fromAction?(e_("map","selected",t,i,e),e_("pie","selected",t,i,e)):"unselect"===e.fromAction&&(e_("map","unselected",t,i,e),e_("pie","unselected",t,i,e))}))}function n_(e,t,n){var i;while(e){if(t(e)&&(i=e,n))break;e=e.__hostTarget||e.parent}return i}var i_=Math.round(9*Math.random()),r_="function"===typeof Object.defineProperty,o_=function(){function e(){this._id="__ec_inner_"+i_++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return r_?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype["delete"]=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();const a_=o_;var s_=Yl.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),l_=Yl.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),u_=Yl.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,d=Math.sin(u),h=Math.cos(u),p=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*p,l+s+h*p,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-c+d*p,l+s+h*p,n-c,l+s),e.closePath()}}),c_=Yl.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;e.moveTo(r,o),e.lineTo(r+a,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-a,o+n),e.lineTo(r,o),e.closePath()}}),d_={line:Gm,rect:hu,roundRect:hu,square:hu,circle:lm,diamond:l_,pin:u_,arrow:c_,triangle:s_},h_={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},p_={};W(d_,(function(e,t){p_[t]=new e}));var f_=Yl.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=go(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=p_[i];r||(i="rect",r=p_[i]),h_[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function g_(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function v_(e,t,n,i,r,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),s=0===e.indexOf("image://")?Cy(e.slice(8),new oo(t,n,i,r),a?"center":"cover"):0===e.indexOf("path://")?My(e.slice(7),{},new oo(t,n,i,r),a?"center":"cover"):new f_({shape:{symbolType:e,x:t,y:n,width:i,height:r}}),s.__isEmptyBrush=l,s.setColor=g_,o&&s.setColor(o),s}function m_(e){return J(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function y_(e,t){if(null!=e)return J(e)||(e=[e,e]),[Wo(e[0],t[0])||0,Wo(he(e[1],e[0]),t[1])||0]}function x_(e){return isFinite(e)}function __(e,t,n){var i=null==t.x?0:t.x,r=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;t.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=x_(i)?i:0,r=x_(r)?r:1,o=x_(o)?o:0,a=x_(a)?a:0;var s=e.createLinearGradient(i,o,r,a);return s}function b_(e,t,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=x_(a)?a:.5,s=x_(s)?s:.5,l=l>=0&&x_(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function w_(e,t,n){for(var i="radial"===t.type?b_(e,t,n):__(e,t,n),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function S_(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function M_(e){return parseInt(e,10)}function C_(e,t,n){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(e);return(e[r]||M_(s[i])||M_(e.style[i]))-(M_(s[o])||0)-(M_(s[a])||0)|0}function I_(e,t){return e&&"solid"!==e&&t>0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:ne(e)?[e]:J(e)?e:null:null}function T_(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&I_(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(n){var r=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;r&&1!==r&&(n=G(n,(function(e){return e/r})),i/=r)}return[n,i]}var k_=new Sl(!0);function A_(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function D_(e){return"string"===typeof e&&"none"!==e}function L_(e){var t=e.fill;return null!=t&&"none"!==t}function P_(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function O_(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function R_(e,t,n){var i=gs(t.image,t.__image,n);if(ms(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*ke),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}function E_(e,t,n,i){var r,o=A_(n),a=L_(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||k_,d=t.__dirty;if(!i){var h=n.fill,p=n.stroke,f=a&&!!h.colorStops,g=o&&!!p.colorStops,v=a&&!!h.image,m=o&&!!p.image,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(y=d?w_(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(x=d?w_(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),v&&(_=d||!t.__canvasFillPattern?R_(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=_),m&&(b=d||!t.__canvasStrokePattern?R_(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),f?e.fillStyle=y:v&&(_?e.fillStyle=_:a=!1),g?e.strokeStyle=x:m&&(b?e.strokeStyle=b:o=!1)}var S,M,C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(r=T_(t),S=r[0],M=r[1]);var I=!0;(u||d&Yt)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),I=!1),c.reset(),t.buildPath(c,t.shape,i),c.toStatic(),t.pathUpdated()),I&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=M),i||(n.strokeFirst?(o&&O_(e,n),a&&P_(e,n)):(a&&P_(e,n),o&&O_(e,n))),S&&e.setLineDash([])}function N_(e,t,n){var i=t.__image=gs(n.image,t.__image,t,t.onload);if(i&&ms(i)){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var d=a-u,h=s-c;e.drawImage(i,u,c,d,h,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}function F_(e,t,n){var i,r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||p,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(i=T_(t),o=i[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(A_(n)&&e.strokeText(r,n.x,n.y),L_(n)&&e.fillText(r,n.x,n.y)):(L_(n)&&e.fillText(r,n.x,n.y),A_(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}var B_=["shadowBlur","shadowOffsetX","shadowOffsetY"],V_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function z_(e,t,n,i,r){var o=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){K_(e,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Rs.opacity:a}(i||t.blend!==n.blend)&&(o||(K_(e,r),o=!0),e.globalCompositeOperation=t.blend||Rs.blend);for(var s=0;s<B_.length;s++){var l=B_[s];(i||t[l]!==n[l])&&(o||(K_(e,r),o=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(o||(K_(e,r),o=!0),e.shadowColor=t.shadowColor||Rs.shadowColor),o}function q_(e,t,n,i,r){var o=J_(t,r.inHover),a=i?null:n&&J_(n,r.inHover)||{};if(o===a)return!1;var s=z_(e,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(K_(e,r),s=!0),D_(o.fill)&&(e.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(K_(e,r),s=!0),D_(o.stroke)&&(e.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(K_(e,r),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(K_(e,r),s=!0),e.lineWidth=u)}for(var c=0;c<V_.length;c++){var d=V_[c],h=d[0];(i||o[h]!==a[h])&&(s||(K_(e,r),s=!0),e[h]=o[h]||d[1])}return s}function H_(e,t,n,i,r){return z_(e,J_(t,r.inHover),n&&J_(n,r.inHover),i,r)}function W_(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}function G_(e,t,n){for(var i=!1,r=0;r<e.length;r++){var o=e[r];i=i||o.isZeroArea(),W_(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=i}function U_(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 j_=1,Z_=2,$_=3,Y_=4;function X_(e){var t=L_(e),n=A_(e);return!(e.lineDash||!(+t^+n)||t&&"string"!==typeof e.fill||n&&"string"!==typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function K_(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function J_(e,t){return t&&e.__hoverStyle||e.style}function Q_(e,t){eb(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function eb(e,t,n,i){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~Zt,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!S_(o,a)||(a&&a.length&&(K_(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(K_(e,n),e.save(),G_(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof Yl&&t.autoBatch&&X_(t.style);s||U_(r,u.transform)?(K_(e,n),W_(e,t)):c||K_(e,n);var d=J_(t,n.inHover);t instanceof Yl?(n.lastDrawType!==j_&&(l=!0,n.lastDrawType=j_),q_(e,t,u,l,n),c&&(n.batchFill||n.batchStroke)||e.beginPath(),E_(e,t,d,c),c&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):t instanceof Jl?(n.lastDrawType!==$_&&(l=!0,n.lastDrawType=$_),q_(e,t,u,l,n),F_(e,t,d)):t instanceof iu?(n.lastDrawType!==Z_&&(l=!0,n.lastDrawType=Z_),H_(e,t,u,l,n),N_(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==Y_&&(l=!0,n.lastDrawType=Y_),tb(e,t,n)),c&&i&&K_(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}function tb(e,t,n){var i=t.getDisplayables(),r=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=i.length;o<a;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),eb(e,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=r.length;u<c;u++){l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),eb(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var nb=new a_,ib=new Bn(100),rb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ob(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&nb["delete"](e);var o=nb.get(e);if(o)return o;var a=B(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});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,nb.set(e,s),e.dirty=!1,s;function l(e){for(var t,o=[n],s=!0,l=0;l<rb.length;++l){var u=a[rb[l]];if(null!=u&&!J(u)&&!ee(u)&&!ne(u)&&"boolean"!==typeof u){s=!1;break}o.push(u)}if(s){t=o.join(",")+(r?"-svg":"");var c=ib.get(t);c&&(r?e.svgElement=c:e.image=c)}var d,h=sb(a.dashArrayX),p=lb(a.dashArrayY),f=ab(a.symbol),g=ub(h),v=cb(p),m=!r&&x.createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=b();function b(){for(var e=1,t=0,n=g.length;t<n;++t)e=da(e,g[t]);var i=1;for(t=0,n=f.length;t<n;++t)i=da(i,f[t].length);e*=i;var r=v*g.length*f.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}function w(){d&&(d.clearRect(0,0,m.width,m.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,m.width,m.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0)){var o=-v,s=0,l=0,u=0;while(o<_.height){if(s%2===0){var c=l/2%f.length,g=0,x=0,b=0;while(g<2*_.width){var w=0;for(t=0;t<h[u].length;++t)w+=h[u][t];if(w<=0)break;if(x%2===0){var S=.5*(1-a.symbolSize),M=g+h[u][x]*S,C=o+p[s]*S,I=h[u][x]*a.symbolSize,T=p[s]*a.symbolSize,k=b/2%f[c].length;A(M,C,I,T,f[c][k])}g+=h[u][x],++b,++x,x===h[u].length&&(x=0)}++u,u===h.length&&(u=0)}o+=p[s],++l,++s,s===p.length&&(s=0)}}function A(e,t,o,s,l){var u=r?1:n,c=v_(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var h=i.painter.renderOneToVNode(c);h&&y.children.push(h)}else Q_(d,c)}}m&&(m.width=_.width*n,m.height=_.height*n,d=m.getContext("2d")),w(),s&&ib.put(t,m||y),e.image=m,e.svgElement=y,e.svgWidth=_.width,e.svgHeight=_.height}}function ab(e){if(!e||0===e.length)return[["rect"]];if(ee(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!ee(e[n])){t=!1;break}if(t)return ab([e]);var i=[];for(n=0;n<e.length;++n)ee(e[n])?i.push([e[n]]):i.push(e[n]);return i}function sb(e){if(!e||0===e.length)return[[0,0]];if(ne(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,i=0;i<e.length;++i)if(!ne(e[i])){n=!1;break}if(n)return sb([e]);var r=[];for(i=0;i<e.length;++i)if(ne(e[i])){t=Math.ceil(e[i]);r.push([t,t])}else{t=G(e[i],(function(e){return Math.ceil(e)}));t.length%2===1?r.push(t.concat(t)):r.push(t)}return r}function lb(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if(ne(e)){var t=Math.ceil(e);return[t,t]}var n=G(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}function ub(e){return G(e,(function(e){return cb(e)}))}function cb(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}function db(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(e){var n=i.getItemVisual(e,"decal");if(n){var r=i.ensureUniqueItemVisual(e,"style");r.decal=ob(n,t)}}));var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=ob(r,t)}}}))}var hb=new et;const pb=hb;var fb={};function gb(e,t){fb[e]=t}function vb(e){return fb[e]}var mb="undefined"!==typeof window,yb=1,xb=800,_b=900,bb=1e3,wb=2e3,Sb=5e3,Mb=1e3,Cb=1100,Ib=2e3,Tb=3e3,kb=4e3,Ab=4500,Db=4600,Lb=5e3,Pb=6e3,Ob=7e3,Rb={PROCESSOR:{FILTER:bb,SERIES_FILTER:xb,STATISTIC:Sb},VISUAL:{LAYOUT:Mb,PROGRESSIVE_LAYOUT:Cb,GLOBAL:Ib,CHART:Tb,POST_CHART_LAYOUT:Db,COMPONENT:kb,BRUSH:Lb,CHART_ITEM:Ab,ARIA:Pb,DECAL:Ob}},Eb="__flagInMainProcess",Nb="__pendingUpdate",Fb="__needsUpdateStatus",Bb=/^[a-zA-Z0-9_]+$/,Vb="__connectUpdateStatus",zb=0,qb=1,Hb=2;function Wb(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Ub(this,e,t);gw(this.id)}}function Gb(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Ub(this,e,t)}}function Ub(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),et.prototype[t].apply(e,n)}var jb,Zb,$b,Yb,Xb,Kb,Jb,Qb,ew,tw,nw,iw,rw,ow,aw,sw,lw,uw,cw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(et),dw=cw.prototype;dw.on=Gb("on"),dw.off=Gb("off");var hw=function(e){function t(t,n,i){var r=e.call(this,new Ux)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},ee(n)&&(n=bw[n]),r._dom=t;var o="canvas",a=!1,s=r._zr=Fo(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:null==i.useDirtyRect?a:i.useDirtyRect});r._ssr=i.ssr,r._throttledZrFlush=ax(X(s.flush,s),17),n=R(n),n&&Pf(n,!0),r._theme=n,r._locale=$d(i.locale||jd),r._coordSysMgr=new ef;var l=r._api=aw(r);function u(e,t){return e.__prio-t.__prio}return jt(_w,u),jt(yw,u),r._scheduler=new Nx(r,l,yw,_w),r._messageCenter=new cw,r._initEvents(),r.resize=X(r.resize,r),s.animation.on("frame",r._onframe,r),tw(s,r),nw(s,r),xe(r),r}return o(t,e),t.prototype._onframe=function(){if(!this._disposed){uw(this);var e=this._scheduler;if(this[Nb]){var t=this[Nb].silent;this[Eb]=!0;try{jb(this),Yb.update.call(this,null,this[Nb].updateParams)}catch(wm){throw this[Eb]=!1,this[Nb]=null,wm}this._zr.flush(),this[Eb]=!1,this[Nb]=null,Qb.call(this,t),ew.call(this,t)}else if(e.unfinished){var n=yb,i=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Kb(this,i),e.performVisualTasks(i),ow(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Eb])if(this._disposed)gw(this.id);else{var i,r,o;if(ie(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,o=t.transition,t=t.notMerge),this[Eb]=!0,!this._model||t){var a=new lf(this._api),s=this._theme,l=this._model=new $p;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:r},xw);var u={seriesTransition:o,optionChanged:!0};if(n)this[Nb]={silent:i,updateParams:u},this[Eb]=!1,this.getZr().wakeUp();else{try{jb(this),Yb.update.call(this,null,u)}catch(wm){throw this[Nb]=null,this[Eb]=!1,wm}this._ssr||this._zr.flush(),this[Nb]=null,this[Eb]=!1,Qb.call(this,i),ew.call(this,i)}}},t.prototype.setTheme=function(){gg("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||mb&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(c.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return W(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;W(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return W(i,(function(e){e.group.ignore=!1})),o}gw(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(Mw[n]){var a=o,s=o,l=-o,u=-o,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();W(Sw,(function(o,d){if(o.group===n){var h=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(R(e)),p=o.getDom().getBoundingClientRect();a=i(p.left,a),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:h,left:p.left,top:p.top})}})),a*=d,s*=d,l*=d,u*=d;var h=l-a,p=u-s,f=x.createCanvas(),g=Fo(f,{renderer:t?"svg":"canvas"});if(g.resize({width:h,height:p}),t){var v="";return W(c,(function(e){var t=e.left-a,n=e.top-s;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new hu({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),W(c,(function(e){var t=new iu({style:{x:e.left*d-a,y:e.top*d-s,image:e.dom}});g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}gw(this.id)},t.prototype.convertToPixel=function(e,t){return Xb(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Xb(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=Va(i,e);return W(r,(function(e,i){i.indexOf("Models")>=0&&W(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}gw(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=Va(n,e,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Xx(o,a,t):Kx(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;W(fw,(function(t){var n=function(n){var i,r=e.getModel(),o=n.target,a="globalout"===t;if(a?i={}:o&&n_(o,(function(e){var t=Lu(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return i=F({},t.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),W(mw,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),W(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),t_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?gw(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)gw(this.id);else{this._disposed=!0;var e=this.getDom();e&&Ga(this.getDom(),Iw,"");var t=this,n=t._api,i=t._model;W(t._componentsViews,(function(e){e.dispose(i,n)})),W(t._chartsViews,(function(e){e.dispose(i,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Sw[t.id]}},t.prototype.resize=function(e){if(!this[Eb])if(this._disposed)gw(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Nb]&&(null==i&&(i=this[Nb].silent),n=!0,this[Nb]=null),this[Eb]=!0;try{n&&jb(this),Yb.update.call(this,{type:"resize",animation:F({duration:0},e&&e.animation)})}catch(wm){throw this[Eb]=!1,wm}this[Eb]=!1,Qb.call(this,i),ew.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)gw(this.id);else if(ie(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ww[e]){var n=ww[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?gw(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=F({},e);return t.type=mw[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)gw(this.id);else if(ie(t)||(t={silent:!!t}),vw[e.type]&&this._model)if(this[Eb])this._pendingActions.push(e);else{var n=t.silent;Jb.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&c.browser.weChat&&this._throttledZrFlush(),Qb.call(this,n),ew.call(this,n)}},t.prototype.updateLabelLayout=function(){pb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)gw(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);0,i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,o,a=t.concat(n);jt(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),W(a,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,a=t.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),e.hoverState===Vu&&e.states.emphasis?t.push("emphasis"):e.hoverState===Bu&&e.states.blur&&t.push("blur"),e.useStates(t)}function i(e,t){var n=e._zr,i=n.storage,r=0;i.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!c.node&&!c.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function r(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function a(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return s(e,n,i,-1/0),!0}))}}function s(e,t,n,i){var r=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var l=e.childrenRef(),u=0;u<l.length;u++)i=Math.max(s(l[u],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(r&&(r.z=t,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var c=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+(c&&c.showAbove?1:-1))}return i}function l(e,t){t.eachRendered((function(e){if(!Jc(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function u(e,t){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(Jc(e))return;if(e instanceof Yl&&jc(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}jb=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Zb(e,!0),Zb(e,!1),t.plan()},Zb=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var d=Ja(e.type),h=t?Ev.getClass(d.main,d.sub):nx.getClass(d.sub);0,c=new h,c.init(n,s),o[u]=c,r.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},$b=function(e,t,n,i,r){var o=e._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=we(),W(ga(u),(function(e){var t=Aa(e,null);null!=t&&l.set(t,!0)}))),o&&o.eachComponent(s,(function(t){var i=l&&null!==l.get(t.id);if(!i)if(Uc(n))if(t instanceof Ov)n.type!==Gu||n.notBlur||t.get(["emphasis","disabled"])||Ic(t,n,e._api);else{var r=Tc(t.mainType,t.componentIndex,n.name,e._api),o=r.focusSelf,a=r.dispatchers;n.type===Gu&&o&&!n.notBlur&&Cc(t.mainType,t.componentIndex,e._api),a&&W(a,(function(e){n.type===Gu?vc(e):mc(e)}))}else Gc(n)&&t instanceof Ov&&(Dc(t,n,e._api),Lc(t),lw(e))}),e),o&&o.eachComponent(s,(function(t){var n=l&&null!==l.get(t.id);n||c(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else W([].concat(e._componentsViews).concat(e._chartsViews),c);function c(i){i&&i.__alive&&i[t]&&i[t](i.__model,o,e._api,n)}},Yb={prepareAndUpdate:function(e){jb(this),Yb.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,t),Kb(this,i),a.update(i,r),e(i),s.performVisualTasks(i,t),iw(this,i,r,t,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),pb.trigger("afterupdate",i,r)}},updateTransform:function(t){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(t);var o=[];i.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,t);l&&l.update&&o.push(s)}else o.push(s)}}));var a=we();i.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,i,r,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:a}),ow(this,i,r,t,{},a),pb.trigger("afterupdate",i,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),nx.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),iw(this,n,this._api,t,{}),pb.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(e){e.getData().clearAllVisual()})),nx.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,r){if("series"!==e){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,t)}})),i.eachSeries((function(e){var r=n._chartsMap[e.__viewId];r.updateVisual(e,i,n._api,t)})),pb.trigger("afterupdate",i,this._api))},updateLayout:function(e){Yb.update.call(this,e)}},Xb=function(e,t,n,i){if(e._disposed)gw(e.id);else{for(var r,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=Va(o,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(r=u[t](o,s,i)))return r}0}},Kb=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))},Jb=function(e,t){var n=this,i=this.getModel(),r=e.type,o=e.escapeConnect,a=vw[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Ja(l[0]);this[Eb]=!0;var d=[e],h=!1;e.batch&&(h=!0,d=G(e.batch,(function(t){return t=B(F({},t),e),t.batch=null,t})));var p,f=[],g=Gc(e),v=Uc(e);if(v&&Sc(this._api),W(d,(function(t){if(p=a.action(t,n._model,n._api),p=p||F({},t),p.type=s.event||p.type,f.push(p),v){var i=za(e),r=i.queryOptionMap,o=i.mainTypeSpecified,l=o?r.keys()[0]:"series";$b(n,u,t,l),lw(n)}else g?($b(n,u,t,"series"),lw(n)):c&&$b(n,u,t,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this[Nb]?(jb(this),Yb.update.call(this,e),this[Nb]=null):Yb[u].call(this,e)}catch(wm){throw this[Eb]=!1,wm}if(p=h?{type:s.event||r,escapeConnect:o,batch:f}:f[0],this[Eb]=!1,!t){var m=this._messageCenter;if(m.trigger(p.type,p),g){var y={type:"selectchanged",escapeConnect:o,selected:Pc(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};m.trigger(y.type,y)}}},Qb=function(e){var t=this._pendingActions;while(t.length){var n=t.shift();Jb.call(this,n,e)}},ew=function(e){!e&&this.trigger("updated")},tw=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Nb]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},nw=function(e,t){e.on("mouseover",(function(e){var n=e.target,i=n_(n,qc);i&&(kc(i,e,t._api),lw(t))})).on("mouseout",(function(e){var n=e.target,i=n_(n,qc);i&&(Ac(i,e,t._api),lw(t))})).on("click",(function(e){var n=e.target,i=n_(n,(function(e){return null!=Lu(e).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=Lu(i);t._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},iw=function(e,n,i,r,o){t(n),rw(e,n,i,r,o),W(e._chartsViews,(function(e){e.__alive=!1})),ow(e,n,i,r,o),W(e._chartsViews,(function(e){e.__alive||e.remove(n,i)}))},rw=function(e,t,n,i,r,o){W(o||e._componentsViews,(function(e){var r=e.__model;l(r,e),e.render(r,t,n,i),a(r,e),u(r,e)}))},ow=function(e,t,n,o,s,c){var d=e._scheduler;s=F(s||{},{updatedSeries:t.getSeries()}),pb.trigger("series:beforeupdate",t,n,s);var h=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,o),l(t,n),c&&c.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(h=!0),n.group.silent=!!t.get("silent"),r(t,n),Lc(t)})),d.unfinished=h||d.unfinished,pb.trigger("series:layoutlabels",t,n,s),pb.trigger("series:transition",t,n,s),t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];a(t,n),u(t,n)})),i(e,t),pb.trigger("series:afterupdate",t,n,s)},lw=function(e){e[Fb]=!0,e.getZr().wakeUp()},uw=function(e){e[Fb]&&(e.getZr().storage.traverse((function(e){Jc(e)||n(e)})),e[Fb]=!1)},aw=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){vc(t,n),lw(e)},n.prototype.leaveEmphasis=function(t,n){mc(t,n),lw(e)},n.prototype.enterBlur=function(t){yc(t),lw(e)},n.prototype.leaveBlur=function(t){xc(t),lw(e)},n.prototype.enterSelect=function(t){_c(t),lw(e)},n.prototype.leaveSelect=function(t){bc(t),lw(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(Kp))(e)},sw=function(e){function t(e,t){for(var n=0;n<e.length;n++){var i=e[n];i[Vb]=t}}W(mw,(function(n,i){e._messageCenter.on(i,(function(n){if(Mw[e.group]&&e[Vb]!==zb){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),r=[];W(Sw,(function(t){t!==e&&t.group===e.group&&r.push(t)})),t(r,zb),W(r,(function(e){e[Vb]!==qb&&e.dispatchAction(i)})),t(r,Hb)}}))}))}}(),t}(et),pw=hw.prototype;pw.on=Wb("on"),pw.off=Wb("off"),pw.one=function(e,t,n){var i=this;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t&&t.apply&&t.apply(this,n),i.off(e,r)}gg("ECharts#one is deprecated."),this.on.call(this,e,r,n)};var fw=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function gw(e){0}var vw={},mw={},yw=[],xw=[],_w=[],bw={},ww={},Sw={},Mw={},Cw=+new Date-0,Iw=(new Date,"_echarts_instance_");function Tw(e,t,n){var i=!(n&&n.ssr);if(i){0;var r=kw(e);if(r)return r;0}var o=new hw(e,t,n);return o.id="ec_"+Cw++,Sw[o.id]=o,i&&Ga(e,Iw,o.id),sw(o),pb.trigger("afterinit",o),o}function kw(e){return Sw[Ua(e,Iw)]}function Aw(e,t){bw[e]=t}function Dw(e){V(xw,e)<0&&xw.push(e)}function Lw(e,t){zw(yw,e,t,wb)}function Pw(e){Rw("afterinit",e)}function Ow(e){Rw("afterupdate",e)}function Rw(e,t){pb.on(e,t)}function Ew(e,t,n){Q(t)&&(n=t,t="");var i=ie(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,mw[t]||(ve(Bb.test(i)&&Bb.test(t)),vw[i]||(vw[i]={action:n,actionInfo:e}),mw[t]=i)}function Nw(e,t){ef.register(e,t)}function Fw(e,t){zw(_w,e,t,Mb,"layout")}function Bw(e,t){zw(_w,e,t,Tb,"visual")}var Vw=[];function zw(e,t,n,i,r){if((Q(t)||ie(t))&&(n=t,t=i),!(V(Vw,n)>=0)){Vw.push(n);var o=Nx.wrapStageHandler(n,r);o.__prio=t,o.__raw=n,e.push(o)}}function qw(e,t){ww[e]=t}function Hw(e,t,n){var i=vb("registerMap");i&&i(e,t,n)}var Ww=Pg;Bw(Ib,fx),Bw(Ab,vx),Bw(Ab,mx),Bw(Ib,$x),Bw(Ab,Yx),Bw(Ob,db),Dw(Pf),Lw(_b,Of),qw("default",xx),Ew({type:Gu,event:Gu,update:Gu},Te),Ew({type:Uu,event:Uu,update:Uu},Te),Ew({type:ju,event:ju,update:ju},Te),Ew({type:Zu,event:Zu,update:Zu},Te),Ew({type:$u,event:$u,update:$u},Te),Aw("light",Bx),Aw("dark",Gx);var Gw=[],Uw={registerPreprocessor:Dw,registerProcessor:Lw,registerPostInit:Pw,registerPostUpdate:Ow,registerUpdateLifecycle:Rw,registerAction:Ew,registerCoordinateSystem:Nw,registerLayout:Fw,registerVisual:Bw,registerTransform:Ww,registerLoading:qw,registerMap:Hw,registerImpl:gb,PRIORITY:Rb,ComponentModel:op,ComponentView:Ev,SeriesModel:Ov,ChartView:nx,registerComponentModel:function(e){op.registerClass(e)},registerComponentView:function(e){Ev.registerClass(e)},registerSeriesModel:function(e){Ov.registerClass(e)},registerChartView:function(e){nx.registerClass(e)},registerSubTypeDefaulter:function(e,t){op.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Bo(e,t)}};function jw(e){J(e)?W(e,(function(e){jw(e)})):V(Gw,e)>=0||(Gw.push(e),Q(e)&&(e={install:e}),e.install(Uw))}var Zw=2*Math.PI,$w=Sl.CMD,Yw=["top","right","bottom","left"];function Xw(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0);break}}function Kw(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+e,d=s*n+t;if(Math.abs(i-r)%Zw<1e-4)return l[0]=c,l[1]=d,u-n;if(o){var h=i;i=kl(r),r=kl(h)}else i=kl(i),r=kl(r);i>r&&(r+=Zw);var p=Math.atan2(s,a);if(p<0&&(p+=Zw),p>=i&&p<=r||p+Zw>=i&&p+Zw<=r)return l[0]=c,l[1]=d,u-n;var f=n*Math.cos(i)+e,g=n*Math.sin(i)+t,v=n*Math.cos(r)+e,m=n*Math.sin(r)+t,y=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(m-s)*(m-s);return y<x?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=v,l[1]=m,Math.sqrt(x))}function Jw(e,t,n,i,r,o,a,s){var l=r-e,u=o-t,c=n-e,d=i-t,h=Math.sqrt(c*c+d*d);c/=h,d/=h;var p=l*c+u*d,f=p/h;s&&(f=Math.min(Math.max(f,0),1)),f*=h;var g=a[0]=e+f*c,v=a[1]=t+f*d;return Math.sqrt((g-r)*(g-r)+(v-o)*(v-o))}function Qw(e,t,n,i,r,o,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,u=a[0]=Math.min(Math.max(r,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var eS=[];function tS(e,t,n){var i=Qw(t.x,t.y,t.width,t.height,e.x,e.y,eS);return n.set(eS[0],eS[1]),i}function nS(e,t,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=t.data,d=e.x,h=e.y,p=0;p<c.length;){var f=c[p++];1===p&&(o=c[p],a=c[p+1],s=o,l=a);var g=u;switch(f){case $w.M:s=c[p++],l=c[p++],o=s,a=l;break;case $w.L:g=Jw(o,a,c[p],c[p+1],d,h,eS,!0),o=c[p++],a=c[p++];break;case $w.C:g=wn(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],d,h,eS),o=c[p++],a=c[p++];break;case $w.Q:g=An(o,a,c[p++],c[p++],c[p],c[p+1],d,h,eS),o=c[p++],a=c[p++];break;case $w.A:var v=c[p++],m=c[p++],y=c[p++],x=c[p++],_=c[p++],b=c[p++];p+=1;var w=!!(1-c[p++]);i=Math.cos(_)*y+v,r=Math.sin(_)*x+m,p<=1&&(s=i,l=r);var S=(d-v)*x/y+v;g=Kw(v,m,x,_,_+b,w,S,h,eS),o=Math.cos(_+b)*y+v,a=Math.sin(_+b)*x+m;break;case $w.R:s=o=c[p++],l=a=c[p++];var M=c[p++],C=c[p++];g=Qw(s,l,M,C,d,h,eS);break;case $w.Z:g=Jw(o,a,s,l,d,h,eS,!0),o=s,a=l;break}g<u&&(u=g,n.set(eS[0],eS[1]))}return u}var iS=new Yr,rS=new Yr,oS=new Yr,aS=new Yr,sS=new Yr;function lS(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var r=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||Yw,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=e.getComputedTransform(),d=c&&Er([],c),h=t.get("length2")||0;u&&oS.copy(u);for(var p=0;p<a.length;p++){var f=a[p];Xw(f,0,s,iS,aS),Yr.scaleAndAdd(rS,iS,aS,h),rS.transform(d);var g=e.getBoundingRect(),v=u?u.distance(rS):e instanceof Yl?nS(rS,e.path,oS):tS(rS,g,oS);v<l&&(l=v,rS.transform(c),oS.transform(c),oS.toArray(o[0]),rS.toArray(o[1]),iS.toArray(o[2]))}dS(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var uS=[],cS=new Yr;function dS(e,t){if(t<=180&&t>0){t=t/180*Math.PI,iS.fromArray(e[0]),rS.fromArray(e[1]),oS.fromArray(e[2]),Yr.sub(aS,iS,rS),Yr.sub(sS,oS,rS);var n=aS.len(),i=sS.len();if(!(n<.001||i<.001)){aS.scale(1/n),sS.scale(1/i);var r=aS.dot(sS),o=Math.cos(t);if(o<r){var a=Jw(rS.x,rS.y,oS.x,oS.y,iS.x,iS.y,uS,!1);cS.fromArray(uS),cS.scaleAndAdd(sS,a/Math.tan(Math.PI-t));var s=oS.x!==rS.x?(cS.x-rS.x)/(oS.x-rS.x):(cS.y-rS.y)/(oS.y-rS.y);if(isNaN(s))return;s<0?Yr.copy(cS,rS):s>1&&Yr.copy(cS,oS),cS.toArray(e[1])}}}}function hS(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,iS.fromArray(e[0]),rS.fromArray(e[1]),oS.fromArray(e[2]),Yr.sub(aS,rS,iS),Yr.sub(sS,oS,rS);var i=aS.len(),r=sS.len();if(!(i<.001||r<.001)){aS.scale(1/i),sS.scale(1/r);var o=aS.dot(t),a=Math.cos(n);if(o<a){var s=Jw(rS.x,rS.y,oS.x,oS.y,iS.x,iS.y,uS,!1);cS.fromArray(uS);var l=Math.PI/2,u=Math.acos(sS.dot(t)),c=l+u-n;if(c>=l)Yr.copy(cS,oS);else{cS.scaleAndAdd(sS,s/Math.tan(Math.PI/2-c));var d=oS.x!==rS.x?(cS.x-rS.x)/(oS.x-rS.x):(cS.y-rS.y)/(oS.y-rS.y);if(isNaN(d))return;d<0?Yr.copy(cS,rS):d>1&&Yr.copy(cS,oS)}cS.toArray(e[1])}}}}function pS(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function fS(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=We(i[0],i[1]),o=We(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=je([],i[1],i[0],a/r),l=je([],i[1],i[2],a/o),u=je([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}function gS(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(r){for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<qu.length;l++){var u=qu[l],c=t[u],d="normal"===u;if(c){var h=c.get("show"),p=d?s:he(r.states[u]&&r.states[u].ignore,s);if(p||!he(h,a)){var f=d?i:i&&i.states[u];f&&(f.ignore=!0);continue}i||(i=new zm,e.setTextGuideLine(i),d||!s&&a||pS(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),pS(i,!1,u,c)}}if(i){B(i.style,n),i.style.fill=null;var g=o.get("showAbove"),v=e.textGuideLineConfig=e.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=fS}}else i&&e.removeTextGuideLine()}function vS(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<zu.length;i++){var r=zu[i];n[r]=e.getModel([r,t])}return n}function mS(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new hy(a,o):null;t.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return t}function yS(e,t,n,i,r,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=[],d=0,h=0;h<a;h++){var p=e[h],f=p.rect;s=f[t]-l,s<0&&(f[t]-=s,p.label[t]-=s,u=!0);var g=Math.max(-s,0);c.push(g),d+=g,l=f[t]+f[n]}d>0&&o&&w(-d/a,0,a);var v,m,y=e[0],x=e[a-1];return _(),v<0&&S(-v,.8),m<0&&S(m,.8),_(),b(v,m,1),b(m,v,-1),_(),v<0&&M(-v),m<0&&M(m),u}function _(){v=y.rect[t]-i,m=r-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,a);var r=i+e;r<0&&S(-r*n,1)}else S(-e*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=e[o],s=a.rect;s[t]+=n,a.label[t]+=n}}function S(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var d=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){var h=o[l]*d;w(h,0,l+1)}else for(l=a-1;l>0;l--){h=o[l-1]*d;w(-h,l,a)}}}function M(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i<a-1;i++)if(t>0?w(n,0,i+1):w(-n,a-i-1,a),e-=n,e<=0)return}}function xS(e,t,n,i){return yS(e,"x","width",t,n,i)}function _S(e,t,n,i){return yS(e,"y","height",t,n,i)}function bS(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new oo(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r<e.length;r++){var o=e[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,h=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){h=!0;break}if(f.obb||(f.obb=new hy(f.localRect,f.transform)),d||(d=new hy(s,l)),d.intersect(f.obb)){h=!0;break}}}h?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function wS(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function SS(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:wS(i&&i.shape.points)}}var MS=["align","verticalAlign","width","height","fontSize"],CS=new Zr,IS=Fa(),TS=Fa();function kS(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var AS=["x","y","rotation"],DS=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();oo.applyTransform(u,u,l),l?CS.setLocalTransform(l):(CS.x=CS.y=CS.rotation=CS.originX=CS.originY=0,CS.scaleX=CS.scaleY=1);var c,d=i.__hostTarget;if(d){c=d.getBoundingRect().plain();var h=d.getComputedTransform();oo.applyTransform(c,c,h)}var p=c&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:CS.x,y:CS.y,scaleX:CS.scaleX,scaleY:CS.scaleY,rotation:CS.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(Q(i)||$(i).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var r=e.getTextContent(),o=Lu(e);r&&!r.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,r,i)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){lS(e,t)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=Q(o.layoutOption)?o.layoutOption(SS(o,s)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var d=!1;if(null!=u.x?(a.x=Wo(u.x,t),a.setStyle("x",0),d=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=Wo(u.y,n),a.setStyle("y",0),d=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var h=s.getTextGuideLine();h&&(h.setShape({points:u.labelLinePoints}),d=!1)}var p=IS(a);p.needsUpdateLabelLine=d,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var f=0;f<MS.length;f++){var g=MS[f];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var m=o.seriesModel.getData(o.dataType);v=m.getItemModel(o.dataIndex)}a.on("drag",i(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=mS(this._labelList),r=j(i,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=j(i,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));xS(r,0,t),_S(o,0,n);var a=j(i,(function(e){return e.layoutOption.hideOverlap}));bS(a)},e.prototype.processLabelsOverall=function(){var e=this;W(this._chartViewList,(function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!i,a=t.getTextContent();!o&&a&&(o=IS(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=Lu(e),r=i.dataIndex;if(n&&null!=r){var o=t.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");gS(e,vS(a),s),lS(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Jc(e))){var r=IS(n),o=r.oldLayout,a=Lu(e),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(a.dataType);if(o){n.attr(o);var c=e.prevStates;c&&(V(c,"select")>=0&&n.attr(r.oldLayoutSelect),V(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Xc(n,l,t,s)}else if(n.attr(l),!yd(n).valueAnimation){var d=he(n.style.opacity,1);n.style.opacity=0,Kc(n,{style:{opacity:d}},t,s)}if(r.oldLayout=l,n.states.select){var h=r.oldLayoutSelect={};kS(h,l,AS),kS(h,n.states.select,AS)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};kS(p,l,AS),kS(p,n.states.emphasis,AS)}_d(n,s,u,t,t)}if(i&&!i.ignore&&!i.invisible){r=TS(i),o=r.oldLayout;var f={points:i.shape.points};o?(i.attr({shape:o}),Xc(i,{shape:f},t)):(i.setShape(f),i.style.strokePercent=0,Kc(i,{style:{strokePercent:1}},t)),r.oldLayout=f}},e}();const LS=DS;var PS=Fa();function OS(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=PS(t).labelManager;i||(i=PS(t).labelManager=new LS),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=PS(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}function RS(e,t,n){var i=x.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}jw(OS);var ES=function(e){function t(t,n,i){var r,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Sr,"string"===typeof t?r=RS(t,n,i):ie(t)&&(r=t,t=r.id),o.id=t,o.dom=r;var a=r.style;return a&&(Ce(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return De(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=RS("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new oo(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new oo(0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var d=new oo(0,0,0,0);d.copy(c),d.union(e),o[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,p=c.width*c.height,f=l.width*l.height,g=f-h-p;g<i&&(i=g,r=u)}}if(s&&(o[r].union(e),n=!0),!n){t=new oo(0,0,0,0);t.copy(e),o.push(t)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var d=e[c];if(d){var h=d.shouldBePainted(n,i,!0,!0),p=d.__isRendered&&(d.__dirty&Zt||!h)?d.getPrevPaintRect():null;p&&u(p);var f=h&&(d.__dirty&Zt||!d.__isRendered)?d.getPaintRect():null;f&&u(f)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){d=t[c],h=d.shouldBePainted(n,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){p=d.getPrevPaintRect();p&&u(p)}}do{r=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var d=this.domBack;function h(e,n,i,o){if(r.clearRect(e,n,i,o),t&&"transparent"!==t){var a=void 0;se(t)?(a=t.__canvasGradient||w_(r,t,{x:0,y:0,width:i,height:o}),t.__canvasGradient=a):le(t)&&(a=R_(r,t,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),r.save(),r.fillStyle=a||t,r.fillRect(e,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(d,e,n,i,o),r.restore())}!n||s?h(0,0,o,a):n.length&&W(n,(function(e){h(e.x*u,e.y*u,e.width*u,e.height*u)}))},t}(et);const NS=ES;var FS=1e5,BS=314159,VS=.01,zS=.001;function qS(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}function HS(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var WS=function(){function e(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=F({},n||{}),this.dpr=n.devicePixelRatio||Sr,this._singleCanvas=r,this.root=e;var o=e.style;o&&(Ce(e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(r){var l=e,u=l.width,c=l.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var d=new NS(l,this,this.dpr);d.__builtin__=!0,d.initContext(),s[BS]=d,d.zlevel=BS,a.push(BS),this._domRoot=e}else{this._width=C_(e,0,n),this._height=C_(e,1,n);var h=this._domRoot=HS(this._width,this._height);e.appendChild(h)}}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(FS)),i||(i=n.ctx,i.save()),eb(i,a,r,o===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(FS)},e.prototype.paintOne=function(e,t){Q_(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;nn((function(){s._paintList(e,t,n,i)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(BS).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,d=!1,h=function(a){var s,l=r[a],c=l.ctx,h=o&&l.createRepaintRects(e,t,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,h);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,m,h)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=e[s];if(r.__inHover&&(d=!0),i._doPaintEl(r,l,o,t,n,s===l.__endIndex-1),g){var a=Date.now()-v;if(a>15)break}}n.prevElClipPaths&&c.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var _=p.dpr,b=0;b<h.length;++b){var w=h[b];c.save(),c.beginPath(),c.rect(w.x*_,w.y*_,w.width*_,w.height*_),c.clip(),x(w),c.restore()}else c.save(),x(),c.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},p=this,f=0;f<r.length;f++)h(f);return c.wxa&&W(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:u,needsRefreshHover:d}},e.prototype._doPaintEl=function(e,t,n,i,r,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&(eb(a,e,r,o),e.setPrevPaintRect(s))}else eb(a,e,r,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=BS);var n=this._layers[e];return n||(n=new NS("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?E(n,this._layerConfig[e],!0):this._layerConfig[e-VS]&&E(n,this._layerConfig[e-VS],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&qS(t)){if(r>0&&e>i[0]){for(s=0;s<r-1;s++)if(i[s]<e&&i[s+1]>e)break;a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];e.call(t,this._layers[r],r)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&e.call(t,o,r)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||e.call(t,o,r)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){a&&(a.__endIndex!==e&&(a.__dirty=!0),a.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,s=0;for(o=0;o<e.length;o++){i=e[o];var l=i.zlevel,u=void 0;r!==l&&(r=l,s=0),i.incremental?(u=this.getLayer(l+zS,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?VS:0),this._needsManuallyCompositing),u.__builtin__||O("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,t(o),a=u),i.__dirty&Zt&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,W(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?E(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===e||r===e+VS){var o=this._layers[r];E(o,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(V(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=C_(r,0,i),t=C_(r,1,i),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(BS).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[BS].dom;var t=new NS("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,r=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,r):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];eb(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const GS=WS;function US(e){e.registerPainter("canvas",GS)}var jS=Math.sin,ZS=Math.cos,$S=Math.PI,YS=2*Math.PI,XS=180/$S,KS=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){this._add("C",e,t,n,i,r,o)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,r,o){this.ellipse(e,t,n,n,0,i,r,o)},e.prototype.ellipse=function(e,t,n,i,r,o,a,s){var l=a-o,u=!s,c=Math.abs(l),d=di(c-YS)||(u?l>=YS:-l>=YS),h=l>0?l%YS:l%YS+YS,p=!1;p=!!d||!di(c)&&h>=$S===!!u;var f=e+n*ZS(o),g=t+i*jS(o);this._start&&this._add("M",f,g);var v=Math.round(r*XS);if(d){var m=1/this._p,y=(u?1:-1)*(YS-m);this._add("A",n,i,v,1,+u,e+n*ZS(o+y),t+i*jS(o+y)),m>.01&&this._add("A",n,i,v,0,+u,f,g)}else{var x=e+n*ZS(a),_=t+i*jS(a);this._add("A",n,i,v,+p,+u,x,_)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,a,s,l){for(var u=[],c=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h))return void(this._invalid=!0);u.push(Math.round(h*c)/c)}this._d.push(e+u.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}();const JS=KS;var QS="none",eM=Math.round;function tM(e){var t=e.fill;return null!=t&&t!==QS}function nM(e){var t=e.stroke;return null!=t&&t!==QS}var iM=["lineCap","miterLimit","lineJoin"],rM=G(iM,(function(e){return"stroke-"+e.toLowerCase()}));function oM(e,t,n,i){var r=null==t.opacity?1:t.opacity;if(n instanceof iu)e("opacity",r);else{if(tM(t)){var o=ui(t.fill);e("fill",o.color);var a=null!=t.fillOpacity?t.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&e("fill-opacity",a)}else e("fill",QS);if(nM(t)){var s=ui(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*r:s.opacity*r,d=t.strokeFirst;if((i||1!==u)&&e("stroke-width",u),(i||d)&&e("paint-order",d?"stroke":"fill"),(i||c<1)&&e("stroke-opacity",c),t.lineDash){var h=T_(n),p=h[0],f=h[1];p&&(f=eM(f||0),e("stroke-dasharray",p.join(",")),(f||i)&&e("stroke-dashoffset",f))}else i&&e("stroke-dasharray",QS);for(var g=0;g<iM.length;g++){var v=iM[g];if(i||t[v]!==Ul[v]){var m=t[v]||Ul[v];m&&e(rM[g],m)}}}else i&&e("stroke",QS)}}var aM="http://www.w3.org/2000/svg",sM="http://www.w3.org/1999/xlink",lM="http://www.w3.org/2000/xmlns/",uM="http://www.w3.org/XML/1998/namespace";function cM(e){return document.createElementNS(aM,e)}function dM(e,t,n,i,r){return{tag:e,attrs:n||{},children:i,text:r,key:t}}function hM(e,t){var n=[];if(t)for(var i in t){var r=t[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function pM(e){return"</"+e+">"}function fM(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,r=e.tag,o=e.attrs;return hM(r,o)+(e.text||"")+(t?""+n+G(t,(function(e){return i(e)})).join(n)+n:"")+pM(r)}return i(e)}function gM(e,t,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",a=G($(e),(function(t){return t+r+G($(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),s=G($(t),(function(e){return"@keyframes "+e+r+G($(t[e]),(function(n){return n+r+G($(t[e][n]),(function(i){var r=t[e][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}function vM(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function mM(e,t,n,i){return dM("svg","root",{width:e,height:t,xmlns:aM,"xmlns:xlink":sM,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var yM={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},xM="transform-origin";function _M(e,t,n){var i=F({},e.shape);F(i,t),e.buildPath(n,i);var r=new JS;return r.reset(Ii(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function bM(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[xM]=n+"px "+i+"px")}var wM={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function SM(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function MM(e,t,n){var i,r,o=e.shape.paths,a={};if(W(o,(function(e){var t=vM(n.zrId);t.animation=!0,IM(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=$(o),u=l.length;if(u){r=l[u-1];var c=o[r];for(var d in c){var h=c[d];a[d]=a[d]||{d:""},a[d].d+=h.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){t.d=!1;var s=SM(a,n);return i.replace(r,s)}}function CM(e){return ee(e)?yM[e]?"cubic-bezier("+yM[e]+")":Pn(e)?e:"":""}function IM(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof ey){var s=MM(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=r[u],d=[c.getMaxTime()/1e3+"s"],h=CM(c.getClip().easing),p=c.getDelay();h?d.push(h):d.push("linear"),p&&d.push(p/1e3+"s"),c.getLoop()&&d.push("infinite");var f=d.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(r){var o,a=r[1],s=a.length,l={},u={},c={},d="animation-timing-function";function h(e,t,n){for(var i=e.getTracks(),r=e.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],h=Math.round(c.time/r*100)+"%",p=CM(c.easing),f=c.rawValue;(ee(f)||ne(f))&&(t[h]=t[h]||{},t[h][l]=c.rawValue,p&&(t[h][d]=p))}}}}for(var p=0;p<s;p++){var f=a[p],g=f.targetName;g?"shape"===g&&h(f,u):!i&&h(f,l)}for(var v in l){var m={};jr(m,e),F(m,l[v]);var y=Ti(m),x=l[v][d];c[v]=y?{transform:y}:{},bM(c[v],m),x&&(c[v][d]=x)}var _=!0;for(var v in u){c[v]=c[v]||{};var b=!o;x=u[v][d];b&&(o=new Sl);var w=o.len();o.reset(),c[v].d=_M(e,u[v],o);var S=o.len();if(!b&&w!==S){_=!1;break}x&&(c[v][d]=x)}if(!_)for(var v in c)delete c[v].d;if(!i)for(p=0;p<s;p++){f=a[p],g=f.targetName;"style"===g&&h(f,c,(function(e){return wM[e]}))}var M,C=$(c),I=!0;for(p=1;p<C.length;p++){var T=C[p-1],k=C[p];if(c[T][xM]!==c[k][xM]){I=!1;break}M=c[T][xM]}if(I&&M){for(var v in c)c[v][xM]&&delete c[v][xM];t[xM]=M}if(j(C,(function(e){return $(c[e]).length>0})).length){var A=SM(c,n);return A+" "+r[0]+" both"}}for(var v in l){s=g(l[v]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:a.join(",")},t["class"]=m}}var TM=Math.round;function kM(e){return e&&ee(e.src)}function AM(e){return e&&Q(e.toDataURL)}function DM(e,t,n,i){oM((function(r,o){var a="fill"===r||"stroke"===r;a&&Mi(o)?GM(t,e,r,i):a&&bi(o)?UM(n,e,r,i):e[r]=o}),t,n,!1),WM(n,e,i)}function LM(e){return di(e[0]-1)&&di(e[1])&&di(e[2])&&di(e[3]-1)}function PM(e){return di(e[4])&&di(e[5])}function OM(e,t,n){if(t&&(!PM(t)||!LM(t))){var i=n?10:1e4;e.transform=LM(t)?"translate("+TM(t[4]*i)/i+" "+TM(t[5]*i)/i+")":fi(t)}}function RM(e,t,n){for(var i=e.points,r=[],o=0;o<i.length;o++)r.push(TM(i[o][0]*n)/n),r.push(TM(i[o][1]*n)/n);t.points=r.join(" ")}function EM(e){return!e.smooth}function NM(e){var t=G(e,(function(e){return"string"===typeof e?[e,e]:e}));return function(e,n,i){for(var r=0;r<t.length;r++){var o=t[r],a=e[o[0]];null!=a&&(n[o[1]]=TM(a*i)/i)}}}var FM={circle:[NM(["cx","cy","r"])],polyline:[RM,EM],polygon:[RM,EM]};function BM(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}function VM(e,t){var n=e.style,i=e.shape,r=FM[e.type],o={},a=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Ii(e)||4;if(!r||t.willUpdate||r[1]&&!r[1](i)||a&&BM(e)||l<1){e.path||e.createPathProxy();var c=e.path;e.shapeChanged()&&(c.beginPath(),e.buildPath(c,e.shape),e.pathUpdated());var d=c.getVersion(),h=e,p=h.__svgPathBuilder;h.__svgPathVersion===d&&p&&l===h.__svgPathStrokePercent||(p||(p=h.__svgPathBuilder=new JS),p.reset(u),c.rebuildPath(p,l),p.generateStr(),h.__svgPathVersion=d,h.__svgPathStrokePercent=l),o.d=p.getStr()}else{s=e.type;var f=Math.pow(10,u);r[0](i,o,f)}return OM(o,e.transform),DM(o,n,e,t),t.animation&&IM(e,o,t),dM(s,e.id+"",o)}function zM(e,t){var n=e.style,i=n.image;if(i&&!ee(i)&&(kM(i)?i=i.src:AM(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:i,width:a,height:s};return r&&(l.x=r),o&&(l.y=o),OM(l,e.transform),DM(l,n,e,t),t.animation&&IM(e,l,t),dM("image",e.id+"",l)}}function qM(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||p,o=n.x||0,a=vi(n.y||0,po(r),n.textBaseline),s=gi[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(wu(n)){var u="",c=n.fontStyle,d=_u(n.fontSize);if(!parseFloat(d))return;var f=n.fontFamily||h,g=n.fontWeight;u+="font-size:"+d+";font-family:"+f+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),g&&"normal"!==g&&(u+="font-weight:"+g+";"),l.style=u}else l.style="font: "+r;return i.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),OM(l,e.transform),DM(l,n,e,t),t.animation&&IM(e,l,t),dM("text",e.id+"",l,void 0,i)}}function HM(e,t){return e instanceof Yl?VM(e,t):e instanceof iu?zM(e,t):e instanceof Jl?qM(e,t):void 0}function WM(e,t,n){var i=e.style;if(mi(i)){var r=yi(e),o=n.shadowCache,a=o[r];if(!a){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,d=i.shadowOffsetY||0,h=i.shadowBlur,p=ui(i.shadowColor),f=p.opacity,g=p.color,v=h/2/l,m=h/2/u,y=v+" "+m;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=dM("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[dM("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:y,"flood-color":g,"flood-opacity":f})]),o[r]=a}t.filter=Ci(a)}}function GM(e,t,n,i){var r,o=e[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(wi(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Si(o))return void 0;r="radialGradient",a.cx=he(o.x,.5),a.cy=he(o.y,.5),a.r=he(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=100*pi(s[u].offset)+"%",h=s[u].color,p=ui(h),f=p.color,g=p.opacity,v={offset:d};v["stop-color"]=f,g<1&&(v["stop-opacity"]=g),l.push(dM("stop",u+"",v))}var m=dM(r,"",a,l),y=fM(m),x=i.gradientCache,_=x[y];_||(_=i.zrId+"-g"+i.gradientIdx++,x[y]=_,a.id=_,i.defs[_]=dM(r,_,a,l)),t[n]=Ci(_)}function UM(e,t,n,i){var r,o=e.style[n],a={patternUnits:"userSpaceOnUse"};if(xi(o)){var s=o.imageWidth,l=o.imageHeight,u=void 0,c=o.image;if(ee(c)?u=c:kM(c)?u=c.src:AM(c)&&(u=c.toDataURL()),"undefined"===typeof Image){var d="Image width/height must been given explictly in svg-ssr renderer.";ve(s,d),ve(l,d)}else if(null==s||null==l){var h=function(e,t){if(e){var n=e.elm,i=e.attrs.width=s||t.width,r=e.attrs.height=l||t.height;n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},p=gs(u,null,e,(function(e){h(f,e),h(r,e)}));p&&p.width&&p.height&&(s=s||p.width,l=l||p.height)}r=dM("image","img",{href:u,width:s,height:l}),a.width=s,a.height=l}else o.svgElement&&(r=R(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(r){a.patternTransform=Ti(o);var f=dM("pattern","",a,[r]),g=fM(f),v=i.patternCache,m=v[g];m||(m=i.zrId+"-p"+i.patternIdx++,v[g]=m,a.id=m,f=i.defs[m]=dM("pattern",m,a,[r])),t[n]=Ci(m)}}function jM(e,t,n){var i=n.clipPathCache,r=n.defs,o=i[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};i[e.id]=o,r[o]=dM("clipPath",o,a,[VM(e,n)])}t["clip-path"]=Ci(o)}function ZM(e){return document.createTextNode(e)}function $M(e,t,n){e.insertBefore(t,n)}function YM(e,t){e.removeChild(t)}function XM(e,t){e.appendChild(t)}function KM(e){return e.parentNode}function JM(e){return e.nextSibling}function QM(e,t){e.textContent=t}var eC=58,tC=120,nC=dM("","");function iC(e){return void 0===e}function rC(e){return void 0!==e}function oC(e,t,n){for(var i={},r=t;r<=n;++r){var o=e[r].key;void 0!==o&&(i[o]=r)}return i}function aC(e,t){var n=e.key===t.key,i=e.tag===t.tag;return i&&n}function sC(e){var t,n=e.children,i=e.tag;if(rC(i)){var r=e.elm=cM(i);if(cC(nC,e),J(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&XM(r,sC(o))}else rC(e.text)&&!ie(e.text)&&XM(r,ZM(e.text))}else e.elm=ZM(e.text);return e.elm}function lC(e,t,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&$M(e,sC(o),t)}}function uC(e,t,n,i){for(;n<=i;++n){var r=t[n];if(null!=r)if(rC(r.tag)){var o=KM(r.elm);YM(o,r.elm)}else YM(e,r.elm)}}function cC(e,t){var n,i=t.elm,r=e&&e.attrs||{},o=t.attrs||{};if(r!==o){for(n in o){var a=o[n],s=r[n];s!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):n.charCodeAt(0)!==tC?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(lM,n,a):n.charCodeAt(3)===eC?i.setAttributeNS(uM,n,a):n.charCodeAt(5)===eC?i.setAttributeNS(sM,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function dC(e,t,n){var i,r,o,a,s=0,l=0,u=t.length-1,c=t[0],d=t[u],h=n.length-1,p=n[0],f=n[h];while(s<=u&&l<=h)null==c?c=t[++s]:null==d?d=t[--u]:null==p?p=n[++l]:null==f?f=n[--h]:aC(c,p)?(hC(c,p),c=t[++s],p=n[++l]):aC(d,f)?(hC(d,f),d=t[--u],f=n[--h]):aC(c,f)?(hC(c,f),$M(e,c.elm,JM(d.elm)),c=t[++s],f=n[--h]):aC(d,p)?(hC(d,p),$M(e,d.elm,c.elm),d=t[--u],p=n[++l]):(iC(i)&&(i=oC(t,s,u)),r=i[p.key],iC(r)?$M(e,sC(p),c.elm):(o=t[r],o.tag!==p.tag?$M(e,sC(p),c.elm):(hC(o,p),t[r]=void 0,$M(e,o.elm,c.elm))),p=n[++l]);(s<=u||l<=h)&&(s>u?(a=null==n[h+1]?null:n[h+1].elm,lC(e,a,n,l,h)):uC(e,t,s,u))}function hC(e,t){var n=t.elm=e.elm,i=e.children,r=t.children;e!==t&&(cC(e,t),iC(t.text)?rC(i)&&rC(r)?i!==r&&dC(n,i,r):rC(r)?(rC(e.text)&&QM(n,""),lC(n,null,r,0,r.length-1)):rC(i)?uC(n,i,0,i.length-1):rC(e.text)&&QM(n,""):e.text!==t.text&&(rC(i)&&uC(n,i,0,i.length-1),QM(n,t.text)))}function pC(e,t){if(aC(e,t))hC(e,t);else{var n=e.elm,i=KM(n);sC(t),null!==i&&($M(i,t.elm,JM(n)),uC(i,[e],0,0))}return t}var fC=0,gC=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=vC("refreshHover"),this.configLayer=vC("configLayer"),this.storage=t,this._opts=n=F({},n),this.root=e,this._id="zr"+fC++,this._oldVNode=mM(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=cM("svg");cC(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",pC(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return HM(e,vM(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,r=this._height,o=vM(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var a=[];if(n&&"none"!==n){var s=ui(n),l=s.color,u=s.opacity;this._bgVNode=dM("rect","bg",{width:i,height:r,x:"0",y:"0",id:"0",fill:l,"fill-opacity":u}),a.push(this._bgVNode)}else this._bgVNode=null;var c=e.compress?null:this._mainVNode=dM("g","main",{},[]);this._paintList(t,o,c?c.children:a),c&&a.push(c);var d=G($(o.defs),(function(e){return o.defs[e]}));if(d.length&&a.push(dM("defs","defs",{},d)),e.animation){var h=gM(o.cssNodes,o.cssAnims,{newline:!0});if(h){var p=dM("style","stl",{},[],h);a.push(p)}}return mM(i,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},fM(this.renderToVNode({animation:he(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:he(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=ui(e),i=n.color,r=n.opacity;t.elm.setAttribute("fill",i),r<1&&t.elm.setAttribute("fill-opacity",r)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,o=e.length,a=[],s=0,l=0,u=0;u<o;u++){var c=e[u];if(!c.invisible){var d=c.__clipPaths,h=d&&d.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(h-1,p-1);f>=0;f--)if(d&&r&&d[f]===r[f])break;for(var g=p-1;g>f;g--)s--,i=a[s-1];for(var v=f+1;v<h;v++){var m={};jM(d[v],m,t);var y=dM("g","clip-g-"+l++,m,[]);(i?i.children:n).push(y),a[s++]=y,i=y}r=d;var x=HM(c,t);x&&(i?i.children:n).push(x)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,r=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&r&&(r.style.display="none",e=C_(i,0,n),t=C_(i,1,n),r.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,r){var o=r.style;o.width=e+"px",o.height=t+"px"}var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t))}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return e?(t=ki(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+t},e}();function vC(e){return function(){0}}const mC=gC;function yC(e){e.registerPainter("svg",mC)}function xC(e){return null==e?0:e.length||1}function _C(e){return e}var bC=function(){function e(e,t,n,i,r,o){this._old=e,this._new=t,this._oldKeyGetter=n||_C,this._newKeyGetter=i||_C,this.context=r,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=i[o],s=n[a],l=xC(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=xC(l),d=xC(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),i[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=t[i],o=xC(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var r=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[i](e[o],o);if(r||(n[o]=a),t){var s=t[a],l=xC(s);0===l?(t[a]=o,r&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}();const wC=bC;var SC=function(){function e(e,t){this._encode=e,this._schema=t}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 MC(e,t){var n={},i=n.encode={},r=we(),o=[],a=[],s={};W(e.dimensions,(function(t){var n=e.getDimensionInfo(t),l=n.coordDim;if(l){0;var u=n.coordDimIndex;CC(i,l)[u]=t,n.isExtraCoord||(r.set(l,1),TC(n.type)&&(o[0]=t),CC(s,l)[u]=e.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(t)}up.each((function(e,t){var r=CC(i,t),o=n.otherDims[t];null!=o&&!1!==o&&(r[o]=n.name)}))}));var l=[],u={};r.each((function(e,t){var n=i[t];u[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=G(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var d=i.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new SC(s,t),n}function CC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function IC(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function TC(e){return!("ordinal"===e||"time"===e)}var kC=function(){function e(e){this.otherDims={},null!=e&&F(this,e)}return e}();const AC=kC;var DC=Fa(),LC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},PC=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=EC(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return he(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Xf(this.source),n=!NC(e),i="",r=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=t?d.name:null,l=d.type)}r.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=LC[l]||"f",u&&(i+=u.uid),i+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:r,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function OC(e){return e instanceof PC}function RC(e){for(var t=we(),n=0;n<(e||[]).length;n++){var i=e[n],r=ie(i)?i.name:i;null!=r&&null==t.get(r)&&t.set(r,n)}return t}function EC(e){var t=DC(e);return t.dimNameMap||(t.dimNameMap=RC(e.dimensionsDefine))}function NC(e){return e>30}var FC,BC,VC,zC,qC,HC,WC,GC=ie,UC=G,jC="undefined"===typeof Int32Array?Array:Int32Array,ZC="e\0\0",$C=-1,YC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],XC=["_approximateExtent"],KC=function(){function e(e,t){var n;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 i=!1;OC(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=ee(c)?new AC({name:c}):c instanceof AC?c:new AC(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),r[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(a[h]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),i&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=we();W(o,(function(e){f.set(r[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);return i?i.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(ne(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,r=this;if(e instanceof $g&&(i=e),!i){var o=this.dimensions,a=qf(e)||H(e)?new Kf(e,o.length):e;i=new $g;var s=UC(o,(function(e){return{type:r._dimInfos[e].type,property:e}}));i.initData(a,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=MC(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=t[s],o&&WC(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==fp&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===cp;if(s&&!i.pure)for(var l=[],u=e;u<t;u++){var c=i.getItem(u,l);if(!this.hasItemOption&&xa(c)&&(this.hasItemOption=!0),c){var d=c.name;null==r[u]&&null!=d&&(r[u]=Aa(d,null));var h=c.id;null==o[u]&&null!=h&&(o[u]=Aa(h,null))}}if(this._shouldMakeIdFromName())for(u=e;u<t;u++)WC(this,u);FC(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){GC(e)?F(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=VC(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return BC(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return J(e)?i.getValues(UC(e,(function(e){return n._getStoreDimIndex(e)})),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var i=n[t];return null==i||isNaN(i)?$C:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){Q(e)&&(n=t,t=e,e=[]);var i=n||this,r=UC(zC(e),this._getStoreDimIndex,this);this._store.each(r,i?X(t,i):t)},e.prototype.filterSelf=function(e,t,n){Q(e)&&(n=t,t=e,e=[]);var i=n||this,r=UC(zC(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?X(t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={},i=$(e),r=[];return W(i,(function(i){var o=t._getStoreDimIndex(i);n[o]=e[i],r.push(o)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){Q(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,i){var r=n||i||this,o=UC(zC(e),this._getStoreDimIndex,this),a=HC(this);return a._store=this._store.map(o,r?X(t,r):t),a},e.prototype.modify=function(e,t,n,i){var r=n||i||this;var o=UC(zC(e),this._getStoreDimIndex,this);this._store.modify(o,r?X(t,r):t)},e.prototype.downSample=function(e,t,n,i){var r=HC(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),r},e.prototype.lttbDownSample=function(e,t){var n=HC(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Od(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new wC(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return BC(e,t)}),(function(e){return BC(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},GC(e)?F(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),J(r)?r=r.slice():GC(r)&&(r=F({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,GC(t)?F(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){GC(e)?F(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?F(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Pu(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){W(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:UC(this.dimensions,this._getDimInfo,this),this.hostModel)),qC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];Q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(fe(arguments)))})},e.internalField=function(){FC=function(e){var t=e._invertedIndicesMap;W(t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new jC(o.categories.length);for(var s=0;s<n.length;s++)n[s]=$C;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},VC=function(e,t,n){return Aa(e._getCategory(t,n),null)},BC=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=VC(e,e._idDimIdx,t)),null==n&&(n=ZC+t),n},zC=function(e){return J(e)||(e=null!=e?[e]:[]),e},HC=function(t){var n=new e(t._schema?t._schema:UC(t.dimensions,t._getDimInfo,t),t.hostModel);return qC(n,t),n},qC=function(e,t){W(YC.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,W(XC,(function(n){e[n]=R(t[n])})),e._calculationInfo=F({},t._calculationInfo)},WC=function(e,t){var n=e._nameList,i=e._idList,r=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=i[t];if(null==a&&null!=r&&(n[t]=a=VC(e,r,t)),null==s&&null!=o&&(i[t]=s=VC(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[t]=s}}}(),e}();const JC=KC;function QC(e,t){qf(e)||(e=Wf(e)),t=t||{};var n=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=we(),o=[],a=tI(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&NC(a),l=i===e.dimensionsDefine,u=l?EC(e):RC(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=we(c),h=new zg(a),p=0;p<h.length;p++)h[p]=-1;function f(e){var t=h[e];if(t<0){var n=i[e],r=ie(n)?n:{name:n},a=new AC,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return h[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(p=0;p<a;p++)f(p);d.each((function(e,t){var n=ga(e).slice();if(1===n.length&&!ee(n[0])&&n[0]<0)d.set(t,!1);else{var i=d.set(t,[]);W(n,(function(e,n){var r=ee(e)?u.get(e):e;null!=r&&r<a&&(i[n]=r,v(f(r),t,n))}))}}));var g=0;function v(e,t,n){null!=up.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,r.set(t,!0))}W(n,(function(e){var t,n,i,r;if(ee(e))t=e,r={};else{r=e,t=r.name;var o=r.ordinalMeta;r.ordinalMeta=null,r=F({},r),r.ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=d.get(t);if(!1!==s){if(s=ga(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(g<a&&null!=f(g).coordDim)g++;g<a&&s.push(g++)}W(s,(function(e,o){var a=f(e);if(l&&null!=r.type&&(a.type=r.type),v(B(a,r),t,o),null==a.name&&n){var s=n[o];!ie(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&B(a.otherDims,i)}))}}));var m=t.generateCoord,y=t.generateCoordCount,x=null!=y;y=m?y||1:0;var _=m||"value";function b(e){null==e.name&&(e.name=e.coordDim)}if(s)W(o,(function(e){b(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w),M=S.coordDim;null==M&&(S.coordDim=nI(_,r,x),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),b(S),null!=S.type||Cp(e,w)!==yp.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return eI(o),new PC({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function eI(e){for(var t=we(),n=0;n<e.length;n++){var i=e[n],r=i.name,o=t.get(r)||0;o>0&&(i.name=r+(o-1)),o++,t.set(r,o)}}function tI(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return W(t,(function(e){var t;ie(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}function nI(e,t,n){var i=t.data;if(n||i.hasOwnProperty(e)){var r=0;while(i.hasOwnProperty(e+r))r++;e+=r}return t.set(e,!0),e}var iI=function(){function e(e){this.coordSysDims=[],this.axisMap=we(),this.categoryAxisMap=we(),this.coordSysName=e}return e}();function rI(e){var t=e.get("coordinateSystem"),n=new iI(t),i=oI[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var oI={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",qa).models[0],o=e.getReferringComponents("yAxis",qa).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),aI(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),aI(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",qa).models[0];t.coordSysDims=["single"],n.set("single",r),aI(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",qa).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),aI(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),aI(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();W(o.parallelAxisIndex,(function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];n.set(l,s),aI(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function aI(e){return"category"===e.get("type")}function sI(e,t,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;lI(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,u,c,d,h=!(!e||!e.get("stack"));if(W(i,(function(e,t){ee(e)&&(i[t]=e={name:e}),h&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;W(i,(function(e){e.coordDim===p&&g++}));var v={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,f),m.storeDimIndex=o.ensureCalculationDimension(c,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function lI(e){return!OC(e.schema)}function uI(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function cI(e,t){return uI(e,t)?e.getCalculationInfo("stackResultDimension"):t}function dI(e,t){var n,i=e.get("coordinateSystem"),r=ef.get(i);return t&&t.coordSysDims&&(n=G(t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=IC(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function hI(e,t,n){var i,r;return n&&W(e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(r=!0)})),r||null==i||(e[i].otherDims.itemName=0),i}function pI(e,t,n){n=n||{};var i,r=t.getSourceManager(),o=!1;e?(o=!0,i=Wf(e)):(i=r.getSource(),o=i.sourceFormat===cp);var a=rI(t),s=dI(t,a),l=n.useEncodeDefaulter,u=Q(l)?l:l?K(bp,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},d=QC(i,c),h=hI(d.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(d),f=sI(t,{schema:d,store:p}),g=new JC(d,t);g.setCalculationInfo(f);var v=null!=h&&fI(i)?function(e,t,n,i){return i===h?n:this.defaultDimValueGetter(e,t,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:p,null,v),g}function fI(e){if(e.sourceFormat===cp){var t=gI(e.data||[]);return!J(ya(t))}}function gI(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}const vI=pI;var mI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.getInitialData=function(e){return vI(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Lo,n=v_("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*e.itemHeight,s=v_(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?r:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ov);const yI=mI;function xI(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=lg(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(lg(e,t,n[a]));return o.join(" ")}}function _I(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!J(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")}var bI=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return o(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=v_(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=wI,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){vc(this.childAt(0))},t.prototype.downplay=function(){mc(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):Xc(d,h,a,n),nd(d)}if(this._updateCommon(e,n,s,i,r),l){d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Kc(d,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,u,c,d,h,p,f=this.childAt(0),g=e.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,d=i.labelStatesModels,h=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||e.hasItemOption){var v=i&&i.itemModel?i.itemModel:e.getItemModel(t),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),d=ld(v),h=m.getShallow("scale"),p=v.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var x=y_(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=e.getItemVisual(t,"style"),b=_.fill;if(f instanceof iu){var w=f.style;f.useStyle(F({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(F({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var C=r&&r.useNameLabel;function I(t){return C?e.getName(t):xI(e,t)}sd(f,d,{labelFetcher:g,labelDataIndex:t,defaultText:I,inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");if(T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,h){var k=Math.max(ne(h)?h:1.1,3/this._sizeY);T.scaleX=this._sizeX*k,T.scaleY=this._sizeY*k}this.setSymbolScale(1),Ec(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=Lu(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Qc(a,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Qc(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return m_(e.getItemVisual(t,"symbolSize"))},t}(Lo);function wI(e,t){this.parent.drift(e,t)}const SI=bI;function MI(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function CI(e){return null==e||ie(e)||(e={isIgnore:e}),e||{}}function II(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:ld(t),cursorStyle:t.get("cursor")}}var TI=function(){function e(e){this.group=new Lo,this._SymbolCtor=e||SI}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=CI(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=II(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=u(i);if(MI(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,d){var h=r.getItemGraphicEl(d),p=u(c);if(MI(e,p,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),h=new o(e,c,s,l),h.setPosition(p);else{h.updateData(e,c,s,l);var v={x:p[0],y:p[1]};a?h.attr(v):Xc(h,v,i)}n.add(h),e.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=II(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=CI(n);for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(MI(t,o,r,n)){var a=new this._SymbolCtor(t,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){Zy(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();const kI=TI;function AI(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=DI(r,n),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,d=G(e.dimensions,(function(e){return t.mapDimension(e)})),h=!1,p=t.getCalculationInfo("stackResultDimension");return uI(t,d[0])&&(h=!0,d[0]=p),uI(t,d[1])&&(h=!0,d[1]=p),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function DI(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:ne(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function LI(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var PI="undefined"!==typeof Float32Array,OI=PI?Float32Array:Array;function RI(e){return J(e)?PI?new Float32Array(e):e:new OI(e)}function EI(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function NI(e,t,n,i,r,o,a,s){for(var l=EI(e,t),u=[],c=[],d=[],h=[],p=[],f=[],g=[],v=AI(r,t,a),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,w=void 0,S=void 0;switch(_.cmd){case"=":w=2*_.idx,S=2*_.idx1;var M=m[w],C=m[w+1],I=y[S],T=y[S+1];(isNaN(M)||isNaN(C))&&(M=I,C=T),u.push(M,C),c.push(I,T),d.push(n[w],n[w+1]),h.push(i[S],i[S+1]),g.push(t.getRawIndex(_.idx1));break;case"+":var k=_.idx,A=v.dataDimsForPoint,D=r.dataToPoint([t.get(A[0],k),t.get(A[1],k)]);S=2*k,u.push(D[0],D[1]),c.push(y[S],y[S+1]);var L=LI(v,r,t,k);d.push(L[0],L[1]),h.push(i[S],i[S+1]),g.push(t.getRawIndex(k));break;case"-":b=!1}b&&(p.push(_),f.push(f.length))}f.sort((function(e,t){return g[e]-g[t]}));var P=u.length,O=RI(P),R=RI(P),E=RI(P),N=RI(P),F=[];for(x=0;x<f.length;x++){var B=f[x],V=2*x,z=2*B;O[V]=u[z],O[V+1]=u[z+1],R[V]=c[z],R[V+1]=c[z+1],E[V]=d[z],E[V+1]=d[z+1],N[V]=h[z],N[V+1]=h[z+1],F[x]=p[B]}return{current:O,next:R,stackedOnCurrent:E,stackedOnNext:N,status:F}}var FI=Math.min,BI=Math.max;function VI(e,t){return isNaN(e)||isNaN(t)}function zI(e,t,n,i,r,o,a,s,l){for(var u,c,d,h,p,f,g=n,v=0;v<i;v++){var m=t[2*g],y=t[2*g+1];if(g>=r||g<0)break;if(VI(m,y)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](m,y),d=m,h=y;else{var x=m-u,_=y-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){var b=g+o,w=t[2*b],S=t[2*b+1];while(w===m&&S===y&&v<i)v++,b+=o,g+=o,w=t[2*b],S=t[2*b+1],m=t[2*g],y=t[2*g+1],x=m-u,_=y-c;var M=v+1;if(l)while(VI(w,S)&&M<i)M++,b+=o,w=t[2*b],S=t[2*b+1];var C=.5,I=0,T=0,k=void 0,A=void 0;if(M>=i||VI(w,S))p=m,f=y;else{I=w-u,T=S-c;var D=m-u,L=w-m,P=y-c,O=S-y,R=void 0,E=void 0;if("x"===s){R=Math.abs(D),E=Math.abs(L);var N=I>0?1:-1;p=m-N*R*a,f=y,k=m+N*E*a,A=y}else if("y"===s){R=Math.abs(P),E=Math.abs(O);var F=T>0?1:-1;p=m,f=y-F*R*a,k=m,A=y+F*E*a}else R=Math.sqrt(D*D+P*P),E=Math.sqrt(L*L+O*O),C=E/(E+R),p=m-I*a*(1-C),f=y-T*a*(1-C),k=m+I*a*C,A=y+T*a*C,k=FI(k,BI(w,m)),A=FI(A,BI(S,y)),k=BI(k,FI(w,m)),A=BI(A,FI(S,y)),I=k-m,T=A-y,p=m-I*R/E,f=y-T*R/E,p=FI(p,BI(u,m)),f=FI(f,BI(c,y)),p=BI(p,FI(u,m)),f=BI(f,FI(c,y)),I=m-p,T=y-f,k=m+I*E/R,A=y+T*E/R}e.bezierCurveTo(d,h,p,f,m,y),d=k,h=A}else e.lineTo(m,y)}u=m,c=y,g+=o}return v}var qI=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),HI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qI},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0;r--)if(!VI(n[2*r-2],n[2*r-1]))break;for(;i<r;i++)if(!VI(n[2*i],n[2*i+1]))break}while(i<r)i+=zI(e,n,i,r,r,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=Sl.CMD,s="x"===t,l=[],u=0;u<o.length;){var c=o[u++],d=void 0,h=void 0,p=void 0,f=void 0,g=void 0,v=void 0,m=void 0;switch(c){case a.M:n=o[u++],i=o[u++];break;case a.L:if(d=o[u++],h=o[u++],m=s?(e-n)/(d-n):(e-i)/(h-i),m<=1&&m>=0){var y=s?(h-i)*m+i:(d-n)*m+n;return s?[e,y]:[y,e]}n=d,i=h;break;case a.C:d=o[u++],h=o[u++],p=o[u++],f=o[u++],g=o[u++],v=o[u++];var x=s?xn(n,d,p,g,e,l):xn(i,h,f,v,e,l);if(x>0)for(var _=0;_<x;_++){var b=l[_];if(b<=1&&b>=0){y=s?mn(i,h,f,v,b):mn(n,d,p,g,b);return s?[e,y]:[y,e]}}n=g,i=v;break}}},t}(Yl),WI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(qI),GI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return o(t,e),t.prototype.getDefaultShape=function(){return new WI},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!VI(n[2*o-2],n[2*o-1]))break;for(;r<o;r++)if(!VI(n[2*r],n[2*r+1]))break}while(r<o){var s=zI(e,n,r,o,o,1,t.smooth,a,t.connectNulls);zI(e,i,r+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),r+=s+1,e.closePath()}},t}(Yl);function UI(e,t,n,i,r){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var d=new hu({shape:{x:a,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),p=h.isHorizontal(),f=h.inverse;p?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=u),d.shape.height=0);var g=Q(r)?function(e){r(e,d)}:null;Kc(d,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return d}function jI(e,t,n){var i=e.getArea(),r=Go(i.r0,1),o=Go(i.r,1),a=new Am({shape:{cx:Go(e.cx,1),cy:Go(e.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,Kc(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function ZI(e,t,n,i,r){return e?"polar"===e.type?jI(e,t,n):"cartesian2d"===e.type?UI(e,t,n,i,r):null:null}function $I(e,t){return e.type===t}function YI(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function XI(e){for(var t=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[t,n],[i,r]]}function KI(e,t){var n=XI(e),i=n[0],r=n[1],o=XI(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function JI(e){return ne(e)?e:e?.5:0}function QI(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),r=RI(2*i),o=0;o<i;o++){var a=LI(n,e,t,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function eT(e,t,n,i){var r=t.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],c=[],d=[];if(i){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||d.push(e[s],e[s+1]);e=d}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var h=(u[o]+c[o])/2,p=[];l[o]=p[o]=h,l[1-o]=u[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function tT(e,t){var n,i,r=[],o=e.length;function a(e,t,n){var i=e.coord,r=(n-i)/(t.coord-i),o=ii(r,[e.color,t.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function nT(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),u=G(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=tT(u,"x"===r?n.getWidth():n.getHeight()),p=h.length;if(!p&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var f=10,g=h[0].coord-f,v=h[p-1].coord+f,m=v-g;if(m<.001)return"transparent";W(h,(function(e){e.offset=(e.coord-g)/m})),h.push({offset:p?h[p-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:d[0]||"transparent"});var y=new ry(0,0,0,0,h,!0);return y[r]=g,y[r+"2"]=v,y}}}function iT(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!rT(o,t))){var a=t.mapDimension(o.dim),s={};return W(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function rT(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*SI.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}function oT(e,t){return isNaN(e)||isNaN(t)}function aT(e){for(var t=e.length/2;t>0;t--)if(!oT(e[2*t-2],e[2*t-1]))break;return t-1}function sT(e,t){return[e[2*t],e[2*t+1]]}function lT(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=e[2*u+a],!isNaN(r)&&!isNaN(e[2*u+1-a]))if(0!==u){if(i<=t&&r>=t||i>=t&&r<=t){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}function uT(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<zu.length;t++)if(e.get([zu[t],"endLabel","show"]))return!0;return!1}function cT(e,t,n,i){if($I(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=uT(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),c=UI(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var d=c.shape,h=Math.max(d.width,d.height);u?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return l&&l(1,c),c}return jI(t,n,i)}function dT(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var hT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(){var e=new Lo,t=new kI;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,d=this._coordSys,h=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,v=e.get("animation"),m=!l.isEmpty(),y=l.get("origin"),x=AI(r,a,y),_=m&&QI(r,a,x),b=e.get("showSymbol"),w=e.get("connectNulls"),S=b&&!c&&iT(e,a,r),M=this._data;M&&M.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),M.setItemGraphicEl(t,null))})),b||h.remove(),o.add(g);var C,I=!c&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(C=r.getArea(),null!=C.width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=nT(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&d.type===r.type&&I===this._step){m&&!f?f=this._newPolygon(u,_):f&&!m&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,r,qh(T));var k=g.getClipPath();if(k){var A=cT(this,r,!1,e);Kc(k,{shape:A.shape},e)}else g.setClipPath(cT(this,r,!0,e));b&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),YI(this._stackedOnPoints,_)&&YI(this._points,u)||(v?this._doUpdateAnimation(a,_,r,n,I,y,w):(I&&(u=eT(u,r,I,w),_&&(_=eT(_,r,I,w))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),v&&this._initSymbolLabelAnimation(a,r,C),I&&(u=eT(u,r,I,w),_&&(_=eT(_,r,I,w))),p=this._newPolyline(u),m?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,r,qh(T)),g.setClipPath(cT(this,r,!0,e));var D=e.getModel("emphasis"),L=D.get("focus"),P=D.get("blurScope"),O=D.get("disabled");if(p.useStyle(B(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Vc(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var R=p.getState("emphasis").style;R.lineWidth=+p.style.lineWidth+1}Lu(p).seriesIndex=e.seriesIndex,Ec(p,L,P,O);var E=JI(e.get("smooth")),N=e.get("smoothMonotone");if(p.setShape({smooth:E,smoothMonotone:N,connectNulls:w}),f){var F=a.getCalculationInfo("stackedOnSeries"),V=0;f.useStyle(B(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),F&&(V=JI(F.get("smooth"))),f.setShape({smooth:E,stackedOnSmooth:V,smoothMonotone:N,connectNulls:w}),Vc(f,e,"areaStyle"),Lu(f).seriesIndex=e.seriesIndex,Ec(f,L,P,O)}var z=function(e){i._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=I,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){Lu(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=Na(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel"),d=e.get("z");s=new SI(r,o),s.x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else nx.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=Na(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else nx.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;sc(this._polyline,e),t&&sc(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new HI({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new GI({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");Q(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Q(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var d=[e.x,e.y],h=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,v=t.pointToCoord(d);i?(h=g.startAngle,p=g.endAngle,f=-v[1]/180*Math.PI):(h=g.r0,p=g.r,f=v[0])}else{var m=n;i?(h=m.x,p=m.x+m.width,f=e.x):(h=m.y+m.height,p=m.y,f=e.y)}var y=p===h?0:(f-h)/(p-h);a&&(y=1-y);var x=Q(u)?u(o):l*y+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(uT(e)){var r=e.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Du({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=aT(a);l>=0&&(sd(o,ld(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?_I(r,n):xI(r,e)},enableTextSetter:!0},dT(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=t.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?p:0)*(v?-1:1),_=(g?0:-p)*(v?-1:1),b=g?"x":"y",w=lT(u,y,b),S=w.range,M=S[1]-S[0],C=void 0;if(M>=1){if(M>1&&!d){var I=sT(u,S[0]);s.attr({x:I[0]+x,y:I[1]+_}),r&&(C=c.getRawValue(S[0]))}else{I=l.getPointOn(y,b);I&&s.attr({x:I[0]+x,y:I[1]+_});var T=c.getRawValue(S[0]),k=c.getRawValue(S[1]);r&&(C=$a(n,h,T,k,w.t))}i.lastFrameIndex=S[0]}else{var A=1===e||i.lastFrameIndex>0?S[0]:0;I=sT(u,A);r&&(C=c.getRawValue(A)),s.attr({x:I[0]+x,y:I[1]+_})}r&&yd(s).setLabelText(C)}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=NI(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),d=c.current,h=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(d=eT(c.current,n,r,a),h=eT(c.stackedOnCurrent,n,r,a),p=eT(c.next,n,r,a),f=eT(c.stackedOnNext,n,r,a)),KI(d,p)>3e3||l&&KI(h,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=d;var g={shape:{points:p}};c.current!==d&&(g.shape.__points=c.next),s.stopAnimation(),Xc(s,g,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),Xc(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;y<m.length;y++){var x=m[y].cmd;if("="===x){var _=e.getItemGraphicEl(m[y].idx1);_&&v.push({el:_,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<v.length;t++){var n=v[t].el,i=2*v[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(nx);const pT=hT;function fT(e,t){return{seriesType:e,plan:Nv(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,r=e.pipelineContext,o=t||r.large;if(i){var a=G(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");uI(n,a[0])&&(a[0]=l),uI(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,r=o&&RI(n*s),a=[],l=[],h=e.start,p=0;h<e.end;h++){var f=void 0;if(1===s){var g=u.get(c,h);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,h),a[1]=u.get(d,h),f=i.dataToPoint(a,null,l);o?(r[p++]=f[0],r[p++]=f[1]):t.setItemLayout(h,f.slice())}o&&t.setLayout("points",r)}}}}}}var gT={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},vT=function(e){return Math.round(e.length/2)};function mT(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),r=e.get("sampling"),o=e.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/d);if(isFinite(h)&&h>1){"lttb"===r&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/h));var p=void 0;ee(r)?p=gT[r]:Q(r)&&(p=r),p&&e.setData(i.downSample(i.mapDimension(l.dim),1/h,p,vT))}}}}}function yT(e){e.registerChartView(pT),e.registerSeriesModel(yI),e.registerLayout(fT("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mT("line"))}var xT="__ec_stack_";function _T(e){return e.get("stack")||xT+e.seriesIndex}function bT(e){return e.dim+e.index}function wT(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<e.count;o++)t.push(B({bandWidth:r,axisKey:i,stackId:xT+o},e));var a=IT(t),s=[];for(o=0;o<e.count;o++){var l=a[i][xT+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ST(e,t){var n=[];return t.eachSeriesByType(e,(function(e){DT(e)&&n.push(e)})),n}function MT(e){var t={};W(e,(function(e){var n=e.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=e.getData(),o=i.dim+"_"+i.index,a=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);t[o]?t[o].push(c):t[o]=[c]}}));var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(r){r.sort((function(e,t){return e-t}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function CT(e){var t=MT(e),n=[];return W(e,(function(e){var i,r=e.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),d=Math.abs(c[1]-c[0]);i=l?u/d*l:u}else{var h=e.getData();i=Math.abs(a[1]-a[0])/h.count()}var p=Wo(e.get("barWidth"),i),f=Wo(e.get("barMaxWidth"),i),g=Wo(e.get("barMinWidth")||(LT(e)?.5:1),i),v=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:v,barCategoryGap:m,axisKey:bT(o),stackId:_T(e)})})),IT(n)}function IT(e){var t={};W(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(o.gap=d);var h=e.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return W(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=e.categoryGap;if(null==o){var a=$(i).length;o=Math.max(35-4*a,15)+"%"}var s=Wo(o,r),l=Wo(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),W(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,u-=i+l*i,c--}else{var i=d;t&&t<i&&(i=Math.min(t,u)),n&&n>i&&(i=n),i!==d&&(e.width=i,u-=i+l*i,c--)}})),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h,p=0;W(i,(function(e,t){e.width||(e.width=d),h=e,p+=e.width*(1+l)})),h&&(p-=h.width*l);var f=-p/2;W(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function TT(e,t,n){if(e&&t){var i=e[bT(t)];return null!=i&&null!=n?i[_T(n)]:i}}function kT(e,t){var n=ST(e,t),i=CT(n);W(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=_T(e),a=i[bT(r)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function AT(e){return{seriesType:e,plan:Nv(),reset:function(e){if(DT(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(r.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(r.dim),u=t.getCalculationInfo("stackResultDimension"),c=uI(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),h=PT(i,r),p=LT(e),f=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),v=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(e,t){var i,r=e.count,l=p&&RI(3*r),u=p&&s&&RI(3*r),y=p&&RI(r),x=n.master.getRect(),_=d?x.width:x.height,b=t.getStore(),w=0;while(null!=(i=e.next())){var S=b.get(c?g:o,i),M=b.get(a,i),C=h,I=void 0;c&&(I=+S-b.get(o,i));var T=void 0,k=void 0,A=void 0,D=void 0;if(d){var L=n.dataToPoint([S,M]);if(c){var P=n.dataToPoint([I,M]);C=P[0]}T=C,k=L[1]+m,A=L[0]-C,D=v,Math.abs(A)<f&&(A=(A<0?-1:1)*f)}else{L=n.dataToPoint([M,S]);if(c){P=n.dataToPoint([M,I]);C=P[1]}T=L[0]+m,k=C,A=v,D=L[1]-C,Math.abs(D)<f&&(D=(D<=0?-1:1)*f)}p?(l[w]=T,l[w+1]=k,l[w+2]=d?A:D,u&&(u[w]=d?x.x:T,u[w+1]=d?k:x.y,u[w+2]=_),y[i]=i):t.setItemLayout(i,{x:T,y:k,width:A,height:D}),w+=3}p&&t.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:d})}}}}}}function DT(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function LT(e){return e.pipelineContext&&e.pipelineContext.large}function PT(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}var OT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){var n=t.dataToPoint(t.clampData(e)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size"),a=t.getBaseAxis().isHorizontal()?0:1;return n[a]+=r+o/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ov);Ov.registerClass(OT);const RT=OT;var ET=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(){return vI(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Bd(RT.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(RT);const NT=ET;var FT=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),BT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return o(t,e),t.prototype.getDefaultShape=function(){return new FT},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,h=c?u-l<d:l-u<d;h||(l=u-(c?d:-d));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);h?(e.moveTo(p*r+n,f*r+i),e.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):e.moveTo(p*o+n,f*o+i),e.arc(n,i,o,l,u,!c),e.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&e.arc(n,i,r,u,l,c)},t}(Yl);const VT=BT;function zT(e,t){t=t||{};var n=t.isRoundCap;return function(t,i,r){var o=i.position;if(!o||o instanceof Array)return go(t,i,r);var a=e(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,c=l.cy,d=l.r,h=l.r0,p=(d+h)/2,f=l.startAngle,g=l.endAngle,v=(f+g)/2,m=n?Math.abs(d-h)/2:0,y=Math.cos,x=Math.sin,_=u+d*y(f),b=c+d*x(f),w="left",S="top";switch(a){case"startArc":_=u+(h-s)*y(v),b=c+(h-s)*x(v),w="center",S="top";break;case"insideStartArc":_=u+(h+s)*y(v),b=c+(h+s)*x(v),w="center",S="bottom";break;case"startAngle":_=u+p*y(f)+HT(f,s+m,!1),b=c+p*x(f)+WT(f,s+m,!1),w="right",S="middle";break;case"insideStartAngle":_=u+p*y(f)+HT(f,-s+m,!1),b=c+p*x(f)+WT(f,-s+m,!1),w="left",S="middle";break;case"middle":_=u+p*y(v),b=c+p*x(v),w="center",S="middle";break;case"endArc":_=u+(d+s)*y(v),b=c+(d+s)*x(v),w="center",S="bottom";break;case"insideEndArc":_=u+(d-s)*y(v),b=c+(d-s)*x(v),w="center",S="top";break;case"endAngle":_=u+p*y(g)+HT(g,s+m,!0),b=c+p*x(g)+WT(g,s+m,!0),w="left",S="middle";break;case"insideEndAngle":_=u+p*y(g)+HT(g,-s+m,!0),b=c+p*x(g)+WT(g,-s+m,!0),w="right",S="middle";break;default:return go(t,i,r)}return t=t||{},t.x=_,t.y=b,t.align=w,t.verticalAlign=S,t}}function qT(e,t,n,i){if(ne(i))e.setTextConfig({rotation:i});else if(J(t))e.setTextConfig({rotation:0});else{var r,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}function HT(e,t,n){return t*Math.sin(e)*(n?-1:1)}function WT(e,t,n){return t*Math.cos(e)*(n?1:-1)}var GT=Math.max,UT=Math.min;function jT(e,t){var n=e.getArea&&e.getArea();if($I(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var ZT=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return o(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Zy(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=XT(e,l);d&&this._enableRealtimeSort(d,a,n);var h=e.get("clip",!0)||d,p=jT(l,a);o.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),v=e.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],x=this._backgroundEls,_=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(e){var t=nk[l.type](a,e),n=pk(l,r,t);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",m),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=nk[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&tk[l.type](i)){var s=!1;h&&(s=$T[l.type](p,i));var v=YT[l.type](e,a,t,i,r,c,u.model,!1,f);d&&(v.forceLabelAnimation=!0),ok(v,a,t,n,i,e,r,"polar"===l.type),_?v.attr({shape:i}):d?KT(d,c,v,i,t,r,!1,!1):Kc(v,{shape:i},e,t),a.setItemGraphicEl(t,v),o.add(v),v.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),S=nk[l.type](a,t,i);if(g){var M=void 0;0===x.length?M=w(n):(M=x[n],M.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&M.setShape("r",m),y[t]=M);var C=nk[l.type](a,t),I=hk(r,C,l);Xc(M,{shape:I},c,t)}var T=s.getItemGraphicEl(n);if(a.hasValue(t)&&tk[l.type](S)){var k=!1;if(h&&(k=$T[l.type](p,S),k&&o.remove(T)),T?nd(T):T=YT[l.type](e,a,t,S,r,c,u.model,!!T,f),d&&(T.forceLabelAnimation=!0),b){var A=T.getTextContent();if(A){var D=yd(A);null!=D.prevValue&&(D.prevValue=D.value)}}else ok(T,a,t,i,S,e,r,"polar"===l.type);_?T.attr({shape:S}):d?KT(d,c,T,S,t,r,!0,b):Xc(T,{shape:S},e,t,null),a.setItemGraphicEl(t,T),T.ignore=k,o.add(T)}else o.remove(T)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&td(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Lo);S.removeAll();for(var M=0;M<y.length;++M)S.add(y[M]);o.add(S),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),uk(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),uk(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&ZI(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var r=n(t);r=null==r?NaN:r,i.push({dataIndex:t,mappedValue:r,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:G(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,r=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){td(t,e,Lu(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(nx),$T={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=GT(t.x,e.x),s=UT(t.x+t.width,r),l=GT(t.y,e.y),u=UT(t.y+t.height,o),c=s<a,d=u<l;return t.x=c&&a>r?s:a,t.y=d&&l>o?u:l,t.width=c?0:s-a,t.height=d?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=UT(t.r,e.r),o=GT(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},YT={cartesian2d:function(e,t,n,i,r,o,a,s,l){var u=new hu({shape:F({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,d=r?"height":"width";c[d]=0}return u},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?VT:Am,c=new u({shape:i,z2:1});c.name="item";var d=rk(r);if(c.calculateTextPosition=zT(d,{isRoundCap:u===VT}),o){var h=c.shape,p=r?"r":"endAngle",f={};h[p]=r?0:i.startAngle,f[p]=i[p],(s?Xc:Kc)(c,{shape:f},o)}return c}};function XT(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function KT(e,t,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Xc:Kc)(n,{shape:l},t,r,null);var c=t?e.baseAxis.model:null;(a?Xc:Kc)(n,{shape:u},c,r)}function JT(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var QT=["x","y","width","height"],ek=["cx","cy","r","startAngle","endAngle"],tk={cartesian2d:function(e){return!JT(e,QT)},polar:function(e){return!JT(e,ek)}},nk={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=n?ak(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ik(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function rk(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function ok(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",i.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=i.getShallow("cursor");u&&e.attr("cursor",u);var c=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",d=ld(i);sd(e,d,{labelFetcher:o,labelDataIndex:n,defaultText:xI(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var h=e.getTextContent();if(s&&h){var p=i.get(["label","position"]);e.textConfig.inside="middle"===p||null,qT(e,"outside"===p?c:p,rk(a),i.get(["label","rotate"]))}xd(h,d,o.getRawValue(n),(function(e){return _I(t,e)}));var f=i.getModel(["emphasis"]);Ec(e,f.get("focus"),f.get("blurScope"),f.get("disabled")),Vc(e,i),ik(r)&&(e.style.fill="none",e.style.stroke="none",W(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ak(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var sk=function(){function e(){}return e}(),lk=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return o(t,e),t.prototype.getDefaultShape=function(){return new sk},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],e.rect(o[0],o[1],a[0],a[1])},t}(Yl);function uk(e,t,n,i){var r=e.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=e.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new lk({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var d=new lk({shape:{points:r.getLayout("largePoints")},incremental:!!i,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(r.getVisual("style")),Lu(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",ck),d.on("mousemove",ck)),n&&n.push(d)}var ck=ax((function(e){var t=this,n=dk(t,e.offsetX,e.offsetY);Lu(t).dataIndex=n>=0?n:null}),30,!1);function dk(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=o.length/3;c<d;c++){var h=3*c;if(l[i]=u,l[r]=o[h+2],s[i]=o[h+i],s[r]=o[h+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function hk(e,t,n){if($I(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}r=n.getArea();var o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function pk(e,t,n){var i="polar"===e.type?Am:hu;return new i({shape:hk(t,n,e),silent:!0,z2:0})}const fk=ZT;function gk(e){e.registerChartView(fk),e.registerSeriesModel(NT),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,K(kT,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AT("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mT("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var vk=2*Math.PI,mk=Math.PI/180;function yk(e,t){return Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xk(e,t){var n=yk(e,t),i=e.get("center"),r=e.get("radius");J(r)||(r=[0,r]),J(i)||(i=[i,i]);var o=Wo(n.width,t.getWidth()),a=Wo(n.height,t.getHeight()),s=Math.min(o,a),l=Wo(i[0],o)+n.x,u=Wo(i[1],a)+n.y,c=Wo(r[0],s/2),d=Wo(r[1],s/2);return{cx:l,cy:u,r0:c,r:d}}function _k(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=yk(e,n),o=xk(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*mk,d=e.get("minAngle")*mk,h=0;t.each(i,(function(e){!isNaN(e)&&h++}));var p=t.getSum(i),f=Math.PI/(p||h)*2,g=e.get("clockwise"),v=e.get("roseType"),m=e.get("stillShowZeroSum"),y=t.getDataExtent(i);y[0]=0;var x=vk,_=0,b=c,w=g?1:-1;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{i="area"!==v?0===p&&m?f:e*f:vk/h,i<d?(i=d,x-=d):_+=e;var r=b+w*i;t.setItemLayout(n,{angle:i,startAngle:b,endAngle:r,clockwise:g,cx:a,cy:s,r0:u,r:v?Ho(e,y,[u,l]):l}),b=r}})),x<vk&&h)if(x<=.001){var S=vk/h;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=S,i.startAngle=c+w*n*S,i.endAngle=c+w*(n+1)*S}}))}else f=x/_,b=c,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),r=i.angle===d?d:e*f;i.startAngle=b,i.endAngle=b+w*r,b+=w*r}}))}))}function bk(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),r=0;r<n.length;r++)if(!n[r].isSelected(t))return!1;return!0}))}}}}var wk=Math.PI/180;function Sk(e,t,n,i,r,o,a,s,l,u){if(!(e.length<2)){for(var c=e.length,d=0;d<c;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var h=e[d].label.x-u;e[d].linePoints[1][0]+=h,e[d].label.x=u}_S(e,l,l+a)&&f(e)}function p(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=i+l.len,d=c*c,h=Math.sqrt((1-Math.abs(u*u/a))*d),p=t+(h+l.len2)*r,f=p-l.label.x,g=l.targetTextWidth-f*r;Ck(l,g,!0),l.label.x=p}}function f(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*r,h=i+l.len,f=Math.abs(d)<h?Math.sqrt(c*c/(1-d*d/h/h)):h;u.rB=f,u.maxY=c}u.list.push(l)}p(o),p(a)}}function Mk(e,t,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<e.length;h++){var p=e[h].label;Ik(e[h])||(p.x<t?(c=Math.min(c,p.x),l.push(e[h])):(d=Math.max(d,p.x),u.push(e[h])))}for(h=0;h<e.length;h++){var f=e[h];if(!Ik(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var g=f.linePoints,v=void 0;v="edge"===f.labelAlignTo?p.x<t?g[2][0]-f.labelDistance-a-f.edgeDistance:a+r-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<t?c-a-f.bleedMargin:a+r-d-f.bleedMargin:p.x<t?p.x-a-f.bleedMargin:a+r-p.x-f.bleedMargin,f.targetTextWidth=v,Ck(f,v)}}Sk(u,t,n,i,1,r,o,a,s,d),Sk(l,t,n,i,-1,r,o,a,s,c);for(h=0;h<e.length;h++){f=e[h];if(!Ik(f)&&f.linePoints){p=f.label,g=f.linePoints;var m="edge"===f.labelAlignTo,y=p.style.padding,x=y?y[1]+y[3]:0,_=p.style.backgroundColor?0:x,b=f.rect.width+_,w=g[1][0]-g[2][0];m?p.x<t?g[2][0]=a+f.edgeDistance+b+f.labelDistance:g[2][0]=a+r-f.edgeDistance-b-f.labelDistance:(p.x<t?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}function Ck(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var i=e.label,r=i.style,o=e.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(t<c||n){var d=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var h=i.getBoundingRect();i.setStyle("width",Math.ceil(h.width)),i.setStyle("backgroundColor",a)}else{var p=t-l,f=t<c?p:n?p>e.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-d)/2}}}function Ik(e){return"center"===e.position}function Tk(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*wk,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,d=s.y,h=s.height;function p(e){e.ignore=!0}function f(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var s=i.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),v=i.getItemModel(e),m=v.getModel("label"),y=m.get("position")||v.get(["emphasis","label","position"]),x=m.get("distanceToLabelLine"),_=m.get("alignTo"),b=Wo(m.get("edgeDistance"),u),w=m.get("bleedMargin"),S=v.getModel("labelLine"),M=S.get("length");M=Wo(M,u);var C=S.get("length2");if(C=Wo(C,u),Math.abs(d.endAngle-d.startAngle)<a)return W(h.states,p),void(h.ignore=!0);if(f(h)){var I,T,k,A,D=(d.startAngle+d.endAngle)/2,L=Math.cos(D),P=Math.sin(D);t=d.cx,n=d.cy;var O="inside"===y||"inner"===y;if("center"===y)I=d.cx,T=d.cy,A="center";else{var R=(O?(d.r+d.r0)/2*L:d.r*L)+t,E=(O?(d.r+d.r0)/2*P:d.r*P)+n;if(I=R+3*L,T=E+3*P,!O){var N=R+L*(M+l-d.r),F=E+P*(M+l-d.r),B=N+(L<0?-1:1)*C,V=F;I="edge"===_?L<0?c+b:c+u-b:B+(L<0?-x:x),T=V,k=[[R,E],[N,F],[B,V]]}A=O?"center":"edge"===_?L>0?"right":"left":L>0?"left":"right"}var z=Math.PI,q=0,H=m.get("rotate");if(ne(H))q=H*(z/180);else if("center"===y)q=0;else if("radial"===H||!0===H){var G=L<0?-D+z:-D;q=G}else if("tangential"===H&&"outside"!==y&&"outer"!==y){var U=Math.atan2(L,P);U<0&&(U=2*z+U);var j=P>0;j&&(U=z+U),q=U-z}if(o=!!q,h.x=I,h.y=T,h.rotation=q,h.setStyle({verticalAlign:"middle"}),O){h.setStyle({align:A});var Z=h.states.select;Z&&(Z.x+=h.x,Z.y+=h.y)}else{var $=h.getBoundingRect().clone();$.applyTransform(h.getComputedTransform());var Y=(h.style.margin||0)+2.1;$.y-=Y/2,$.height+=Y,r.push({label:h,labelLine:g,position:y,len:M,len2:C,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Yr(L,P),linePoints:k,textAlign:A,labelDistance:x,labelAlignTo:_,edgeDistance:b,bleedMargin:w,rect:$,unconstrainedWidth:$.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:O})}})),!o&&e.get("avoidLabelOverlap")&&Mk(r,t,n,l,u,h,c,d);for(var g=0;g<r.length;g++){var v=r[g],m=v.label,y=v.labelLine,x=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:v.textAlign}),x&&(W(m.states,p),m.ignore=!0);var _=m.states.select;_&&(_.x+=m.x,_.y+=m.y)}if(y){var b=v.linePoints;x||!b?(W(y.states,p),y.ignore=!0):(dS(b,v.minTurnAngle),hS(b,v.surfaceNormal,v.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new Yr(b[0][0],b[0][1])})}}}function kk(e,t,n){var i=e.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;J(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:G(i,(function(e){return fo(e,r)}))}}var Ak=function(e){function t(t,n,i){var r=e.call(this)||this;r.z2=2;var o=new Du;return r.setTextContent(o),r.updateData(t,n,i,!0),r}return o(t,e),t.prototype.updateData=function(e,t,n,i){var r=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=F(kk(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(Kc(r,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,Kc(r,{shape:{r:l.r}},o,t)):null!=n?(r.setShape({startAngle:n,endAngle:n}),Kc(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(r.shape.endAngle=l.startAngle,Xc(r,{shape:{endAngle:l.endAngle}},o,t))}else nd(r),Xc(r,{shape:u},o,t);r.useStyle(e.getItemVisual(t,"style")),Vc(r,a);var d=(l.startAngle+l.endAngle)/2,h=o.get("selectedOffset"),p=Math.cos(d)*h,f=Math.sin(d)*h,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,e,t),r.ensureState("emphasis").shape=F({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},kk(s.getModel("itemStyle"),l)),F(r.ensureState("select"),{x:p,y:f,shape:kk(a.getModel(["select","itemStyle"]),l)}),F(r.ensureState("blur"),{shape:kk(a.getModel(["blur","itemStyle"]),l)});var v=r.getTextGuideLine(),m=r.getTextContent();v&&F(v.ensureState("select"),{x:p,y:f}),F(m.ensureState("select"),{x:p,y:f}),Ec(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var i=this,r=t.getItemModel(n),o=r.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;sd(i,ld(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new zm,this.setTextGuideLine(d)),gS(this,vS(r),{stroke:s,opacity:pe(o.get(["lineStyle","opacity"]),l,1)})}},t}(Am),Dk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return o(t,e),t.prototype.render=function(e,t,n,i){var r,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var c=new Am({shape:xk(e,n)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(e){var t=new Ak(o,e,r);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,r),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);td(n,e,t)})).execute(),Tk(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="pie",t}(nx);const Lk=Dk;function Pk(e,t,n){t=J(t)&&{coordDimensions:t}||F({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=QC(i,t).dimensions,o=new JC(r,e);return o.initData(i,n),o}var Ok=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}();const Rk=Ok;var Ek=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Pk(this,{coordDimensions:["value"],encodeDefaulter:K(wp,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=[];return n.each(n.mapDimension("value"),(function(e){r.push(e)})),i.percent=Yo(r,t,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},t.prototype._defaultLabelLine=function(e){va(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ov);const Nk=Ek;function Fk(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(ne(i)&&!isNaN(i)&&i<0)}))}}}function Bk(e){e.registerChartView(Lk),e.registerSeriesModel(Nk),Qx("pie",e.registerAction),e.registerLayout(K(_k,"pie")),e.registerProcessor(bk("pie")),e.registerProcessor(Fk("pie"))}var Vk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Ov);const zk=Vk;var qk=4,Hk=function(){function e(){}return e}(),Wk=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(t,e),t.prototype.getDefaultShape=function(){return new Hk},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]<qk,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],d=i[n++];isNaN(c)||isNaN(d)||(u&&!u.contain(c,d)||(a.x=c-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(e,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,r=this._ctx,o=this.softClipShape;if(r){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var d=n[c++],h=n[c++];a=Math.min(d,a),l=Math.max(d,l),s=Math.min(h,s),u=Math.max(h,u)}e=this._rect=new oo(a-r/2,s-o/2,l-a+r,u-s+o)}return e},t}(Yl),Gk=function(){function e(){this.group=new Lo}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],r=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=e.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Wk({cursor:"default"});return this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=n.clipShape||null,e.symbolProxy=v_(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<qk;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=Lu(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const Uk=Gk;var jk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=fT("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new Uk:new kI,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(nx);const Zk=jk;var $k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(op);const Yk=$k;var Xk=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),Kk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",qa).models[0]},t.type="cartesian2dAxis",t}(op);q(Kk,Xk);var Jk={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Qk=E({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Jk),eA=E({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}}},Jk),tA=E({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eA),nA=B({logBase:10},eA);const iA={category:Qk,value:eA,time:tA,log:nA};var rA=0,oA=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rA}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&G(i,aA);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!ee(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=we(this.categories))},e}();function aA(e){return ie(e)&&null!=e.value?e.value:e+""}const sA=oA;var lA={value:1,category:1,time:1,log:1};function uA(e,t,n,i){W(lA,(function(r,a){var s=E(E({},iA[a],!0),i,!0),l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return o(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Jh(this),i=n?ep(e):{},r=t.getTheme();E(e,r.get(a+"Axis")),E(e,this.getDefaultOption()),e.type=cA(e),n&&Qh(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=sA.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=s,n}(n);e.registerComponentModel(l)})),e.registerSubTypeDefaulter(t+"Axis",cA)}function cA(e){return e.type||(e.data?"category":"value")}var dA=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();ls(dA);const hA=dA;function pA(e){return"interval"===e.type||"log"===e.type}function fA(e,t,n,i){var r={},o=e[1]-e[0],a=r.interval=ra(o/t,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=vA(a),l=r.niceTickExtent=[Go(Math.ceil(e[0]/a)*a,s),Go(Math.floor(e[1]/a)*a,s)];return yA(l,e),r}function gA(e){var t=Math.pow(10,ia(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Go(n*t)}function vA(e){return jo(e)+2}function mA(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function yA(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),mA(e,0,t),mA(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function xA(e,t){return e>=t[0]&&e<=t[1]}function _A(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function bA(e,t){return e*(t[1]-t[0])+t[0]}var wA=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new sA({})),J(i)&&(i=new sA({categories:G(i,(function(e){return ie(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return o(t,e),t.prototype.parse=function(e){return null==e?NaN:ee(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),xA(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),_A(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(bA(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r<a;++r){var s=t[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){while(null!=i[l])l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(hA);hA.registerClass(wA);const SA=wA;var MA=Go,CA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return o(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return xA(e,this._extent)},t.prototype.normalize=function(e){return _A(e,this._extent)},t.prototype.scale=function(e){return bA(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=vA(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]<i[0]&&(e?o.push({value:MA(i[0]-t,r)}):o.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(o.push({value:s}),s=MA(s+t,r),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(e?o.push({value:MA(l+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){var o=t[r],a=t[r-1],s=0,l=[],u=o.value-a.value,c=u/e;while(s<e-1){var d=MA(a.value+(s+1)*c);d>i[0]&&d<i[1]&&l.push(d),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=jo(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=MA(e.value,n,!0);return Ah(i)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=fA(i,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=MA(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=MA(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(hA);hA.registerClass(CA);const IA=CA;var TA=function(e,t,n,i){while(n<i){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},kA=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return o(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return dh(e.value,rh[ch(lh(this._minLevelUnit))]||rh.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return hh(e,t,n,r,i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),r=FA(this._minLevelUnit,this._approxInterval,i,t);return n=n.concat(r),n.push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=eh,t[1]+=eh),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-eh}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=AA.length,a=Math.min(TA(AA,this._approxInterval,0,o),o-1);this._interval=AA[a][1],this._minLevelUnit=AA[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return ne(e)?e:+ta(e)},t.prototype.contain=function(e){return xA(this.parse(e),this._extent)},t.prototype.normalize=function(e){return _A(this.parse(e),this._extent)},t.prototype.scale=function(e){return bA(e,this._extent)},t.type="time",t}(IA),AA=[["second",Kd],["minute",Jd],["hour",Qd],["quarter-day",6*Qd],["half-day",12*Qd],["day",1.2*eh],["half-week",3.5*eh],["week",7*eh],["month",31*eh],["quarter",95*eh],["half-year",th/2],["year",th]];function DA(e,t,n,i){var r=ta(t),o=ta(n),a=function(e){return fh(r,e,i)===fh(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},d=function(){return c()&&a("minute")},h=function(){return d()&&a("second")},p=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return p()}}function LA(e,t){return e/=eh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function PA(e){var t=30*eh;return e/=t,e>6?6:e>3?3:e>2?2:1}function OA(e){return e/=Qd,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function RA(e,t){return e/=t?Jd:Kd,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function EA(e){return ra(e,!0)}function NA(e,t,n){var i=new Date(e);switch(lh(t)){case"year":case"month":i[Sh(n)](0);case"day":i[Mh(n)](1);case"hour":i[Ch(n)](0);case"minute":i[Ih(n)](0);case"second":i[Th(n)](0),i[kh(n)](0)}return i.getTime()}function FA(e,t,n,i){var r=1e4,o=ah,a=0;function s(e,t,n,r,o,a,s){var l=new Date(t),u=t,c=l[r]();while(u<n&&u<=i[1])s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,r,o){var a=[],l=!r.length;if(!DA(lh(e),i[0],i[1],n)){l&&(r=[{value:NA(new Date(i[0]),e,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,d=r[u+1].value;if(c!==d){var h=void 0,p=void 0,f=void 0,g=!1;switch(e){case"year":h=Math.max(1,Math.round(t/eh/365)),p=gh(n),f=wh(n);break;case"half-year":case"quarter":case"month":h=PA(t),p=vh(n),f=Sh(n);break;case"week":case"half-week":case"day":h=LA(t,31),p=mh(n),f=Mh(n),g=!0;break;case"half-day":case"quarter-day":case"hour":h=OA(t),p=yh(n),f=Ch(n);break;case"minute":h=RA(t,!0),p=xh(n),f=Ih(n);break;case"second":h=RA(t,!1),p=_h(n),f=Th(n);break;case"millisecond":h=EA(t),p=bh(n),f=kh(n);break}s(h,c,d,p,f,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-h})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],d=0,h=0,p=0;p<o.length&&a++<r;++p){var f=lh(o[p]);if(uh(o[p])){l(o[p],u[u.length-1]||[],c);var g=o[p+1]?lh(o[p+1]):null;if(f!==g){if(c.length){h=d,c.sort((function(e,t){return e.value-t.value}));for(var v=[],m=0;m<c.length;++m){var y=c[m].value;0!==m&&c[m-1].value===y||(v.push(c[m]),y>=i[0]&&y<=i[1]&&d++)}var x=(i[1]-i[0])/t;if(d>1.5*x&&h>x/1.5)break;if(u.push(v),d>x||e===o[p])break}c=[]}}}var _=j(G(u,(function(e){return j(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),b=[],w=_.length-1;for(p=0;p<_.length;++p)for(var S=_[p],M=0;M<S.length;++M)b.push({value:S[M].value,level:w-p});b.sort((function(e,t){return e.value-t.value}));var C=[];for(p=0;p<b.length;++p)0!==p&&b[p].value===b[p-1].value||C.push(b[p]);return C}hA.registerClass(kA);const BA=kA;var VA=hA.prototype,zA=IA.prototype,qA=Go,HA=Math.floor,WA=Math.ceil,GA=Math.pow,UA=Math.log,jA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new IA,t._interval=0,t}return o(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent(),r=zA.getTicks.call(this,e);return G(r,(function(e){var t=e.value,r=Go(GA(this.base,t));return r=t===n[0]&&this._fixMin?$A(r,i[0]):r,r=t===n[1]&&this._fixMax?$A(r,i[1]):r,{value:r}}),this)},t.prototype.setExtent=function(e,t){var n=this.base;e=UA(e)/UA(n),t=UA(t)/UA(n),zA.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=VA.getExtent.call(this);t[0]=GA(e,t[0]),t[1]=GA(e,t[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(t[0]=$A(t[0],i[0])),this._fixMax&&(t[1]=$A(t[1],i[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=UA(e[0])/UA(t),e[1]=UA(e[1])/UA(t),VA.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=na(n),r=e/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[Go(WA(t[0]/i)*i),Go(HA(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){zA.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=UA(e)/UA(this.base),xA(e,this._extent)},t.prototype.normalize=function(e){return e=UA(e)/UA(this.base),_A(e,this._extent)},t.prototype.scale=function(e){return e=bA(e,this._extent),GA(this.base,e)},t.type="log",t}(hA),ZA=jA.prototype;function $A(e,t){return qA(e,jo(t))}ZA.getMinorTicks=zA.getMinorTicks,ZA.getLabel=zA.getLabel,hA.registerClass(jA);const YA=jA;var XA=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var r=this._modelMinRaw=t.get("min",!0);Q(r)?this._modelMinNum=eD(e,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=eD(e,r));var o=this._modelMaxRaw=t.get("max",!0);if(Q(o)?this._modelMaxNum=eD(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=eD(e,o)),i)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=J(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[fo(s[0],1),fo(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?i?0:NaN:t-r[0]*o),null==s&&(s=e?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=ce(a)||ce(s)||e&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=this._determinedMin,h=this._determinedMax;return null!=d&&(a=d,l=!0),null!=h&&(s=h,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[JA[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=KA[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),KA={min:"_determinedMin",max:"_determinedMax"},JA={min:"_dataMin",max:"_dataMax"};function QA(e,t,n){var i=e.rawExtentInfo;return i||(i=new XA(e,t,n),e.rawExtentInfo=i,i)}function eD(e,t){return null==t?null:ce(t)?NaN:e.parse(t)}function tD(e,t){var n=e.type,i=QA(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&"time"===n){var s=ST("bar",a),l=!1;if(W(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=CT(s),c=nD(r,o,t,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function nD(e,t,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=TT(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;W(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;W(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=1-(s+l)/o,h=c/d-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function iD(e,t){var n=t,i=tD(e,n),r=i.extent,o=n.get("splitNumber");e instanceof YA&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function rD(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new SA({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new BA({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(hA.getClass(t)||IA)}}function oD(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function aD(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,i){return e.scale.getFormattedLabel(n,i,t)}}(t):ee(t)?function(t){return function(n){var i=e.scale.getLabel(n),r=t.replace("{value}",null!=i?i:"");return r}}(t):Q(t)?function(t){return function(i,r){return null!=n&&(r=i.value-n),t(sD(e,i),r,null!=i.level?{level:i.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function sD(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function lD(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof SA?r=n.count():(i=n.getTicks(),r=i.length);var a,s=e.getLabelModel(),l=aD(e),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c<r;c+=u){var d=i?i[c]:{value:o[0]+c},h=l(d,c),p=s.getTextRect(h),f=uD(p,s.get("rotate")||0);a?a.union(f):a=f}return a}}function uD(e,t){var n=t*Math.PI/180,i=e.width,r=e.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new oo(e.x,e.y,o,a);return s}function cD(e){var t=e.get("interval");return null==t?"auto":t}function dD(e){return"category"===e.type&&0===cD(e.getLabelModel())}function hD(e,t){var n={};return W(e.mapDimensionsAll(t),(function(t){n[cI(e,t)]=!0})),$(n)}function pD(e,t,n){t&&W(hD(t,n),(function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])}))}var fD=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return G(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),j(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}();const gD=fD;var vD=["x","y"];function mD(e){return"interval"===e.type||"time"===e.type}var yD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=vD,t}return o(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(mD(e)&&mD(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,d=r[1]-i[0]*u,h=this._transform=[l,0,0,u,c,d];this._invTransform=Er([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new oo(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Ze(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Ze(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-i;return new oo(n,i,r,o)},t}(gD);const xD=yD;var _D=Fa();function bD(e){return"category"===e.type?SD(e):ID(e)}function wD(e,t){return"category"===e.type?CD(e,t):{ticks:G(e.scale.getTicks(),(function(e){return e.value}))}}function SD(e){var t=e.getLabelModel(),n=MD(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function MD(e,t){var n,i,r=TD(e,"labels"),o=cD(t),a=kD(r,o);return a||(Q(o)?n=RD(e,o):(i="auto"===o?DD(e):o,n=OD(e,i)),AD(r,o,{labels:n,labelCategoryInterval:i}))}function CD(e,t){var n,i,r=TD(e,"ticks"),o=cD(t),a=kD(r,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),Q(o))n=RD(e,o,!0);else if("auto"===o){var s=MD(e,e.getLabelModel());i=s.labelCategoryInterval,n=G(s.labels,(function(e){return e.tickValue}))}else i=o,n=OD(e,i,!0);return AD(r,o,{ticks:n,tickCategoryInterval:i})}function ID(e){var t=e.scale.getTicks(),n=aD(e);return{labels:G(t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function TD(e,t){return _D(e)[t]||(_D(e)[t]=[])}function kD(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function AD(e,t,n){return e.push({key:t,value:n}),n}function DD(e){var t=_D(e).autoInterval;return null!=t?t:_D(e).autoInterval=e.calculateCategoryInterval()}function LD(e){var t=PD(e),n=aD(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(i)),d=Math.abs(u*Math.sin(i)),h=0,p=0;l<=o[1];l+=s){var f=0,g=0,v=uo(n({value:l}),t.font,"center","top");f=1.3*v.width,g=1.3*v.height,h=Math.max(h,f,7),p=Math.max(p,g,7)}var m=h/c,y=p/d;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),_=_D(e.model),b=e.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function PD(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 OD(e,t,n){var i=aD(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=dD(e),h=a.get("showMinLabel")||d,p=a.get("showMaxLabel")||d;h&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return p&&f-l!==o[1]&&g(o[1]),s}function RD(e,t,n){var i=e.scale,r=aD(e),o=[];return W(i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:r(e),rawLabel:a,tickValue:s})})),o}var ED=[0,1],ND=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return $o(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),FD(n,i.count())),Ho(e,ED,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),FD(n,i.count()));var r=Ho(e,n,ED,t);return this.scale.scale(r)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=wD(this,t),i=n.ticks,r=G(i,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return BD(this,r,o,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=G(n,(function(e){return G(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},e.prototype.getViewLabels=function(){return bD(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 e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return LD(this)},e}();function FD(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function BD(e,t,n,i){var r=t.length;if(e.onBand&&!n&&r){var o,a,s=e.getExtent();if(1===r)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var l=t[r-1].tickValue-t[0].tickValue,u=(t[r-1].coord-t[0].coord)/l;W(t,(function(e){e.coord-=u/2}));var c=e.scale.getExtent();a=1+c[1]-t[r-1].tickValue,o={coord:t[r-1].coord+u*a},t.push(o)}var d=s[0]>s[1];h(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift()),i&&h(s[0],t[0].coord)&&t.unshift({coord:s[0]}),h(s[1],o.coord)&&(i?o.coord=s[1]:t.pop()),i&&h(o.coord,s[1])&&t.push({coord:s[1]})}function h(e,t){return e=Go(e),t=Go(t),d?e>t:e<t}}const VD=ND;var zD=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return o(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(VD);const qD=zD;function HD(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,f="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[h[l]]:d[0],"x"===u?f[h[l]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),de(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function WD(e){return"cartesian2d"===e.get("coordinateSystem")}function GD(e){var t={xAxisModel:null,yAxisModel:null};return W(t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,qa).models[0];t[i]=o})),t}var UD=Math.log;function jD(e,t,n){var i=IA.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=tD(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var h=UD(e.base);u=[UD(u[0])/h,UD(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var p=i.getExtent.call(e);c&&(u[0]=p[0]),d&&(u[1]=p[1]);var f=i.getInterval.call(e),g=u[0],v=u[1];if(c&&d)f=(v-g)/a;else if(c){v=u[0]+f*a;while(v<u[1]&&isFinite(v)&&isFinite(u[1]))f=gA(f),v=u[0]+f*a}else if(d){g=u[1]-f*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))f=gA(f),g=u[1]-f*a}else{var m=e.getTicks().length-1;m>a&&(f=gA(f));var y=f*a;v=Math.ceil(u[1]/f)*f,g=Go(v-y),g<0&&u[0]>=0?(g=0,v=Go(y)):v>0&&u[1]<=0&&(v=0,g=-Go(y))}var x=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(e,g+f*x,v+f*_),i.setInterval.call(e,f),(x||_)&&i.setNiceExtent.call(e,g+f,v-f)}var ZD=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=vD,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=$(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,u=s.scale;pA(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(iD(u,l),pA(u)&&(t=s))}r.length&&(t||(t=r.pop(),iD(t.scale,t.model)),W(r,(function(e){jD(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};W(n.x,(function(e){YD(n,"y",e,r)})),W(n.y,(function(e){YD(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=Yh(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){W(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),KD(e,t?o.x:o.y)}))}s(),r&&(W(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=lD(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),W(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}ie(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,r=e.xAxisModel||i&&i.getReferringComponents("xAxis",qa).models[0],o=e.yAxisModel||i&&i.getReferringComponents("yAxis",qa).models[0],a=e.gridModel,s=this._coordsList;if(i)t=i.coordinateSystem,V(s,t)<0&&(t=null);else if(r&&o)t=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if($D(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new qD(t,rD(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[t][i]=u,s[t]++}}}this._axesMap=a,W(a.x,(function(t,n){W(a.y,(function(r,o){var a="x"+n+"y"+o,s=new xD(a);s.master=i,s.model=e,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(r)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){W(hD(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}W(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(WD(e)){var i=GD(e),r=i.xAxisModel,o=i.yAxisModel;if(!$D(r,t)||!$D(o,t))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return W(this.getCartesians(),(function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(r);V(t,r)<0&&t.push(r),V(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(r,o){var a=new e(r,t,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),t.eachSeries((function(e){if(WD(e)){var t=GD(e),n=t.xAxisModel,i=t.yAxisModel,r=n.getCoordSysModel();0;var o=r.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=vD,e}();function $D(e,t){return e.getCoordSysModel()===t}function YD(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)XD(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&XD(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(e){return e.dim+"_"+e.index}}function XD(e){return e&&"category"!==e.type&&"time"!==e.type&&oD(e)}function KD(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}const JD=ZD;var QD=Math.PI,eL=function(){function e(e,t){this.group=new Lo,this.opt=t,this.axisModel=e,B(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Lo({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!tL[e]},e.prototype.add=function(e){tL[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,r,o=Jo(t-e);return Qo(o)?(r=n>0?"top":"bottom",i="center"):Qo(o-QD)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<QD?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),tL={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(Ze(s,s,a),Ze(l,l,a));var u=F({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Gm({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});c.anid="line",n.add(c);var d=t.get(["axisLine","symbol"]);if(null!=d){var h=t.get(["axisLine","symbolSize"]);ee(d)&&(d=[d,d]),(ee(h)||ne(h))&&(h=[h,h]);var p=y_(t.get(["axisLine","symbolOffset"])||0,h),f=h[0],g=h[1];W([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,i){if("none"!==d[i]&&null!=d[i]){var r=v_(d[i],-f/2,-g/2,f,g,u.stroke,!0),o=t.r+t.offset;r.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=lL(n,i,t,e),o=cL(n,i,t,e);if(iL(t,o,r),uL(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=mS(G(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));bS(a)}},axisName:function(e,t,n,i){var r=de(e.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,p=["start"===s?d[0]-h*c:"end"===s?d[1]+h*c:(d[0]+d[1])/2,aL(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*QD/180),aL(s)?o=eL.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=nL(e.rotation,s,f||0,d),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=t.get("nameTruncate",!0)||{},m=v.ellipsis,y=de(e.nameTruncateMaxWidth,v.maxWidth,a),x=new Du({x:p[0],y:p[1],rotation:o.rotation,silent:eL.isLabelSilent(t),style:ud(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:m,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Uy({el:x,componentModel:t,itemName:r}),x.__fullText=r,x.anid="name",t.get("triggerEvent")){var _=eL.makeAxisEventDataBase(t);_.targetType="axisName",_.name=r,Lu(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function nL(e,t,n,i){var r,o,a=Jo(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return Qo(a-QD/2)?(o=l?"bottom":"top",r="center"):Qo(a-1.5*QD)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*QD&&a>QD/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function iL(e,t,n){if(!dD(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===i?(rL(o),rL(u)):oL(o,a)&&(i?(rL(a),rL(c)):(rL(o),rL(u))),!1===r?(rL(s),rL(d)):oL(l,s)&&(r?(rL(l),rL(h)):(rL(s),rL(d)))}}function rL(e){e&&(e.ignore=!0)}function oL(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=Ar([]);return Or(r,r,-e.rotation),n.applyTransform(Lr([],r,e.getLocalTransform())),i.applyTransform(Lr([],r,t.getLocalTransform())),n.intersect(i)}}function aL(e){return"middle"===e||"center"===e}function sL(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(Ze(a,a,t),Ze(s,s,t));var c=new Gm({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});c.anid=r+"_"+e[l].tickValue,o.push(c)}return o}function lL(e,t,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=r.getTicksCoords(),c=sL(u,t.transform,l,B(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)e.add(c[d]);return c}}function uL(e,t,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=B(s.getLineStyle(),B(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var d=sL(a[c],t.transform,l,u,"minorticks_"+c),h=0;h<d.length;h++)e.add(d[h])}}function cL(e,t,n,i){var r=n.axis,o=de(i.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),u=(de(i.labelRotate,a.get("rotate"))||0)*QD/180,c=eL.innerTextLayout(i.rotation,u,i.labelDirection),d=n.getCategories&&n.getCategories(!0),h=[],p=eL.isLabelSilent(n),f=n.get("triggerEvent");return W(l,(function(o,l){var u="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,v=o.rawLabel,m=a;if(d&&d[u]){var y=d[u];ie(y)&&y.textStyle&&(m=new Od(y.textStyle,a,n.ecModel))}var x=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=r.dataToCoord(u),b=new Du({x:_,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:ud(m,{text:g,align:m.getShallow("align",!0)||c.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,fill:Q(x)?x("category"===r.type?v:"value"===r.type?u+"":u,l):x})});if(b.anid="label_"+u,f){var w=eL.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=v,w.tickIndex=l,"category"===r.type&&(w.dataIndex=u),Lu(b).eventData=w}t.add(b),b.updateTransform(),h.push(b),e.add(b),b.decomposeTransform()})),h}}const dL=eL;function hL(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return pL(n,e,t),n.seriesInvolved&&gL(n,e),n}function pL(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];W(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=wL(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",i);if(W(n.getAxes(),K(f,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var d="axis"===c.get("trigger"),h="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(d||h)&&W(p.baseAxes,K(f,!h||"cross",d)),h&&W(p.otherAxes,K(f,"cross",!1))}}function f(i,s,u){var d=u.model.getModel("axisPointer",r),h=d.get("show");if(h&&("auto"!==h||i||bL(d))){null==s&&(s=d.get("triggerTooltip")),d=i?fL(u,c,r,t,i,s):d;var p=d.get("snap"),f=wL(u.model),g=s||p||"category"===u.type,v=e.axesInfo[f]={key:f,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,involveSeries:g,snap:p,useHandle:bL(d),seriesModels:[],linkGroup:null};l[f]=v,e.seriesInvolved=e.seriesInvolved||g;var m=vL(o,u);if(null!=m){var y=a[m]||(a[m]={axesInfo:{}});y.axesInfo[f]=v,y.mapper=o[m].mapper,v.linkGroup=y}}}}))}function fL(e,t,n,i,r,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};W(s,(function(e){l[e]=R(a.get(e))})),l.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===r){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var d=l.lineStyle=a.get("crossStyle");d&&B(u,d.textStyle)}}return e.model.getModel("axisPointer",new Od(l,n,i))}function gL(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==t.get(["axisPointer","show"],!0)&&W(e.coordSysAxesInfo[wL(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}function vL(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(mL(o[i+"AxisId"],n.id)||mL(o[i+"AxisIndex"],n.componentIndex)||mL(o[i+"AxisName"],n.name))return r}}function mL(e,t){return"all"===e||J(e)&&V(e,t)>=0||e===t}function yL(e){var t=xL(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=bL(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function xL(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[wL(e)]}function _L(e){var t=xL(e);return t&&t.axisPointerModel}function bL(e){return!!e.get(["handle","show"])}function wL(e){return e.type+"||"+e.id}var SL={},ML=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(t,n,i,r){this.axisPointerClass&&yL(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var r=t.getAxisPointerClass(this.axisPointerClass);if(r){var o=_L(e);o?(this._axisPointer||(this._axisPointer=new r)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){SL[e]=t},t.getAxisPointerClass=function(e){return e&&SL[e]},t.type="axis",t}(Ev);const CL=ML;var IL=Fa();function TL(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,d=IL(e).splitAreaColors,h=we(),p=0;if(d)for(var f=0;f<u.length;f++){var g=d.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=J(s)?s:[s];for(f=1;f<u.length;f++){var y=r.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;r.isHorizontal()?(x=v,_=l.y,b=y-x,w=l.height,v=x+b):(x=l.x,_=v,b=l.width,w=y-_,v=_+w);var S=u[f-1].tickValue;null!=S&&h.set(S,p),t.add(new hu({anid:null!=S?"area_"+S:null,shape:{x,y:_,width:b,height:w},style:B({fill:s[p]},m),autoBatch:!0,silent:!0})),p=(p+1)%c}IL(e).splitAreaColors=h}}}function kL(e){IL(e).splitAreaColors=null}var AL=["axisLine","axisTickLabel","axisName"],DL=["splitArea","splitLine","minorSplitLine"],LL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return o(t,e),t.prototype.render=function(t,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Lo,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=HD(a,t),l=new dL(t,F({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(pA(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));W(AL,l.add,l),this._axisGroup.add(l.getGroup()),W(DL,(function(e){t.get([e,"show"])&&PL[e](this,this._axisGroup,t,a)}),this);var u=r&&"changeAxisOrder"===r.type&&r.isInitSort;u||Fy(o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)}},t.prototype.remove=function(){kL(this)},t.type="cartesianAxis",t}(CL),PL={splitLine:function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=J(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,d=r.getTicksCoords({tickModel:o}),h=[],p=[],f=a.getLineStyle(),g=0;g<d.length;g++){var v=r.toGlobalCoord(d[g].coord);u?(h[0]=v,h[1]=l.y,p[0]=v,p[1]=l.y+l.height):(h[0]=l.x,h[1]=v,p[0]=l.x+l.width,p[1]=v);var m=c++%s.length,y=d[g].tickValue;t.add(new Gm({anid:null!=y?"line_"+d[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:B({stroke:s[m]},f),silent:!0}))}}},minorSplitLine:function(e,t,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var c=[],d=[],h=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=r.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,d[0]=g,d[1]=s.y+s.height):(c[0]=s.x,c[1]=g,d[0]=s.x+s.width,d[1]=g),t.add(new Gm({anid:"minor_line_"+u[p][f].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:h,silent:!0}))}},splitArea:function(e,t,n,i){TL(e,t,n,i)}},OL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="xAxis",t}(LL),RL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=OL.type,t}return o(t,e),t.type="yAxis",t}(LL);var EL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return o(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new hu({shape:e.coordinateSystem.getRect(),style:B({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ev),NL={offset:0};function FL(e){e.registerComponentView(EL),e.registerComponentModel(Yk),e.registerCoordinateSystem("cartesian2d",JD),uA(e,"x",Kk,NL),uA(e,"y",Kk,NL),e.registerComponentView(OL),e.registerComponentView(RL),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function BL(e){jw(FL),e.registerSeriesModel(zk),e.registerChartView(Zk),e.registerLayout(fT("scatter"))}function VL(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var r=i.getIndicatorAxes();W(r,(function(e,o){t.each(t.mapDimension(r[o].dim),(function(e,t){n[t]=n[t]||[];var r=i.dataToPoint(e,o);n[t][o]=zL(r)?r:qL(i)}))})),t.each((function(e){var r=Z(n[e],(function(e){return zL(e)}))||qL(i);n[e].push(r.slice()),t.setItemLayout(e,n[e])}))}}))}function zL(e){return!isNaN(e[0])&&!isNaN(e[1])}function qL(e){return[e.cx,e.cy]}function HL(e){var t=e.polar;if(t){J(t)||(t=[t]);var n=[];W(t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],J(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}W(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var WL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,o=this.group,a=e.getData(),s=this._data;function l(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=m_(e.getItemVisual(t,"symbolSize")),r=v_(n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function u(t,n,r,o,a,s){r.removeAll();for(var u=0;u<n.length-1;u++){var c=l(o,a);c&&(c.__dimIdx=u,t[u]?(c.setPosition(t[u]),i[s?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},e,a)):c.setPosition(n[u]),r.add(c))}}function c(e){return G(e,(function(e){return[r.cx,r.cy]}))}a.diff(s).add((function(t){var n=a.getItemLayout(t);if(n){var i=new Fm,r=new zm,o={shape:{points:n}};i.shape.points=c(n),r.shape.points=c(n),Kc(i,o,e,t),Kc(r,o,e,t);var s=new Lo,l=new Lo;s.add(r),s.add(i),s.add(l),u(r.shape.points,n,l,a,t,!0),a.setItemGraphicEl(t,s)}})).update((function(t,n){var i=s.getItemGraphicEl(n),r=i.childAt(0),o=i.childAt(1),l=i.childAt(2),c={shape:{points:a.getItemLayout(t)}};c.shape.points&&(u(r.shape.points,c.shape.points,l,a,t,!1),nd(o),nd(r),Xc(r,c,e),Xc(o,c,e),a.setItemGraphicEl(t,i))})).remove((function(e){o.remove(s.getItemGraphicEl(e))})).execute(),a.eachItemGraphicEl((function(e,t){var n=a.getItemModel(t),i=e.childAt(0),r=e.childAt(1),s=e.childAt(2),l=a.getItemVisual(t,"style"),u=l.fill;o.add(e),i.useStyle(B(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Vc(i,n,"lineStyle"),Vc(r,n,"areaStyle");var c=n.getModel("areaStyle"),d=c.isEmpty()&&c.parentModel.isEmpty();r.ignore=d,W(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();r.ensureState(e).ignore=i&&d})),r.useStyle(B(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var h=n.getModel("emphasis"),p=h.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof iu){var i=e.style;e.useStyle(F({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;var r=e.ensureState("emphasis");r.style=R(p);var o=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(null==o||isNaN(o))&&(o=""),sd(e,ld(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:o,inheritColor:u,defaultOpacity:l.opacity})})),Ec(e,h.get("focus"),h.get("blurScope"),h.get("disabled"))})),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(nx);const GL=WL;var UL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Pk(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.coordinateSystem,o=r.getIndicatorAxes(),a=this.getData().getName(e),s=""===a?this.name:a,l=vv(this,e);return iv("section",{header:s,sortBlocks:!0,blocks:G(o,(function(t){var n=i.get(i.mapDimension(t.dim),e);return iv("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(G(n.dimensions,(function(e){return t.mapDimension(e)})),e),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Ov);const jL=UL;var ZL=iA.value;function $L(e,t){return B({show:t},e)}var YL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),d=G(this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var h=a;null!=d.color&&(h=B({color:d.color},a));var p=E(R(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:h,triggerEvent:c},!1);if(ee(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else Q(l)&&(p.name=l(p.name,p));var g=new Od(p,null,this.ecModel);return q(g,Xk.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:E({lineStyle:{color:"#bbb"}},ZL.axisLine),axisLabel:$L(ZL.axisLabel,!1),axisTick:$L(ZL.axisTick,!1),splitLine:$L(ZL.splitLine,!0),splitArea:$L(ZL.splitArea,!0),indicator:[]},t}(op);const XL=YL;var KL=["axisLine","axisTickLabel","axisName"],JL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=G(n,(function(e){var n=e.model.get("showName")?e.name:"",i=new dL(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));W(i,(function(e){W(KL,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),d=s.get("color"),h=J(c)?c:[c],p=J(d)?d:[d],f=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),m=t.cx,y=t.cy,x=0;x<v.length;x++){if(l){var _=k(f,h,x);f[_].push(new lm({shape:{cx:m,cy:y,r:v[x].coord}}))}if(u&&x<v.length-1){_=k(g,p,x);g[_].push(new Pm({shape:{cx:m,cy:y,r0:v[x].coord,r:v[x+1].coord}}))}}else{var b,w=G(n,(function(e,n){var i=e.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),G(i,(function(e){return t.coordToPoint(e.coord,n)}))})),S=[];for(x=0;x<=b;x++){for(var M=[],C=0;C<n.length;C++)M.push(w[C][x]);if(M[0]&&M.push(M[0].slice()),l){_=k(f,h,x);f[_].push(new zm({shape:{points:M}}))}if(u&&S){_=k(g,p,x-1);g[_].push(new Fm({shape:{points:M.concat(S)}}))}S=M.slice().reverse()}}var I=a.getLineStyle(),T=s.getAreaStyle();W(g,(function(e,t){this.group.add(Ty(e,{style:B({stroke:"none",fill:p[t%p.length]},T),silent:!0}))}),this),W(f,(function(e,t){this.group.add(Ty(e,{style:B({fill:"none",stroke:h[t%h.length]},I),silent:!0}))}),this)}function k(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(Ev);const QL=JL;var eP=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return o(t,e),t}(VD);const tP=eP;var nP=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=G(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new tP(n,new IA);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,r=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[r,o]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var r,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r)/2;this.cx=Wo(n[0],i),this.cy=Wo(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(ee(a)||ne(a))&&(a=[0,a]),this.r0=Wo(a[0],o),this.r=Wo(a[1],o),W(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;W(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();W(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var r=i.get("splitNumber"),o=new IA;o.setExtent(0,r),o.setInterval(1),W(n,(function(e,t){jD(e.scale,e.model,o)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}();const iP=nP;function rP(e){e.registerCoordinateSystem("radar",iP),e.registerComponentModel(XL),e.registerComponentView(QL),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function oP(e){jw(rP),e.registerChartView(GL),e.registerSeriesModel(jL),e.registerLayout(VL),e.registerProcessor(bk("radar")),e.registerPreprocessor(HL)}var aP="\0_ec_interaction_mutex";function sP(e,t,n){var i=cP(e);i[t]=n}function lP(e,t,n){var i=cP(e),r=i[t];r===n&&(i[t]=null)}function uP(e,t){return!!cP(e)[t]}function cP(e){return e[aP]||(e[aP]={})}Ew({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Te);var dP=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=X(n._mousedownHandler,n),r=X(n._mousemoveHandler,n),o=X(n._mouseupHandler,n),a=X(n._mousewheelHandler,n),s=X(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=B(R(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return o(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(wt(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&fP("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!uP(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,o=t-i,a=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&bt(e.event),pP(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:i,oldY:r,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){wt(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=fP("zoomOnMouseWheel",e,this._opt),n=fP("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),o=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;hP(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);hP(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!uP(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;hP(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(et);function hP(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(bt(i.event),pP(e,t,n,i,r))}function pP(e,t,n,i,r){r.isAvailableBehavior=X(fP,null,n,i),e.trigger(t,r)}function fP(e,t,n){var i=n[e];return!e||i&&(!ee(i)||t.event[i+"Key"])}const gP=dP;function vP(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function mP(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var yP,xP={axisPointer:1,tooltip:1,brush:1};function _P(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!xP.hasOwnProperty(i.mainType)&&r&&r.model!==n}function bP(e){if(ee(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var wP={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"},SP=$(wP),MP={"alignment-baseline":"textBaseline","stop-color":"stopColor"},CP=$(MP),IP=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=bP(e);this._defsUsePending=[];var i=new Lo;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),PP(n,i,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(NP(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=BP(o);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=a&&null!=s&&(u=UP(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var h=i;i=new Lo,i.add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new hu({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var a,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!r){var u=yP[s];if(u&&Ie(yP,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var d={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(d),"g"===s&&(l=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});t.add(a)}}var h=TP[s];if(h&&Ie(TP,s)){var p=h.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new Jl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});DP(t,n),PP(e,n,this._defsUsePending,!1,!1),OP(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){yP={g:function(e,t){var n=new Lo;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new hu;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new lm;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Gm;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new dm;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=LP(i));var r=new Fm({shape:{points:n||[]},silent:!0});return DP(t,r),PP(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=LP(i));var r=new zm({shape:{points:n||[]},silent:!0});return DP(t,r),PP(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new iu;return DP(t,n),PP(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Lo;return DP(t,a),PP(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new Lo;return DP(t,a),PP(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",i=nm(n);return DP(t,i),PP(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),TP={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new ry(t,n,i,r);return kP(e,o),AP(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new ay(t,n,i);return kP(e,r),AP(e,r),r}};function kP(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function AP(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};WP(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function DP(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),B(t.__inheritedStyle,e.__inheritedStyle))}function LP(e){for(var t=BP(e),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);n.push([r,o])}return n}function PP(e,t,n,i,r){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(qP(e,t),WP(e,a,s),i||GP(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=EP(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=EP(o,"stroke",a.stroke,n)),W(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))})),W(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(o.style[e]=a[e])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=G(BP(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function OP(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",e.style.textBaseline=r}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}var RP=/^url\(\s*#(.*?)\)/;function EP(e,t,n,i){var r=n&&n.match(RP);if(!r)return"none"===n&&(n=null),n;var o=me(r[1]);i.push([e,t,o])}function NP(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}var FP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BP(e){return e.match(FP)||[]}var VP=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,zP=Math.PI/180;function qP(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(VP,(function(e,t,n){return i.push(t,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=BP(a);switch(r=r||kr(),s){case"translate":Pr(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Rr(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Or(r,r,-parseFloat(l[0])*zP);break;case"skewX":var u=Math.tan(parseFloat(l[0])*zP);Lr(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*zP);Lr(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}t.setLocalTransform(r)}}var HP=/([^\s:;]+)\s*:\s*([^:;]+)/g;function WP(e,t,n){var i=e.getAttribute("style");if(i){var r;HP.lastIndex=0;while(null!=(r=HP.exec(i))){var o=r[1],a=Ie(wP,o)?wP[o]:null;a&&(t[a]=r[2]);var s=Ie(MP,o)?MP[o]:null;s&&(n[s]=r[2])}}}function GP(e,t,n){for(var i=0;i<SP.length;i++){var r=SP[i],o=e.getAttribute(r);null!=o&&(t[wP[r]]=o)}for(i=0;i<CP.length;i++){r=CP[i],o=e.getAttribute(r);null!=o&&(n[MP[r]]=o)}}function UP(e,t){var n=t.width/e.width,i=t.height/e.height,r=Math.min(n,i);return{scale:r,x:-(e.x+e.width/2)*r+(t.x+t.width/2),y:-(e.y+e.height/2)*r+(t.y+t.height/2)}}function jP(e,t){var n=new IP;return n.parse(e,t)}var ZP=1e-8;function $P(e,t){return Math.abs(e-t)<ZP}function YP(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var o=1;o<e.length;o++){var a=e[o];i+=Ll(r[0],r[1],a[0],a[1],t,n),r=a}var s=e[0];return $P(r[0],s[0])&&$P(r[1],s[1])||(i+=Ll(r[0],r[1],s[0],s[1],t,n)),0!==i}var XP=[];function KP(e,t){for(var n=0;n<e.length;n++)Ze(e[n],e[n],t)}function JP(e,t,n,i){for(var r=0;r<e.length;r++){var o=e[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&($e(t,t,o),Ye(n,n,o))}}function QP(e){for(var t=0,n=0,i=0,r=e.length,o=e[r-1][0],a=e[r-1][1],s=0;s<r;s++){var l=e[s][0],u=e[s][1],c=o*u-l*a;t+=c,n+=(o+l)*c,i+=(a+u)*c,o=l,a=u}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}var eO=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),tO=function(){function e(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return e}(),nO=function(){function e(e){this.type="linestring",this.points=e}return e}(),iO=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return o(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],o=r.exterior,a=o&&o.length;a>n&&(e=r,n=a)}if(e)return QP(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return W(r,(function(t){"polygon"===t.type?JP(t.exterior,n,i,e):W(t.points,(function(t){JP(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new oo(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(YP(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(YP(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new oo(e,t,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(KP(c.exterior,s),W(c.interiors,(function(e){KP(e,s)}))):W(c.points,(function(e){KP(e,s)}))}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(eO),rO=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return o(t,e),t.prototype.calcCenter=function(){var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=Ar(XP),r=e;while(r&&!r.isGeoSVGGraphicRoot)Lr(i,r.getLocalTransform(),i),r=r.parent;return Er(i,i),Ze(n,n,i),n},t}(eO),oO=we(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),aO=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=we(),this._freedGraphics=[],this._mapName=e,this._parsedXML=bP(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=lO(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&jP(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,ve(null!=n)}catch(wm){throw new Error("Invalid svg format\n"+wm.message)}var i=new Lo;i.add(n),i.isGeoSVGGraphicRoot=!0;var r=t.width,o=t.height,a=t.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,d=void 0;if(null!=r?(l=0,c=r):a&&(l=a.x,c=a.width),null!=o?(u=0,d=o):a&&(u=a.y,d=a.height),null==l||null==u){var h=n.getBoundingRect();null==l&&(l=h.x,c=h.width),null==u&&(u=h.y,d=h.height)}s=this._boundingRect=new oo(l,u,c,d)}if(a){var p=UP(a,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new hu({shape:s.plain()}));var f=[];return W(t.named,(function(e){null!=oO.get(e.svgNodeTagLower)&&(f.push(e),sO(e.el))})),{root:i,boundingRect:s,named:f}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function sO(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function lO(e){var t=[],n=we();return W(e,(function(e){if(null==e.namedFrom){var i=new rO(e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}function uO(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var i=t.features;return W(i,(function(e){var t=e.geometry,i=t.encodeOffsets,r=t.coordinates;if(i)switch(t.type){case"LineString":t.coordinates=dO(r,i,n);break;case"Polygon":cO(r,i,n);break;case"MultiLineString":cO(r,i,n);break;case"MultiPolygon":W(r,(function(e,t){return cO(e,i[t],n)}))}})),t.UTF8Encoding=!1,t}function cO(e,t,n){for(var i=0;i<e.length;i++)e[i]=dO(e[i],t[i],n)}function dO(e,t,n){for(var i=[],r=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function hO(e,t){return e=uO(e),G(j(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new tO(o[0],o.slice(1)));break;case"MultiPolygon":W(i.coordinates,(function(e){e[0]&&r.push(new tO(e[0],e.slice(1)))}));break;case"LineString":r.push(new nO([i.coordinates]));break;case"MultiLineString":r.push(new nO(i.coordinates))}var a=new iO(n[t||"name"],r,n.cp);return a.properties=n,a}))}for(var pO=[126,25],fO="南海诸岛",gO=[[[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]]],vO=0;vO<gO.length;vO++)for(var mO=0;mO<gO[vO].length;mO++)gO[vO][mO][0]/=10.5,gO[vO][mO][1]/=-14,gO[vO][mO][0]+=pO[0],gO[vO][mO][1]+=pO[1];function yO(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===fO)return;t.push(new iO(fO,G(gO,(function(e){return{type:"polygon",exterior:e}})),pO))}}var xO={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function _O(e,t){if("china"===e){var n=xO[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}}var bO=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function wO(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:bO[0]})}var SO="name",MO=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=we(),this._mapName=e,this._specialAreas=n,this._geoJSON=IO(t)}return e.prototype.load=function(e,t){t=t||SO;var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:CO(i)})}var r=we(),o=[];return W(n.regions,(function(t){var n=t.name;e&&Ie(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),r.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new oo(0,0,0,0),regionsMap:r}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?hO(i,e):[]}catch(wm){throw new Error("Invalid geoJson format\n"+wm.message)}return yO(n,t),W(t,(function(e){var t=e.name;_O(n,e),wO(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function CO(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return t}function IO(e){return ee(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var TO=we();const kO={registerMap:function(e,t,n){if(t.svg){var i=new aO(e,t.svg);TO.set(e,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?n=t.specialAreas:r=t;i=new MO(e,r,n);TO.set(e,i)}},getGeoResource:function(e){return TO.get(e)},getMapForUser:function(e){var t=TO.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=TO.get(e);if(i)return i.load(t,n)}};var AO=["rect","circle","line","ellipse","polygon","polyline","path"],DO=we(AO),LO=we(AO.concat(["g"])),PO=we(AO.concat(["g"])),OO=Fa();function RO(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function EO(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var NO=function(){function e(e){var t=new Lo;this.uid=Ed("ec_map_draw"),this._controller=new gP(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Lo),t.add(this._svgGroup=new Lo)}return e.prototype.draw=function(e,t,n,i,r){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),d=c.raw,h=c.roam,p=!l.childAt(0)||r;p?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):Xc(u,h,e);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=we(),n=we(),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function c(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var r=u(e[i],n);r&&t.push(r)}return t}function d(e){return{shape:{points:c(e)}}}i.removeAll(),W(e.geo.regions,(function(r){var c=r.name,h=t.get(c),p=n.get(c)||{},f=p.dataIdx,g=p.regionModel;h||(h=t.set(c,new Lo),i.add(h),f=a?a.indexOfName(c):null,g=e.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var v=[],m=[];W(r.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=HO(t,l)),W(t,(function(e){v.push(new Fm(d(e)))}))}else{var n=e.points;l&&(n=HO(n,l,!0)),W(n,(function(e){m.push(new zm(d(e)))}))}}));var y=u(r.getCenter(),s&&s.project);function x(t,n){if(t.length){var i=new ey({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});h.add(i),FO(e,i,f,g),BO(e,i,c,g,o,f,y),n&&(EO(i),W(i.states,EO))}}x(v),x(m,!0)})),t.each((function(t,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;VO(e,t,i,s,o,a),zO(e,t,i,s,o),qO(e,t,i,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=we(),r=!1;W(this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);if(null!=DO.get(s)&&l instanceof Hs&&FO(e,l,u,c),l instanceof Hs&&(l.culling=!0),l.z2EmphasisLift=0,!t.namedFrom&&(null!=PO.get(s)&&BO(e,l,n,c,o,u,null),VO(e,l,n,c,o,u),zO(e,l,n,c,o),null!=LO.get(s))){var d=qO(e,l,n,c,o);"self"===d&&(r=!0);var h=i.get(n)||i.set(n,[]);h.push(l)}}),this),this._enableBlurEntireSVG(r,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){pc(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=i&&(t.opacity=i),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(e);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=kO.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=kO.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}r.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,vP(o,e.dx,e.dy),n.dispatchAction(F(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,mP(o,e.scale,e.originX,e.originY),n.dispatchAction(F(s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(t,r,o){return i.containPoint([r,o])&&!_P(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=OO(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){r._mouseDownFlag=!0})),t.on("click",(function(e){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},e}();function FO(e,t,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=RO(r),u=RO(o),c=RO(s),d=RO(a),h=e.data;if(h){var p=h.getItemVisual(n,"style"),f=h.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=ob(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,pc(t)}function BO(e,t,n,i,r,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var d=l?n:o,h=void 0;(!s||o>=0)&&(h=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;sd(t,ld(i),{labelFetcher:h,labelDataIndex:d,defaultText:n},p);var f=t.getTextContent();if(f&&(OO(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function VO(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):Lu(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function zO(e,t,n,i,r){e.data||Uy({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function qO(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Ec(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&Hc(t,r,n),a}function HO(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),W(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}const WO=NO;var GO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){o=this._mapDraw;o&&r.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new WO(n);r.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new lm({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Hu+1)});if(!s){var u=e.mainSeries.getData(),c=i.getName(n),d=u.indexOfName(c),h=i.getItemModel(n),p=h.getModel("label"),f=u.getItemGraphicEl(d);sd(l,ld(h),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){sc(l,e)}}r.add(l)}}}))},t.type="map",t}(nx);const UO=GO;var jO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return o(t,e),t.prototype.getInitialData=function(e){for(var t=Pk(this,{coordDimensions:["value"],encodeDefaulter:K(wp,this)}),n=we(),i=[],r=0,o=t.count();r<o;r++){var a=t.getName(r);n.set(a,!0)}var s=kO.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return W(s.regions,(function(e){var t=e.name;n.get(t)||i.push(t)})),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),r=this.getRawValue(e),o=i.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return iv("section",{header:s.join(", "),noHeader:!s.length,blocks:[iv("nameValue",{name:o,value:r})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=v_(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Ov);const ZO=jO;function $O(e,t){var n={};return W(e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+e[0].getName(r),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d<c;d++)l=Math.min(l,n[a][d]),u=Math.max(u,n[a][d]),s+=n[a][d];return o="min"===t?l:"max"===t?u:"average"===t?s/c:s,0===c?NaN:o}))}function YO(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),W(t,(function(e,t){for(var n=$O(G(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]}))}function XO(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var r={};W(n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var o=i.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!r[t],o.setItemLayout(e,n)})),t[i]=!0}}))}var KO=Ze,JO=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Zr,n._rawTransformable=new Zr,n.name=t,n}return o(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new oo(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new oo(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new oo(e,t,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Wo(e[0],t.getWidth()),Wo(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Ze([],i,e),n=Ze([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=r,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Dr(this.transform||(this.transform=[]),t.transform||kr()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Er(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Zr;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?KO(n,e,i):Pe(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?KO([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=QO(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=QO(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Zr);function QO(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const eR=JO;var tR={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},nR=["lng","lat"],iR=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.dimensions=nR,r.type="geo",r._nameCoordMap=we(),r.map=n;var o,a=i.projection,s=kO.load(n,i.nameMap,i.nameProperty),l=kO.getGeoResource(n),u=(r.resourceType=l?l.type:null,r.regions=s.regions),c=tR[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a,a)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(a);o=o||h.clone(),o.union(h)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:he(i.aspectScale,c.aspectScale),r._invertLongitute=!a&&c.invertLongitute,r}return o(t,e),t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new oo(e,t,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(ee(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=rR(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=rR(t);return i===this?i.pointToData(n):null},t}(eR);function rR(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",qa).models[0]||{}).coordinateSystem:null}q(iR,eR);const oR=iR;function aR(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(e,t,n,a){for(var s=n-e,l=a-t,u=0;u<=100;u++){var c=u/100,d=o.project([e+s*c,t+l*c]);$e(i,i,d),Ye(r,r,d)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var d,h,p,f=this.getBoundingRect(),g=e.get("layoutCenter"),v=e.get("layoutSize"),m=t.getWidth(),y=t.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&v&&(d=[Wo(g[0],m),Wo(g[1],y)],h=Wo(v,Math.min(m,y)),isNaN(d[0])||isNaN(d[1])||isNaN(h)||(_=!0)),_)p={},x>1?(p.width=h,p.height=h/x):(p.height=h,p.width=h*x),p.y=d[1]-p.height/2,p.x=d[0]-p.width/2;else{var b=e.getBoxLayoutParams();b.aspect=x,p=Yh(b,{width:m,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function sR(e,t){W(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var lR=function(){function e(){this.dimensions=nR}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),a=new oR(o+r,o,F({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=aR,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),W(r,(function(e,r){var o=G(e,(function(e){return e.get("nameMap")})),a=new oR(r,r,F({nameMap:N(o)},i(e[0])));a.zoomLimit=de.apply(null,G(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=aR,a.resize(e[0],t),W(e,(function(e){e.coordinateSystem=a,sR(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=we(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=kO.load(t,n,i);return W(s.regions,(function(e){var t=e.name;!o.get(t)&&r.push({name:t})})),r},e}(),uR=new lR;const cR=uR;var dR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t,n){var i=kO.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var r=e.itemStyle=e.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(e,n),va(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=cR.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=U(t.regions||[],(function(t,i){var r=i.name;return r&&(t.set(r,new Od(i,e,e.ecModel)),i.selected&&(n[r]=!0)),t}),we()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Od(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:e};return Q(i)?(r.status=t,i(r)):ee(i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var i=t.selectedMap||(t.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(op);const hR=dR;function pR(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function fR(e,t,n,i){var r=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(pR(e,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}e.scaleX*=a,e.scaleY*=a;var c=(t.originX-e.x)*(a-1),d=(t.originY-e.y)*(a-1);e.x-=c,e.y-=d,e.updateTransform(),e.setCenter(pR(e,s),i),e.setZoom(a*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var gR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return o(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new WO(n));var r=this._mapDraw;r.draw(e,t,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=e.get("silent"),this.group.add(r.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;n_(e.target,(function(e){return null!=(t=Lu(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=Lu(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Ev);const vR=gR;function mR(e,t,n){kO.registerMap(e,t,n)}function yR(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;W(o.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var a=[];W(i,(function(e,t){i[t]&&a.push(t)})),r.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:r,name:e.name}}))}e.registerCoordinateSystem("geo",cR),e.registerComponentModel(hR),e.registerComponentView(vR),e.registerImpl("registerMap",mR),e.registerImpl("getMap",(function(e){return kO.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var o=fR(r,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===i&&W(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function xR(e){jw(yR),e.registerChartView(UO),e.registerSeriesModel(ZO),e.registerLayout(XO),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,YO),Qx("map",e.registerAction)}function _R(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,r=[t];while(n=r.pop())if(i=n.children,n.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function bR(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){IR(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=TR(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function wR(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function SR(e){return arguments.length?e:PR}function MR(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function CR(e,t){return Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IR(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function TR(e,t,n,i){if(t){var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=kR(s),o=AR(o),s&&o){r=kR(r),a=AR(a),r.hierNode.ancestor=e;var h=s.hierNode.prelim+d-o.hierNode.prelim-u+i(s,o);h>0&&(LR(DR(s,e,n),e,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!kR(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=d-l),o&&!AR(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function kR(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function AR(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function DR(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function LR(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function PR(e,t){return e.parentNode===t.parentNode?1:2}var OR=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),RR=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OR},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Wo(t.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,e.moveTo(r[0],r[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[l]=o[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var h=1;h<i-1;h++){var p=n[h];e.moveTo(p[0],p[1]),d[l]=p[l],e.lineTo(d[0],d[1])}},t}(Yl),ER=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Lo,n}return o(t,e),t.prototype.init=function(e,t){this._controller=new gP(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),r=e.layoutInfo,o=this._mainGroup,a=e.get("layout");"radial"===a?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var s=this._data;i.diff(s).add((function(t){NR(i,t)&&FR(i,t,null,o,e)})).update((function(t,n){var r=s.getItemGraphicEl(n);NR(i,t)?FR(i,t,r,o,e):r&&qR(s,n,r,o,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&qR(s,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var r=[],o=[];Ks(i,r,o);var a=this._min,s=this._max;o[0]-r[0]===0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]===0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=e.coordinateSystem=new eR;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!_P(t,n,e)})),r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){vP(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){mP(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1,r=t.getZoom(),o=(r-1)*n+1;return o/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(nx);function NR(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function FR(e,t,n,i,r){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=e.tree.root,d=a.parentNode===c?a:a.parentNode||a,h=e.getItemGraphicEl(d.dataIndex),p=d.getLayout(),f=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:p,g=a.getLayout();o?(n=new SI(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Xc(n,{x:g.x,y:g.y},r);var v=n.getSymbolPath();if("radial"===r.get("layout")){var m=c.children[0],y=m.getLayout(),x=m.children.length,_=void 0,b=void 0;if(g.x===y.x&&!0===a.isExpand&&m.children.length){var w={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};_=Math.atan2(w.y-y.y,w.x-y.x),_<0&&(_=2*Math.PI+_),b=w.x<y.x,b&&(_-=Math.PI)}else _=Math.atan2(g.y-y.y,g.x-y.x),_<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=g.x<y.x,b&&(_-=Math.PI)):(b=g.x>y.x,b||(_-=Math.PI));var S=b?"left":"right",M=s.getModel("label"),C=M.get("rotate"),I=C*(Math.PI/180),T=v.getTextContent();T&&(v.setTextConfig({position:M.get("position")||S,rotation:null==C?-_:I,origin:"center"}),T.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),A="relative"===k?Se(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():null;A&&(Lu(n).focus=A),BR(r,a,c,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Bu||sc(n.__edge,t)}})}function BR(e,t,n,i,r,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),h=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new Ym({shape:HR(c,d,h,r,r)})),Xc(g,{shape:HR(c,d,h,o,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,m=[],y=0;y<v.length;y++){var x=v[y].getLayout();m.push([x.x,x.y])}g||(g=i.__edge=new RR({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:p}})),Xc(g,{shape:{parentPoint:[a.x,a.y],childPoints:m}},e)}}else 0;g&&("polyline"!==u||t.isExpand)&&(g.useStyle(B({strokeNoScale:!0,fill:null},f)),Vc(g,l,"lineStyle"),pc(g),s.add(g))}function VR(e,t,n,i,r){var o=t.tree.root,a=zR(o,e),s=a.source,l=a.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),d=c.__edge,h=u.__edge||(!1===s.isExpand||1===s.children.length?d:void 0),p=i.get("edgeShape"),f=i.get("layout"),g=i.get("orient"),v=i.get(["lineStyle","curveness"]);h&&("curve"===p?Qc(h,{shape:HR(f,g,v,l,l),style:{opacity:0}},i,{cb:function(){n.remove(h)},removeOpt:r}):"polyline"===p&&"orthogonal"===i.get("layout")&&Qc(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(h)},removeOpt:r}))}}function zR(e,t){var n,i=t.parentNode===e?t:t.parentNode||t;while(n=i.getLayout(),null==n)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function qR(e,t,n,i,r){var o=e.tree.getNodeByDataIndex(t),a=e.tree.root,s=zR(a,o).sourceLayout,l={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Qc(n,{x:s.x+1,y:s.y+1},r,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(t){VR(t,e,i,r,l)})),VR(o,e,i,r,l)}function HR(e,t,n,i,r){var o,a,s,l,u,c,d,h;if("radial"===e){u=i.rawX,d=i.rawY,c=r.rawX,h=r.rawY;var p=MR(u,d),f=MR(u,d+(h-d)*n),g=MR(c,h+(d-h)*n),v=MR(c,h);return{x1:p.x||0,y1:p.y||0,x2:v.x||0,y2:v.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,d=i.y,c=r.x,h=r.y,"LR"!==t&&"RL"!==t||(o=u+(c-u)*n,a=d,s=c+(u-c)*n,l=h),"TB"!==t&&"BT"!==t||(o=u,a=d+(h-d)*n,s=c,l=h+(d-h)*n),{x1:u,y1:d,x2:c,y2:h,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}const WR=ER;var GR=Fa();function UR(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,JR(t,n,e),W(n,(function(n){W(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,K(jR,e))}))})),t.wrapMethod("cloneShallow",K($R,e)),W(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,K(ZR,e))})),ve(n[t.dataType]===t)}function jR(e,t){if(KR(this)){var n=F({},GR(this).datas);n[this.dataType]=t,JR(t,n,e)}else QR(t,this.dataType,GR(this).mainData,e);return t}function ZR(e,t){return e.struct&&e.struct.update(),t}function $R(e,t){return W(GR(t).datas,(function(n,i){n!==t&&QR(n.cloneShallow(),i,t,e)})),t}function YR(e){var t=GR(this).mainData;return null==e||null==t?t:GR(t).datas[e]}function XR(){var e=GR(this).mainData;return null==e?[{data:e}]:G($(GR(e).datas),(function(t){return{type:t,data:GR(e).datas[t]}}))}function KR(e){return GR(e).mainData===e}function JR(e,t,n){GR(e).datas={},W(t,(function(t,i){QR(t,i,e,n)}))}function QR(e,t,n,i){GR(n).datas[t]=e,GR(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=YR,e.getLinkedDataAll=XR}const eE=UR;var tE=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){Q(e)&&(n=t,t=e,e=null),e=e||{},ee(e)&&(e={order:e});var i,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),nE=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var r=new e(n),o=[],a=1;function s(e,t){var n=e.value;a=Math.max(a,J(n)?n.length:1),o.push(e);var i=new tE(Aa(e.name,""),r);t?iE(i,t):r.root=i,r._nodes.push(i);var l=e.children;if(l)for(var u=0;u<l.length;u++)s(l[u],i)}s(t),r.root.updateDepthAndHeight(0);var l=QC(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new JC(l,n);return u.initData(o),i&&i(u),eE({mainData:u,struct:r,structAttr:"tree"}),r.update(),r},e}();function iE(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}const rE=nE;function oE(e,t,n){if(e&&V(t,e.type)>=0){var i=n.getData().tree.root,r=e.targetNode;if(ee(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function aE(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function sE(e,t){var n=aE(e);return V(n,t)>=0}function lE(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var uE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return o(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Od(n,this,this.ecModel),r=rE.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var a=0;r.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return iv("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lE(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Ov);const cE=uE;function dE(e,t,n){var i,r=[e],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}while(i=o.pop())t(i,n)}function hE(e,t){var n,i=[e];while(n=i.pop())if(t(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function pE(e,t){e.eachSeriesByType("tree",(function(e){fE(e,t)}))}function fE(e,t){var n=CR(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=SR((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,a=SR());var s=e.getData().tree.root,l=s.children[0];if(l){_R(s),dE(l,bR,a),s.hierNode.modifier=-l.hierNode.prelim,hE(l,wR);var u=l,c=l,d=l;hE(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>d.depth&&(d=e)}));var h=u===c?1:a(u,c)/2,p=h-u.getLayout().x,f=0,g=0,v=0,m=0;if("radial"===i)f=r/(c.getLayout().x+h+p),g=o/(d.depth-1||1),hE(l,(function(e){v=(e.getLayout().x+p)*f,m=(e.depth-1)*g;var t=MR(v,m);e.setLayout({x:t.x,y:t.y,rawX:v,rawY:m},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+h+p),f=r/(d.depth-1||1),hE(l,(function(e){m=(e.getLayout().x+p)*g,v="LR"===y?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:v,y:m},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(c.getLayout().x+h+p),g=o/(d.depth-1||1),hE(l,(function(e){v=(e.getLayout().x+p)*f,m="TB"===y?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:v,y:m},!0)})))}}}function gE(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");F(r,i)}))}))}function vE(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,r=fR(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function mE(e){e.registerChartView(WR),e.registerSeriesModel(cE),e.registerLayout(pE),e.registerVisual(gE),vE(e)}var yE=["treemapZoomToNode","treemapRender","treemapMove"];function xE(e){for(var t=0;t<yE.length;t++)e.registerAction({type:yE[t],update:"updateView"},Te);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],r=oE(e,i,t);if(r){var o=t.getViewRoot();o&&(e.direction=sE(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}function _E(e){var t=e.getData(),n=t.tree,i={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var r=Np(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",r)}))}var bE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};wE(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Od({itemStyle:r},this,t);i=e.levels=SE(i,t);var a=G(i||[],(function(e){return new Od(e,o,t)}),this),s=rE.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return iv("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=lE(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=we(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){_E(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Ov);function wE(e){var t=0;W(e.children,(function(e){wE(e);var n=e.value;J(n)&&(n=n[0]),t+=n}));var n=e.value;J(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),J(e.value)?e.value[0]=n:e.value=n}function SE(e,t){var n=ga(t.get("color")),i=ga(t.get(["aria","decal","decals"]));if(n){var r,o;e=e||[],W(e,(function(e){var t=new Od(e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=e[0]||(e[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),e}}const ME=bE;var CE=8,IE=8,TE=5,kE=function(){function e(e){this.group=new Lo,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(e,l,a,s,i),Xh(o,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=Aa(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*CE,t.emptyItemWidth);t.totalWidth+=a+IE,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r){for(var o=0,a=t.emptyItemWidth,s=e.get(["breadcrumb","height"]),l=$h(t.pos,t.box),u=t.totalWidth,c=t.renderList,d=c.length-1;d>=0;d--){var h=c[d],p=h.node,f=h.width,g=h.text;u>l.width&&(u-=f-a,f=a,g=null);var v=new Fm({shape:{points:AE(o,0,f,s,d===c.length-1,0===d)},style:B(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Du({style:{text:g,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*Hu,onclick:K(r,p)});v.disableLabelAnimation=!0,this.group.add(v),DE(v,e,p),o+=f+IE}},e.prototype.remove=function(){this.group.removeAll()},e}();function AE(e,t,n,i,r,o){var a=[[r?e:e-TE,t],[e+n,t],[e+n,t+i],[r?e:e-TE,t+i]];return!o&&a.splice(2,0,[e+n+TE,t+i/2]),!r&&a.push([e,t+i/2]),a}function DE(e,t,n){Lu(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&lE(n,t)}}const LE=kE;var PE=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function OE(){return new PE}var RE=Lo,EE=hu,NE=3,FE="label",BE="upperLabel",VE=10*Hu,zE=2*Hu,qE=3*Hu,HE=us([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),WE=function(e){var t=HE(e);return t.stroke=t.fill=t.lineWidth=null,t},GE=Fa(),UE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=jE(),n}return o(t,e),t.prototype.render=function(e,t,n,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(V(r,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],a=oE(i,o,e),s=i&&i.type,l=e.layoutInfo,u=!this._oldTree,c=this._storage,d="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(l),p=e.get("animation"),f=this._doRender(h,e,d);!p||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(h,f,e,d),this._resetController(n),this._renderBreadcrumb(e,n,a)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new RE,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,r=this._oldTree,o=jE(),a=jE(),s=this._storage,l=[];function u(e,i,r,u){return ZE(t,a,s,n,o,l,e,i,r,u)}d(i.root?[i.root]:[],r&&r.root?[r.root]:[],e,i===r||!r,0);var c=h(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:p};function d(e,t,n,i,r){function o(e){return e.getId()}function a(o,a){var s=null!=o?e[o]:null,l=null!=a?t[a]:null,c=u(s,l,n,r);c&&d(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,r+1)}i?(t=e,W(e,(function(e,t){!e.isRemoved()&&a(t,t)}))):new wC(t,e,o,o).add(a).update(a).remove(K(a,null)).execute()}function h(e){var t=jE();return e&&W(e,(function(e,n){var i=t[n];W(e,(function(e){e&&(i.push(e),GE(e).willDelete=!0)}))})),t}function p(){W(c,(function(e){W(e,(function(e){e.parent&&e.parent.remove(e)}))})),W(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Q(r)?0:r)||0,s=(Q(o)?null:o)||"cubicOut",l=OE();W(t.willDeleteEls,(function(e,t){W(e,(function(e,n){if(!e.invisible){var r,o=e.parent,u=GE(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,d=0;u.willDelete||(c=u.nodeWidth/2,d=u.nodeHeight/2),r="nodeGroup"===t?{x:c,y:d,style:{opacity:0}}:{shape:{x:c,y:d,width:0,height:0},style:{opacity:0}}}r&&l.add(e,r,a,0,s)}}))})),W(this._storage,(function(e,n){W(e,(function(e,i){var r=t.lastsForAnimation[n][i],o={};r&&(e instanceof Lo?null!=r.oldX&&(o.x=e.x,o.y=e.y,e.x=r.oldX,e.y=r.oldY):(r.oldShape&&(o.shape=F({},e.shape),e.setShape(r.oldShape)),r.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,a,0,s))}))}),this),this._state="animating",l.finished(X((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new gP(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",X(this._onPan,this)),t.on("zoom",X(this._onZoom,this)));var n=new oo(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,i){return n.contain(t,i)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>NE||Math.abs(e.dy)>NE)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new oo(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=kr();Pr(s,s,[-t,-n]),Rr(s,s,[e.scale,e.scale]),Pr(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Hh(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new LE(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(sE(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=jE(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(nx);function jE(){return{nodeGroup:[],background:[],content:[]}}function ZE(e,t,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),d=e.getData(),h=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,g=c.borderWidth,v=c.invisible,m=a.getRawIndex(),y=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,b=x&&x.length,w=h.getModel("itemStyle"),S=h.getModel(["emphasis","itemStyle"]),M=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,T=q("nodeGroup",RE);if(T){if(l.add(T),T.x=c.x||0,T.y=c.y||0,T.markRedraw(),GE(T).nodeWidth=p,GE(T).nodeHeight=f,c.isAboveViewRoot)return T;var k=q("background",EE,u,zE);k&&E(T,k,b&&c.upperLabelHeight);var A=h.getModel("emphasis"),D=A.get("focus"),L=A.get("blurScope"),P=A.get("disabled"),O="ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():D;if(b)qc(T)&&zc(T,!1),k&&(zc(k,!P),d.setItemGraphicEl(a.dataIndex,k),Nc(k,O,L));else{var R=q("content",EE,u,qE);R&&N(T,R),k.disableMorphing=!0,k&&qc(k)&&zc(k,!1),zc(T,!P),d.setItemGraphicEl(a.dataIndex,T),Nc(T,O,L)}return T}}}function E(t,n,i){var r=Lu(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:I}),v)B(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=WE(w);l.fill=s;var u=HE(S);u.fill=S.get("borderColor");var c=HE(M);c.fill=M.get("borderColor");var d=HE(C);if(d.fill=C.get("borderColor"),i){var h=p-2*g;V(n,s,o.opacity,{x:g,y:0,width:h,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,pc(n)}t.add(n)}function N(t,n){var i=Lu(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:I}),v)B(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=WE(w);u.fill=l,u.decal=s.decal;var c=HE(S),d=HE(M),h=HE(C);V(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=h,pc(n)}t.add(n)}function B(e){!e.invisible&&o.push(e)}function V(t,n,i,r){var o=h.getModel(r?BE:FE),s=Aa(h.get("name"),null),l=o.getShallow("show");sd(t,ld(h,r?BE:FE),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var d=u.style,p=ge(d.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:t.shape.height)-p[0]-p[2],0);d.width===e&&d.height===n||u.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",z(d,r,c);var f=u.getState("emphasis");z(f?f.style:null,r,c)}}function z(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function q(e,i,o,a){var s=null!=y&&n[e][y],l=r[e];return s?(n[e][y]=null,H(l,s)):v||(s=new i,s instanceof Hs&&(s.z2=$E(o,a)),W(l,s)),t[e][m]=s}function H(e,t){var n=e[m]={};t instanceof RE?(n.oldX=t.x,n.oldY=t.y):n.oldShape=F({},t.shape)}function W(e,t){var n=e[m]={},o=a.parentNode,s=t instanceof Lo;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function $E(e,t){return e*VE+t}const YE=UE;var XE=W,KE=ie,JE=-1,QE=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=R(t);this.type=i,this.mappingMethod=n,this._normalizeData=dN[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(nN(r),eN(r)):"category"===n?r.categories?tN(r):nN(r,!0):(ve("linear"!==n||r.dataExtent),nN(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return X(this._normalizeData,this)},e.listVisualTypes=function(){return $(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){ie(e)?W(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=J(t)?[]:ie(t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,i={};return t&&XE(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(J(e))e=e.slice();else{if(!KE(e))return[];var t=[];XE(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||ee(s)&&s===e+"")return o;n&&d(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(hN(c[1],e,u[1]))return o}else if(u[1]===1/0){if(hN(c[0],u[0],e))return o}else if(hN(c[0],u[0],e)&&hN(c[1],e,u[1]))return o;n&&d(u[0],o),n&&d(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function d(t,n){var o=Math.abs(t-e);o<r&&(r=o,i=n)}},e.visualHandlers={color:{applyVisual:oN("color"),getColorMapper:function(){var e=this.option;return X("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),aN.call(this,e)}:function(t,n,i){var r=!!i;return!n&&(t=this._normalizeData(t)),i=ni(t,e.parsedVisual,i),r?i:ai(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ai(ni(e,this.option.parsedVisual),"rgba")},category:aN,piecewise:function(e,t){var n=uN.call(this,t);return null==n&&(n=ai(ni(e,this.option.parsedVisual),"rgba")),n},fixed:sN}},colorHue:iN((function(e,t){return ri(e,t)})),colorSaturation:iN((function(e,t){return ri(e,null,t)})),colorLightness:iN((function(e,t){return ri(e,null,null,t)})),colorAlpha:iN((function(e,t){return oi(e,t)})),decal:{applyVisual:oN("decal"),_normalizedToVisual:{linear:null,category:aN,piecewise:null,fixed:null}},opacity:{applyVisual:oN("opacity"),_normalizedToVisual:lN([0,1])},liftZ:{applyVisual:oN("liftZ"),_normalizedToVisual:{linear:sN,category:sN,piecewise:sN,fixed:sN}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:rN,category:aN,piecewise:function(e,t){var n=uN.call(this,t);return null==n&&(n=rN.call(this,e)),n},fixed:sN}},symbolSize:{applyVisual:oN("symbolSize"),_normalizedToVisual:lN([0,1])}},e}();function eN(e){var t=e.pieceList;e.hasSpecialVisual=!1,W(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function tN(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(XE(t,(function(e,t){n[e]=t})),!J(i)){var r=[];ie(i)?XE(i,(function(e,t){var i=n[t];r[null!=i?i:JE]=e})):r[JE]=i,i=cN(e,r)}for(var o=t.length-1;o>=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function nN(e,t){var n=e.visual,i=[];ie(n)?XE(n,(function(e){i.push(e)})):null!=n&&i.push(n);var r={color:1,symbol:1};t||1!==i.length||r.hasOwnProperty(e.type)||(i[1]=i[0]),cN(e,i)}function iN(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:lN([0,1])}}function rN(e){var t=this.option.visual;return t[Math.round(Ho(e,[0,1],[0,t.length-1],!0))]||{}}function oN(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function aN(e){var t=this.option.visual;return t[this.option.loop&&e!==JE?e%t.length:e]}function sN(){return this.option.visual[0]}function lN(e){return{linear:function(t){return Ho(t,e,this.option.visual,!0)},category:aN,piecewise:function(t,n){var i=uN.call(this,n);return null==i&&(i=Ho(t,e,this.option.visual,!0)),i},fixed:sN}}function uN(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=QE.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function cN(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=G(t,(function(e){var t=Jn(e);return t||[0,0,0,1]}))),t}var dN={linear:function(e){return Ho(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=QE.findPieceIndex(e,t,!0);if(null!=n)return Ho(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?JE:t},fixed:Te};function hN(e,t,n){return e?t<=n:t<n}const pN=QE;var fN="itemStyle",gN=Fa();const vN={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||mN(n,{},e.getViewRoot().getAncestors(),e)}};function mN(e,t,n,i){var r=e.getModel(),o=e.getLayout(),a=e.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel(fN),u=yN(l,t,i),c=a.ensureUniqueItemVisual(e.dataIndex,"style"),d=l.get("borderColor"),h=l.get("borderColorSaturation");null!=h&&(s=xN(u),d=_N(h,s)),c.stroke=d;var p=e.viewChildren;if(p&&p.length){var f=wN(e,r,o,l,u,p);W(p,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var o=MN(r,u,e,t,f,i);mN(e,o,n,i)}}))}else s=xN(u),c.fill=s}}function yN(e,t,n){var i=F({},t),r=n.designatedVisualItemStyle;return W(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function xN(e){var t=bN(e,"color");if(t){var n=bN(e,"colorAlpha"),i=bN(e,"colorSaturation");return i&&(t=ri(t,null,null,i)),n&&(t=oi(t,n)),t}}function _N(e,t){return null!=t?ri(t,null,null,e):null}function bN(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function wN(e,t,n,i,r,o){if(o&&o.length){var a=SN(t,"color")||null!=r.color&&"none"!==r.color&&(SN(t,"colorAlpha")||SN(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new pN(d);return gN(h).drColorMappingBy=c,h}}}function SN(e,t){var n=e.get(t);return J(n)&&n.length?{name:t,range:n}:null}function MN(e,t,n,i,r,o){var a=F({},t);if(r){var s=r.type,l="color"===s&&gN(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var CN=Math.max,IN=Math.min,TN=de,kN=W,AN=["itemStyle","borderWidth"],DN=["itemStyle","gapWidth"],LN=["upperLabel","show"],PN=["upperLabel","height"];const ON={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=Yh(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Wo(TN(s.width,l[0]),r),c=Wo(TN(s.height,l[1]),o),d=i&&i.type,h=["treemapZoomToNode","treemapRootToNode"],p=oE(i,h,e),f="treemapRender"===d||"treemapMove"===d?i.rootRect:null,g=e.getViewRoot(),v=aE(g);if("treemapMove"!==d){var m="treemapZoomToNode"===d?qN(e,p,g,u,c):f?[f.width,f.height]:[u,c],y=a.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var x={squareRatio:a.squareRatio,sort:y,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(_),RN(g,x,!1,0),_=g.getLayout(),kN(v,(function(e,t){var n=(v[t+1]||g).getValue();e.setLayout(F({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var b=e.getData().tree.root;b.setLayout(HN(s,f,p),!0),e.setLayoutInfo(s),WN(b,new oo(-s.x,-s.y,r,o),v,g,0)}};function RN(e,t,n,i){var r,o;if(!e.isRemoved()){var a=e.getLayout();r=a.width,o=a.height;var s=e.getModel(),l=s.get(AN),u=s.get(DN)/2,c=GN(s),d=Math.max(l,c),h=l-u,p=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),r=CN(r-2*h,0),o=CN(o-h-p,0);var f=r*o,g=EN(e,s,f,t,n,i);if(g.length){var v={x:h,y:p,width:r,height:o},m=IN(r,o),y=1/0,x=[];x.area=0;for(var _=0,b=g.length;_<b;){var w=g[_];x.push(w),x.area+=w.getLayout().area;var S=VN(x,m,t.squareRatio);S<=y?(_++,y=S):(x.area-=x.pop().getLayout().area,zN(x,m,v,u,!1),m=IN(v.width,v.height),x.length=x.area=0,y=1/0)}if(x.length&&zN(x,m,v,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(_=0,b=g.length;_<b;_++)RN(g[_],t,n,i+1)}}}function EN(e,t,n,i,r,o){var a=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return e.viewChildren=[];a=j(a,(function(e){return!e.isRemoved()})),FN(a,s);var u=BN(t,a,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=NN(t,n,u.sum,s,a),0===u.sum)return e.viewChildren=[];for(var c=0,d=a.length;c<d;c++){var h=a[c].getValue()/u.sum*n;a[c].setLayout({area:h})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}function NN(e,t,n,i,r){if(!i)return n;for(var o=e.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}function FN(e,t){return t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i})),e}function BN(e,t,n){for(var i=0,r=0,o=t.length;r<o;r++)i+=t[r].getValue();var a,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],kN(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function VN(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;o<s;o++)a=e[o].getLayout().area,a&&(a<r&&(r=a),a>i&&(i=a));var l=e.area*e.area,u=t*t*n;return l?CN(u*i/l,l/(u*r)):1/0}function zN(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,h=e.length;d<h;d++){var p=e[d],f={},g=c?p.getLayout().area/c:0,v=f[l[a]]=CN(c-2*i,0),m=n[s[o]]+n[l[o]]-u,y=d===h-1||m<g?m:g,x=f[l[o]]=CN(y-2*i,0);f[s[a]]=n[s[a]]+IN(i,v/2),f[s[o]]=u+IN(i,x/2),u+=y,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function qN(e,t,n,i,r){var o,a=(t||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*e.option.zoomToNodeRatio;while(o=a.parentNode){for(var c=0,d=o.children,h=0,p=d.length;h<p;h++)c+=d[h].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),v=g.get(AN),m=Math.max(v,GN(g));u+=4*v*v+(3*v+m)*Math.pow(u,.5),u>Ko&&(u=Ko),a=o}u<l&&(u=l);var y=Math.pow(u/l,.5);return[i*y,r*y]}function HN(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function WN(e,t,n,i,r){var o=e.getLayout(),a=n[r],s=a&&a===e;if(!(a&&!s||r===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new oo(t.x-o.x,t.y-o.y,t.width,t.height);kN(e.viewChildren||[],(function(e){WN(e,l,n,i,r+1)}))}}function GN(e){return e.get(LN)?e.get(PN):0}function UN(e){e.registerSeriesModel(ME),e.registerChartView(YE),e.registerVisual(vN),e.registerLayout(ON),xE(e)}function jN(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e),i=n.getShallow("category");if(null!=i){ne(i)&&(i=o[i]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(i))return!1}return!0}))}))}function ZN(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),o=t.getShallow("category");if(null!=o){ee(o)&&(o=r["ec-"+o]);var a=n.getItemVisual(o,"style"),s=i.ensureUniqueItemVisual(e,"style");F(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)i.setItemVisual(e,l[u],n.getItemVisual(o,l[u]))}}))}))}function $N(e){return e instanceof Array||(e=[e,e]),e}function YN(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=$N(e.get("edgeSymbol")),r=$N(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),r=t.getEdgeByIndex(e),o=$N(i.getShallow("symbol",!0)),a=$N(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(F(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style");l.stroke=u&&u.fill;break}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var XN="--\x3e",KN=function(e){return e.get("autoCurveness")||null},JN=function(e,t){var n=KN(e),i=20,r=[];if(ne(n))i=n;else if(J(n))return void(e.__curvenessList=n);t>i&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=r},QN=function(e,t,n){var i=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,i,r].join(XN)},eF=function(e){var t=e.split(XN);return[t[0],t[2],t[1]].join(XN)},tF=function(e,t){var n=QN(e.node1,e.node2,t);return t.__edgeMap[n]},nF=function(e,t){var n=iF(QN(e.node1,e.node2,t),t),i=iF(QN(e.node2,e.node1,t),t);return n+i},iF=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function rF(e){KN(e)&&(e.__curvenessList=[],e.__edgeMap={},JN(e))}function oF(e,t,n,i){if(KN(n)){var r=QN(e,t,n),o=n.__edgeMap,a=o[eF(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}function aF(e,t,n,i){var r=KN(t),o=J(r);if(!r)return null;var a=tF(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=nF(e,t);JN(t,u),e.lineStyle=e.lineStyle||{};var c=QN(e.node1,e.node2,t),d=t.__curvenessList,h=o||u%2?0:1;if(a.isForward)return d[h+s];var p=eF(c),f=iF(p,t),g=d[s+f+h];return i?o?r&&0===r[0]?(f+h)%2?g:-g:((f%2?0:1)+h)%2?g:-g:(f+h)%2?g:-g:d[s+f+h]}function sF(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),lF(n,e)}}function lF(e,t){e.eachEdge((function(e,n){var i=pe(e.getModel().get(["lineStyle","curveness"]),-aF(e,t,n,!0),0),r=Oe(e.node1.getLayout()),o=Oe(e.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),e.setLayout(a)}))}function uF(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];W(n.dimensions,(function(e){r=r.concat(i.mapDimensionsAll(e))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}lF(i.graph,e)}else t&&"none"!==t||sF(e)}))}function cF(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX,r=t.getZoom(),o=(r-1)*n+1;return o/i}function dF(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var hF=Math.PI,pF=[];function fF(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),r=e.getData(),o=r.graph,a=i.width/2+i.x,s=i.height/2+i.y,l=Math.min(i.width,i.height)/2,u=r.count();r.setLayout({cx:a,cy:s}),u&&(gF[t](e,o,r,l,a,s,u),o.eachEdge((function(t,n){var i,r=pe(t.getModel().get(["lineStyle","curveness"]),aF(t,e,n),0),o=Oe(t.node1.getLayout()),l=Oe(t.node2.getLayout()),u=(o[0]+l[0])/2,c=(o[1]+l[1])/2;+r&&(r*=3,i=[a*r+u*(1-r),s*r+c*(1-r)]),t.setLayout([o,l,i])})))}}var gF={value:function(e,t,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,i,r,o,a){var s=0;pF.length=a;var l=cF(e);t.eachNode((function(e){var t=dF(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=hF/2),pF[e.dataIndex]=n,s+=2*n}));var u=(2*hF-s)/a/2,c=0;t.eachNode((function(e){var t=u+pF[e.dataIndex];c+=t,e.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=t}))}};function vF(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&fF(e,"symbolSize")}))}var mF=Ne;function yF(e,t,n){for(var i=e,r=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var d=i[c];d.p||(d.p=Le(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=Oe(d.p),d.edges=null}var h,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){h=e},afterStep:function(e){p=e},step:function(e){h&&h(i,r);for(var t=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;Fe(t,c.p,s.p);var d=Be(t)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),qe(t,t),!s.fixed&&mF(s.p,s.p,t,f*d*g),!c.fixed&&mF(c.p,c.p,t,-(1-f)*d*g)}}for(o=0;o<n;o++){var v=i[o];v.fixed||(Fe(t,l,v.p),mF(v.p,v.p,t,u*g))}for(o=0;o<n;o++){s=i[o];for(var m=o+1;m<n;m++){c=i[m];Fe(t,c.p,s.p);d=Be(t);0===d&&(Re(t,Math.random()-.5,Math.random()-.5),d=1);var y=(s.rep+c.rep)/d/d;!s.fixed&&mF(s.pp,s.pp,t,y),!c.fixed&&mF(c.pp,c.pp,t,-y)}}var x=[];for(o=0;o<n;o++){v=i[o];v.fixed||(Fe(x,v.p,v.pp),mF(v.p,v.p,x,g),Pe(v.pp,v.p))}g*=.992;var _=g<.01;p&&p(i,r,_),e&&e(_)}}}function xF(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,o=i.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&fF(e,"value"):sF(e);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),d=a.get("edgeLength"),h=J(c)?c:[c,c],p=J(d)?d:[d,d];p=[p[1],p[0]];var f=r.mapArray("value",(function(e,t){var n=r.getItemLayout(t),i=Ho(e,l,h);return isNaN(i)&&(i=(h[0]+h[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(t,n){var r=i.getEdgeByIndex(n),o=Ho(t,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=pe(r.getModel().get(["lineStyle","curveness"]),-aF(r,e,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=t.getBoundingRect(),m=yF(f,g,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});m.beforeStep((function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].fixed&&Pe(e[n].p,i.getNodeByIndex(n).getLayout())})),m.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||i.getNodeByIndex(a).setLayout(e[a].p),n[r.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],u=i.getEdgeByIndex(a),c=l.n1.p,d=l.n2.p,h=u.getLayout();h=h?h.slice():[],h[0]=h[0]||[],h[1]=h[1]||[],Pe(h[0],c),Pe(h[1],d),+l.curveness&&(h[2]=[(c[0]+d[0])/2-(c[1]-d[1])*l.curveness,(c[1]+d[1])/2-(d[0]-c[0])*l.curveness]),u.setLayout(h)}})),e.forceLayout=m,e.preservedPoints=n,m.step()}else e.forceLayout=null}))}function _F(e,t,n){var i=F(e.getBoxLayoutParams(),{aspect:n});return Yh(i,{width:t.getWidth(),height:t.getHeight()})}function bF(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var r=e.getData(),o=r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]})),a=[],s=[];Ks(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=_F(e,t,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],d=s[1]-a[1],h=u.width,p=u.height,f=e.coordinateSystem=new eR;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,d),f.setViewRect(u.x,u.y,h,p),f.setCenter(e.get("center"),t),f.setZoom(e.get("zoom")),n.push(f)}})),n}var wF=Gm.prototype,SF=Ym.prototype,MF=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}o(t,e)})(MF);function CF(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var IF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return o(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new MF},t.prototype.buildPath=function(e,t){CF(t)?wF.buildPath.call(this,e,t):SF.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return CF(this.shape)?wF.pointAt.call(this,e):SF.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=CF(t)?[t.x2-t.x1,t.y2-t.y1]:SF.tangentAt.call(this,e);return qe(n,n)},t}(Yl);const TF=IF;var kF=["fromSymbol","toSymbol"];function AF(e){return"_"+e+"Type"}function DF(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=m_(r),u=y_(a||0,l),c=v_(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function LF(e){var t=new TF({name:"line",subPixelOptimize:!0});return PF(t.shape,e),t}function PF(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var OF=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createLine(t,n,i),r}return o(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,r=e.getItemLayout(t),o=LF(r);o.shape.percent=0,Kc(o,{shape:{percent:1}},i,t),this.add(o),W(kF,(function(n){var i=DF(n,e,t);this.add(i),this[AF(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};PF(a.shape,o),Xc(r,a,i,t),W(kF,(function(n){var i=e.getItemVisual(t,n),r=AF(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=DF(n,e,t);this.add(o)}this[r]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var h=e.getItemModel(t),p=h.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=h.getModel(["blur","lineStyle"]).getLineStyle(),s=h.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),d=p.get("blurScope"),l=ld(h)}var f=e.getItemVisual(t,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,W(kF,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=f.opacity;for(var n=0;n<zu.length;n++){var i=zu[n],o=r.getState(i);if(o){var a=o.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}}),this);var v=i.getRawValue(t);sd(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==v?e.getName(t):isFinite(v)?Go(v):v)+""});var m=this.getTextContent();if(m){var y=l.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=y.get("position")||"middle";var x=y.get("distance");J(x)||(x=[x,x]),m.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Ec(this,c,d,u)},t.prototype.highlight=function(){vc(this)},t.prototype.downplay=function(){mc(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");PF(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){var r=1,o=this.parent;while(o)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=Fe([],u,l);if(qe(c,c),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=r*s,t.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,h=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,v=s/2,m=a.tangentAt(v),y=[m[1],-m[0]],x=a.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var _=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(m[1],m[0]);u[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var w=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,h="top";break;default:w=0,h="middle"}switch(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+u[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",h=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",h=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+w,d=m[0]<0?"right":"left",i.originX=-f*_,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,d="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+w,d=m[0]>=0?"right":"left",i.originX=f*_,i.originY=-w;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||h,align:i.__align||d})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Lo);const RF=OF;var EF=function(){function e(e){this.group=new Lo,this._LineCtor=e||RF}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=FF(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=FF(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||NF(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++){var r=t.getItemLayout(i);if(VF(r)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){Zy(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var i=e.getItemLayout(t);if(VF(i)){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,i,r){var o=e.getItemGraphicEl(n);VF(t.getItemLayout(i))?(o?o.updateData(t,i,r):o=new this._LineCtor(t,i,r),t.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},e}();function NF(e){return e.animators&&e.animators.length>0}function FF(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:ld(t)}}function BF(e){return isNaN(e[0])||isNaN(e[1])}function VF(e){return e&&!BF(e[0])&&!BF(e[1])}const zF=EF;var qF=[],HF=[],WF=[],GF=Mn,UF=Ue,jF=Math.abs;function ZF(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){qF[0]=GF(r[0],o[0],a[0],c),qF[1]=GF(r[1],o[1],a[1],c);var d=jF(UF(qF,t)-l);d<s&&(s=d,i=c)}for(var h=0;h<32;h++){var p=i+u;HF[0]=GF(r[0],o[0],a[0],i),HF[1]=GF(r[1],o[1],a[1],i),WF[0]=GF(r[0],o[0],a[0],p),WF[1]=GF(r[1],o[1],a[1],p);d=UF(HF,t)-l;if(jF(d)<.01)break;var f=UF(WF,t)-l;u/=2,d<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function $F(e,t){var n=[],i=kn,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[Oe(l[0]),Oe(l[1])],l[2]&&l.__original.push(Oe(l[2])));var d=l.__original;if(null!=l[2]){if(Pe(r[0],d[0]),Pe(r[1],d[2]),Pe(r[2],d[1]),u&&"none"!==u){var h=dF(e.node1),p=ZF(r,d[0],h*t);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){h=dF(e.node2),p=ZF(r,d[1],h*t);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}Pe(l[0],r[0]),Pe(l[1],r[2]),Pe(l[2],r[1])}else{if(Pe(o[0],d[0]),Pe(o[1],d[1]),Fe(a,o[1],o[0]),qe(a,a),u&&"none"!==u){h=dF(e.node1);Ne(o[0],o[0],a,h*t)}if(c&&"none"!==c){h=dF(e.node2);Ne(o[1],o[1],a,-h*t)}Pe(l[0],o[0]),Pe(l[1],o[1])}}))}function YF(e){return"view"===e.type}var XF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){var n=new kI,i=new zF,r=this.group;this._controller=new gP(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(YF(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Xc(s,l,e)}$F(e.getGraph(),cF(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,h=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,h),u.graph.eachNode((function(e){var t=e.dataIndex,n=e.getGraphicEl(),r=e.getModel();if(n){n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",(function(){d&&(d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,h),d.setFixed(t),u.setItemLayout(t,[n.x,n.y]))})).on("dragend",(function(){d&&d.setUnfixed(t)})),n.setDraggable(o&&!!d,!!r.get("cursor"));var a=r.get(["emphasis","focus"]);"adjacency"===a&&(Lu(n).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Lu(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),i=n.get(["label","rotate"])||0,r=e.getSymbolPath();if(p){var o=u.getItemLayout(t),a=Math.atan2(o[1]-g,o[0]-f);a<0&&(a=2*Math.PI+a);var s=o[0]<f;s&&(a-=Math.PI);var l=s?"left":"right";r.setTextConfig({rotation:-a,position:l,origin:"center"});var c=r.ensureState("emphasis");F(c.textConfig||(c.textConfig={}),{position:l})}else r.setTextConfig({rotation:i*=Math.PI/180})})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!_P(t,n,e)})),YF(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){vP(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){mP(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),$F(e.getGraph(),cF(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=cF(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){$F(e.getGraph(),cF(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(nx);const KF=XF;function JF(e){return"_EC_"+e}var QF=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[JF(e)]){var i=new eB(e,t);return i.hostGraph=this,this.nodes.push(i),n[JF(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[JF(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(ne(e)&&(e=this.nodes[e]),ne(t)&&(t=this.nodes[t]),e instanceof eB||(e=i[JF(e)]),t instanceof eB||(t=i[JF(t)]),e&&t){var o=e.id+"-"+t.id,a=new tB(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),r[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof eB&&(e=e.id),t instanceof eB&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof eB||(t=this._nodesMap[JF(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null)){var a=[t];while(a.length){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(i,c,s))return;a.push(c),c.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)t.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),eB=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),tB=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function nB(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}q(eB,nB("hostGraph","data")),q(tB,nB("hostGraph","edgeData"));const iB=QF;function rB(e,t,n,i,r){for(var o=new iB(i),a=0;a<e.length;a++)o.addNode(de(e[a].id,e[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],d=c.source,h=c.target;o.addEdge(d,h,u)&&(l.push(c),s.push(de(Aa(c.id,null),d+" > "+h)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=vI(e,n);else{var g=ef.get(f),v=g&&g.dimensions||[];V(v,"value")<0&&v.concat(["value"]);var m=QC(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;p=new JC(m,n),p.initData(e)}var y=new JC(["value"],n);return y.initData(l,s),r&&r(p,y),eE({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var oB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Rk(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),va(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){rF(this);var o=rB(i,n,this,!0,a);return W(o.edges,(function(e){oF(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Od.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),iv("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=xv({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=G(this.option.categories||[],(function(e){return null!=e.value?e:F({value:0},e)})),t=new JC(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const aB=oB;var sB={type:"graphRoam",event:"graphRoam",update:"none"};function lB(e){e.registerChartView(KF),e.registerSeriesModel(aB),e.registerProcessor(jN),e.registerVisual(ZN),e.registerVisual(YN),e.registerLayout(uF),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vF),e.registerLayout(xF),e.registerCoordinateSystem("graphView",{dimensions:eR.dimensions,create:bF}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Te),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Te),e.registerAction(sB,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,r=fR(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var uB=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),cB=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return o(t,e),t.prototype.getDefaultShape=function(){return new uB},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}(Yl);const dB=cB;function hB(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r),a=Wo(n[0],t.getWidth()),s=Wo(n[1],t.getHeight()),l=Wo(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function pB(e,t){var n=null==e?"":e+"";return t&&(ee(t)?n=t.replace("{value}",n):Q(t)&&(n=t(e))),n}var fB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=hB(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap"),d=c?VT:Am,h=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),g=[s,l];bl(g,!a),s=g[0],l=g[1];for(var v=l-s,m=s,y=0;h&&y<i.length;y++){var x=Math.min(Math.max(i[y][0],0),1);l=s+v*x;var _=new d({shape:{startAngle:m,endAngle:l,cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-f,r:r.r},silent:!0});_.setStyle({fill:i[y][1]}),_.setStyle(p.getLineStyle(["color","width"])),o.add(_),m=l}var b=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,b,r,s,l,a,f),this._renderTitleAndDetail(e,t,n,b,r),this._renderAnchor(e,r),this._renderPointer(e,t,n,b,r,s,l,a,f)},t.prototype._renderTicks=function(e,t,n,i,r,o,a,s,l){for(var u,c,d=this.group,h=r.cx,p=r.cy,f=r.r,g=+e.get("min"),v=+e.get("max"),m=e.getModel("splitLine"),y=e.getModel("axisTick"),x=e.getModel("axisLabel"),_=e.get("splitNumber"),b=y.get("splitNumber"),w=Wo(m.get("length"),f),S=Wo(y.get("length"),f),M=o,C=(a-o)/_,I=C/b,T=m.getModel("lineStyle").getLineStyle(),k=y.getModel("lineStyle").getLineStyle(),A=m.get("distance"),D=0;D<=_;D++){if(u=Math.cos(M),c=Math.sin(M),m.get("show")){var L=A?A+l:l,P=new Gm({shape:{x1:u*(f-L)+h,y1:c*(f-L)+p,x2:u*(f-w-L)+h,y2:c*(f-w-L)+p},style:T,silent:!0});"auto"===T.stroke&&P.setStyle({stroke:i(D/_)}),d.add(P)}if(x.get("show")){L=x.get("distance")+A;var O=pB(Go(D/_*(v-g)+g),x.get("formatter")),R=i(D/_);d.add(new Du({style:ud(x,{text:O,x:u*(f-w-L)+h,y:c*(f-w-L)+p,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0}))}if(y.get("show")&&D!==_){L=y.get("distance");L=L?L+l:l;for(var E=0;E<=b;E++){u=Math.cos(M),c=Math.sin(M);var N=new Gm({shape:{x1:u*(f-L)+h,y1:c*(f-L)+p,x2:u*(f-S-L)+h,y2:c*(f-S-L)+p},silent:!0,style:k});"auto"===k.stroke&&N.setStyle({stroke:i((D+E/b)/_)}),d.add(N),M+=I}M-=I}else M+=C}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,s,l){var u=this.group,c=this._data,d=this._progressEls,h=[],p=e.get(["pointer","show"]),f=e.getModel("progress"),g=f.get("show"),v=e.getData(),m=v.mapDimension("value"),y=+e.get("min"),x=+e.get("max"),_=[y,x],b=[o,a];function w(t,n){var i,o=v.getItemModel(t),a=o.getModel("pointer"),s=Wo(a.get("width"),r.r),l=Wo(a.get("length"),r.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),d=Wo(c[0],r.r),h=Wo(c[1],r.r),p=a.get("keepAspect");return i=u?v_(u,d-s/2,h-l,s,l,null,p):new dB({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:h}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(e,t){var n=f.get("roundCap"),i=n?VT:Am,a=f.get("overlap"),u=a?f.get("width"):l/v.count(),c=a?r.r-u:r.r-(e+1)*u,d=a?r.r:r.r-e*u,h=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:d}});return a&&(h.z2=x-v.get(m,e)%x),h}(g||p)&&(v.diff(c).add((function(t){var n=v.get(m,t);if(p){var i=w(t,o);Kc(i,{rotation:-((isNaN(+n)?b[0]:Ho(n,_,b,!0))+Math.PI/2)},e),u.add(i),v.setItemGraphicEl(t,i)}if(g){var r=S(t,o),a=f.get("clip");Kc(r,{shape:{endAngle:Ho(n,_,b,a)}},e),u.add(r),Pu(e.seriesIndex,v.dataType,t,r),h[t]=r}})).update((function(t,n){var i=v.get(m,t);if(p){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=w(t,a);s.rotation=a,Xc(s,{rotation:-((isNaN(+i)?b[0]:Ho(i,_,b,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(g){var l=d[n],y=l?l.shape.endAngle:o,x=S(t,y),M=f.get("clip");Xc(x,{shape:{endAngle:Ho(i,_,b,M)}},e),u.add(x),Pu(e.seriesIndex,v.dataType,t,x),h[t]=x}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof iu){var c=s.style;s.useStyle(F({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Ho(v.get(m,e),_,[0,1],!0))),s.z2EmphasisLift=0,Vc(s,t),Ec(s,r,o,a)}if(g){var d=h[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Vc(d,t),Ec(d,r,o,a)}})),this._progressEls=h)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=v_(o,t.cx-r/2+Wo(a[0],t.r),t.cy-r/2+Wo(a[1],t.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new Lo,d=[],h=[],p=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new Du({silent:!0}),h[e]=new Du({silent:!0})})).update((function(e,t){d[e]=o._titleEls[t],h[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),g=new Lo,v=i(Ho(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var y=m.get("offsetCenter"),x=r.cx+Wo(y[0],r.r),_=r.cy+Wo(y[1],r.r),b=d[t];b.attr({z2:f?0:2,style:ud(m,{x,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(b)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),M=r.cx+Wo(S[0],r.r),C=r.cy+Wo(S[1],r.r),I=Wo(w.get("width"),r.r),T=Wo(w.get("height"),r.r),k=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:v,A=(b=h[t],w.get("formatter"));b.attr({z2:f?0:2,style:ud(w,{x:M,y:C,text:pB(o,A),width:isNaN(I)?null:I,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:k})}),xd(b,{normal:w},o,(function(e){return pB(e,A)})),p&&_d(b,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return pB(a?a.interpolatedValue:o,A)}}),g.add(b)}c.add(g)})),this.group.add(c),this._titleEls=d,this._detailEls=h},t.type="gauge",t}(nx);const gB=fB;var vB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return o(t,e),t.prototype.getInitialData=function(e,t){return Pk(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Ov);const mB=vB;function yB(e){e.registerChartView(gB),e.registerSeriesModel(mB)}var xB=["itemStyle","opacity"],_B=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new zm,a=new Du;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return o(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(xB);l=null==l?1:l,n||nd(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Kc(i,{style:{opacity:l}},r,t)):Xc(i,{style:{opacity:l},shape:{points:a.points}},r,t),Vc(i,o),this._updateLabel(e,t),Ec(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;sd(r,ld(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var d=l.linePoints;i.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Yr(d[0][0],d[0][1]):null},Xc(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),gS(n,vS(a),{stroke:c})},t}(Fm),bB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new _B(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);td(n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(nx);const wB=bB;var SB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Pk(this,{coordDimensions:["value"],encodeDefaulter:K(wp,this)})},t.prototype._defaultLabelLine=function(e){va(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const MB=SB;function CB(e,t){return Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function IB(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,s=e.count();a<s;a++)r[a]=a;return Q(t)?r.sort(t):"none"!==t&&r.sort((function(e,t){return o?i[e]-i[t]:i[t]-i[e]})),r}function TB(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var i,r,o,a,s=e.getItemModel(t),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),d=e.getItemLayout(t),h=d.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(r=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,i="left"):"insideRight"===u?(r=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,i="right"):(r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var f=void 0,g=void 0,v=void 0,m=void 0,y=c.get("length");0,"left"===u?(f=(h[3][0]+h[0][0])/2,g=(h[3][1]+h[0][1])/2,v=f-y,r=v-5,i="right"):"right"===u?(f=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,v=f+y,r=v+5,i="left"):"top"===u?(f=(h[3][0]+h[0][0])/2,g=(h[3][1]+h[0][1])/2,m=g-y,o=m-5,i="center"):"bottom"===u?(f=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,m=g+y,o=m+5,i="center"):"rightTop"===u?(f="horizontal"===n?h[3][0]:h[1][0],g="horizontal"===n?h[3][1]:h[1][1],"horizontal"===n?(m=g-y,o=m-5,i="center"):(v=f+y,r=v+5,i="top")):"rightBottom"===u?(f=h[2][0],g=h[2][1],"horizontal"===n?(m=g+y,o=m+5,i="center"):(v=f+y,r=v+5,i="bottom")):"leftTop"===u?(f=h[0][0],g="horizontal"===n?h[0][1]:h[1][1],"horizontal"===n?(m=g-y,o=m-5,i="center"):(v=f-y,r=v-5,i="right")):"leftBottom"===u?(f="horizontal"===n?h[1][0]:h[3][0],g="horizontal"===n?h[1][1]:h[2][1],"horizontal"===n?(m=g+y,o=m+5,i="center"):(v=f-y,r=v-5,i="right")):(f=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,"horizontal"===n?(m=g+y,o=m+5,i="center"):(v=f+y,r=v+5,i="left")),"horizontal"===n?(v=f,r=v):(m=g,o=m),a=[[f,g],[v,m]]}d.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:p}}))}function kB(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),r=e.get("sort"),o=CB(e,t),a=e.get("orient"),s=o.width,l=o.height,u=IB(n,r),c=o.x,d=o.y,h="horizontal"===a?[Wo(e.get("minSize"),l),Wo(e.get("maxSize"),l)]:[Wo(e.get("minSize"),s),Wo(e.get("maxSize"),s)],p=n.getDataExtent(i),f=e.get("min"),g=e.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var v=e.get("funnelAlign"),m=e.get("gap"),y="horizontal"===a?s:l,x=(y-m*(n.count()-1))/n.count(),_=function(e,t){if("horizontal"===a){var r=n.get(i,e)||0,o=Ho(r,[f,g],h,!0),u=void 0;switch(v){case"top":u=d;break;case"center":u=d+(l-o)/2;break;case"bottom":u=d+(l-o);break}return[[t,u],[t,u+o]]}var p,m=n.get(i,e)||0,y=Ho(m,[f,g],h,!0);switch(v){case"left":p=c;break;case"center":p=c+(s-y)/2;break;case"right":p=c+s-y;break}return[[p,t],[p+y,t]]};"ascending"===r&&(x=-x,m=-m,"horizontal"===a?c+=s:d+=l,u=u.reverse());for(var b=0;b<u.length;b++){var w=u[b],S=u[b+1],M=n.getItemModel(w);if("horizontal"===a){var C=M.get(["itemStyle","width"]);null==C?C=x:(C=Wo(C,s),"ascending"===r&&(C=-C));var I=_(w,c),T=_(S,c+C);c+=C+m,n.setItemLayout(w,{points:I.concat(T.slice().reverse())})}else{var k=M.get(["itemStyle","height"]);null==k?k=x:(k=Wo(k,l),"ascending"===r&&(k=-k));I=_(w,d),T=_(S,d+k);d+=k+m,n.setItemLayout(w,{points:I.concat(T.slice().reverse())})}}TB(n)}))}function AB(e){e.registerChartView(wB),e.registerSeriesModel(MB),e.registerLayout(kB),e.registerProcessor(bk("funnel"))}var DB=.3,LB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Lo,n._initialized=!1,n}return o(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,u=EB(e);function c(e){var t=RB(o,r,e,l,s);NB(t,o,e,u)}function d(t,n){var i=a.getItemGraphicEl(n),r=OB(o,t,l,s);o.setItemGraphicEl(t,i),Xc(i,{shape:{points:r}},e,t),nd(i),NB(i,o,t,u)}function h(e){var t=a.getItemGraphicEl(e);r.remove(t)}if(o.diff(a).add(c).update(d).remove(h).execute(),!this._initialized){this._initialized=!0;var p=PB(s,e,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(p)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=EB(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=RB(i,this._dataGroup,l,o,r);u.incremental=!0,NB(u,i,l,a),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(nx);function PB(e,t,n){var i=e.model,r=e.getRect(),o=new hu({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),Kc(o,{shape:{width:r.width,height:r.height}},t,n),o}function OB(e,t,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o],s=e.get(e.mapDimension(a),t);FB(s,i.getAxis(a).type)||r.push(i.dataToPoint(s,a))}return r}function RB(e,t,n,i,r){var o=OB(e,n,i,r),a=new zm({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function EB(e){var t=e.get("smooth",!0);return!0===t&&(t=DB),t=sa(t),ce(t)&&(t=0),{smooth:t}}function NB(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var r=t.getItemModel(n),o=r.getModel("emphasis");Vc(e,r,"lineStyle"),Ec(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function FB(e,t){return"category"===t?null==e:null==e||isNaN(e)}const BB=LB;var VB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{useEncodeDefaulter:X(zB,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,r){e===t&&i.push(n.getRawIndex(r))})),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Ov);function zB(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return W(t.dimensions,(function(e){var t=qB(e);n[e]=t})),n}}function qB(e){return+e.replace("dim","")}const HB=VB;var WB=["lineStyle","opacity"],GB={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var r=i[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(WB,!0);null!=o&&(r=o)}var a=t.ensureUniqueItemVisual(n,"style");a.opacity=r}),e.start,e.end)}}}};const UB=GB;function jB(e){ZB(e),$B(e)}function ZB(e){if(!e.parallel){var t=!1;W(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function $B(e){var t=ga(e.parallelAxis);W(t,(function(t){if(ie(t)){var n=t.parallelIndex||0,i=ga(e.parallel)[n];i&&i.parallelAxisDefault&&E(t,i.parallelAxisDefault,!1)}}))}var YB=5,XB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},W(KB,(function(e,t){n.getZr().on(t,this._handlers[t]=X(e,this))}),this)),sx(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){lx(this,"_throttledDispatchExpand"),W(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(F({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Ev),KB={mousedown:function(e){JB(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(JB(this,"click")&&t){var n=[e.offsetX,e.offsetY],i=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(i>YB)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&JB(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function JB(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const QB=XB;var eV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&E(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){W(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=j(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);W(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(op);const tV=eV;var nV=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return o(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(VD);const iV=nV;function rV(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];if(null!=r&&(r=aV(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=aV(s,[0,a]),r=o=aV(s,[r,o]),i=0}t[0]=aV(t[0],n),t[1]=aV(t[1],n);var l=oV(t,i);t[i]+=e;var u,c=r||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[i]=aV(t[i],d),u=oV(t,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(t[1-i]=t[i]+l.sign*r),u=oV(t,i),null!=o&&u.span>o&&(t[1-i]=t[i]+u.sign*o),t}function oV(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function aV(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var sV=W,lV=Math.min,uV=Math.max,cV=Math.floor,dV=Math.ceil,hV=Go,pV=Math.PI,fV=function(){function e(e,t,n){this.type="parallel",this._axesMap=we(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;sV(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new iV(e,rD(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();sV(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),iD(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=gV(t.get("axisExpandWidth"),l),d=gV(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,p=t.get("axisExpandWindow");if(p)e=gV(p[1]-p[0],l),p[1]=p[0]+e;else{e=gV(c*(d-1),l);var f=t.get("axisExpandCenter")||cV(u/2);p=[c*f-e/2],p[1]=p[0]+e}var g=(s-e)/(u-d);g<3&&(g=0);var v=[cV(hV(p[0]/c,1))+1,dV(hV(p[1]/c,1))-1],m=g/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),sV(n,(function(t,n){var o=(i.axisExpandable?mV:vV)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:pV/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],u=s[r],c=kr();Or(c,c,u),Pr(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];W(o,(function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var d=e.getValues(a,u),h=0,p=o.length;h<p;h++){var f=s[h].getActiveState(d[h]);if("inactive"===f){c="inactive";break}}}else c="normal";t(c,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Oy([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return R(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),d=null!=c[0];if(u)d&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):d&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?rV(a,i,o,"all"):l="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[uV(0,p-h/2)],i[1]=lV(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:l}},e}();function gV(e,t){return lV(uV(e,t[0]),t[1])}function vV(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function mV(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-e)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}const yV=fV;function xV(e,t){var n=[];return e.eachComponent("parallel",(function(i,r){var o=new yV(i,e,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",qa).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var _V={create:xV};const bV=_V;var wV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return o(t,e),t.prototype.getAreaSelectStyle=function(){return us([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=R(e);if(t)for(var n=t.length-1;n>=0;n--)Uo(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(op);q(wV,Xk);const SV=wV;var MV=!0,CV=Math.min,IV=Math.max,TV=Math.pow,kV=1e4,AV=6,DV=6,LV="globalPan",PV={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},OV={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},RV={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},EV=0,NV=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Lo,n._uid="brushController_"+EV++,W(fz,(function(e,t){this._handlers[t]=X(e,this)}),n),n}return o(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||sP(t,LV,this._uid),W(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=E(R(RV),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;lP(e,LV,this._uid),W(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};W(e,(function(e){t[e.panelId]=R(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=G(e,(function(e){return E(R(RV),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new wC(n,e,s,a).add(l).update(l).remove(u).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(e,t){return a(e.__brushOption,t)}function l(t,a){var s=e[t];if(null!=a&&n[a]===o)i[t]=n[a];else{var l=i[t]=null!=a?(n[a].__brushOption=s,n[a]):BV(r,FV(r,s));qV(r,l)}}function u(e){n[e]!==o&&r.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),UV(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(et);function FV(e,t){var n=mz[t.brushType].createCover(e,t);return n.__brushOption=t,zV(n,t),e.group.add(n),n}function BV(e,t){var n=HV(t);return n.endCreating&&(n.endCreating(e,t),zV(t,t.__brushOption)),t}function VV(e,t){var n=t.__brushOption;HV(t).updateCoverShape(e,t,n.range,n)}function zV(e,t){var n=t.z;null==n&&(n=kV),e.traverse((function(e){e.z=n,e.z2=n}))}function qV(e,t){HV(t).updateCommon(e,t),VV(e,t)}function HV(e){return mz[e.__brushOption.brushType]}function WV(e,t,n){var i,r=e._panels;if(!r)return MV;var o=e._transform;return W(r,(function(e){e.isTargetByCursor(t,n,o)&&(i=e)})),i}function GV(e,t){var n=e._panels;if(!n)return MV;var i=t.__brushOption.panelId;return null!=i?n[i]:MV}function UV(e){var t=e._covers,n=t.length;return W(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function jV(e,t){var n=G(e._covers,(function(e){var t=e.__brushOption,n=R(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function ZV(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],r=n[0]-i[0],o=n[1]-i[1],a=TV(r*r+o*o,.5);return a>AV}function $V(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function YV(e,t,n,i){var r=new Lo;return r.add(new hu({name:"main",style:QV(n),silent:!0,draggable:!0,cursor:"move",drift:K(rz,e,t,r,["n","s","w","e"]),ondragend:K(jV,t,{isEnd:!0})})),W(i,(function(n){r.add(new hu({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:K(rz,e,t,r,n),ondragend:K(jV,t,{isEnd:!0})}))})),r}function XV(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=IV(r,DV),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],d=n[1][1],h=c-o+r/2,p=d-o+r/2,f=c-a,g=d-s,v=f+r,m=g+r;JV(e,t,"main",a,s,f,g),i.transformable&&(JV(e,t,"w",l,u,o,m),JV(e,t,"e",h,u,o,m),JV(e,t,"n",l,u,v,o),JV(e,t,"s",l,p,v,o),JV(e,t,"nw",l,u,o,o),JV(e,t,"ne",h,u,o,o),JV(e,t,"sw",l,p,o,o),JV(e,t,"se",h,p,o,o))}function KV(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(QV(n)),r.attr({silent:!i,cursor:i?"move":"default"}),W([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?nz(e,n[0]):iz(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?OV[o]+"-resize":null})}))}function JV(e,t,n,i,r,o,a){var s=t.childOfName(n);s&&s.setShape(lz(sz(e,t,[[i,r],[i+o,r+a]])))}function QV(e){return B({strokeNoScale:!0},e.brushStyle)}function ez(e,t,n,i){var r=[CV(e,n),CV(t,i)],o=[IV(e,n),IV(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function tz(e){return Py(e.group)}function nz(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=Ry(n[t],tz(e));return i[r]}function iz(e,t){var n=[nz(e,t[0]),nz(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function rz(e,t,n,i,r,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=az(t,r,o);W(i,(function(e){var t=PV[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(ez(s[0][0],s[1][0],s[0][1],s[1][1])),qV(t,n),jV(t,{isEnd:!1})}function oz(e,t,n,i){var r=t.__brushOption.range,o=az(e,n,i);W(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),qV(e,t),jV(e,{isEnd:!1})}function az(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function sz(e,t,n){var i=GV(e,t);return i&&i!==MV?i.clipPath(n,e._transform):R(n)}function lz(e){var t=CV(e[0][0],e[1][0]),n=CV(e[0][1],e[1][1]),i=IV(e[0][0],e[1][0]),r=IV(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function uz(e,t,n){if(e._brushType&&!vz(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=WV(e,t,n);if(!e._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===MV||s.panelId===o.panelId)&&mz[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function cz(e){var t=e.event;t.preventDefault&&t.preventDefault()}function dz(e,t,n){return e.childOfName("main").contain(t,n)}function hz(e,t,n,i){var r,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),ZV(e)||o){if(a&&!o){"single"===s.brushMode&&UV(e);var l=R(s);l.brushType=pz(l.brushType,a),l.panelId=a===MV?null:a.panelId,o=e._creatingCover=FV(e,l),e._covers.push(o)}if(o){var u=mz[pz(e._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(sz(e,o,e._track)),i&&(BV(e,o),u.updateCommon(e,o)),VV(e,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&WV(e,t,n)&&UV(e)&&(r={isEnd:i,removeOnClick:!0});return r}function pz(e,t){return"auto"===e?t.defaultBrushType:e}var fz={mousedown:function(e){if(this._dragging)gz(this,e);else if(!e.target||!e.target.draggable){cz(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=WV(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(uz(this,e,i),this._dragging){cz(e);var r=hz(this,e,i,!1);r&&jV(this,r)}},mouseup:function(e){gz(this,e)}};function gz(e,t){if(e._dragging){cz(t);var n=t.offsetX,i=t.offsetY,r=e.group.transformCoordToLocal(n,i),o=hz(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&jV(e,o)}}function vz(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var mz={lineX:yz(0),lineY:yz(1),rect:{createCover:function(e,t){function n(e){return e}return YV({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=$V(e);return ez(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){XV(e,t,n,i)},updateCommon:KV,contain:dz},polygon:{createCover:function(e,t){var n=new Lo;return n.add(new zm({name:"main",style:QV(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Fm({name:"main",draggable:!0,drift:K(oz,e,t),ondragend:K(jV,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:sz(e,t,n)})},updateCommon:KV,contain:dz}};function yz(e){return{createCover:function(t,n){return YV({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=$V(t),i=CV(n[0][e],n[1][e]),r=IV(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var o,a=GV(t,n);if(a!==MV&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),XV(t,n,l,r)},updateCommon:KV,contain:dz}}const xz=NV;function _z(e){return e=Sz(e),function(t){return By(t,e)}}function bz(e,t){return e=Sz(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function wz(e,t,n){var i=Sz(e);return function(e,r){return i.contain(r[0],r[1])&&!_P(e,t,n)}}function Sz(e){return oo.create(e)}var Mz=["axisLine","axisTickLabel","axisName"],Cz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new xz(n.getZr())).on("brush",X(this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!Iz(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Lo,this.group.add(this._axisGroup),e.get("show")){var o=kz(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=a.getAxisLayout(u),d=F({strokeContainThreshold:l},c),h=new dL(e,d);W(Mz,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(d,s,e,o,l,n),Fy(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=oo.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:_z(u),isTargetByCursor:wz(u,o,i),getLinearBrushOtherExtent:bz(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Tz(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=G(t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ev);function Iz(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Tz(e){var t=e.axis;return G(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function kz(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const Az=Cz;var Dz={type:"axisAreaSelect",event:"axisAreaSelected"};function Lz(e){e.registerAction(Dz,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var Pz={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Oz(e){e.registerComponentView(QB),e.registerComponentModel(tV),e.registerCoordinateSystem("parallel",bV),e.registerPreprocessor(jB),e.registerComponentModel(SV),e.registerComponentView(Az),uA(e,"parallel",SV,Pz),Lz(e)}function Rz(e){jw(Oz),e.registerChartView(BB),e.registerSeriesModel(HB),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,UB)}var Ez=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Nz=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getDefaultShape=function(){return new Ez},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){vc(this)},t.prototype.downplay=function(){mc(this)},t}(Yl),Fz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),d=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(t){var n=new Nz,i=Lu(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,u,h,p,f,g,v,m=t.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),_=t.node1.getLayout(),b=t.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=t.node2.getLayout(),C=t.node2.getModel(),I=C.get("localX"),T=C.get("localY"),k=t.getLayout();switch(n.shape.extent=Math.max(1,k.dy),n.shape.orient=d,"vertical"===d?(r=(null!=w?w*s:_.x)+k.sy,a=(null!=S?S*l:_.y)+_.dy,u=(null!=I?I*s:M.x)+k.ty,h=null!=T?T*l:M.y,p=r,f=a*(1-x)+h*x,g=u,v=a*x+h*(1-x)):(r=(null!=w?w*s:_.x)+_.dx,a=(null!=S?S*l:_.y)+k.sy,u=null!=I?I*s:M.x,h=(null!=T?T*l:M.y)+k.ty,p=r*(1-x)+u*x,f=a,g=r*x+u*(1-x),v=h),n.setShape({x1:r,y1:a,x2:u,y2:h,cpx1:p,cpy1:f,cpx2:g,cpy2:v}),n.useStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var A=t.node1.getVisual("color"),D=t.node2.getVisual("color");ee(A)&&ee(D)&&(n.style.fill=new ry(0,0,+("horizontal"===d),+("vertical"===d),[{color:A,offset:0},{color:D,offset:1}]))}var L=m.getModel("emphasis");Vc(n,m,"lineStyle",(function(e){return e.getItemStyle()})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var P=L.get("focus");Ec(n,"adjacency"===P?t.getAdjacentDataIndices():P,L.get("blurScope"),L.get("disabled")),Lu(n).dataType="edge"})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),d=new hu({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});sd(d,ld(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Vc(d,i),o.add(d),u.setItemGraphicEl(t.dataIndex,d),Lu(d).dataType="node";var h=c.get("focus");Ec(d,"adjacency"===h?t.getAdjacentDataIndices():h,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,r){var o=u.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(Bz(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(nx);function Bz(e,t,n){var i=new hu({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Kc(i,{shape:{width:e.width+20}},t,n),i}const Vz=Fz;var zz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new Od(r[a],this,t));if(i&&n){var s=rB(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return iv("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return iv("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t),o=r.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Ov);const qz=zz;function Hz(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=Wz(e,t);e.layoutInfo=r;var o=r.width,a=r.height,s=e.getGraph(),l=s.nodes,u=s.edges;Uz(l);var c=j(l,(function(e){return 0===e.getLayout().value})),d=0!==c.length?0:e.get("layoutIterations"),h=e.get("orient"),p=e.get("nodeAlign");Gz(l,u,n,i,o,a,d,h,p)}))}function Wz(e,t){return Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Gz(e,t,n,i,r,o,a,s,l){jz(e,t,n,r,o,s,l),Kz(e,t,o,r,i,a,s),cq(e,s)}function Uz(e){W(e,(function(e){var t=lq(e.outEdges,sq),n=lq(e.inEdges,sq),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function jz(e,t,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],d=0,h=0;h<t.length;h++)s[h]=1;for(h=0;h<e.length;h++)l[h]=e[h].inEdges.length,0===l[h]&&u.push(e[h]);var p=-1;while(u.length){for(var f=0;f<u.length;f++){var g=u[f],v=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=v.depth&&v.depth>=0;m&&v.depth>p&&(p=v.depth),g.setLayout({depth:m?v.depth:d},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var x=g.outEdges[y],_=t.indexOf(x);s[_]=0;var b=x.node2,w=e.indexOf(b);0===--l[w]&&c.indexOf(b)<0&&c.push(b)}}++d,u=c,c=[]}for(h=0;h<s.length;h++)if(1===s[h])throw new Error("Sankey is a DAG, the original data has cycle!");var S=p>d-1?p:d-1;a&&"left"!==a&&$z(e,a,o,S);var M="vertical"===o?(r-n)/S:(i-n)/S;Xz(e,M,o)}function Zz(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function $z(e,t,n,i){if("right"===t){var r=[],o=e,a=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}W(e,(function(e){Zz(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&Yz(e,i)}function Yz(e,t){W(e,(function(e){Zz(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function Xz(e,t,n){W(e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}function Kz(e,t,n,i,r,o,a){var s=Jz(e,a);Qz(s,t,n,i,r,a),eq(s,r,n,i,a);for(var l=1;o>0;o--)l*=.99,tq(s,l,a),eq(s,r,n,i,a),uq(s,l,a),eq(s,r,n,i,a)}function Jz(e,t){var n=[],i="vertical"===t?"y":"x",r=Za(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),W(r.keys,(function(e){n.push(r.buckets.get(e))})),n}function Qz(e,t,n,i,r,o){var a=1/0;W(e,(function(e){var t=e.length,s=0;W(e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/s:(n-(t-1)*r)/s;l<a&&(a=l)})),W(e,(function(e){W(e,(function(e,t){var n=e.getLayout().value*a;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),W(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))}function eq(e,t,n,i,r){var o="vertical"===r?"x":"y";W(e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var u=0,c=e.length,d="vertical"===r?"dx":"dy",h=0;h<c;h++)s=e[h],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[d]+t;var p="vertical"===r?i:n;if(l=u-t-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(h=c-2;h>=0;--h)s=e[h],l=s.getLayout()[o]+s.getLayout()[d]+t-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function tq(e,t,n){W(e.slice().reverse(),(function(e){W(e,(function(e){if(e.outEdges.length){var i=lq(e.outEdges,nq,n)/lq(e.outEdges,sq);if(isNaN(i)){var r=e.outEdges.length;i=r?lq(e.outEdges,iq,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-aq(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-aq(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function nq(e,t){return aq(e.node2,t)*e.getValue()}function iq(e,t){return aq(e.node2,t)}function rq(e,t){return aq(e.node1,t)*e.getValue()}function oq(e,t){return aq(e.node1,t)}function aq(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function sq(e){return e.getValue()}function lq(e,t,n){var i=0,r=e.length,o=-1;while(++o<r){var a=+t(e[o],n);isNaN(a)||(i+=a)}return i}function uq(e,t,n){W(e,(function(e){W(e,(function(e){if(e.inEdges.length){var i=lq(e.inEdges,rq,n)/lq(e.inEdges,sq);if(isNaN(i)){var r=e.inEdges.length;i=r?lq(e.inEdges,oq,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-aq(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-aq(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function cq(e,t){var n="vertical"===t?"x":"y";W(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),W(e,(function(e){var t=0,n=0;W(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),W(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function dq(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var i=1/0,r=-1/0;W(n,(function(e){var t=e.getLayout().value;t<i&&(i=t),t>r&&(r=t)})),W(n,(function(t){var n=new pN({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:e.get("color")}),o=n.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",o),t.setVisual("style",{fill:o}))}))}}))}function hq(e){e.registerChartView(Vz),e.registerSeriesModel(qz),e.registerLayout(Hz),e.registerVisual(dq),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var pq=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],d=l[1-u],h=[r,o],p=h[u].get("type"),f=h[1-u].get("type"),g=e.data;if(g&&i){var v=[];W(g,(function(e,t){var n;J(e)?(n=e.slice(),e.unshift(t)):J(e.value)?(n=F({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var m=this.defaultValueDimensions,y=[{name:c,type:IC(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:IC(f),dimsDef:m.slice()}];return Pk(this,{coordDimensions:y,dimensionsCount:m.length+1,encodeDefaulter:K(bp,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),fq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return o(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Ov);q(fq,pq,!0);const gq=fq;var vq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=xq(t,i,e,a,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(nd(n),_q(s,n,i,e)):n=xq(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(nx),mq=function(){function e(){}return e}(),yq=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return o(t,e),t.prototype.getDefaultShape=function(){return new mq},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(Yl);function xq(e,t,n,i,r){var o=e.ends,a=new yq({shape:{points:r?bq(o,i,e):o}});return _q(e,a,t,n,r),a}function _q(e,t,n,r,o){var a=n.hostModel,s=i[o?"initProps":"updateProps"];s(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var l=n.getItemModel(r),u=l.getModel("emphasis");Vc(t,l),Ec(t,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function bq(e,t,n){return G(e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}const wq=vq;function Sq(e,t){}var Mq=W;function Cq(e){var t=Iq(e);Mq(t,(function(e){var t=e.seriesModels;t.length&&(Tq(e),Mq(t,(function(t,n){kq(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function Iq(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),r=V(n,i);r<0&&(r=n.length,n[r]=i,t[r]={axis:i,seriesModels:[]}),t[r].seriesModels.push(e)})),t}function Tq(e){var t,n=e.axis,i=e.seriesModels,r=i.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;Mq(i,(function(e){l=Math.max(l,e.getData().count())}));var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}Mq(i,(function(e){var n=e.get("boxWidth");J(n)||(n=[n,n]),s.push([Wo(n[0],t)||0,Wo(n[1],t)||0])}));var c=.8*t-2,d=c/r*.3,h=(c-d*(r-1))/r,p=h/2-c/2;Mq(i,(function(e,t){a.push(p),p+=d+h,o.push(Math.min(Math.max(h,s[t][0]),s[t][1]))}))}function kq(e,t,n){var i=e.coordinateSystem,r=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var d=0;d<r.count();d++){var h=r.get(u,d),p=x(h,c[2],d),f=x(h,c[0],d),g=x(h,c[1],d),v=x(h,c[3],d),m=x(h,c[4],d),y=[];_(y,g,!1),_(y,v,!0),y.push(f,g,m,v),b(y,f),b(y,m),b(y,p),r.setItemLayout(d,{initBaseline:p[s],ends:y})}function x(e,n,o){var l,u=r.get(n,o),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[a]+=t),l}function _(e,t,n){var i=t.slice(),r=t.slice();i[a]+=o,r[a]-=o,n?e.push(i,r):e.push(r,i)}function b(e,t){var n=t.slice(),i=t.slice();n[a]-=o,i[a]+=o,e.push(n,i)}}function Aq(e,t){t=t||{};for(var n=[],i=[],r=t.boundIQR,o="none"===r||0===r,a=0;a<e.length;a++){var s=Uo(e[a].slice()),l=oa(s,.25),u=oa(s,.5),c=oa(s,.75),d=s[0],h=s[s.length-1],p=(null==r?1.5:r)*(c-l),f=o?d:Math.max(d,l-p),g=o?h:Math.min(h,c+p),v=t.itemNameFormatter,m=Q(v)?v({value:a}):ee(v)?v.replace("{value}",a+""):a+"";n.push([m,f,l,u,c,g]);for(var y=0;y<s.length;y++){var x=s[y];if(x<f||x>g){var _=[m,x];i.push(_)}}}return{boxData:n,outliers:i}}var Dq={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==dp){var n="";0,vg(n)}var i=Aq(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Lq(e){e.registerSeriesModel(gq),e.registerChartView(wq),e.registerVisual(Sq),e.registerLayout(Cq),e.registerTransform(Dq)}var Pq=["color","borderColor"],Oq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Zy(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&Fq(s,a))return;var l=Nq(a,n,!0);Kc(l,{shape:{points:a.ends}},e,n),Bq(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&Fq(s,c)?i.remove(u):(u?(Xc(u,{shape:{points:c.ends}},e,a),nd(u)):u=Nq(c,a),Bq(u,t,a,r),i.add(u),t.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),Hq(e,this.group);var t=e.get("clip",!0)?ZI(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),a=Nq(o,n);Bq(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){Hq(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(nx),Rq=function(){function e(){}return e}(),Eq=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return o(t,e),t.prototype.getDefaultShape=function(){return new Rq},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Yl);function Nq(e,t,n){var i=e.ends;return new Eq({shape:{points:n?Vq(i,e):i},z2:100})}function Fq(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function Bq(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,Vc(e,r)}function Vq(e,t){return G(e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var zq=function(){function e(){}return e}(),qq=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return o(t,e),t.prototype.getDefaultShape=function(){return new zq},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3},t}(Yl);function Hq(e,t,n,i){var r=e.getData(),o=r.getLayout("largePoints"),a=new qq({shape:{points:o},__sign:1});t.add(a);var s=new qq({shape:{points:o},__sign:-1});t.add(s),Wq(1,a,e,r),Wq(-1,s,e,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Wq(e,t,n,i){var r=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(Pq);t.useStyle(o),t.style.fill=null,t.style.stroke=r}const Gq=Oq;var Uq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return o(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Ov);q(Uq,pq,!0);const jq=Uq;function Zq(e){e&&J(e.series)&&W(e.series,(function(e){ie(e)&&"k"===e.type&&(e.type="candlestick")}))}var $q=["itemStyle","borderColor"],Yq=["itemStyle","borderColor0"],Xq=["itemStyle","color"],Kq=["itemStyle","color0"],Jq={seriesType:"candlestick",plan:Nv(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?Xq:Kq)}function i(e,t){return t.get(e>0?$q:Yq)}if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var o=t.getItemModel(r),a=t.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=t.ensureUniqueItemVisual(r,"style");F(l,s)}}}}}};const Qq=Jq;var eH={seriesType:"candlestick",plan:Nv(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=nH(e,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=G(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],d=l[2],h=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?f:p};function p(e,n){var a,l=n.getStore();while(null!=(a=e.next())){var p=l.get(s,a),f=l.get(u,a),g=l.get(c,a),v=l.get(d,a),m=l.get(h,a),y=Math.min(f,g),x=Math.max(f,g),_=C(y,p),b=C(x,p),w=C(v,p),S=C(m,p),M=[];I(M,b,0),I(M,_,1),M.push(k(S),k(b),k(w),k(_)),n.setItemLayout(a,{sign:tH(l,a,f,g,c),initBaseline:f>g?b[o]:_[o],ends:M,brushRect:T(v,m,p)})}function C(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function I(e,t,n){var o=t.slice(),a=t.slice();o[r]=Ly(o[r]+i/2,1,!1),a[r]=Ly(a[r]-i/2,1,!0),n?e.push(o,a):e.push(a,o)}function T(e,t,n){var a=C(e,n),s=C(t,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function k(e){return e[r]=Ly(e[r],1),e}}function f(e,n){var i,a,l=RI(4*e.count),p=0,f=[],g=[],v=n.getStore();while(null!=(a=e.next())){var m=v.get(s,a),y=v.get(u,a),x=v.get(c,a),_=v.get(d,a),b=v.get(h,a);isNaN(m)||isNaN(_)||isNaN(b)?(l[p++]=NaN,p+=3):(l[p++]=tH(v,a,y,x,c),f[r]=m,f[o]=_,i=t.dataToPoint(f,null,g),l[p++]=i?i[0]:NaN,l[p++]=i?i[1]:NaN,f[o]=b,i=t.dataToPoint(f,null,g),l[p++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function tH(e,t,n,i,r){var o;return o=n>i?-1:n<i?1:t>0?e.get(r,t-1)<=i?1:-1:1,o}function nH(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Wo(he(e.get("barMaxWidth"),r),r),a=Wo(he(e.get("barMinWidth"),1),r),s=e.get("barWidth");return null!=s?Wo(s,r):Math.max(Math.min(r/2,o),a)}const iH=eH;function rH(e){e.registerChartView(Gq),e.registerSeriesModel(jq),e.registerPreprocessor(Zq),e.registerVisual(Qq),e.registerLayout(iH)}function oH(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var aH=function(e){function t(t,n){var i=e.call(this)||this,r=new SI(t,n),o=new Lo;return i.add(r),i.add(o),i.updateData(t,n),i}return o(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=v_(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(a)}oH(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}oH(n,e)},t.prototype.highlight=function(){vc(this)},t.prototype.downplay=function(){mc(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=m_(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse((function(e){e.setStyle("fill",u)}));var d=y_(e.getItemVisual(t,"symbolOffset"),s);d&&(r.x=d[0],r.y=d[1]);var h=e.getItemVisual(t,"symbolRotate");r.rotation=(h||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=t/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===e&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Ec(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(Lo);const sH=aH;var lH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){this._symbolDraw=new kI(sH)},t.prototype.render=function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(r.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var r=fT("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Nr(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(nx);const uH=lH;var cH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Ov);const dH=cH;function hH(e){e.registerChartView(uH),e.registerSeriesModel(dH),e.registerLayout(fT("effectScatter"))}var pH=function(e){function t(t,n,i){var r=e.call(this)||this;return r.add(r.createLine(t,n,i)),r._updateEffectSymbol(t,n),r}return o(t,e),t.prototype.createLine=function(e,t,n){return new RF(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");J(r)||(r=[r,r]);var a=e.getItemVisual(t,"style"),s=i.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=v_(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(s),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(e,i,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),s=t.get("constantSpeed"),l=de(t.get("delay"),(function(t){return t/e.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),s>0&&(o=this._getLineLength(i)/s*1e3),o!==this._period||a!==this._loop){i.stopAnimation();var u=void 0;u=Q(l)?l(n):l,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,a)}this._period=o,this._loop=a}},t.prototype._animateSymbol=function(e,t,n,i){if(t>0){e.__t=0;var r=this,o=e.animate("",i).when(t,{__t:1}).delay(n).during((function(){r._updateSymbolPosition(e)}));i||o.done((function(){r.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){return We(e.__p1,e.__cp1)+We(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t,o=[e.x,e.y],a=o.slice(),s=Mn,l=Cn;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u=l(t[0],i[0],n[0],r),c=l(t[1],i[1],n[1],r);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*We(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*We(t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(Lo);const fH=pH;var gH=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createPolyline(t,n,i),r}return o(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),r=new zm({shape:{points:i}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};Xc(r,o,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=o,Ec(this,a,s,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(Lo);const vH=gH;var mH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return o(t,e),t.prototype.createLine=function(e,t,n){return new vH(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var o=t[r-1],a=t[r];i+=We(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(a+1,r-1);for(o=s;o>=0;o--)if(i[o]<=t)break;o=Math.min(o,r-2)}else{for(o=a;o<r;o++)if(i[o]>t)break;o=Math.min(o-1,r-2)}var l=(t-i[o])/(i[o+1]-i[o]),u=n[o],c=n[o+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var d=c[0]-u[0],h=c[1]-u[1];e.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(fH);const yH=mH;var xH=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),_H=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xH},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){e.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(e.moveTo(s,l),r>0){var d=(s+u)/2-(l-c)*r,h=(l+c)/2-(u-s)*r;e.quadraticCurveTo(d,h,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],d=1;d<l;d++){var h=i[s++],p=i[s++];if(Ml(u,c,h,p,o,e,t))return a}a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++],h=i[s++],p=i[s++];if(r>0){var f=(u+h)/2-(c-p)*r,g=(c+p)/2-(h-u)*r;if(Il(u,c,f,g,h,p,o,e,t))return a}else if(Ml(u,c,h,p,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];i=Math.min(l,i),o=Math.max(l,o),r=Math.min(u,r),a=Math.max(u,a)}e=this._rect=new oo(i,r,o,a)}return e},t}(Yl),bH=function(){function e(){this.group=new Lo}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new _H({cursor:"default"});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var o=Lu(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const wH=bH;var SH={seriesType:"lines",plan:Nv(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var d=0,h=[];for(c=r.start;c<r.end;c++){var p=e.getLineCoords(c,a);n&&(s[d++]=p);for(var f=0;f<p;f++)h=t.dataToPoint(a[f],!1,h),s[d++]=h[0],s[d++]=h[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),v=(p=e.getLineCoords(c,a),[]);if(n)for(var m=0;m<p;m++)v.push(t.dataToPoint(a[m]));else{v[0]=t.dataToPoint(a[0]),v[1]=t.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*y,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*y])}o.setItemLayout(c,v)}}}}}};const MH=SH;var CH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),o=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=e.get("clip",!0)&&ZI(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=MH.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new wH:new zF(r?i?yH:vH:i?fH:RF),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(nx);const IH=CH;var TH="undefined"===typeof Uint32Array?Array:Uint32Array,kH="undefined"===typeof Float64Array?Array:Float64Array;function AH(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=G(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),N([n,e[0],e[1]])})))}var DH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(t,e),t.prototype.init=function(t){t.data=t.data||[],AH(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(AH(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Se(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Se(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(e);for(r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),ne(e[0])){for(var n=e.length,i=new TH(n),r=new kH(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];i[a++]=o+t,i[a++]=u;for(var c=0;c<u;c++){var d=e[l++],h=e[l++];r[o++]=d,r[o++]=h}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new JC(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getItemModel(e),o=r.get("name");if(o)return o;var a=r.get("fromName"),s=r.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),iv("nameValue",{name:l.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Ov);const LH=DH;function PH(e){return e instanceof Array||(e=[e,e]),e}var OH={seriesType:"lines",reset:function(e){var t=PH(e.get("symbol")),n=PH(e.get("symbolSize")),i=e.getData();function r(e,t){var n=e.getItemModel(t),i=PH(n.getShallow("symbol",!0)),r=PH(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}};const RH=OH;function EH(e){e.registerChartView(IH),e.registerSeriesModel(LH),e.registerLayout(MH),e.registerVisual(RH)}var NH=256,FH=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=x.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),h=e.length;c.width=t,c.height=n;for(var p=0;p<h;++p){var f=e[p],g=f[0],v=f[1],m=f[2],y=i(m);d.globalAlpha=y,d.drawImage(a,g-u,v-u)}if(!c.width||!c.height)return c;var x=d.getImageData(0,0,c.width,c.height),_=x.data,b=0,w=_.length,S=this.minOpacity,M=this.maxOpacity,C=M-S;while(b<w){y=_[b+3]/256;var I=4*Math.floor(y*(NH-1));if(y>0){var T=o(y)?s:l;y>0&&(y=y*C+S),_[b++]=T[I],_[b++]=T[I+1],_[b++]=T[I+2],_[b++]=T[I+3]*y*256}else b+=4}return d.putImageData(x,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=x.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}();const BH=FH;function VH(e,t,n){var i=e[1]-e[0];t=G(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){var i;for(i=o;i<r;i++){var a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}function zH(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function qH(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var HH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):qH(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(qH(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Zy(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,u=e.coordinateSystem,c=$I(u,"cartesian2d");if(c){var d=u.getAxis("x"),h=u.getAxis("y");0,o=d.getBandWidth()+.5,a=h.getBandWidth()+.5,s=d.scale.getExtent(),l=h.scale.getExtent()}for(var p=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),v=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),x=ld(e),_=e.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=n;C<i;C++){var I=void 0,T=f.getItemVisual(C,"style");if(c){var k=f.get(M[0],C),A=f.get(M[1],C);if(isNaN(f.get(M[2],C))||k<s[0]||k>s[1]||A<l[0]||A>l[1])continue;var D=u.dataToPoint([k,A]);I=new hu({shape:{x:D[0]-o/2,y:D[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(M[1],C)))continue;I=new hu({z2:1,shape:u.dataToRect([f.get(M[0],C)]).contentShape,style:T})}if(f.hasItemOption){var L=f.getItemModel(C),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),v=L.getModel(["blur","itemStyle"]).getItemStyle(),m=L.getModel(["select","itemStyle"]).getItemStyle(),y=L.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=ld(L)}I.shape.r=y;var O=e.getRawValue(C),R="-";O&&null!=O[2]&&(R=O[2]+""),sd(I,x,{labelFetcher:e,labelDataIndex:C,defaultOpacity:T.opacity,defaultText:R}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=v,I.ensureState("select").style=m,Ec(I,b,w,S),I.incremental=r,r&&(I.states.emphasis.hoverLayer=!0),p.add(I),f.setItemGraphicEl(C,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new BH;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),d=Math.max(l.y,0),h=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=h-c,g=p-d,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(v,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=c,r[1]-=d,r.push(i),r})),y=n.getExtent(),x="visualMap.continuous"===n.type?zH(y,n.option.range):VH(y,n.getPieceList(),n.option.selected);s.update(m,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new iu({style:{width:f,height:g,x:c,y:d,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(nx);const WH=HH;var GH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getInitialData=function(e,t){return vI(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=ef.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ov);const UH=GH;function jH(e){e.registerChartView(WH),e.registerSeriesModel(UH)}var ZH=["itemStyle","borderWidth"],$H=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],YH=new lm,XH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:$H[+l],categoryDim:$H[1-+l]};return r.diff(o).add((function(e){if(r.hasValue(e)){var t=lW(r,e),n=KH(r,e,t,c),o=dW(r,c,n);r.setItemGraphicEl(e,o),i.add(o),mW(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=lW(r,e),s=KH(r,e,a,c),l=fW(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?hW(n,c,s):n=dW(r,c,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),mW(n,c,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&pW(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){pW(i,Lu(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(nx);function KH(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),h={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};JH(n,o,r,i,h),eW(e,t,r,o,a,h.boundingLength,h.pxSign,c,i,h),tW(n,h.symbolScale,u,i,h);var p=h.symbolSize,f=y_(n.get("symbolOffset"),p);return nW(n,p,r,o,a,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function JH(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(J(s)){var d=[QH(l,s[0])-u,QH(l,s[1])-u];d[1]<d[0]&&d.reverse(),o=d[c]}else o=null!=s?QH(l,s)-u:t?i.coordSysExtent[a.index][c]-u:n[a.wh];r.boundingLength=o,t&&(r.repeatCutLength=n[a.wh]),r.pxSign=o>0?1:-1}function QH(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function eW(e,t,n,i,r,o,a,s,l,u){var c,d=l.valueDim,h=l.categoryDim,p=Math.abs(n[h.wh]),f=e.getItemVisual(t,"symbolSize");c=J(f)?f.slice():null==f?["100%","100%"]:[f,f],c[h.index]=Wo(c[h.index],p),c[d.index]=Wo(c[d.index],i?p:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[d.index]*=(l.isHorizontal?-1:1)*a}function tW(e,t,n,i,r){var o=e.get(ZH)||0;o&&(YH.attr({scaleX:t[0],scaleY:t[1],rotation:n}),YH.updateTransform(),o/=YH.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}function nW(e,t,n,i,r,o,a,s,l,u,c,d){var h=c.categoryDim,p=c.valueDim,f=d.pxSign,g=Math.max(t[p.index]+s,0),v=g;if(i){var m=Math.abs(l),y=de(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var _=Wo(y,t[p.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=la(i),M=S?i:yW((m+w)/b),C=m-M*g;_=C/2/(x?M:Math.max(M-1,1)),b=g+2*_,w=x?0:2*_,S||"fixed"===i||(M=u?yW((Math.abs(u)+w)/b):0),v=M*b-w,d.repeatTimes=M,d.symbolMargin=_}var I=f*(v/2),T=d.pathPosition=[];T[h.index]=n[h.wh]/2,T[p.index]="start"===a?I:"end"===a?l-I:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var k=d.bundlePosition=[];k[h.index]=n[h.xy],k[p.index]=n[p.xy];var A=d.barRectShape=F({},n);A[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(T[p.index]+I)),A[h.wh]=n[h.wh];var D=d.clipShape={};D[h.xy]=-n[h.xy],D[h.wh]=c.ecSize[h.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}function iW(e){var t=e.symbolPatternSize,n=v_(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function rW(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,d=o[t.valueDim.index]+a+2*n.symbolMargin;for(gW(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?vW(e,null,f(c),n,i):vW(e,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(e)})),c++}));c<u;c++){var h=iW(n);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,r.add(h);var p=f(c);vW(h,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(e){var t=s.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-e),t[l.index]=d*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function oW(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?vW(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=iW(n),r.add(o),vW(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function aW(e,t,n){var i=F({},t.barRectShape),r=e.__pictorialBarRect;r?vW(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new hu({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,e.add(r))}function sW(e,t,n,r){if(n.symbolClip){var o=e.__pictorialClipPath,a=F({},n.clipShape),s=t.valueDim,l=n.animationModel,u=n.dataIndex;if(o)Xc(o,{shape:a},l,u);else{a[s.wh]=0,o=new hu({shape:a}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var c={};c[s.wh]=n.clipShape[s.wh],i[r?"updateProps":"initProps"](o,{shape:c},l,u)}}}function lW(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=uW,n.isAnimationEnabled=cW,n}function uW(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function cW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function dW(e,t,n,i){var r=new Lo,o=new Lo;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?rW(r,t,n):oW(r,t,n),aW(r,n,i),sW(r,t,n,i),r.__pictorialShapeStr=fW(e,n),r.__pictorialSymbolMeta=n,r}function hW(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;Xc(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?rW(e,t,n,!0):oW(e,t,n,!0),aW(e,n,!0),sW(e,t,n,!0)}function pW(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];gW(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),W(o,(function(e){Qc(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function fW(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function gW(e,t,n){W(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function vW(e,t,n,r,o,a){t&&e.attr(t),r.symbolClip&&!o?n&&e.attr(n):n&&i[o?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function mW(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),d=o.get("blurScope"),h=o.get("scale");gW(e,(function(e){if(e instanceof iu){var t=e.style;e.useStyle(F({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,h&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;sd(f,ld(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:xI(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Ec(e,c,d,o.get("disabled"))}function yW(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const xW=XH;var _W=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return o(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Bd(RT.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(RT);const bW=_W;function wW(e){e.registerChartView(xW),e.registerSeriesModel(bW),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,K(kT,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AT("pictorialBar"))}var SW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return o(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var d=new wC(this._layersSeries||[],a,c,c),h=[];function p(t,n,s){var l=r._layers;if("remove"!==t){for(var u,c,d=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var v=i.getItemLayout(f[g]),m=v.x,y=v.y0,x=v.y;d.push(m,y),p.push(m,y+x),u=i.getItemVisual(f[g],"style")}var _=i.getItemLayout(f[0]),b=e.getModel("label"),w=b.get("margin"),S=e.getModel("emphasis");if("add"===t){var M=h[n]=new Lo;c=new GI({shape:{points:d,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M.add(c),o.add(M),e.isAnimationEnabled()&&c.setClipPath(MW(c.getBoundingRect(),e,(function(){c.removeClipPath()})))}else{M=l[s];c=M.childAt(0),o.add(M),h[n]=M,Xc(c,{shape:{points:d,stackedOnPoints:p}},e),nd(c)}sd(c,ld(e),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var C=c.getTextContent();C&&(C.x=_.x-w,C.y=_.y0+_.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),Vc(c,e),Ec(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else o.remove(l[n])}d.add(X(p,this,"add")).update(X(p,this,"update")).remove(X(p,this,"remove")).execute(),this._layersSeries=a,this._layers=h},t.type="themeRiver",t}(nx);function MW(e,t,n){var i=new hu({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Kc(i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}const CW=SW;var IW=2,TW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rk(X(this.getData,this),X(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=Za(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),r=[];i.buckets.each((function(e,t){r.push({name:t,dataList:e})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",qa).models[0],i=n.get("type"),r=j(e.data,(function(e){return void 0!==e[2]})),o=this.fixData(r||[]),a=[],s=this.nameMap=we(),l=0,u=0;u<o.length;++u)a.push(o[u][IW]),s.get(o[u][IW])||(s.set(o[u][IW],l),l++);var c=QC(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:IC(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new JC(c,this);return d.initData(o),d},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),o=Za(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(r,t)-e.get(r,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){J(e)||(e=e?[e]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,d=o[l].indices.length,h=0;h<d;++h){var p=r.get(e[0],o[l].indices[h]),f=Math.abs(p-t);f<=u&&(i=p,u=f,c=o[l].indices[h])}a.push(c)}return{dataIndices:a,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getName(e),o=i.get(i.mapDimension("value"),e);return iv("nameValue",{name:r,value:o})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Ov);const kW=TW;function AW(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=e.get("boundaryGap"),a=n.getAxis();if(i.boundaryGap=o,"horizontal"===a.orient){o[0]=Wo(o[0],r.height),o[1]=Wo(o[1],r.height);var s=r.height-o[0]-o[1];DW(t,e,s)}else{o[0]=Wo(o[0],r.width),o[1]=Wo(o[1],r.width);var l=r.width-o[0]-o[1];DW(t,e,l)}t.setLayout("layoutInfo",i)}))}function DW(e,t,n){if(e.count())for(var i,r=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=G(o,(function(t){return G(t.indices,(function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),u=LW(l),c=u.y0,d=n/u.max,h=o.length,p=o[0].indices.length,f=0;f<p;++f){i=c[f]*d,e.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*d});for(var g=1;g<h;++g)i+=l[g-1][f][1]*d,e.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*d})}}function LW(e){for(var t=e.length,n=e[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var c=0;c<n;++c){var d=i[c]+r[c];d>o&&(o=d)}return{y0:r,max:o}}function PW(e){e.registerChartView(CW),e.registerSeriesModel(kW),e.registerLayout(AW),e.registerProcessor(bk("themeRiver"))}var OW=2,RW=4,EW=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=OW,o.textConfig={inside:!0},Lu(o).seriesIndex=n.seriesIndex;var a=new Du({z2:RW,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return o(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Lu(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=F({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var d=t.getVisual("decal");d&&(c.decal=ob(d,r));var h=kk(a.getModel("itemStyle"),u,!0);F(u,h),W(zu,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=kk(n,u);i&&(t.shape=i)})),e?(o.setShape(u),o.shape.r=l.r0,Xc(o,{shape:{r:l.r}},n,t.dataIndex)):(Xc(o,{shape:u},n),nd(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),g="ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Ec(this,g,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),d=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=h&&Math.abs(o)<h);function f(e,t){var n=e.get(t);return null==n?i.get(t):n}c.ignore=!p,W(qu,(function(i){var h="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,g=p?c:c.ensureState(i),v=e.getFormattedLabel(d,i);p&&(v=v||t.node.name),g.style=ud(h,{},null,"normal"!==i,!0),v&&(g.style.text=v);var m=h.get("show");null==m||p||(g.ignore=!m);var y,x=f(h,"position"),_=p?u:u.states[i],b=_.style.fill;_.textConfig={outsideFill:"inherit"===h.get("color")?b:null,inside:"outside"!==x};var w=f(h,"distance")||0,S=f(h,"align");"outside"===x?(y=r.r+w,S=a>Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(y=r.r0+w,a>Math.PI/2&&(S="right")):"right"===S&&(y=r.r-w,a>Math.PI/2&&(S="left")):(y=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(h,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var M=f(h,"rotate"),C=0;"radial"===M?(C=-a,C<-Math.PI/2&&(C+=Math.PI)):"tangential"===M?(C=Math.PI/2-a,C>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI)):ne(M)&&(C=M*Math.PI/180),g.rotation=C})),c.dirtyStyle()},t}(Am);const NW=EW;var FW="sunburstRootToNode",BW="sunburstHighlight",VW="sunburstUnhighlight";function zW(e){e.registerAction({type:FW,update:"updateView"},(function(e,t){function n(t,n){var i=oE(e,[FW],t);if(i){var r=t.getViewRoot();r&&(e.direction=sE(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:BW,update:"none"},(function(e,t,n){function i(t){var n=oE(e,[BW],t);n&&(e.dataIndex=n.node.dataIndex)}e=F({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(F(e,{type:"highlight"}))})),e.registerAction({type:VW,update:"updateView"},(function(e,t,n){e=F({},e),n.dispatchAction(F(e,{type:"downplay"}))}))}var qW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var d=this._oldChildren||[];function h(e,t){function n(e){return e.getId()}function i(n,i){var r=null==n?null:e[n],o=null==i?null:t[i];p(r,o)}0===e.length&&0===t.length||new wC(t,e,n,n).add(i).update(i).remove(K(i,null)).execute()}function p(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):f(r);else if(i){var s=new NW(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function f(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function g(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new NW(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}h(c,d),g(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Hh(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:FW,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="sunburst",t}(nx);const HW=qW;var WW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return o(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};GW(n);var i=this._levelModels=G(e.levels||[],(function(e){return new Od(e,this,t)}),this),r=rE.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=lE(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){_E(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Ov);function GW(e){var t=0;W(e.children,(function(e){GW(e);var n=e.value;J(n)&&(n=n[0]),t+=n}));var n=e.value;J(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),J(e.value)?e.value[0]=n:e.value=n}const UW=WW;var jW=Math.PI/180;function ZW(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");J(i)||(i=[0,i]),J(t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Wo(t[0],r),l=Wo(t[1],o),u=Wo(i[0],a/2),c=Wo(i[1],a/2),d=-e.get("startAngle")*jW,h=e.get("minAngle")*jW,p=e.getData().tree.root,f=e.getViewRoot(),g=f.depth,v=e.get("sort");null!=v&&$W(f,v);var m=0;W(f.children,(function(e){!isNaN(e.getValue())&&m++}));var y=f.getValue(),x=Math.PI/(y||m)*2,_=f.depth>0,b=f.height-(_?-1:1),w=(c-u)/(b||1),S=e.get("clockwise"),M=e.get("stillShowZeroSum"),C=S?1:-1,I=function(t,n){if(t){var i=n;if(t!==p){var r=t.getValue(),o=0===y&&M?x:r*x;o<h&&(o=h),i=n+C*o;var c=t.depth-g-(_?-1:1),d=u+w*c,f=u+w*(c+1),v=e.getLevelModel(t);if(v){var m=v.get("r0",!0),b=v.get("r",!0),T=v.get("radius",!0);null!=T&&(m=T[0],b=T[1]),null!=m&&(d=Wo(m,a/2)),null!=b&&(f=Wo(b,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:d,r:f})}if(t.children&&t.children.length){var k=0;W(t.children,(function(e){k+=I(e,n+k)}))}return i-n}};if(_){var T=u,k=u+w,A=2*Math.PI;p.setLayout({angle:A,startAngle:d,endAngle:d+A,clockwise:S,cx:s,cy:l,r0:T,r:k})}I(f,d)}))}function $W(e,t){var n=e.children||[];e.children=YW(n,t),n.length&&W(e.children,(function(e){$W(e,t)}))}function YW(e,t){if(Q(t)){var n=G(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),G(n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}function XW(e){var t={};function n(e,n,i){var r=e;while(r&&r.depth>1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&ee(o)&&(o=ti(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,e,i.root.height));var s=t.ensureUniqueItemVisual(r.dataIndex,"style");F(s,a)}))}))}function KW(e){e.registerChartView(HW),e.registerSeriesModel(UW),e.registerLayout(K(ZW,"sunburst")),e.registerProcessor(K(bk,"sunburst")),e.registerVisual(XW),zW(e)}var JW={color:"fill",borderColor:"stroke"},QW={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},eG=Fa(),tG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return vI(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=eG(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Ov);const nG=tG;function iG(e,t){return t=t||[0,0],G(["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function rG(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:X(iG,e)}}}function oG(e,t){return t=t||[0,0],G([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function aG(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:X(oG,e)}}}function sG(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function lG(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:X(sG,e)}}}function uG(e,t){return t=t||[0,0],G(["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=t[i],s=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function cG(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:X(uG,e)}}}function dG(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function hG(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Ie(e,"text")))}function pG(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},Ie(a,"text")&&(o.text=a.text),Ie(a,"rich")&&(o.rich=a.rich),Ie(a,"textFill")&&(o.fill=a.textFill),Ie(a,"textStroke")&&(o.stroke=a.textStroke),Ie(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Ie(a,"fontSize")&&(o.fontSize=a.fontSize),Ie(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Ie(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Ie(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Ie(a,"textPosition")&&(i.position=a.textPosition),Ie(a,"textOffset")&&(i.offset=a.textOffset),Ie(a,"textRotation")&&(i.rotation=a.textRotation),Ie(a,"textDistance")&&(i.distance=a.textDistance)}return fG(o,e),W(o.rich,(function(e){fG(e,e)})),{textConfig:i,textContent:r}}function fG(e,t){t&&(t.font=t.textFont||t.font,Ie(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Ie(t,"textAlign")&&(e.align=t.textAlign),Ie(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Ie(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Ie(t,"textWidth")&&(e.width=t.textWidth),Ie(t,"textHeight")&&(e.height=t.textHeight),Ie(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Ie(t,"textPadding")&&(e.padding=t.textPadding),Ie(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Ie(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Ie(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Ie(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Ie(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Ie(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Ie(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function gG(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";vG(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,W(t.rich,(function(e){vG(e,e)})),i}function vG(e,t){t&&(Ie(t,"fill")&&(e.textFill=t.fill),Ie(t,"stroke")&&(e.textStroke=t.fill),Ie(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Ie(t,"font")&&(e.font=t.font),Ie(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Ie(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Ie(t,"fontSize")&&(e.fontSize=t.fontSize),Ie(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Ie(t,"align")&&(e.textAlign=t.align),Ie(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Ie(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Ie(t,"width")&&(e.textWidth=t.width),Ie(t,"height")&&(e.textHeight=t.height),Ie(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Ie(t,"padding")&&(e.textPadding=t.padding),Ie(t,"borderColor")&&(e.textBorderColor=t.borderColor),Ie(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Ie(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Ie(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Ie(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Ie(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Ie(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Ie(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Ie(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Ie(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Ie(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var mG={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},yG=$(mG),xG=(U(Ur,(function(e,t){return e[t]=1,e}),{}),Ur.join(", "),["","style","shape","extra"]),_G=Fa();function bG(e,t,n,i,r){var o=e+"Animation",a=$c(e,i,r)||{},s=_G(t).userDuring;return a.duration>0&&(a.during=s?X(LG,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),F(a,n[o]),a}function wG(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=_G(e),u=t.style;l.userDuring=t.during;var c={},d={};if(EG(e,t,d),OG("shape",t,d),OG("extra",t,d),!o&&s&&(RG(e,t,c),PG("shape",e,t,c),PG("extra",e,t,c),NG(e,t,u,c)),d.style=u,IG(e,d,a),kG(e,t),s)if(o){var h={};W(xG,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(h[e]=h[e]||{}),F(e?h[e]:h,n.enterFrom))}));var p=bG("enter",e,t,n,r);p.duration>0&&e.animateFrom(h,p)}else TG(e,t,r||0,n,c);SG(e,t),u?e.dirty():e.markRedraw()}function SG(e,t){for(var n=_G(e).leaveToProps,i=0;i<xG.length;i++){var r=xG[i],o=r?t[r]:t;o&&o.leaveTo&&(n||(n=_G(e).leaveToProps={}),r&&(n[r]=n[r]||{}),F(r?n[r]:n,o.leaveTo))}}function MG(e,t,n,i){if(e){var r=e.parent,o=_G(e).leaveToProps;if(o){var a=bG("update",e,t,n,0);a.done=function(){r.remove(e),i&&i()},e.animateTo(o,a)}else r.remove(e),i&&i()}}function CG(e){return"all"===e}function IG(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var r=e.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}function TG(e,t,n,i,r){if(r){var o=bG("update",e,t,i,n);o.duration>0&&e.animateFrom(r,o)}}function kG(e,t){Ie(t,"silent")&&(e.silent=t.silent),Ie(t,"ignore")&&(e.ignore=t.ignore),e instanceof Hs&&Ie(t,"invisible")&&(e.invisible=t.invisible),e instanceof Yl&&Ie(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var AG={},DG={setTransform:function(e,t){return AG.el[e]=t,this},getTransform:function(e){return AG.el[e]},setShape:function(e,t){var n=AG.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=AG.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=AG.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=AG.el.style;if(t)return t[e]},setExtra:function(e,t){var n=AG.el.extra||(AG.el.extra={});return n[e]=t,this},getExtra:function(e){var t=AG.el.extra;if(t)return t[e]}};function LG(){var e=this,t=e.el;if(t){var n=_G(t).userDuring,i=e.userDuring;n===i?(AG.el=t,i(DG)):e.el=e.userDuring=null}}function PG(e,t,n,i){var r=n[e];if(r){var o,a=t[e];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),CG(l))F(o,a);else for(var u=ga(l),c=0;c<u.length;c++){var d=u[c],h=a[d];o[d]=h}else if(CG(s)||V(s,e)>=0){!o&&(o=i[e]={});var p=$(a);for(c=0;c<p.length;c++){d=p[c],h=a[d];FG(r[d],h)&&(o[d]=h)}}}}}function OG(e,t,n){var i=t[e];if(i)for(var r=n[e]={},o=$(i),a=0;a<o.length;a++){var s=o[a];r[s]=Fi(i[s])}}function RG(e,t,n){for(var i=t.transition,r=CG(i)?Ur:ga(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];0,n[a]=s}}}function EG(e,t,n){for(var i=0;i<yG.length;i++){var r=yG[i],o=mG[r],a=t[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<Ur.length;i++){var s=Ur[i];null!=t[s]&&(n[s]=t[s])}}function NG(e,t,n,i){if(n){var r,o=e.style;if(o){var a=n.transition,s=t.transition;if(a&&!CG(a)){var l=ga(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=l[u],d=o[c];r[c]=d}}else if(e.getAnimationStyleProps&&(CG(s)||CG(a)||V(s,"style")>=0)){var h=e.getAnimationStyleProps(),p=h?h.style:null;if(p){!r&&(r=i.style={});var f=$(n);for(u=0;u<f.length;u++){c=f[u];if(p[c]){d=o[c];r[c]=d}}}}}}}function FG(e,t){return H(e)?e!==t:null!=e&&isFinite(e)}var BG=Fa(),VG=["percent","easing","shape","style","extra"];function zG(e){e.stopAnimation("keyframe"),e.attr(BG(e))}function qG(e,t,n){if(n.isAnimationEnabled()&&t)if(J(t))W(t,(function(t){qG(e,t,n)}));else{var i=t.keyframes,r=t.duration;if(n&&null==r){var o=$c("enter",n,0);r=o&&o.duration}if(i&&r){var a=BG(e);W(xG,(function(n){if(!n||e[n]){var o;i.sort((function(e,t){return e.percent-t.percent})),W(i,(function(i){var s=e.animators,l=n?i[n]:i;if(l){var u=$(l);if(n||(u=j(u,(function(e){return V(VG,e)<0}))),u.length){o||(o=e.animate(n,t.loop,!0),o.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var d=n?a[n]:a;W(u,(function(t){d[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(r*i.percent,l,u,i.easing)}}})),o&&o.delay(t.delay||0).duration(r).start(t.easing)}}))}}}var HG="emphasis",WG="normal",GG="blur",UG="select",jG=[WG,HG,GG,UG],ZG={normal:["itemStyle"],emphasis:[HG,"itemStyle"],blur:[GG,"itemStyle"],select:[UG,"itemStyle"]},$G={normal:["label"],emphasis:[HG,"label"],blur:[GG,"label"],select:[UG,"label"]},YG=["x","y"],XG="e\0\0",KG={normal:{},emphasis:{},blur:{},select:{}},JG={cartesian2d:rG,geo:aG,single:lG,polar:cG,calendar:dG};function QG(e){return e instanceof Yl}function eU(e){return e instanceof Hs}function tU(e,t){t.copyTransform(e),eU(t)&&eU(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,QG(t)&&QG(e)&&t.setShape(e.shape))}var nU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._data,o=e.getData(),a=this.group,s=uU(e,o,t,n);r||a.removeAll(),o.diff(r).add((function(t){dU(n,null,t,s(t,i),e,a,o)})).remove((function(t){var n=r.getItemGraphicEl(t);MG(n,eG(n).option,e)})).update((function(t,l){var u=r.getItemGraphicEl(l);dU(n,u,t,s(t,i),e,a,o)})).execute();var l=e.get("clip",!0)?ZI(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,r){var o=t.getData(),a=uU(t,o,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=dU(null,null,u,a(u,r),t,this.group,o);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){Zy(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var r=t.element;if(null==r||n.name===r)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===r)return!0;return!1},t.type="custom",t}(nx);const iU=nU;function rU(e){var t,n=e.type;if("path"===n){var i=e.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=MU(i);t=My(o,null,r,i.layout||"center"),eG(t).customPathData=o}else if("image"===n)t=new iu({}),eG(t).customImagePath=e.style.image;else if("text"===n)t=new Du({});else if("group"===n)t=new Lo;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Sy(n);if(!a){var s="";0,vg(s)}t=new a}return eG(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function oU(e,t,n,i,r,o,a){zG(t);var s=r&&r.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=YG);var l=i&&i.style;if(l){if("text"===t.type){var u=l;Ie(u,"textFill")&&(u.fill=u.textFill),Ie(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=QG(t)?l.decal:null;e&&d&&(d.dirty=!0,c=ob(d,e)),l.__decalPattern=c}if(eU(t)&&l){c=l.__decalPattern;c&&(l.decal=c)}wG(t,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),qG(t,i.keyframeAnimation,o)}function aU(e,t,n,i,r){var o=t.isGroup?null:t,a=r&&r[e].cfg;if(o){var s=o.ensureState(e);if(!1===i){var l=o.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),pc(o)}}function sU(e,t,n){if(!e.isGroup){var i=e,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=t.z2;null!=a&&(i.z2=a||0);for(var s=0;s<jG.length;s++)lU(i,t,jG[s])}}function lU(e,t,n){var i,r=n===WG,o=r?t:mU(t,n),a=o?o.z2:null;null!=a&&(i=r?e:e.ensureState(n),i.z2=a||0)}function uU(e,t,n,i){var r=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):JG[o.type](o));for(var s,l,u=B({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:_,style:w,ordinalRawValue:b,styleEmphasis:S,visual:I,barLayout:T,currentSeriesIndices:k,font:A},a.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:cU(e.getData())},d={},h={},p={},f={},g=0;g<jG.length;g++){var v=jG[g];p[v]=e.getModel(ZG[v]),f[v]=e.getModel($G[v])}function m(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=m(e).getModel(ZG[n])):m(e).getModel(ZG[n]):p[n]}function x(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=m(e).getModel($G[n])):m(e).getModel($G[n]):f[n]}return function(e,n){return s=e,l=null,d={},h={},r&&r(B({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),u)};function _(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)}function b(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function w(n,i){null==i&&(i=s);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=y(i,WG).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:ee(o)?o:"#000"},c=x(i,WG),d=ud(c,null,u,!1,!0);d.text=c.getShallow("show")?he(e.getFormattedLabel(i,WG),xI(t,i)):null;var h=cd(c,u,!1);return C(n,l),l=gG(l,d,h),n&&M(l,n),l.legacy=!0,l}function S(n,i){null==i&&(i=s);var r=y(i,HG).getItemStyle(),o=x(i,HG),a=ud(o,null,null,!0,!0);a.text=o.getShallow("show")?pe(e.getFormattedLabel(i,HG),e.getFormattedLabel(i,WG),xI(t,i)):null;var l=cd(o,null,!0);return C(n,r),r=gG(r,a,l),n&&M(r,n),r.legacy=!0,r}function M(e,t){for(var n in t)Ie(t,n)&&(e[n]=t[n])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function I(e,n){if(null==n&&(n=s),Ie(JW,e)){var i=t.getItemVisual(n,"style");return i?i[JW[e]]:null}if(Ie(QW,e))return t.getItemVisual(n,e)}function T(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return wT(B({axis:t},e))}}function k(){return n.getCurrentSeriesIndices()}function A(e){return md(e,n)}}function cU(e){var t={};return W(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function dU(e,t,n,i,r,o,a){if(i){var s=hU(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Ec(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function hU(e,t,n,i,r,o){var a=-1,s=t;t&&pU(t,i,r)&&(a=V(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=rU(i),s&&tU(s,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),KG.normal.cfg=KG.normal.conOpt=KG.emphasis.cfg=KG.emphasis.conOpt=KG.blur.cfg=KG.blur.conOpt=KG.select.cfg=KG.select.conOpt=null,KG.isLegacy=!1,gU(u,n,i,r,l,KG),fU(u,n,i,r,l),oU(e,u,n,i,KG,r,l),Ie(i,"info")&&(eG(u).info=i.info);for(var c=0;c<jG.length;c++){var d=jG[c];if(d!==WG){var h=mU(i,d),p=yU(i,h,d);aU(d,u,h,p,KG)}}return sU(u,i,r),"group"===i.type&&xU(e,u,n,i,r),a>=0?o.replaceAt(u,a):o.add(u),u}function pU(e,t,n){var i=eG(e),r=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&CU(o)&&MU(o)!==i.customPathData||"image"===r&&Ie(a,"image")&&a.image!==i.customImagePath}function fU(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&pU(a,o,i)&&(a=null),a||(a=rU(o),e.setClipPath(a)),oU(null,a,t,o,null,i,r)}}function gU(e,t,n,i,r,o){if(!e.isGroup){vU(n,null,o),vU(n,HG,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=rU(a),e.setTextContent(c)),oU(null,c,t,a,null,i,r);for(var d=a&&a.style,h=0;h<jG.length;h++){var p=jG[h];if(p!==WG){var f=o[p].conOpt;aU(p,c,f,yU(a,f,p),null)}}d?c.dirty():c.markRedraw()}}}}function vU(e,t,n){var i=t?mU(e,t):e,r=t?yU(e,i,HG):e.style,o=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?mU(s,t):s:null;if(r&&(n.isLegacy||hG(r,o,!!a,!!l))){n.isLegacy=!0;var u=pG(r,o,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var d=t?n[t]:n.normal;d.cfg=a,d.conOpt=l}function mU(e,t){return t?e?e[t]:null:e}function yU(e,t,n){var i=t&&t.style;return null==i&&n===HG&&e&&(i=e.styleEmphasis),i}function xU(e,t,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u)if(l)_U({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:t});else{u&&t.removeAll();for(var c=0;c<a;c++)o[c]&&hU(e,t.childAt(c),n,o[c],r,t);for(var d=t.childCount()-1;d>=c;d--){var h=t.childAt(d);MG(h,eG(t).option,r)}}}function _U(e){new wC(e.oldChildren,e.newChildren,bU,bU,e).add(wU).update(wU).remove(SU).execute()}function bU(e,t){var n=e&&e.name;return null!=n?n:XG+t}function wU(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;hU(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function SU(e){var t=this.context,n=t.oldChildren[e];MG(n,eG(n).option,t.seriesModel)}function MU(e){return e&&(e.pathData||e.d)}function CU(e){return e&&(Ie(e,"pathData")||Ie(e,"d"))}function IU(e){e.registerChartView(iU),e.registerSeriesModel(nG)}var TU=Fa(),kU=R,AU=X,DU=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=K(LU,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new Lo,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);EU(a,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=xL(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,r){var o=t.pointer;if(o){var a=TU(e).pointerEl=new i[o.type](kU(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=TU(e).labelEl=new Du(kU(t.label));e.add(r),OU(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=TU(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=TU(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),OU(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=zy(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){bt(e.event)},onmousedown:AU(this._onHandleDragMove,this,0,0),drift:AU(this._onHandleDragMove,this),ondragend:AU(this._onHandleDragEnd,this)}),i.add(r)),EU(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");J(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,sx(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){LU(this._axisPointerModel,!t&&this._moveAnimation,this._handle,RU(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(RU(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(RU(i)),TU(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),lx(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function LU(e,t,n,i){PU(TU(n).lastProp,i)||(TU(n).lastProp=i,t?Xc(n,i,e):(n.stopAnimation(),n.attr(i)))}function PU(e,t){if(ie(e)&&ie(t)){var n=!0;return W(t,(function(t,i){n=n&&PU(e[i],t)})),!!n}return e===t}function OU(e,t){e[t.get(["label","show"])?"show":"hide"]()}function RU(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function EU(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}const NU=DU;function FU(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function BU(e,t,n,i,r){var o=n.get("value"),a=zU(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Lh(s.get("padding")||0),u=s.getFont(),c=uo(a,u),d=r.position,h=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(d[0]-=h),"center"===f&&(d[0]-=h/2);var g=r.verticalAlign;"bottom"===g&&(d[1]-=p),"middle"===g&&(d[1]-=p/2),VU(d,h,p,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:ud(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function VU(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function zU(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:sD(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};W(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&s.seriesData.push(r)})),ee(a)?o=a.replace("{value}",o):Q(a)&&(o=a(s))}return o}function qU(e,t,n){var i=kr();return Or(i,i,n.rotation),Pr(i,i,n.position),Oy([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function HU(e,t,n,i,r,o){var a=dL.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),BU(t,i,r,o,{position:qU(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function WU(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function GU(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function UU(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var jU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=ZU(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=FU(i),d=$U[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=HD(a.model,n);HU(t,e,h,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=HD(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=qU(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=ZU(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:h[l]}},t}(NU);function ZU(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var $U={line:function(e,t,n){var i=WU([t,n[0]],[t,n[1]],YU(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:GU([t-i/2,n[0]],[i,r],YU(e))}}};function YU(e){return"x"===e.dim?0:1}const XU=jU;var KU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="axisPointer",t.defaultOption={show:"auto",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}(op);const JU=KU;var QU=Fa(),ej=W;function tj(e,t,n){if(!c.node){var i=t.getZr();QU(i).records||(QU(i).records={}),nj(i,t);var r=QU(i).records[e]||(QU(i).records[e]={});r.handler=n}}function nj(e,t){function n(n,i){e.on(n,(function(n){var r=aj(t);ej(QU(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),ij(r.pendings,t)}))}QU(e).initialized||(QU(e).initialized=!0,n("click",K(oj,"click")),n("mousemove",K(oj,"mousemove")),n("globalout",rj))}function ij(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function rj(e,t,n){e.handler("leave",null,n)}function oj(e,t,n,i){t.handler(e,n,i)}function aj(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function sj(e,t){if(!c.node){var n=t.getZr(),i=(QU(n).records||{})[e];i&&(QU(n).records[e]=null)}}var lj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";tj("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){sj("axisPointer",t)},t.prototype.dispose=function(e,t){sj("axisPointer",t)},t.type="axisPointer",t}(Ev);const uj=lj;function cj(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Na(o,e);if(null==a||a<0||J(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,h=u.dim,p="x"===d||"radius"===d?1:0,f=o.mapDimension(h),g=[];g[p]=o.get(f,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(G(l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}var dj=Fa();function hj(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||X(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){wj(r)&&(r=cj({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=wj(r),u=o.axesInfo,c=s.axesInfo,d="leave"===i||wj(r),h={},p={},f={list:[],map:{}},g={showPointer:K(gj,p),showTooltip:K(vj,f)};W(s.coordSysMap,(function(e,t){var n=l||e.containPoint(r);W(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=_j(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&pj(e,a,g,!1,h)}}))}));var v={};return W(c,(function(e,t){var n=e.linkGroup;n&&!p[t]&&W(n.axesInfo,(function(t,i){var r=p[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,bj(t),bj(e)))),v[e.key]=o}}))})),W(v,(function(e,t){pj(c[t],e,g,!0,h)})),mj(p,c,h),yj(f,r,e,a),xj(c,a,n),h}}function pj(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=fj(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&F(r,s[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function fj(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return W(t.seriesModels,(function(t,l){var u,c,d=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var h=t.getAxisTooltipData(d,e,n);c=h.dataIndices,u=h.nestestValue}else{if(c=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null),!c.length)return;u=t.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,r=u,o.length=0),W(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function gj(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function vj(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=wL(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function mj(e,t,n){var i=n.axesInfo=[];W(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function yj(e,t,n,i){if(!wj(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function xj(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=dj(i)[r]||{},a=dj(i)[r]={};W(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&W(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];W(o,(function(e,t){!a[t]&&l.push(e)})),W(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function _j(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function bj(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function wj(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function Sj(e){CL.registerAxisPointerClass("CartesianAxisPointer",XU),e.registerComponentModel(JU),e.registerComponentView(uj),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!J(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=hL(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},hj)}function Mj(e){jw(FL),jw(Sj)}var Cj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(t),c=i.get("type");if(c&&"none"!==c){var d=FU(i),h=Tj[c](o,a,u,l);h.style=d,e.graphicKey=h.type,e.pointer=h}var p=i.get(["label","margin"]),f=Ij(t,n,i,a,p);BU(e,n,i,r,f)},t}(NU);function Ij(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=i.getRadiusAxis().getExtent();if("radius"===o.dim){var h=kr();Or(h,h,s),Pr(h,h,[i.cx,i.cy]),l=Oy([a,-r],h);var p=t.getModel("axisLabel").get("rotate")||0,f=dL.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=d[1];l=i.coordToPoint([g+r,a]);var v=i.cx,m=i.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-m)/g<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var Tj={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:WU(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:UU(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:UU(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const kj=Cj;var Aj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(op);const Dj=Aj;var Lj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",qa).models[0]},t.type="polarAxis",t}(op);q(Lj,Xk);var Pj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="angleAxis",t}(Lj),Oj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="radiusAxis",t}(Lj),Rj=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return o(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(VD);Rj.prototype.dataToRadius=VD.prototype.dataToCoord,Rj.prototype.radiusToData=VD.prototype.coordToData;const Ej=Rj;var Nj=Fa(),Fj=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return o(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=uo(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var d=Math.max(0,Math.floor(c)),h=Nj(e.model),p=h.lastAutoInterval,f=h.lastTickCount;return null!=p&&null!=f&&Math.abs(p-d)<=1&&Math.abs(f-r)<=1&&p>d?d=p:(h.lastTickCount=r,h.lastAutoInterval=d),d},t}(VD);Fj.prototype.dataToAngle=VD.prototype.dataToCoord,Fj.prototype.angleToData=VD.prototype.coordToData;const Bj=Fj;var Vj=["radius","angle"],zj=function(){function e(e){this.dimensions=Vj,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Ej,this._angleAxis=new Bj,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=l<o?1:-1;while(l<o||l>a)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},e.prototype.convertToPixel=function(e,t,n){var i=qj(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=qj(t);return i===this?this.pointToData(n):null},e}();function qj(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const Hj=zj;function Wj(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=Wo(i[0],r),e.cy=Wo(i[1],o);var a=e.getRadiusAxis(),s=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:J(l)||(l=[0,l]);var u=[Wo(l[0],s),Wo(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function Gj(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();W(hD(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),W(hD(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),iD(i.scale,i.model),iD(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function Uj(e){return"angleAxis"===e.mainType}function jj(e,t){if(e.type=t.get("type"),e.scale=rD(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),Uj(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var Zj={dimensions:Vj,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new Hj(i+"");r.update=Gj;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");jj(o,s),jj(a,l),Wj(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",qa).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}};const $j=Zj;var Yj=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xj(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Kj(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Jj(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var Qj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return o(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=G(n.getViewLabels(),(function(e){e=R(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));Jj(s),Jj(o),W(Yj,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||eZ[t](this.group,e,i,o,a,r,s)}),this)}},t.type="angleAxis",t}(CL),eZ={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=Kj(n),u=l?0:1;a=0===o[u]?new lm({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Pm({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Kj(n)],u=G(i,(function(e){return new Gm({shape:Xj(n,[l,l+s],e.coord)})}));e.add(Ty(u,{style:B(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Kj(n)],c=[],d=0;d<r.length;d++)for(var h=0;h<r[d].length;h++)c.push(new Gm({shape:Xj(n,[u,u+l],r[d][h].coord)}));e.add(Ty(c,{style:B(s.getModel("lineStyle").getLineStyle(),B(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");W(a,(function(i,r){var a=l,d=i.tickValue,h=o[Kj(n)],p=n.coordToPoint([h+u,i.coord]),f=n.cx,g=n.cy,v=Math.abs(p[0]-f)/h<.3?"center":p[0]>f?"left":"right",m=Math.abs(p[1]-g)/h<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[d]){var y=s[d];ie(y)&&y.textStyle&&(a=new Od(y.textStyle,l,l.ecModel))}var x=new Du({silent:dL.isLabelSilent(t),style:ud(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:m})});if(e.add(x),c){var _=dL.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,Lu(x).eventData=_}}),this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<i.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Gm({shape:Xj(n,o,i[d].coord)}))}for(d=0;d<c.length;d++)e.add(Ty(c[d],{style:B({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<r.length;u++)for(var c=0;c<r[u].length;c++)l.push(new Gm({shape:Xj(n,o,r[u][c].coord)}));e.add(Ty(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,r,o){if(i.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=Math.PI/180,h=-i[0].coord*d,p=Math.min(o[0],o[1]),f=Math.max(o[0],o[1]),g=t.get("clockwise"),v=1,m=i.length;v<=m;v++){var y=v===m?i[0].coord:i[v].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new Am({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:h,endAngle:-y*d,clockwise:g},silent:!0})),h=-y*d}for(v=0;v<c.length;v++)e.add(Ty(c[v],{style:B({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};const tZ=Qj;var nZ=["axisLine","axisTickLabel","axisName"],iZ=["splitLine","splitArea","minorSplitLine"],rZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return o(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new Lo;this.group.add(i);var r=e.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=a.getExtent()[0],c=r.getExtent(),d=aZ(o,e,u),h=new dL(e,d);W(nZ,h.add,h),i.add(h.getGroup()),Fy(n,i,e),W(iZ,(function(t){e.get([t,"show"])&&!r.scale.isBlank()&&oZ[t](this.group,e,o,u,c,s,l)}),this)}},t.type="radiusAxis",t}(CL),oZ={splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<o.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new lm({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[d].coord,0)}}))}for(d=0;d<c.length;d++)e.add(Ty(c[d],{style:B({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var d=0;d<a[c].length;d++)u.push(new lm({shape:{cx:n.cx,cy:n.cy,r:a[c][d].coord}}));e.add(Ty(u,{style:B({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,r,o){if(o.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=o[0].coord,h=1;h<o.length;h++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Am({shape:{cx:n.cx,cy:n.cy,r0:d,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[h].coord}for(h=0;h<c.length;h++)e.add(Ty(c[h],{style:B({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function aZ(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const sZ=rZ;function lZ(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function uZ(e,t){return t.dim+e.model.componentIndex}function cZ(e,t,n){var i={},r=dZ(j(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=uZ(n,o),s=lZ(e),l=r[a][s],u=l.offset,c=l.width,d=n.getOtherAxis(o),h=e.coordinateSystem.cx,p=e.coordinateSystem.cy,f=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var v=t.mapDimension(d.dim),m=t.mapDimension(o.dim),y=uI(t,v),x="radius"!==o.dim||!e.get("roundCap",!0),_=d.dataToCoord(0),b=0,w=t.count();b<w;b++){var S=t.get(v,b),M=t.get(m,b),C=S>=0?"p":"n",I=_;y&&(i[s][M]||(i[s][M]={p:_,n:_}),I=i[s][M][C]);var T=void 0,k=void 0,A=void 0,D=void 0;if("radius"===d.dim){var L=d.dataToCoord(S)-_,P=o.dataToCoord(M);Math.abs(L)<f&&(L=(L<0?-1:1)*f),T=I,k=I+L,A=P-u,D=A-c,y&&(i[s][M][C]=k)}else{var O=d.dataToCoord(S,x)-_,R=o.dataToCoord(M);Math.abs(O)<g&&(O=(O<0?-1:1)*g),T=R+u,k=T+c,A=I,D=I+O,y&&(i[s][M][C]=D)}t.setItemLayout(b,{cx:h,cy:p,r0:T,r:k,startAngle:-A*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:A>=D})}}}))}function dZ(e){var t={};W(e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=uZ(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var d=lZ(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=Wo(e.get("barWidth"),l),p=Wo(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");h&&!c[d].width&&(h=Math.min(u.remainedWidth,h),c[d].width=h,u.remainedWidth-=h),p&&(c[d].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return W(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=Wo(e.categoryGap,r),a=Wo(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),W(i,(function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,d=0;W(i,(function(e,t){e.width||(e.width=u),c=e,d+=e.width*(1+a)})),c&&(d-=c.width*a);var h=-d/2;W(i,(function(e,i){n[t][i]=n[t][i]||{offset:h,width:e.width},h+=e.width*(1+a)}))})),n}const hZ=cZ;var pZ={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},fZ={splitNumber:5},gZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="polar",t}(Ev);function vZ(e){jw(Sj),CL.registerAxisPointerClass("PolarAxisPointer",kj),e.registerCoordinateSystem("polar",$j),e.registerComponentModel(Dj),e.registerComponentView(gZ),uA(e,"angle",Pj,pZ),uA(e,"radius",Oj,fZ),e.registerComponentView(tZ),e.registerComponentView(sZ),e.registerLayout(K(hZ,"bar"))}function mZ(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};r.rotation=Math.PI/2*c[a];var d={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=d[o],e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),de(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=t.rotate;return null==h&&(h=e.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-h:h,r.z2=1,r}var yZ=["axisLine","axisTickLabel","axisName"],xZ=["splitArea","splitLine"],_Z=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return o(t,e),t.prototype.render=function(t,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Lo;var s=mZ(t),l=new dL(t,s);W(yZ,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),W(xZ,(function(e){t.get([e,"show"])&&bZ[e](this,this.group,this._axisGroup,t)}),this),Fy(a,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)},t.prototype.remove=function(){kL(this)},t.type="singleAxis",t}(CL),bZ={splitLine:function(e,t,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=[],d=0,h=r.getTicksCoords({tickModel:o}),p=[],f=[],g=0;g<h.length;++g){var v=r.toGlobalCoord(h[g].coord);u?(p[0]=v,p[1]=l.y,f[0]=v,f[1]=l.y+l.height):(p[0]=l.x,p[1]=v,f[0]=l.x+l.width,f[1]=v);var m=d++%s.length;c[m]=c[m]||[],c[m].push(new Gm({subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:f[0],y2:f[1]},silent:!0}))}var y=a.getLineStyle(["color"]);for(g=0;g<c.length;++g)t.add(Ty(c[g],{style:B({stroke:s[g%s.length]},y),silent:!0}))}},splitArea:function(e,t,n,i){TL(e,n,i,i)}};const wZ=_Z;var SZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(op);q(SZ,Xk.prototype);const MZ=SZ;var CZ=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return o(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(VD);const IZ=CZ;var TZ=["single"],kZ=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=TZ,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,r=new IZ(i,rD(e),[0,0],e.get("type"),e.get("position")),o="category"===r.type;r.onBand=o&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();W(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),iD(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=Yh({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.reverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=AZ(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=AZ(t);return i===this?this.pointToData(n):null},e}();function AZ(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const DZ=kZ;function LZ(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new DZ(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",qa).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var PZ={create:LZ,dimensions:TZ};const OZ=PZ;var RZ=["x","y"],EZ=["width","height"],NZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=VZ(a,1-BZ(o)),l=a.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var c=FU(i),d=FZ[u](o,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=mZ(n);HU(t,e,h,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=mZ(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=qU(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=BZ(r),s=VZ(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=VZ(o,1-a),c=(u[1]+u[0])/2,d=[c,c];return d[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(NU),FZ={line:function(e,t,n){var i=WU([t,n[0]],[t,n[1]],BZ(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:GU([t-i/2,n[0]],[i,r],BZ(e))}}};function BZ(e){return e.isHorizontal()?0:1}function VZ(e,t){var n=e.getRect();return[n[RZ[t]],n[RZ[t]]+n[EZ[t]]]}const zZ=NZ;var qZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="single",t}(Ev);function HZ(e){jw(Sj),CL.registerAxisPointerClass("SingleAxisPointer",zZ),e.registerComponentView(qZ),e.registerComponentView(wZ),e.registerComponentModel(MZ),uA(e,"single",MZ,MZ.defaultOption),e.registerCoordinateSystem("single",OZ)}var WZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(t,n,i){var r=ep(t);e.prototype.init.apply(this,arguments),GZ(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),GZ(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(op);function GZ(e,t){var n,i=e.cellSize;n=J(i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=G([0,1],(function(e){return Kh(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Qh(e,t,{type:"box",ignoreSize:r})}const UZ=WZ;var jZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new hu({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){h(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=o.getDateInfo(d)}function h(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}h(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new zm({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return ee(e)&&e?Vh(e,t):Q(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,d={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},h=t.start.y;+t.end.y>+t.start.y&&(h=h+"-"+t.end.y);var p=r.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:h},g=this._formatterLabel(p,f),v=new Du({z2:30,style:ud(r,{text:g})});v.attr(this._yearTextPositionControl(v,d[a],n,a,o)),i.add(v)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!ee(o)||(o&&(t=Yd(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,d="horizontal"===n?0:1;a="start"===s?-a:a;for(var h="center"===l,p=0;p<u[c].length-1;p++){var f=u[c][p].slice(),g=this._firstDayOfMonth[p];if(h){var v=this._firstDayPoints[p];f[d]=(v[d]+u[0][p+1][d])/2}var m=r.get("formatter"),y=o[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},_=this._formatterLabel(m,x),b=new Du({z2:30,style:F(ud(r,{text:_}),this._monthTextPositionControl(f,h,n,s,a))});i.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,r){var o="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,i,r){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||ee(l)){l&&(t=Yd(l)||t);var d=t.get(["time","dayOfWeekShort"]);l=d||G(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var h=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=Wo(u,Math.min(p[1],p[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var f=0;f<7;f++){var g=a.getNextNDay(h,f),v=a.dataToRect([g.time],!1).center,m=f;m=Math.abs((f+c)%7);var y=new Du({z2:30,style:F(ud(o,{text:l[m]}),this._weekTextPositionControl(v,i,s,u,p))});r.add(y)}}},t.type="calendar",t}(Ev);const ZZ=jZ;var $Z=864e5,YZ=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=ta(e);var t=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,r=e.getDate(),o=r<10?"0"+r:""+r,a=e.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:a,time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];W([0,1],(function(e){u(r,e)&&(o[i[e]]=r[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=Yh(o,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}W([0,1],(function(e){u(r,e)||(r[e]=l[i[e]]/a[e])})),this._sw=r[0],this._sh=r[1]},e.prototype.dataToPoint=function(e,t){J(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+$Z))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=XZ(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=XZ(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(J(t)&&1===t.length&&(t=t[0]),J(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/$Z)-Math.floor(n[0].time/$Z)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function XZ(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}const KZ=YZ;function JZ(e){e.registerComponentModel(UZ),e.registerComponentView(ZZ),e.registerCoordinateSystem("calendar",KZ)}function QZ(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function e$(e,t){var n;return W(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function t$(e,t,n){var i=F({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(E(r,i,!0),Qh(r,i,{ignoreSize:!0}),tp(n,r),r$(n,r),r$(n,r,"shape"),r$(n,r,"style"),r$(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}var n$=["transition","enterFrom","leaveTo"],i$=n$.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function r$(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?n$:i$,r=0;r<i.length;r++){var o=i[r];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}function o$(e,t){if(e&&(e.hv=t.hv=[e$(t,["left","right"]),e$(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var a$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return o(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,o=[];this._flatten(i,o,null);var a=_a(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];W(a,(function(e,t){var n=e.newOption;n&&(s.push(n),QZ(e,n),t$(r,t,n),o$(r[t],n))}),this),n.elements=j(r,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){W(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(op),s$={path:null,compoundPath:null,group:Lo,image:iu,text:Du},l$=Fa(),u$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){this._elMap=we()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,r=e.get("z"),o=e.get("zlevel");W(t,(function(t){var a=Aa(t.id,null),s=null!=a?n.get(a):null,l=Aa(t.parentId,null),u=null!=l?n.get(l):i,c=t.type,d=t.style;"text"===c&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var h=t.textContent,p=t.textConfig;if(d&&hG(d,c,!!p,!!h)){var f=pG(d,c,!0);!p&&f.textConfig&&(p=t.textConfig=f.textConfig),!h&&f.textContent&&(h=f.textContent)}var g=f$(t);var v=t.$action||"merge",m="merge"===v,y="replace"===v;if(m){var x=!s,_=s;x?_=d$(a,u,t.type,n):(_&&(l$(_).isNew=!1),zG(_)),_&&(wG(_,g,e,{isInit:x}),p$(_,t,r,o))}else if(y){h$(s,t,n,e);var b=d$(a,u,t.type,n);b&&(wG(b,g,e,{isInit:!0}),p$(b,t,r,o))}else"remove"===v&&(SG(s,t),h$(s,t,n,e));var w=n.get(a);if(w&&h)if(m){var S=w.getTextContent();S?S.attr(h):w.setTextContent(new Du(h))}else y&&w.setTextContent(new Du(h));if(w){var M=t.clipPath;if(M){var C=M.type,I=void 0;x=!1;if(m){var T=w.getClipPath();x=!T||l$(T).type!==C,I=x?c$(C):T}else y&&(x=!0,I=c$(C));w.setClipPath(I),wG(I,M,e,{isInit:x}),qG(I,M.keyframeAnimation,e)}var k=l$(w);w.setTextConfig(p),k.option=t,g$(w,e,t),Uy({el:w,componentModel:e,itemName:w.name,itemTooltipOption:t.tooltip}),qG(w,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=Aa(u.id,null),d=null!=c?r.get(c):null;if(d&&d.isGroup){var h=d.parent,p=h===i,f=l$(d),g=l$(h);f.width=Wo(f.option.width,p?o:g.width)||0,f.height=Wo(f.option.height,p?a:g.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=Aa(u.id,null),d=null!=c?r.get(c):null;if(d){h=d.parent,g=l$(h);var v=h===i?{width:o,height:a}:{width:g.width,height:g.height},m={},y=Xh(d,u,v,null,{hv:u.hv,boundingMode:u.bounding},m);if(!l$(d).isNew&&y){for(var x=u.transition,_={},b=0;b<s.length;b++){var w=s[b],S=m[w];x&&(CG(x)||V(x,w)>=0)?_[w]=S:d[w]=S}Xc(d,_,e,0)}else d.attr(m)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){h$(n,l$(n).option,t,e._lastGraphicModel)})),this._elMap=we()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ev);function c$(e){var t=Ie(s$,e)?s$[e]:Sy(e);var n=new t({});return l$(n).type=e,n}function d$(e,t,n,i){var r=c$(n);return t.add(r),i.set(e,r),l$(r).id=e,l$(r).isNew=!0,r}function h$(e,t,n,i){var r=e&&e.parent;r&&("group"===e.type&&e.traverse((function(e){h$(e,t,n,i)})),MG(e,t,i),n.removeKey(l$(e).id))}function p$(e,t,n,i){e.isGroup||W([["cursor",Hs.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];Ie(t,i)?e[i]=he(t[i],n[1]):null==e[i]&&(e[i]=n[1])})),W($(t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=Q(i)?i:null}})),Ie(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function f$(e){return e=F({},e),W(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Gh),(function(t){delete e[t]})),e}function g$(e,t,n){var i=Lu(e).eventData;e.silent||e.ignore||i||(i=Lu(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function v$(e){e.registerComponentModel(a$),e.registerComponentView(u$),e.registerPreprocessor((function(e){var t=e.graphic;J(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var m$=["x","y","radius","angle","single"],y$=["cartesian2d","polar","singleAxis"];function x$(e){var t=e.get("coordinateSystem");return V(y$,t)>=0}function _$(e){return e+"Axis"}function b$(e,t){var n,i=we(),r=[],o=we();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),r.push(e),u(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function w$(e){var t=e.ecModel,n={infoList:[],infoMap:we()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(_$(e),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var S$=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),M$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return o(t,e),t.prototype.init=function(e,t,n){var i=C$(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=C$(e);E(this.option,e,!0),E(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;W([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=we(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return W(m$,(function(n){var i=this.getReferringComponents(_$(n),Ha);if(i.specified){t=!0;var r=new S$;W(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var r=t[0];if(r){var o=new S$;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",qa).models[0];a&&W(t,(function(e){r.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",qa).models[0]&&o.add(e.componentIndex)}))}}}i&&W(m$,(function(t){if(i){var r=n.findComponents({mainType:_$(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new S$;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");W([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(_$(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){W(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(_$(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;W([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;W(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(op);function C$(e){var t={};return W(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}const I$=M$;var T$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.select",t}(I$);const k$=T$;var A$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(Ev);const D$=A$;var L$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.select",t}(D$);const P$=L$;var O$=W,R$=Uo,E$=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(x$(t)){var n=_$(this._dimName),i=t.getReferringComponents(n,qa).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return R(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];O$(["start","end"],(function(i,u){var c=e[i],d=e[i+"Value"];"percent"===o[u]?(null==c&&(c=a[u]),d=r.parse(Ho(c,a,n))):(t=!0,d=null==d?n[u]:r.parse(d),c=Ho(d,n,a)),l[u]=d,s[u]=c})),R$(l),R$(s);var u=this._minMaxSpan;function c(e,t,n,i,o){var a=o?"Span":"ValueSpan";rV(0,e,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)t[s]=Ho(e[s],n,i,!0),o&&(t[s]=r.parse(t[s]))}return t?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=N$(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=e.get("filterMode"),o=this._valueWindow;"none"!==r&&O$(i,(function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var s=t.getStore(),l=G(i,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,r,a=0;a<i.length;a++){var u=s.get(l[a],e),c=!isNaN(u),d=u<o[0],h=u>o[1];if(c&&!d&&!h)return!0;c&&(r=!0),d&&(t=!0),h&&(n=!0)}return r&&t&&n}))}else O$(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));O$(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function a(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;O$(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Ho(n[0]+o,n,[0,100],!0):null!=r&&(o=Ho(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=$o(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();function N$(e,t,n){var i=[1/0,-1/0];O$(n,(function(e){pD(i,e.getData(),t)}));var r=e.getAxisModel(),o=QA(r.axis.scale,r,i).calculate();return[o.min,o.max]}const F$=E$;var B$={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(_$(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new F$(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=we();return W(n,(function(e){W(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};const V$=B$;function z$(e){e.registerAction("dataZoom",(function(e,t){var n=b$(t,e);W(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var q$=!1;function H$(e){q$||(q$=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,V$),z$(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function W$(e){e.registerComponentModel(k$),e.registerComponentView(P$),H$(e)}var G$=function(){function e(){}return e}(),U$={};function j$(e,t){U$[e]=t}function Z$(e){return U$[e]}var $$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;W(this.option.feature,(function(e,n){var i=Z$(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),E(e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(op);const Y$=$$;function X$(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Yh(i,o,r);Zh(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Xh(e,i,o,r)}function K$(e,t){var n=Lh(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new hu({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),e}var J$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];W(s,(function(e,t){u.push(t)})),new wC(this._featureNames||[],u).add(c).update(c).remove(K(c,null)).execute(),this._featureNames=u,X$(r,e,n),r.add(K$(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Q(l)&&t){var u=l.style||(l.style={}),c=uo(t,Du.makeFont(u)),d=e.x+r.x,h=e.y+r.y+o,p=!1;h+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):d-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(r,o){var a,c=u[r],h=u[o],p=s[c],f=new Od(p,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!h){if(Q$(c))a={onclick:f.option.onclick,featureName:c};else{var g=Z$(c);if(!g)return;a=new g}l[c]=a}else if(a=l[h],!a)return;a.uid=Ed("toolbox-feature"),a.model=f,a.ecModel=t,a.api=n;var v=a instanceof G$;c||!h?!f.get("show")||v&&a.unusable?v&&a.remove&&a.remove(t,n):(d(f,a,c),f.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?vc:mc)(i[e])},a instanceof G$&&a.render&&a.render(f,t,n,i)):v&&a.dispose&&a.dispose(t,n)}function d(i,s,l){var u,c,d=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),p=s instanceof G$&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};ee(p)?(u={},u[l]=p):u=p,ee(f)?(c={},c[l]=f):c=f;var g=i.iconPaths={};W(u,(function(l,u){var p=zy(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(d.getItemStyle());var f=p.ensureState("emphasis");f.style=h.getItemStyle();var v=new Du({style:{text:c[u],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});p.setTextContent(v),Uy({el:p,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var t=h.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),p.setTextConfig({position:h.get("textPosition")||i}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",u])?vc:mc)(p),r.add(p),p.on("click",X(s.onclick,s,t,n,u)),g[u]=p}))}},t.prototype.updateView=function(e,t,n,i){W(this._features,(function(e){e instanceof G$&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){W(this._features,(function(n){n instanceof G$&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){W(this._features,(function(n){n instanceof G$&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Ev);function Q$(e){return 0===e.indexOf("my")}const eY=J$;var tY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=c.browser;if(Q(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var d=a.split(","),h=d[0].indexOf("base64")>-1,p=r?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var f=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var g=p.length,v=new Uint8Array(g);while(g--)v[g]=p.charCodeAt(g);var m=new Blob([v]);window.navigator.msSaveOrOpenBlob(m,f)}else{var y=document.createElement("iframe");document.body.appendChild(y);var x=y.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),x.focus(),_.execCommand("SaveAs",!0,f),document.body.removeChild(y)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',S=window.open();S.document.write(w),S.document.title=i}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(G$);const nY=tY;var iY="__ec_magicType_stack__",rY=[["line","bar"],["stack"]],oY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return W(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(aY[n]){var o,a={series:[]},s=function(e){var t=e.subType,r=e.id,o=aY[n](t,r,e,i);o&&(B(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",d=e.getReferringComponents(c,qa).models[0],h=d.componentIndex;a[c]=a[c]||[];for(var p=0;p<=h;p++)a[c][h]=a[c][h]||{};a[c][h].boundaryGap="bar"===n}}};W(rY,(function(e){V(e,n)>=0&&W(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(o=E({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},t}(G$),aY={line:function(e,t,n,i){if("bar"===e)return E({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return E({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===iY;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),E({id:t,stack:r?"":iY},i.get(["option","stack"])||{},!0)}};Ew({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));const sY=oY;var lY=new Array(60).join("-"),uY="\t";function cY(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function dY(e){var t=[];return W(e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,o=r.dim,a=[" "].concat(G(e.series,(function(e){return e.name}))),s=[i.model.getCategories()];W(e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[a.join(uY)],u=0;u<s[0].length;u++){for(var c=[],d=0;d<s.length;d++)c.push(s[d][u]);l.push(c.join(uY))}t.push(l.join("\n"))})),t.join("\n\n"+lY+"\n\n")}function hY(e){return G(e,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,r=arguments[e-1],o=t.getName(r),a=0;a<e-1;a++)i[a]=arguments[a];n.push((o?o+uY:"")+i.join(uY))})),n.join("\n")})).join("\n\n"+lY+"\n\n")}function pY(e){var t=cY(e);return{value:j([dY(t.seriesGroupByCategoryAxis),hY(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+lY+"\n\n"),meta:t.meta}}function fY(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gY(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(uY)>=0)return!0}var vY=new RegExp("["+uY+"]+","g");function mY(e){for(var t=e.split(/\n+/g),n=fY(t.shift()).split(vY),i=[],r=G(n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var a=fY(t[o]).split(vY);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}function yY(e){for(var t=e.split(/\n+/g),n=fY(t.shift()),i=[],r=0;r<t.length;r++){var o=fY(t[r]);if(o){var a=o.split(vY),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}function xY(e,t){var n=e.split(new RegExp("\n*"+lY+"\n*","g")),i={series:[]};return W(n,(function(e,n){if(gY(e)){var r=mY(e),o=t[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=yY(e);i.series.push(r)}})),i}var _Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),c=i.get("contentToOption"),d=pY(e);if(Q(u)){var h=u(t.getOption());ee(h)?s.innerHTML=h:ae(h)&&s.appendChild(h)}else{l.readOnly=i.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=d.value,s.appendChild(l)}var f=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),y=document.createElement("div");v+=";background-color:"+i.get("buttonColor"),v+=";color:"+i.get("buttonTextColor");var x=this;function _(){n.removeChild(r),x._dom=null}xt(m,"click",_),xt(y,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var e;try{e=Q(c)?c(s,t.getOption()):xY(l.value,f)}catch(wm){throw _(),new Error("Data view format error "+wm)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),_()}})),m.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=m.style.cssText=v,!i.get("readOnly")&&g.appendChild(y),g.appendChild(m),r.appendChild(o),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){var t={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return t},t}(G$);function bY(e,t){return G(e,(function(e,n){var i=t&&t[n];if(ie(i)&&!J(i)){var r=ie(e)&&!J(e);r||(e={value:e});var o=null!=i.name&&null==e.name;return e=B(e,i),o&&delete e.name,e}return e}))}Ew({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];W(e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var r=i.get("data");n.push({name:e.name,data:bY(e.data,r)})}else n.push(F({type:"scatter"},e))})),t.mergeOption(B({series:n},e.newOption))}));const wY=_Y;var SY=W,MY=Fa();function CY(e,t){var n=AY(e);SY(t,(function(t,i){for(var r=n.length-1;r>=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function IY(e){var t=AY(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return SY(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n],e){i[n]=e;break}})),i}function TY(e){MY(e).snapshots=null}function kY(e){return AY(e).length}function AY(e){var t=MY(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var DY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.onclick=function(e,t){TY(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(G$);Ew({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));const LY=DY;var PY=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],OY=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=EY(t,e);W(NY,(function(e,t){(!n||!n.include||V(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=VY[e.brushType](0,n,t);e.__rangeOffset={offset:qY[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){W(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&W(i.coordSyses,(function(i){var r=VY[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){W(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=VY[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?qY[e.brushType](i.values,r.offset,WY(i.xyMinMax,r.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:_z(i),isTargetByCursor:wz(i,e,n.coordSysModel),getLinearBrushOtherExtent:bz(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&V(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=EY(t,e),r=0;r<n.length;r++){var o=n[r],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<FY.length;s++)if(FY[s](i,o))return o}return!0},e}();function RY(e){return e[0]>e[1]&&e.reverse(),e}function EY(e,t){return Va(e,t,{includeMainTypes:PY})}var NY={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=we(),a={},s={};(n||i||r)&&(W(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),W(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),W(r,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];W(r.getCartesians(),(function(e,t){(V(n,e.getAxis("x").model)>=0||V(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:BY.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){W(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:BY.geo})}))}},FY=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],BY={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Py(e)),t}},VY={lineX:K(zY,0),lineY:K(zY,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[RY([r[0],o[0]]),RY([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=G(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function zY(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=RY(G([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var qY={lineX:K(HY,0),lineY:K(HY,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return G(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function HY(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function WY(e,t){var n=GY(e),i=GY(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function GY(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const UY=OY;var jY=W,ZY=Pa("toolbox-dataZoom_"),$Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new xz(n.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),JY(e,t,this,i,n),KY(e,t)},t.prototype.onclick=function(e,t,n){YY[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new UY(XY(this.model),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),CY(i,n),this._dispatchZoomAction(n)}function o(e,t,r){var o=t.getAxis(e),s=o.model,l=a(e,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=rV(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];jY(e,(function(e,n){t.push(R(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(G$),YY={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(IY(this.ecModel))}};function XY(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function KY(e,t){e.setIconStatus("back",kY(t)>1?"emphasis":"normal")}function JY(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new UY(XY(e),t,{include:["grid"]}),s=a.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}kp("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=XY(i),a=Va(e,o);return jY(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),jY(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),r}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:ZY+t+o};a[n]=o,r.push(a)}}));const QY=$Y;function eX(e){e.registerComponentModel(Y$),e.registerComponentView(eY),j$("saveAsImage",nY),j$("magicType",sY),j$("dataView",wY),j$("dataZoom",QY),j$("restore",LY),jw(W$)}var tX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(op);const nX=tX;function iX(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function rX(e){if(c.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var oX=rX(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aX=rX(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function sX(e,t){if(!e)return t;t=Dh(t,!0);var n=e.indexOf(t);return e=-1===n?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function lX(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var uX=sX(aX,"transition"),cX=sX(oX,"transform"),dX="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(c.transform3dSupported?"will-change:transform;":"");function hX(e){return e="left"===e?"right":"right"===e?"left":"top"===e?"bottom":"top",e}function pX(e,t,n){if(!ee(n)||"inside"===n)return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=qh(t);var o,a=hX(n),s=Math.max(1.5*Math.round(r),6),l="",u=cX+":";V(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,d=s+r,h=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),p=Math.round(100*((h-Math.SQRT2*r)/2+Math.SQRT2*r-(h-d)/2))/100;l+=";"+a+":-"+p+"px";var f=t+" solid "+r+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function fX(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=c.transformSupported?","+cX+i:",left"+i+",top"+i),uX+":"+r}function gX(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!c.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=c.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+cX+":"+a+";":[["top",0],["left",0],[oX,a]]}function vX(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),W(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function mX(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=mv(e,"html"),h=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+h),t&&r&&i.push(fX(r,n)),o&&i.push("background-color:"+o),W(["width","color","radius"],(function(t){var n="border-"+t,r=Dh(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(vX(c)),null!=d&&i.push("padding:"+Lh(d).join("px ")+"px"),i.join(";")+";"}function yX(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&at(e,a,document.body,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var xX=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,c.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;yX(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler,n=r.painter.getViewportRoot();mt(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=lX(t,"position"),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=dX+mX(e,!this._firstShow,this._longHide)+gX(r[0],r[1],!0)+"border-color:"+qh(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if(ee(r)&&"item"===n.get("trigger")&&!iX(n)&&(a=pX(n,i,r)),ee(e))o.innerHTML=e+a;else if(e){o.innerHTML="",J(e)||(e=[e]);for(var s=0;s<e.length;s++)ae(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(yX(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style,r=gX(n[0],n[1]);W(r,(function(e){i[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",c.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(X(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const _X=xX;var bX=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),MX(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,i,r){var o=this;ie(e)&&vg(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Du({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:mv(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),W(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),W(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),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(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=SX(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;MX(i,this._zr,e,t),e=i[0],t=i[1];var r=n.style,o=wX(r.borderWidth||0),a=SX(r);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(X(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function wX(e){return Math.max(0,e)}function SX(e){var t=wX(e.shadowBlur||0),n=wX(e.shadowOffsetX||0),i=wX(e.shadowOffsetY||0);return{left:wX(t-n),right:wX(t+n),top:wX(t-i),bottom:wX(t+i)}}function MX(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const CX=bX;var IX=new hu({shape:{x:-1,y:-1,width:2,height:2}}),TX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){if(!c.node&&t.getDom()){var n=e.getComponent("tooltip"),i=this._renderMode=ja(n.get("renderMode"));this._tooltipContent="richText"===i?new CX(t):new _X(t.getDom(),t,{appendToBody:n.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!c.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?sx(this,"_updatePosition",50,"fixRate"):lx(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");tj("itemTooltip",this._api,X((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!c.node&&n.getDom()){var r=AX(i,n);this._ticket="";var o=i.dataByCoordSys,a=RX(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=IX;l.x=i.x,l.y=i.y,l.update(),Lu(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var u=cj(i,t),d=u.point[0],h=u.point[1];null!=d&&null!=h&&this._tryShow({offsetX:d,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(AX(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s){var l=s.getData(),u=kX([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,a;this._lastDataByCoordSys=null,n_(n,(function(e){return null!=Lu(e).dataIndex?(o=e,!0):null!=Lu(e).tooltipConfig?(a=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=X(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=kX([t.tooltipOption],i),a=this._renderMode,s=[],l=iv("section",{blocks:[],noHeader:!0}),u=[],c=new yv;W(e,(function(e){W(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=zU(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=iv("section",{header:o,noHeader:!me(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),W(e.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=sD(t.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",qh(f.color),a);var g=dg(h.formatTooltip(p,!0,null)),v=g.frag;if(v){var m=kX([h],i).get("valueFormatter");d.blocks.push(m?F({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var d=t.position,h=o.get("order"),p=uv(l,c,a,h,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],d,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=Lu(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),d=this._renderMode,h=e.positionDefault,p=kX([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new yv;g.marker=v.makeTooltipMarker("item",qh(g.color),d);var m=dg(s.formatTooltip(l,!1,u)),y=p.get("order"),x=p.get("valueFormatter"),_=m.frag,b=_?uv(x?F({valueFormatter:x},_):_,v,d,y,i.get("useUTC"),p.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,b,g,w,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i=Lu(t),r=i.tooltipConfig,o=r.option||{};if(ee(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=kX(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),h=Math.random()+"",p=new yv;this._showOrMove(c,(function(){var n=R(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,h,e.offsetX,e.offsetY,e.position,t,p)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var d=t,h=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")),p=h.color;if(c)if(ee(c)){var f=e.ecModel.get("useUTC"),g=J(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;d=c,v&&(d=dh(g.axisValue,d,f)),d=Bh(d,n,!0)}else if(Q(c)){var m=X((function(t,i){t===this._ticket&&(u.setContent(i,l,e,p,a),this._updatePosition(e,a,r,o,u,n,s))}),this);this._ticket=i,d=c(n,i,m)}else d=c;u.setContent(d,l,e,p,a),u.show(e,p),this._updatePosition(e,a,r,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||J(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:J(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),c=e.get("align"),d=e.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),Q(t)&&(t=t([n,i],o,r.el,h,{viewSize:[s,l],contentSize:u.slice()})),J(t))n=Wo(t[0],s),i=Wo(t[1],l);else if(ie(t)){var p=t;p.width=u[0],p.height=u[1];var f=Yh(p,{width:s,height:l});n=f.x,i=f.y,c=null,d=null}else if(ee(t)&&a){var g=PX(t,h,u,e.get("borderWidth"));n=g[0],i=g[1]}else{g=DX(n,i,r,s,l,c?null:20,d?null:20);n=g[0],i=g[1]}if(c&&(n-=OX(c)?u[0]/2:"right"===c?u[0]:0),d&&(i-=OX(d)?u[1]/2:"bottom"===d?u[1]:0),iX(e)){g=LX(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&W(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&W(a,(function(e,n){var o=l[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,r&&W(a,(function(e,t){var n=s[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&W(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!c.node&&t.getDom()&&(lx(this,"_updatePosition"),this._tooltipContent.dispose(),sj("itemTooltip",t))},t.type="tooltip",t}(Ev);function kX(e,t,n){var i,r=t.ecModel;n?(i=new Od(n,r,r),i=new Od(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Od&&(a=a.get("tooltip",!0)),ee(a)&&(a={formatter:a}),a&&(i=new Od(a,i,r)))}return i}function AX(e,t){return e.dispatchAction||X(t.dispatchAction,t)}function DX(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=a&&(t+u+a>r?t-=u+a:t+=a),[e,t]}function LX(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function PX(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function OX(e){return"center"===e||"middle"===e}function RX(e,t,n){var i=za(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Wa(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=Lu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}const EX=TX;function NX(e){jw(Sj),e.registerComponentModel(nX),e.registerComponentView(EX),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Te),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Te)}var FX=["rect","polygon","keep","clear"];function BX(e,t){var n=ga(e?e.brush:[]);if(n.length){var i=[];W(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;J(r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),VX(s),t&&!s.length&&s.push.apply(s,FX)}}function VX(e){var t={};W(e,(function(e){t[e]=1})),e.length=0,W(t,(function(t,n){e.push(n)}))}var zX=W;function qX(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function HX(e,t,n){var i={};return zX(t,(function(t){var o=i[t]=r();zX(e[t],(function(e,i){if(pN.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new pN(r),"opacity"===i&&(r=R(r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new pN(r))}}))})),i;function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function WX(e,t,n){var i;W(n,(function(e){t.hasOwnProperty(e)&&qX(t[e])&&(i=!0)})),i&&W(n,(function(n){t.hasOwnProperty(n)&&qX(t[n])?e[n]=R(t[n]):delete e[n]}))}function GX(e,t,n,i,r,o){var a,s={};function l(e){return Xx(n,a,e)}function u(e,t){Jx(n,a,e,t)}function c(e,c){a=null==o?e:c;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var h=i.call(r,e),p=t[h],f=s[h],g=0,v=f.length;g<v;g++){var m=f[g];p[m]&&p[m].applyVisual(e,l,u)}}W(e,(function(e){var n=pN.prepareVisualTypes(t[e]);s[e]=n})),null==o?n.each(c):n.each([o],c)}function UX(e,t,n,i){var r={};return W(e,(function(e){var n=pN.prepareVisualTypes(t[e]);r[e]=n})),{progress:function(e,o){var a,s;function l(e){return Xx(o,s,e)}function u(e,t){Jx(o,s,e,t)}null!=i&&(a=o.getDimensionIndex(i));var c=o.getStore();while(null!=(s=e.next())){var d=o.getRawDataItem(s);if(!d||!1!==d.visualMap)for(var h=null!=i?c.get(a,s):s,p=n(h),f=t[p],g=r[p],v=0,m=g.length;v<m;v++){var y=g[v];f[y]&&f[y].applyVisual(h,l,u)}}}}}function jX(e){var t=e.brushType,n={point:function(i){return ZX[t].point(i,n,e)},rect:function(i){return ZX[t].rect(i,n,e)}};return n}var ZX={lineX:$X(0),lineY:$X(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&YP(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,o=e.y,a=e.width,s=e.height,l=i[0];return!!(YP(i,r,o)||YP(i,r+a,o)||YP(i,r,o+s)||YP(i,r+a,o+s)||oo.create(e).contain(l[0],l[1])||qy(r,o,r+a,o,i)||qy(r,o,r,o+s,i)||qy(r+a,o,r+a,o+s,i)||qy(r,o+s,r+a,o+s,i))||void 0}}};function $X(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range,o=t[e];return YX(o,r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),YX(s[0],a)||YX(s[1],a)||YX(a[0],s)||YX(a[1],s)}}}}function YX(e,t){return t[0]<=e&&e<=t[1]}var XX=["inBrush","outOfBrush"],KX="__ecBrushSelect",JX="__ecInBrushSelectEvent";function QX(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new UY(t.option,e);n.setInputRanges(t.areas,e)}))}function eK(e,t,n){var i,r,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),QX(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:R(t.areas),selected:[]};o.push(a);var s=t.option,l=s.brushLink,u=[],c=[],d=[],h=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=G(t.areas,(function(e){var t=oK[e.brushType],n=B({boundingRect:t?t(e):void 0},e);return n.selectors=jX(n),n})),f=HX(t.option,XX,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===l||!!u[e]}function v(e){return!!e.length}function m(e,t){var n=e.coordinateSystem;h=h||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(c[t]=1)}))}function y(n,i,r){if(n.brushSelector&&!rK(t,i)&&(W(p,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),h=h||v(r)})),g(i)&&v(r))){var o=n.getData();o.each((function(e){iK(n,r,o,e)&&(c[e]=1)}))}}J(l)&&W(l,(function(e){u[e]=1})),e.eachSeries((function(e,t){var n=d[t]=[];"parallel"===e.subType?m(e,t):y(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=d[t],r=e.getData(),o=g(t)?function(e){return c[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return iK(e,i,r,t)?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?h:v(i))&&GX(XX,f,r,o)}))})),tK(t,i,r,o,n)}function tK(e,t,n,i,r){if(r){var o=e.getZr();if(!o[JX]){o[KX]||(o[KX]=nK);var a=sx(o,KX,n,t);a(e,i)}}}function nK(e,t){if(!e.isDisposed()){var n=e.getZr();n[JX]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[JX]=!1}}function iK(e,t,n,i){for(var r=0,o=t.length;r<o;r++){var a=t[r];if(e.brushSelector(i,n,a.selectors,a))return!0}}function rK(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(J(n)?V(n,t)<0:t!==n)}var oK={rect:function(e){return aK(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&aK(t)}};function aK(e){return new oo(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var sK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new xz(t.getZr())).on("brush",X(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){QX(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:R(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:R(n),$from:t})},t.type="brush",t}(Ev);const lK=sK;var uK="#ddd",cK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return o(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&WX(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:uK},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=G(e,(function(e){return dK(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=dK(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(op);function dK(e,t){return E({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Od(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const hK=cK;var pK=["rect","polygon","lineX","lineY","keep","clear"],fK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,W(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return W(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){var t={show:!0,type:pK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(G$);const gK=fK;function vK(e){e.registerComponentView(lK),e.registerComponentModel(hK),e.registerPreprocessor(BX),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,eK),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Te),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Te),j$("brush",gK)}var mK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return o(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(op),yK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=he(e.get("textBaseline"),e.get("textVerticalAlign")),l=new Du({style:ud(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new Du({style:ud(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=e.get("link"),p=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!h&&!f,d.silent=!p&&!f,h&&l.on("click",(function(){Hh(h,"_"+e.get("target"))})),p&&d.on("click",(function(){Hh(p,"_"+e.get("subtarget"))})),Lu(l).eventData=Lu(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),c&&i.add(d);var g=i.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=Yh(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),d.setStyle(y),g=i.getBoundingRect();var x=m.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var b=new hu({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},t.type="title",t}(Ev);function xK(e){e.registerComponentModel(mK),e.registerComponentView(yK)}var _K=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],W(n,(function(t,n){var i,o=Aa(ya(t),"");ie(t)?(i=R(t),i.value=n):i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new JC([{name:"value",type:o}],this);a.initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(op);const bK=_K;var wK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="timeline.slider",t.defaultOption=Bd(bK.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(bK);q(wK,cg.prototype);const SK=wK;var MK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="timeline",t}(Ev);const CK=MK;var IK=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return o(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(VD);const TK=IK;var kK=Math.PI,AK=Fa(),DK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return iv("nameValue",{noName:!0,value:t})},W(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,a,e)}),this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),r=e.get("orient"),o=PK(e,t);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2<t.getHeight()/2?"-":"+":o.x+o.width/2<t.getWidth()/2?"+":"-":ee(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]:i;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:kK/2},h="vertical"===r?o.height:o.width,p=e.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,v=f?p.get("itemGap"):0,m=g+v,y=e.get(["label","rotate"])||0;y=y*kK/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),b=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=h;"left"===x||"bottom"===x?(_&&(a=[0,0],S+=m),b&&(s=[S,0],S+=m),w&&(l=[M-g,0],M-=m)):(_&&(a=[M-g,0],M-=m),b&&(s=[0,0],S+=m),w&&(l=[M-g,0],M-=m));var C=[S,M];return e.get("inverse")&&C.reverse(),{viewRect:o,mainLength:h,orient:r,rotation:d[r],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[r],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[r],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:C,controlSize:g,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=kr(),a=r.x,s=r.y+r.height;Pr(o,o,[-a,-s]),Or(o,o,-kK/2),Pr(o,o,[a,s]),r=r.clone(),r.applyTransform(o)}var l=v(r),u=v(n.getBoundingRect()),c=v(i.getBoundingRect()),d=[n.x,n.y],h=[i.x,i.y];h[0]=d[0]=l[0][0];var p=e.labelPosOpt;if(null==p||ee(p)){var f="+"===p?0:1;m(d,u,l,1,f),m(h,c,l,1,1-f)}else{f=p>=0?0:1;m(d,u,l,1,f),h[1]=d[1]+p}function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function m(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(d),i.setPosition(h),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=LK(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new TK("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Lo;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Gm({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:F({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Gm({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:B({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],W(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:X(r._changeTimeline,r,e.value)},h=RK(s,l,t,d);h.ensureState("emphasis").style=u.getItemStyle(),h.ensureState("progress").style=c.getItemStyle(),Oc(h);var p=Lu(h);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(h)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],W(s,(function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),d=n.dataToCoord(i.tickValue),h=new Du({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:X(r._changeTimeline,r,o),silent:!1,style:ud(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});h.ensureState("emphasis").style=ud(u),h.ensureState("progress").style=ud(c),t.add(h),Oc(h),AK(h).dataIndex=o,r._tickLabels.push(h)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(e,n,l,u){if(e){var c=fo(he(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-c/2,c,c],h=OK(i,n+"Icon",d,{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,t.add(h),Oc(h)}}c(e.nextBtnPosition,"next",X(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",X(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",X(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=X(s._handlePointerDrag,s),e.ondragend=X(s._handlePointerDragend,s),EK(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){EK(e,s._progressLine,o,n,i)}};this._currentPointer=RK(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=Uo(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var o=this._findNearestTick(n),a=this.model;(t||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return Oy(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-e);s<i&&(i=s,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",AK(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(CK);function LK(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new SA({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new BA({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new IA}}function PK(e,t){return Yh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function OK(e,t,n,i){var r=i.style,o=zy(e.get(["controlStyle",t]),i||{},new oo(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function RK(e,t,n,i,r,o){var a=t.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=e.get("symbol");r=v_(s,-1,-1,2,2,a),r.setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=t.getItemStyle(["color"]);r.setStyle(l),i=E({rectHover:!0,z2:100},i,!0);var u=m_(e.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=y_(e.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var d=e.get("symbolRotate");return i.rotation=(d||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function EK(e,t,n,i,r,o){if(!e.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const NK=DK;function FK(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),B({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function BK(e){var t=e&&e.timeline;J(t)||(t=t?[t]:[]),W(t,(function(e){e&&VK(e)}))}function VK(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),zK(e),qK(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});qK(i,"position")||(i.position=e.controlPosition),"none"!==i.position||qK(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}W(e.data||[],(function(e){ie(e)&&!J(e)&&(!qK(e,"value")&&qK(e,"name")&&(e.value=e.name),zK(e))}))}function zK(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};W(i,(function(e,t){o[t]||qK(r,t)||(r[t]=e)})),n.label&&!qK(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function qK(e,t){return e.hasOwnProperty(t)}function HK(e){e.registerComponentModel(SK),e.registerComponentView(NK),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),FK(e),e.registerPreprocessor(BK)}function WK(e,t){if(!e)return!1;for(var n=J(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function GK(e){va(e,"label",["show"])}var UK=Fa(),jK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(c.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var r=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=UK(e)[r];n&&n.data?(o?o._mergeOption(n,t,!0):(i&&GK(n),W(n.data,(function(e){e instanceof Array?(GK(e[0]),GK(e[1])):GK(e)})),o=this.createMarkerModelFromSeries(n,this,t),F(o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),UK(e)[r]=o):UK(e)[r]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return iv("section",{header:this.name,blocks:[iv("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return UK(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(op);q(jK,cg.prototype);const ZK=jK;var $K=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(ZK);const YK=$K;function XK(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function KK(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function JK(e,t,n,i,r,o){var a=[],s=uI(t,i),l=s?t.getCalculationInfo("stackResultDimension"):i,u=aJ(t,l,e),c=t.indicesOfNearest(l,u)[0];a[r]=t.get(n,c),a[o]=t.get(l,c);var d=t.get(i,c),h=jo(t.get(i,c));return h=Math.min(h,20),h>=0&&(a[o]=+a[o].toFixed(h)),[a,d]}var QK={min:K(JK,"min"),max:K(JK,"max"),average:K(JK,"average"),median:K(JK,"median")};function eJ(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!KK(t)&&!J(t.coord)&&i){var r=i.dimensions,o=tJ(t,n,i,e);if(t=R(t),t.type&&QK[t.type]&&o.baseAxis&&o.valueAxis){var a=V(r,o.baseAxis.dim),s=V(r,o.valueAxis.dim),l=QK[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else{for(var u=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],c=0;c<2;c++)QK[u[c]]&&(u[c]=aJ(n,n.mapDimension(r[c]),u[c]));t.coord=u}}return t}function tJ(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(nJ(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function nJ(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function iJ(e,t){return!(e&&e.containData&&t.coord&&!XK(t))||e.containData(t.coord)}function rJ(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!XK(t)&&!XK(n))||e.containZone(t.coord,n.coord)}function oJ(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return mg(o,t[r])}:function(e,n,i,r){return mg(e.value,t[r])}}function aJ(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var sJ=Fa(),lJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.init=function(){this.markerGroupMap=we()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){sJ(e).keep=!1})),t.eachSeries((function(e){var r=ZK.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!sJ(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){sJ(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;W(e,(function(e){var i=ZK.getMarkerModelFromSeries(e,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(e){e&&(t?yc(e):xc(e))}))}}))},t.type="marker",t}(Ev);const uJ=lJ;function cJ(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,a=e.getItemModel(r),s=Wo(a.get("x"),n.getWidth()),l=Wo(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var u=e.get(i.dimensions[0],r),c=e.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var dJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markPoint");t&&(cJ(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new kI),u=hJ(r,e,t);t.setData(u),cJ(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Q(i)||Q(r)||Q(o)||Q(s)){var c=t.getRawValue(e),d=t.getDataParams(e);Q(i)&&(i=i(c,d)),Q(r)&&(r=r(c,d)),Q(o)&&(o=o(c,d)),Q(s)&&(s=s(c,d))}var h=n.getModel("itemStyle").getItemStyle(),p=Kx(a,"color");h.fill||(h.fill=p),u.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:h})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Lu(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(uJ);function hJ(e,t,n){var i;i=e?G(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return F(F({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new JC(i,n),o=G(n.get("data"),K(eJ,t));e&&(o=j(o,K(iJ,e)));var a=oJ(!!e,i);return r.initData(o,null,a),r}const pJ=dJ;function fJ(e){e.registerComponentModel(YK),e.registerComponentView(pJ),e.registerPreprocessor((function(e){WK(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var gJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ZK);const vJ=gJ;var mJ=Fa(),yJ=function(e,t,n,i){var r,o=e.getData();if(J(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=de(i.yAxis,i.xAxis);else{var u=tJ(i,o,t,e);s=u.valueAxis;var c=cI(o,u.valueDataDim);l=aJ(o,c,a)}var d="x"===s.dim?0:1,h=1-d,p=R(i),f={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,f.coord[h]=1/0;var g=n.get("precision");g>=0&&ne(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[d]=f.coord[d]=l,r=[p,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var v=[eJ(e,r[0]),eJ(e,r[1]),F({},r[2])];return v[2].type=v[2].type||null,E(v[2],v[0]),E(v[2],v[1]),v};function xJ(e){return!isNaN(e)&&!isFinite(e)}function _J(e,t,n,i){var r=1-e,o=i.dimensions[e];return xJ(t[r])&&xJ(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function bJ(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(_J(1,n,i,e)||_J(0,n,i,e)))return!0}return iJ(e,t[0])&&iJ(e,t[1])}function wJ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Wo(s.get("x"),r.getWidth()),u=Wo(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,d=e.get(c[0],t),h=e.get(c[1],t);o=a.dataToPoint([d,h])}if($I(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;xJ(e.get(c[0],t))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):xJ(e.get(c[1],t))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var SJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=mJ(t).from,o=mJ(t).to;r.each((function(t){wJ(r,t,!0,e,n),wJ(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new zF);this.group.add(l.group);var u=MJ(r,e,t),c=u.from,d=u.to,h=u.line;mJ(t).from=c,mJ(t).to=d,t.setData(h);var p=t.get("symbol"),f=t.get("symbolSize"),g=t.get("symbolRotate"),v=t.get("symbolOffset");function m(t,n,r){var o=t.getItemModel(n);wJ(t,n,r,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Kx(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:he(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:he(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:he(o.get("symbolSize"),f[r?0:1]),symbol:he(o.get("symbol",!0),p[r?0:1]),style:s})}J(p)||(p=[p,p]),J(f)||(f=[f,f]),J(g)||(g=[g,g]),J(v)||(v=[v,v]),u.from.each((function(e){m(c,e,!0),m(d,e,!1)})),h.each((function(e){var t=h.getItemModel(e).getModel("lineStyle").getLineStyle();h.setItemLayout(e,[c.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),h.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),l.updateData(h),u.line.eachItemGraphicEl((function(e){Lu(e).dataModel=t,e.traverse((function(e){Lu(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(uJ);function MJ(e,t,n){var i;i=e?G(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return F(F({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new JC(i,n),o=new JC(i,n),a=new JC([],n),s=G(n.get("data"),K(yJ,t,e,n));e&&(s=j(s,K(bJ,e)));var l=oJ(!!e,i);return r.initData(G(s,(function(e){return e[0]})),null,l),o.initData(G(s,(function(e){return e[1]})),null,l),a.initData(G(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}const CJ=SJ;function IJ(e){e.registerComponentModel(vJ),e.registerComponentView(CJ),e.registerPreprocessor((function(e){WK(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var TJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ZK);const kJ=TJ;var AJ=Fa(),DJ=function(e,t,n,i){var r=eJ(e,i[0]),o=eJ(e,i[1]),a=r.coord,s=o.coord;a[0]=de(a[0],-1/0),a[1]=de(a[1],-1/0),s[0]=de(s[0],1/0),s[1]=de(s[1],1/0);var l=N([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function LJ(e){return!isNaN(e)&&!isFinite(e)}function PJ(e,t,n,i){var r=1-e;return LJ(t[r])&&LJ(n[r])}function OJ(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return $I(e,"cartesian2d")?!(!n||!i||!PJ(1,n,i,e)&&!PJ(0,n,i,e))||rJ(e,r,o):iJ(e,r)||iJ(e,o)}function RJ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Wo(s.get(n[0]),r.getWidth()),u=Wo(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(n,t));else{var c=e.get(n[0],t),d=e.get(n[1],t),h=[c,d];a.clampData&&a.clampData(h,h),o=a.dataToPoint(h,!0)}if($I(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=e.get(n[0],t),d=e.get(n[1],t);LJ(c)?o[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):LJ(d)&&(o[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var EJ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],NJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ZK.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=G(EJ,(function(r){return RJ(i,t,r,e,n)}));i.setItemLayout(t,r);var o=i.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Lo});this.group.add(l.group),this.markKeep(l);var u=FJ(r,e,t);t.setData(u),u.each((function(t){var n=G(EJ,(function(n){return RJ(u,t,n,e,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),d=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],h=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];Uo(d),Uo(h);var p=!(l[0]>d[1]||l[1]<d[0]||c[0]>h[1]||c[1]<h[0]),f=!p;u.setItemLayout(t,{points:n,allClipped:f});var g=u.getItemModel(t).getModel("itemStyle").getItemStyle(),v=Kx(a,"color");g.fill||(g.fill=v,ee(g.fill)&&(g.fill=oi(g.fill,.4))),g.stroke||(g.stroke=v),u.setItemVisual(t,"style",g)})),u.diff(AJ(l).data).add((function(e){var t=u.getItemLayout(e);if(!t.allClipped){var n=new Fm({shape:{points:t.points}});u.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=AJ(l).data.getItemGraphicEl(n),r=u.getItemLayout(e);r.allClipped?i&&l.group.remove(i):(i?Xc(i,{shape:{points:r.points}},t,e):i=new Fm({shape:{points:r.points}}),u.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=AJ(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),u.eachItemGraphicEl((function(e,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");e.useStyle(u.getItemVisual(n,"style")),sd(e,ld(i),{labelFetcher:t,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:ee(r.fill)?oi(r.fill,1):"#000"}),Vc(e,i),Ec(e,null,null,i.get(["emphasis","disabled"])),Lu(e).dataModel=t})),AJ(l).data=u,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(uJ);function FJ(e,t,n){var i,r,o=["x0","y0","x1","y1"];if(e){var a=G(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return F(F({},i),{name:e,ordinalMeta:null})}));r=G(o,(function(e,t){return{name:e,type:a[t%2].type}})),i=new JC(r,n)}else r=[{name:"value",type:"float"}],i=new JC(r,n);var s=G(n.get("data"),K(DJ,t,e,n));e&&(s=j(s,K(OJ,e)));var l=e?function(e,t,n,i){var o=e.coord[Math.floor(i/2)][i%2];return mg(o,r[i])}:function(e,t,n,i){return mg(e.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}const BJ=NJ;function VJ(e){e.registerComponentModel(kJ),e.registerComponentView(BJ),e.registerPreprocessor((function(e){WK(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var zJ=function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0},qJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),J(t)&&W(t,(function(e,i){ee(e)&&(e={type:e}),t[i]=E(e,zJ(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(s)),s.length?t=t.concat(s):r=!0}else r=!0;r&&Da(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,r=G(i,(function(e){return(ee(e)||ne(e))&&(e={name:e}),new Od(e,this,this.ecModel)}),this);this._data=r},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;W(i,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;W(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;W(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&V(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(op);const HJ=qJ;var WJ=K,GJ=W,UJ=Lo,jJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return o(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new UJ),this.group.add(this._selectorGroup=new UJ),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=Yh(l,u,c),h=this.layoutInner(e,r,d,i,a,s),p=Yh(B({width:h.width,height:h.height},l),u,c);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=K$(h,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,a){var s=this.getContentGroup(),l=we(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),GJ(t.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new UJ;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(a)[0];if(!l.get(a)){if(h){var p=h.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),m=this._createItem(h,a,o,r,t,e,f,v,g,u,i);m.on("click",WJ(YJ,a,null,i,c)).on("mouseover",WJ(KJ,h.name,null,i,c)).on("mouseout",WJ(JJ,h.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var d=s.indexOfName(a),h=s.getItemVisual(d,"style"),p=s.getItemVisual(d,"legendIcon"),f=Jn(h.fill);f&&0===f[3]&&(f[3]=.2,h=F(F({},h),{fill:ai(f,"rgba")}));var g=this._createItem(n,a,o,r,t,e,{},h,p,u,i);g.on("click",WJ(YJ,null,a,i,c)).on("mouseover",WJ(KJ,null,a,i,c)).on("mouseout",WJ(JJ,null,a,i,c)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,o,a)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();GJ(e,(function(e){var i=e.type,r=new Du({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);sd(r,{normal:a,emphasis:s},{defaultText:e.title}),Oc(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,a,s,l,u,c){var d=e.visualDrawType,h=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(t),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),m=i.get("icon");l=m||l||"roundRect";var y=ZJ(l,i,a,s,d,f,c),x=new UJ,_=i.getModel("textStyle");if(!Q(e.getLegendIcon)||m&&"inherit"!==m){var b="inherit"===m&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;x.add($J({itemWidth:h,itemHeight:p,icon:l,iconRotate:b,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}))}else x.add(e.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));var w="left"===o?h+5:-5,S=o,M=r.get("formatter"),C=t;ee(M)&&M?C=M.replace("{name}",null!=t?t:""):Q(M)&&(C=M(t));var I=i.get("inactiveColor");x.add(new Du({style:ud(_,{text:C,x:w,y:p/2,fill:f?_.getTextColor():I,align:S,verticalAlign:"middle"})}));var T=new hu({shape:x.getBoundingRect(),invisible:!0}),k=i.getModel("tooltip");return k.get("show")&&Uy({el:T,componentModel:r,itemName:t,itemTooltipOption:k.option}),x.add(T),x.eachChild((function(e){e.silent=!0})),T.silent=!u,this.getContentGroup().add(x),Oc(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Zh(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Zh("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],h=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?d[p]+=l[f]+h:u[p]+=c[f]+h,d[1-p]+=l[g]/2-c[g]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+h+c[f],m[g]=Math.max(l[g],c[g]),m[v]=Math.min(0,c[v]+d[1-p]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ev);function ZJ(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),GJ(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?ob(d,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var h=t.getModel("lineStyle"),p=h.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=h.get("inactiveColor"),p.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function $J(e){var t=e.icon||"roundRect",n=v_(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function YJ(e,t,n,i){JJ(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),KJ(e,t,n,i)}function XJ(e){var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;while(i<r&&!(t=n[i].states.emphasis))i++;return t&&t.hoverLayer}function KJ(e,t,n,i){XJ(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function JJ(e,t,n,i){XJ(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}const QJ=jJ;function eQ(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function tQ(e,t,n){var i,r={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name));var a=n.getData();W(a,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&i:r[t]=i}}))})),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}function nQ(e){e.registerAction("legendToggleSelect","legendselectchanged",K(tQ,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",K(tQ,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",K(tQ,"inverseSelect")),e.registerAction("legendSelect","legendselected",K(tQ,"select")),e.registerAction("legendUnSelect","legendunselected",K(tQ,"unSelect"))}function iQ(e){e.registerComponentModel(HJ),e.registerComponentView(QJ),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,eQ),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),nQ(e)}var rQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var r=ep(t);e.prototype.init.call(this,t,n,i),oQ(this,t,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),oQ(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Bd(HJ.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}(HJ);function oQ(e,t,n){var i=e.getOrient(),r=[1,1];r[i.index]=0,Qh(t,n,{type:"box",ignoreSize:!!r})}const aQ=rQ;var sQ=Lo,lQ=["width","height"],uQ=["x","y"],cQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return o(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new sQ),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new sQ)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,r,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),d=J(c)?c:[c,c];p("pagePrev",0);var h=n.getModel("pageTextStyle");function p(e,t){var i=e+"DataIndex",o=zy(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:X(l._pageGo,l,i,n,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=e,u.add(o)}u.add(new Du({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=lQ[s],u=uQ[s],c=lQ[1-s],d=uQ[1-s];r&&Zh("horizontal",a,e.get("selectorItemGap",!0));var h=e.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=R(n);r&&(g[l]=n[l]-p[l]-h);var v=this._layoutContentAndController(e,i,g,s,l,c,d,u);if(r){if("end"===o)f[s]+=v[l]+h;else{var m=p[l]+h;f[s]-=m,v[u]-=m}v[l]+=p[l]+h,f[1-s]+=v[d]+v[c]/2-p[c]/2,v[c]=Math.max(v[c],p[c]),v[d]=Math.min(v[d],p[d]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Zh(e.get("orient"),l,e.get("itemGap"),i?n.width:null,i?null:n.height),Zh("horizontal",c,e.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),h=c.getBoundingRect(),p=this._showController=d[r]>n[r],f=[-d.x,-d.y];t||(f[i]=l[s]);var g=[0,0],v=[-h.x,-h.y],m=he(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var y=e.get("pageButtonPosition",!0);"end"===y?v[i]+=n[r]-h[r]:g[i]+=h[r]+m}v[1-i]+=d[o]/2-h[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var x={x:0,y:0};if(x[r]=p?n[r]:d[r],x[o]=Math.max(d[o],h[o]),x[a]=Math.min(0,h[a]+v[1-i]),u.__rectSize=n[r],p){var _={x:0,y:0};_[r]=Math.max(n[r]-h[r]-m,0),_[o]=x[o],u.setClipPath(new hu({shape:_})),u.__rectSize=_[r]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(e);return null!=b.pageIndex&&Xc(l,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),x},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;W(["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=t[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;i&&r&&i.setStyle("text",ee(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=lQ[r],a=uQ[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var p=y(u);h.contentPosition[r]=-p.s;for(var f=s+1,g=p,v=p,m=null;f<=c;++f)m=y(l[f]),(!m&&v.e>g.s+i||m&&!x(m,g.s))&&(g=v.i>g.i?v:m,g&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount)),v=m;for(f=s-1,g=p,v=p,m=null;f>=-1;--f)m=y(l[f]),m&&x(v,m.s)||!(g.i<v.i)||(v=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=m;return h;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n},t.type="legend.scroll",t}(QJ);const dQ=cQ;function hQ(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function pQ(e){jw(iQ),e.registerComponentModel(aQ),e.registerComponentView(dQ),hQ(e)}function fQ(e){jw(iQ),jw(pQ)}var gQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.inside",t.defaultOption=Bd(I$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(I$);const vQ=gQ;var mQ=Fa();function yQ(e,t,n){mQ(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function xQ(e,t){for(var n=mQ(e).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||_Q(n,a))}}}function _Q(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function bQ(e,t){var n={model:t,containsPoint:K(SQ,t),dispatchAction:K(wQ,e),dataZoomInfoMap:null,controller:null},i=n.controller=new gP(e.getZr());return W(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(r){if(t.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[e],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function wQ(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function SQ(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function MQ(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each((function(e){var o=e.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function CQ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=mQ(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=we());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=w$(e);W(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,bQ(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=we());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=MQ(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),sx(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else _Q(i,e)}))}))}var IQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return o(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),yQ(i,t,{pan:X(TQ.pan,this),zoom:X(TQ.zoom,this),scrollMove:X(TQ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xQ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(D$),TQ={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=AQ[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return rV(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:kQ((function(e,t,n,i,r,o){var a=AQ[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:kQ((function(e,t,n,i,r,o){var a=AQ[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function kQ(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,i,r);return rV(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var AQ={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const DQ=IQ;function LQ(e){H$(e),e.registerComponentModel(vQ),e.registerComponentView(DQ),CQ(e)}var PQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Bd(I$.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(I$);const OQ=PQ;var RQ=hu,EQ=7,NQ=1,FQ=30,BQ=7,VQ="horizontal",zQ="vertical",qQ=5,HQ=["line","bar","candlestick","scatter"],WQ={easing:"cubicOut",duration:100,delay:0},GQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return o(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=X(this._onBrush,this),this._onBrushEnd=X(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),sx(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lx(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Lo;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?BQ:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===VQ?{right:o.width-r.x-r.width,top:o.height-FQ-EQ-i,width:r.width,height:FQ}:{right:EQ,top:r.y,width:FQ,height:r.height},s=ep(e.option);W(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=Yh(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===zQ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==VQ||r?n===VQ&&r?{scaleY:a?1:-1,scaleX:-1}:n!==zQ||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new RQ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new RQ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:X(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim?i.getShadowDim():e.otherDim;if(null!=o){var a=this._shadowPolygonPts,s=this._shadowPolylinePts;if(r!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=r.getDataExtent(o),u=.3*(l[1]-l[0]);l=[l[0]-u,l[1]+u];var c,d=[0,t[1]],h=[0,t[0]],p=[[t[0],0],[0,0]],f=[],g=h[1]/(r.count()-1),v=0,m=Math.round(r.count()/t[0]);r.each([o],(function(e,t){if(m>0&&t%m)v+=g;else{var n=null==e||isNaN(e)||""===e,i=n?0:Ho(e,l,d,!0);n&&!c&&t?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&c&&(p.push([v,0]),f.push([v,0])),p.push([v,i]),f.push([v,i]),v+=g,c=n}})),a=this._shadowPolygonPts=p,s=this._shadowPolylinePts=f}this._shadowData=r,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var y=this.dataZoomModel,x=0;x<3;x++){var _=b(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function b(e){var t=y.getModel(e?"selectedDataBackground":"dataBackground"),n=new Lo,i=new Fm({shape:{points:a},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new zm({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();W(a,(function(e){if(!n&&!(!0!==t&&V(HQ,e.get("type"))<0)){var a,s=i.getComponent(_$(r),o).axis,l=UQ(r),u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new RQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new RQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:NQ,fill:"rgba(0,0,0,0)"}})),W([0,1],(function(t){var o=a.get("handleIcon");!p_[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=v_(o,-1,0,2,2,null,!0);s.attr({cursor:jQ(this._orient),draggable:!0,drift:X(this._onDragMove,this,t),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Wo(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Oc(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[t]=s);var d=a.getModel("textStyle");e.add(i[t]=new Du({silent:!0,invisible:!0,style:ud(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=c;if(u){var h=Wo(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new hu({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:h}}),f=.8*h,g=t.moveHandleIcon=v_(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+h/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(h,10));d=t.moveZone=new hu({invisible:!0,shape:{y:o[1]-v,height:h+v}}),d.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(d)}d.attr({draggable:!0,cursor:jQ(this._orient),drift:X(this._onDragMove,this,"all"),ondragstart:X(this._showDataInfo,this,!0),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Ho(e[0],[0,100],t,!0),Ho(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];rV(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?Ho(o.minSpan,a,r,!0):null,null!=o.maxSpan?Ho(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Uo([Ho(i[0],r,a,!0),Ho(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=Uo(n.slice()),r=this._size;W([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new hu,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Uo(this._handleEnds.slice());function d(e){var t=Py(n.handles[e].parent,this.group),a=Ry(0===e?"right":"left",t),s=this._handleWidth/2+qQ,l=Oy([c[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:r===VQ?"middle":a,align:r===VQ?a:"center",text:o[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(r,20));return Q(i)?i(e,o):ee(i)?i.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,bt(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=Oy([t,n],r,!0),a=this._updateInterval(e,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Yr(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Uo([Ho(n.x,r,o,!0),Ho(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(bt(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new RQ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?WQ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=w$(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(D$);function UQ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function jQ(e){return"vertical"===e?"ns-resize":"ew-resize"}const ZQ=GQ;function $Q(e){e.registerComponentModel(OQ),e.registerComponentView(ZQ),H$(e)}function YQ(e){jw(LQ),jw($Q)}var XQ={get:function(e,t,n){var i=R((KQ[e]||{})[t]);return n&&J(i)?i[i.length-1]:i}},KQ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const JQ=XQ;var QQ=pN.mapVisual,e0=pN.eachVisual,t0=J,n0=W,i0=Uo,r0=Ho,o0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return o(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&WX(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=X(e,this),this.controllerVisuals=HX(this.option.controller,t,e),this.targetVisuals=HX(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=ga(e),t},t.prototype.eachTargetSeries=function(e,t){W(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],J(e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return ee(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):Q(s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=i0([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});E(i,n),E(r,n);var o=this.isCategory();function a(n){t0(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},n0(i,(function(e,t){if(pN.isValidType(t)){var n=JQ.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";n0(this.stateList,(function(r){var s=this.itemSize,l=e[r];l||(l=e[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&R(t)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&R(n)||(o?s[0]:[s[0],s[0]])),l.symbol=QQ(l.symbol,(function(e){return"none"===e?a:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;e0(u,(function(e){e>c&&(c=e)})),l.symbolSize=QQ(u,(function(e){return r0(e,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(op);const a0=o0;var s0=[20,140],l0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=s0[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=s0[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):J(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),W(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Uo((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=u0(this,"outOfRange",this.getExtent()),n=u0(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&r(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(t[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Bd(a0.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(a0);function u0(e,t,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;s<=i&&o<n[1];s++)a.push(o),o+=r;return a.push(n[1]),a}const c0=l0;var d0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return o(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Lh(t.get("padding")||0),i=e.getBoundingRect();e.add(new hu({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var i=n.forceState,r=this.visualMapModel,o={};if("color"===t){var a=r.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var u=r.controllerVisuals[i||r.getValueState(e)],c=pN.prepareVisualTypes(u);return W(c,(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),pN.dependsOn(i,t)&&r&&r.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Xh(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(Ev);const h0=d0;var p0=[["left","right","width"],["top","bottom","height"]];function f0(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===i.orient?1:0,s=p0[a],l=[0,null,10],u={},c=0;c<3;c++)u[p0[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var d=[["x","width",3],["y","height",0]][a],h=Yh(u,o,i.padding);return s[(h.margin[d[2]]||0)+h[d[0]]+.5*h[d[1]]<.5*o[d[1]]?0:1]}function g0(e,t){return W(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var v0=Ho,m0=W,y0=Math.min,x0=Math.max,_0=12,b0=6,w0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return o(t,e),t.prototype.doRender=function(e,t,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Du({style:ud(d,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,r=this._orient,o=this._useHandle,a=f0(t,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Lo;s.add(l),l.add(n.outOfRange=S0()),l.add(n.inRange=S0(null,o?I0(this._orient):null,X(this._dragHandle,this,"all",!1),X(this._dragHandle,this,"all",!0))),l.setClipPath(new hu({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=x0(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,c,r),this._createHandle(t,s,1,i,c,r)),this._createIndicator(t,s,i,c,r),e.add(s)},t.prototype._createHandle=function(e,t,n,i,r,o){var a=X(this._dragHandle,this,n,!1),s=X(this._dragHandle,this,n,!0),l=fo(e.get("handleSize"),i[0]),u=v_(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=I0(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){bt(e.event)}}),u.x=i[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),zc(u,!0),t.add(u);var d=this.visualMapModel.textStyleModel,h=new Du({cursor:c,draggable:!0,drift:a,onmousemove:function(e){bt(e.event)},ondragend:s,style:ud(d,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=h},t.prototype._createIndicator=function(e,t,n,i,r){var o=fo(e.get("indicatorSize"),n[0]),a=v_(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof iu){var l=a.style;a.useStyle(F({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var u=this.visualMapModel.textStyleModel,c=new Du({silent:!0,invisible:!0,style:ud(u,{x:0,y:0,text:""})});this.group.add(c);var d=[("horizontal"===r?i/2:b0)+n[0]/2,0],h=this._shapes;h.indicator=a,h.indicatorLabel=c,h.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():C0(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[v0(t[0],n,i,!0),v0(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];rV(t,i,r,e,0);var o=n.getExtent();this._dataInterval=[v0(i[0],r,o,!0),v0(i[1],r,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),a=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new ry(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,i=[],r=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<n;o++){var a=e[0]+r*o;if(a>e[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Lo("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();m0([0,1],(function(l){var u=r[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=v0(e[l],[0,a[1]],s,!0),d=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=d/a[0],u.x=a[0]-d/2;var h=Oy(n.handleLabelPoints[l],Py(u,this.group));o[l].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",c),h=this.getControllerVisual(e,"symbolSize"),p=v0(e,o,s,!0),f=a[0]-h/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var v=Oy(l.indicatorLabelPoint,Py(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),x=this._orient,_="horizontal"===x;m.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:_?y:"middle",align:_?"center":y});var b={x:f,y:p,style:{fill:d}},w={style:{x:v[0],y:v[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(b,S),m.animateTo(w,S)}else u.attr(b),m.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var C=0;C<M.length;C++)this._api.enterBlur(M[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=y0(x0(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();e=y0(x0(r[0],e),r[1]);var a=M0(n,o,r),s=[e-a,e+a],l=v0(e,r,o,!0),u=[v0(s[0],r,o,!0),v0(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,d=[];(t||C0(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=Ea(c,d);this._dispatchHighDown("downplay",g0(h[0],n)),this._dispatchHighDown("highlight",g0(h[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Lu(t).dataIndex){var i=Lu(t),r=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(r)){var o=r.getData(i.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",g0(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var r=Py(t,i?null:this.group);return J(e)?Oy(e,r,n):Ry(e,r,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(h0);function S0(e,t,n,i){return new Fm({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){bt(e.event)},ondragend:i})}function M0(e,t,n){var i=_0/2,r=e.get("hoverLinkDataSize");return r&&(i=v0(r,t,n,!0)/2),i}function C0(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function I0(e){return"vertical"===e?"ns-resize":"ew-resize"}const T0=w0;var k0={type:"selectDataRange",event:"dataRangeSelected",update:"update"},A0=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},D0=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i=e.pipelineContext;!t.isTargetSeries(e)||i&&i.large||n.push(UX(t.stateList,t.targetVisuals,X(t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(X(L0,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function L0(e,t,n,i){for(var r=t.targetVisuals[i],o=pN.prepareVisualTypes(r),a={color:Kx(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,d,h)}return a.color;function d(e){return a[e]}function h(e,t){a[e]=t}}var P0=W;function O0(e){var t=e&&e.visualMap;J(t)||(t=t?[t]:[]),P0(t,(function(e){if(e){R0(e,"splitList")&&!R0(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&J(t)&&P0(t,(function(e){ie(e)&&(R0(e,"start")&&!R0(e,"min")&&(e.min=e.start),R0(e,"end")&&!R0(e,"max")&&(e.max=e.end))}))}}))}function R0(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var E0=!1;function N0(e){E0||(E0=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(k0,A0),W(D0,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(O0))}function F0(e){e.registerComponentModel(c0),e.registerComponentView(T0),N0(e)}var B0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return o(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],V0[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=R(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=G(this._pieceList,(function(e){return e=R(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=pN.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}W(t.pieces,(function(e){W(i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),W(n,(function(e,n){var i=!1;W(this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&W(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=JQ.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,W(i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;W(i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=R(e)},t.prototype.getValueState=function(e){var t=pN.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=pN.findPieceIndex(t,n);o===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return W(r,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Bd(a0.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(a0),V0={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),aa(e),W(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;W(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),z0(t,e)},pieces:function(e){var t=this.option;W(t.pieces,(function(t,n){ie(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var r=i.value=t.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var d=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&null==o[c];h++)o[c]=t[d[h]],a[c]=s[h],u[c]=2===h;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=pN.retrieveVisuals(t),e.push(i)}),this),z0(t,e),aa(e),W(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function z0(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}const q0=B0;var H0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return o(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=de(t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),W(l.viewPieceList,(function(i){var l=i.piece,u=new Lo;u.onclick=X(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(u,d,[0,0,s[0],s[1]]),c){var h=this.visualMapModel.getValueState(d);u.add(new Du({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===h?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),Zh(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:g0(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return f0(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new Lo,a=this.visualMapModel.textStyleModel;o.add(new Du({style:ud(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=G(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(v_(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=R(n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,W(r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(h0);const W0=H0;function G0(e){e.registerComponentModel(q0),e.registerComponentView(W0),N0(e)}function U0(e){jw(F0),jw(G0)}var j0={label:{enabled:!0},decal:{show:!1}},Z0=Fa(),$0={};function Y0(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=R(j0);E(i.label,e.getLocaleModel().get("aria"),!1),E(n.option,i,!1),r(),o()}function r(){var t=n.getModel("decal"),i=t.get("show");if(i){var r=we();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=r.get(e.type);t||(t={},r.set(e.type,t)),Z0(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(Q(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=Np(t.ecModel,t.name,$0,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},s=Z0(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var i=a[e],r=o.getName(e)||e+"",c=Np(t.ecModel,r,s,l),d=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(d,c))}))}}function u(e,t){var n=e?F(F({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=e.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=B(r.option,i),r.get("enabled")){var o=t.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,c=e.getSeriesCount(),d=r.get(["data","maxCount"])||10,h=r.get(["series","maxCount"])||10,p=Math.min(c,h);if(!(c<1)){var f=s();if(f){var g=r.get(["general","withTitle"]);u=a(g,{title:f})}else u=r.get(["general","withoutTitle"]);var v=[],m=c>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(m,{seriesCount:c}),e.eachSeries((function(e,t){if(t<p){var n=void 0,i=e.get("name"),o=i?"withName":"withoutName";n=c>1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>d){var u=r.get(["data","partialData"]);n+=a(u,{displayCnt:d})}else n+=r.get(["data","allData"]);for(var h=r.get(["data","separator","middle"]),f=r.get(["data","separator","end"]),g=[],m=0;m<s.count();m++)if(m<d){var y=s.getName(m),x=s.getValues(m),_=r.get(["data",y?"withName":"withoutName"]);g.push(a(_,{name:y,value:x.join(h)}))}n+=g.join(h)+f,v.push(n)}}));var y=r.getModel(["series","multiple","separator"]),x=y.get("middle"),_=y.get("end");u+=v.join(x)+_,o.setAttribute("aria-label",u)}}}}function a(e,t){if(!ee(e))return e;var n=e;return W(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function s(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function l(t){return e.getLocaleModel().get(["series","typeNames"])[t]||"自定义图"}}function X0(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},W(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function K0(e){e.registerPreprocessor(X0),e.registerVisual(e.PRIORITY.VISUAL.ARIA,Y0)}var J0={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Q0=function(){function e(e){var t=this._condVal=ee(e)?new RegExp(e):ue(e)?e:null;if(null==t){var n="";0,vg(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return ee(t)?this._condVal.test(e):!!ne(t)&&this._condVal.test(e+"")},e}(),e1=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),t1=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),n1=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),i1=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),r1=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),i=e?this.valueParser(n):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?i:n))return!1;return!0},e}();function o1(e,t){if(!0===e||!1===e){var n=new e1;return n.value=e,n}var i="";return u1(e)||vg(i),e.and?a1("and",e,t):e.or?a1("or",e,t):e.not?s1(e,t):l1(e,t)}function a1(e,t,n){var i=t[e],r="";J(i)||vg(r),i.length||vg(r);var o="and"===e?new t1:new n1;return o.children=G(i,(function(e){return o1(e,n)})),o.children.length||vg(r),o}function s1(e,t){var n=e.not,i="";u1(n)||vg(i);var r=new i1;return r.child=o1(n,t),r.child||vg(i),r}function l1(e,t){for(var n="",i=t.prepareGetValue(e),r=[],o=$(e),a=e.parser,s=a?xg(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!t.valueGetterAttrMap.get(u)){var c=Ie(J0,u)?J0[u]:u,d=e[u],h=s?s(d):d,p=Mg(c,h)||"reg"===c&&new Q0(h);p||vg(n),r.push(p)}}r.length||vg(n);var f=new r1;return f.valueGetterParam=i,f.valueParser=s,f.getValue=t.getValue,f.subCondList=r,f}function u1(e){return ie(e)&&!H(e)}var c1=function(){function e(e,t){this._cond=o1(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function d1(e,t){return new c1(e,t)}var h1={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=d1(e.config,{valueGetterAttrMap:we({dimension:!0}),prepareGetValue:function(e){var t="",i=e.dimension;Ie(e,"dimension")||vg(t);var r=n.getDimensionInfo(i);return r||vg(t),{dimIdx:r.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),r=[],o=0,a=n.count();o<a;o++)t=n.getRawDataItem(o),i.evaluate()&&r.push(t);return{data:r}}};var p1={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i="",r=ga(n);r.length||vg(i);var o=[];W(r,(function(e){var n=e.dimension,r=e.order,a=e.parser,s=e.incomparable;if(null==n&&vg(i),"asc"!==r&&"desc"!==r&&vg(i),s&&"min"!==s&&"max"!==s){var l="";0,vg(l)}if("asc"!==r&&"desc"!==r){var u="";0,vg(u)}var c=t.getDimensionInfo(n);c||vg(i);var d=a?xg(a):null;a&&!d&&vg(i),o.push({dimIdx:c.index,parser:d,comparator:new wg(r,s)})}));var a=t.sourceFormat;a!==dp&&a!==hp&&vg(i);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var i=0;i<o.length;i++){var r=o[i],a=t.retrieveValueFromItem(e,r.dimIdx),s=t.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function f1(e){e.registerTransform(h1),e.registerTransform(p1)}var g1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return o(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new Yg(this),Xg(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Xg(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:vp},t}(op),v1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return o(t,e),t.type="dataset",t}(Ev);function m1(e){e.registerComponentModel(g1),e.registerComponentView(v1)}var y1=Sl.CMD;function x1(e,t){return Math.abs(e-t)<1e-5}function _1(e){var t,n,i,r,o,a=e.data,s=e.len(),l=[],u=0,c=0,d=0,h=0;function p(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function f(e,n,i,r){x1(e,i)&&x1(n,r)||t.push(e,n,i,r,i,r)}function g(e,n,i,r,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),d=Math.sin(e),h=Math.cos(n),p=Math.sin(n),f=c*o+i,g=d*a+r,v=h*o+i,m=p*a+r,y=o*l*u,x=a*l*u;t.push(f-y*d,g+x*c,v+y*p,m-x*h,v,m)}for(var v=0;v<s;){var m=a[v++],y=1===v;switch(y&&(u=a[v],c=a[v+1],d=u,h=c,m!==y1.L&&m!==y1.C&&m!==y1.Q||(t=[d,h])),m){case y1.M:u=d=a[v++],c=h=a[v++],p(d,h);break;case y1.L:n=a[v++],i=a[v++],f(u,c,n,i),u=n,c=i;break;case y1.C:t.push(a[v++],a[v++],a[v++],a[v++],u=a[v++],c=a[v++]);break;case y1.Q:n=a[v++],i=a[v++],r=a[v++],o=a[v++],t.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),o+2/3*(i-o),r,o),u=r,c=o;break;case y1.A:var x=a[v++],_=a[v++],b=a[v++],w=a[v++],S=a[v++],M=a[v++]+S;v+=1;var C=!a[v++];n=Math.cos(S)*b+x,i=Math.sin(S)*w+_,y?(d=n,h=i,p(d,h)):f(u,c,n,i),u=Math.cos(M)*b+x,c=Math.sin(M)*w+_;for(var I=(C?-1:1)*Math.PI/2,T=S;C?T>M:T<M;T+=I){var k=C?Math.max(T+I,M):Math.min(T+I,M);g(T,k,x,_,b,w)}break;case y1.R:d=u=a[v++],h=c=a[v++],n=d+a[v++],i=h+a[v++],p(n,h),f(n,h,n,i),f(n,i,d,i),f(d,i,d,h),f(d,h,n,h);break;case y1.Z:t&&f(u,c,d,h),u=d,c=h;break}}return t&&t.length>2&&l.push(t),l}function b1(e,t,n,i,r,o,a,s,l,u){if(x1(e,n)&&x1(t,i)&&x1(r,a)&&x1(o,s))l.push(a,s);else{var c=2/u,d=c*c,h=a-e,p=s-t,f=Math.sqrt(h*h+p*p);h/=f,p/=f;var g=n-e,v=i-t,m=r-a,y=o-s,x=g*g+v*v,_=m*m+y*y;if(x<d&&_<d)l.push(a,s);else{var b=h*g+p*v,w=-h*m-p*y,S=x-b*b,M=_-w*w;if(S<d&&b>=0&&M<d&&w>=0)l.push(a,s);else{var C=[],I=[];bn(e,n,r,a,.5,C),bn(t,i,o,s,.5,I),b1(C[0],I[0],C[1],I[1],C[2],I[2],C[3],I[3],l,u),b1(C[4],I[4],C[5],I[5],C[6],I[6],C[7],I[7],l,u)}}}}function w1(e,t){var n=_1(e),i=[];t=t||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],d=o[u++],h=o[u++],p=o[u++],f=o[u++],g=o[u++];b1(s,l,c,d,h,p,f,g,a,t),s=f,l=g}i.push(a)}return i}function S1(e,t,n){var i=e[t],r=e[1-t],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,d=n-c;if(d>0)for(u=0;u<d;u++)l[u%a]+=1;return l}function M1(e,t,n){for(var i=e.r0,r=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),l=s*r,u=r-i,c=l>Math.abs(u),d=S1([l,u],c?0:1,t),h=(c?s:u)/d.length,p=0;p<d.length;p++)for(var f=(c?u:s)/d[p],g=0;g<d[p];g++){var v={};c?(v.startAngle=o+h*p,v.endAngle=o+h*(p+1),v.r0=i+f*g,v.r=i+f*(g+1)):(v.startAngle=o+f*g,v.endAngle=o+f*(g+1),v.r0=i+h*p,v.r=i+h*(p+1)),v.clockwise=e.clockwise,v.cx=e.cx,v.cy=e.cy,n.push(v)}}function C1(e,t,n){for(var i=e.width,r=e.height,o=i>r,a=S1([i,r],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",d=e[s]/a.length,h=0;h<a.length;h++)for(var p=e[l]/a[h],f=0;f<a[h];f++){var g={};g[u]=h*d,g[c]=f*p,g[s]=d,g[l]=p,g.x+=e.x,g.y+=e.y,n.push(g)}}function I1(e,t,n,i){return e*i-n*t}function T1(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,d=s-o,h=I1(c,d,l,u);if(Math.abs(h)<1e-6)return null;var p=e-r,f=t-o,g=I1(p,f,c,d)/h;return g<0||g>1?null:new Yr(g*l+e,g*u+t)}function k1(e,t,n){var i=new Yr;Yr.sub(i,n,t),i.normalize();var r=new Yr;Yr.sub(r,e,t);var o=r.dot(i);return o}function A1(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function D1(e,t,n){for(var i=e.length,r=[],o=0;o<i;o++){var a=e[o],s=e[(o+1)%i],l=T1(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&r.push({projPt:k1(l,t,n),pt:l,idx:o})}if(r.length<2)return[{points:e},{points:e}];r.sort((function(e,t){return e.projPt-t.projPt}));var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}var h=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[h],g=[p];for(o=u.idx+1;o<=c.idx;o++)A1(f,e[o].slice());A1(f,p),A1(f,h);for(o=c.idx+1;o<=u.idx+i;o++)A1(g,e[o%i].slice());return A1(g,h),A1(g,p),[{points:f},{points:g}]}function L1(e){var t=e.points,n=[],i=[];Ks(t,n,i);var r=new oo(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new Yr,c=new Yr;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),D1(t,u,c)}function P1(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);P1(e,o[0],r,i),P1(e,o[1],n-r,i)}return i}function O1(e,t){for(var n=[],i=0;i<t;i++)n.push(om(e));return n}function R1(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function E1(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function N1(e,t){var n,i=[],r=e.shape;switch(e.type){case"rect":C1(r,t,i),n=hu;break;case"sector":M1(r,t,i),n=Am;break;case"circle":M1({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},t,i),n=Am;break;default:var o=e.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=G(w1(e.getUpdatedPathProxy(),a),(function(e){return E1(e)})),l=s.length;if(0===l)P1(L1,{points:s[0]},t,i);else if(l===t)for(var u=0;u<l;u++)i.push({points:s[u]});else{var c=0,d=G(s,(function(e){var t=[],n=[];Ks(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return c+=i,{poly:e,area:i}}));d.sort((function(e,t){return t.area-e.area}));var h=t;for(u=0;u<l;u++){var p=d[u];if(h<=0)break;var f=u===l-1?h:Math.ceil(p.area/c*t);f<0||(P1(L1,{points:p.poly},f,i),h-=f)}}n=Fm;break}if(!n)return O1(e,t);var g=[];for(u=0;u<i.length;u++){var v=new n;v.setShape(i[u]),R1(e,v),g.push(v)}return g}function F1(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var r=[],o=[],a=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[a[0],a[1]],h=l,p=2;p<s;){var f=a[p-2],g=a[p-1],v=a[p++],m=a[p++],y=a[p++],x=a[p++],_=a[p++],b=a[p++];if(h<=0)d.push(v,m,y,x,_,b);else{for(var w=Math.min(h,c-1)+1,S=1;S<=w;S++){var M=S/w;bn(f,v,y,_,M,r),bn(g,m,x,b,M,o),f=r[3],g=o[3],d.push(r[1],o[1],r[2],o[2],f,g),v=r[5],m=o[5],y=r[6],x=o[6]}h-=w-1}}return a===e?[d,t]:[e,d]}function B1(e,t){for(var n=e.length,i=e[n-2],r=e[n-1],o=[],a=0;a<t.length;)o[a++]=i,o[a++]=r;return o}function V1(e,t){for(var n,i,r,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,d=void 0;l?u?(n=F1(l,u),c=n[0],d=n[1],i=c,r=d):(d=B1(r||l,l),c=l):(c=B1(i||u,u),d=u),o.push(c),a.push(d)}return[o,a]}function z1(e){for(var t=0,n=0,i=0,r=e.length,o=0,a=r-2;o<r;a=o,o+=2){var s=e[a],l=e[a+1],u=e[o],c=e[o+1],d=s*c-u*l;t+=d,n+=(s+u)*d,i+=(l+c)*d}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function q1(e,t,n,i){for(var r=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,u=0;u<r;u++){for(var c=6*u,d=0,h=0;h<s;h+=2){var p=0===h?c:(c+h-2)%l+2,f=e[p]-n[0],g=e[p+1]-n[1],v=t[h]-i[0],m=t[h+1]-i[1],y=v-f,x=m-g;d+=y*y+x*x}d<o&&(o=d,a=u)}return a}function H1(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function W1(e,t,n,i){for(var r,o=[],a=0;a<e.length;a++){var s=e[a],l=t[a],u=z1(s),c=z1(l);null==r&&(r=u[2]<0!==c[2]<0);var d=[],h=[],p=0,f=1/0,g=[],v=s.length;r&&(s=H1(s));for(var m=6*q1(s,l,u,c),y=v-2,x=0;x<y;x+=2){var _=(m+x)%y+2;d[x+2]=s[_]-u[0],d[x+3]=s[_+1]-u[1]}if(d[0]=s[m]-u[0],d[1]=s[m+1]-u[1],n>0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),C=0;for(x=0;x<s.length;x+=2){var I=d[x],T=d[x+1],k=l[x]-c[0],A=l[x+1]-c[1],D=k*M-A*S,L=k*S+A*M;g[x]=D,g[x+1]=L;var P=D-I,O=L-T;C+=P*P+O*O}if(C<f){f=C,p=w;for(var R=0;R<g.length;R++)h[R]=g[R]}}else for(var E=0;E<v;E+=2)h[E]=l[E]-c[0],h[E+1]=l[E+1]-c[1];o.push({from:d,to:h,fromCp:u,toCp:c,rotation:-p})}return o}function G1(e){return e.__isCombineMorphing}var U1="__mOriginal_";function j1(e,t,n){var i=U1+t,r=e[i]||e[t];e[i]||(e[i]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=o?o.apply(this,t):r.apply(this,t),a&&a.apply(this,t),e}}function Z1(e,t){var n=U1+t;e[n]&&(e[t]=e[n],e[n]=null)}function $1(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=t[0]*o+t[2]*a+t[4],i[r++]=t[1]*o+t[3]*a+t[5]}}function Y1(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),r=V1(_1(n),_1(i)),o=r[0],a=r[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&$1(o,s),l&&$1(a,l),j1(t,"updateTransform",{replace:u}),t.transform=null;var c=W1(o,a,10,Math.PI),d=[];j1(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,r=[],o=0;o<c.length;o++){var a=c[o],s=a.from,l=a.to,u=a.rotation*n,h=a.fromCp,p=a.toCp,f=Math.sin(u),g=Math.cos(u);je(r,h,p,n);for(var v=0;v<s.length;v+=2){var m=s[v],y=s[v+1],x=l[v],_=l[v+1],b=m*i+x*n,w=y*i+_*n;d[v]=b*g-w*f+r[0],d[v+1]=b*f+w*g+r[1]}var S=d[0],M=d[1];e.moveTo(S,M);for(v=2;v<s.length;){x=d[v++],_=d[v++];var C=d[v++],I=d[v++],T=d[v++],k=d[v++];S===x&&M===_&&C===T&&I===k?e.lineTo(T,k):e.bezierCurveTo(x,_,C,I,T,k),S=T,M=k}}}})}function X1(e,t,n){if(!e||!t)return t;var i=n.done,r=n.during;function o(){Z1(t,"buildPath"),Z1(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return Y1(e,t),t.__morphT=0,t.animateTo({__morphT:1},B({during:function(e){t.dirtyShape(),r&&r(e)},done:function(){o(),i&&i()}},n)),t}function K1(e,t,n,i,r,o){var a=16;e=r===n?0:Math.round(32767*(e-n)/(r-n)),t=o===i?0:Math.round(32767*(t-i)/(o-i));for(var s,l=0,u=(1<<a)/2;u>0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),l+=u*u*(3*c^d),0===d&&(1===c&&(e=u-1-e,t=u-1-t),s=e,e=t,t=s)}return l}function J1(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=G(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]})),a=G(o,(function(o,a){return{cp:o,z:K1(o[0],o[1],t,n,i,r),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function Q1(e){return N1(e.path,e.count)}function e2(){return{fromIndividuals:[],toIndividuals:[],count:0}}function t2(e,t,n){var i=[];function r(e){for(var t=0;t<e.length;t++){var n=e[t];G1(n)?r(n.childrenRef()):n instanceof Yl&&i.push(n)}}r(e);var o=i.length;if(!o)return e2();var a=n.dividePath||Q1,s=a({path:t,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),e2();i=J1(i),s=J1(s);for(var l=n.done,u=n.during,c=n.individualDelay,d=new Zr,h=0;h<o;h++){var p=i[h],f=s[h];f.parent=t,f.copyTransform(d),c||Y1(p,f)}function g(e){for(var t=0;t<s.length;t++)s[t].addSelfToZr(e)}function v(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Z1(t,"addSelfToZr"),Z1(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return s},j1(t,"addSelfToZr",{after:function(e){g(e)}}),j1(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<s.length;t++)s[t].removeSelfFromZr(e)}});var m=s.length;if(c){var y=m,x=function(){y--,0===y&&(v(),l&&l())};for(h=0;h<m;h++){var _=c?B({delay:(n.delay||0)+c(h,m,i[h],s[h]),done:x},n):n;X1(i[h],s[h],_)}}else t.__morphT=0,t.animateTo({__morphT:1},B({during:function(e){for(var n=0;n<m;n++){var i=s[n];i.__morphT=t.__morphT,i.dirtyShape()}u&&u(e)},done:function(){v();for(var t=0;t<e.length;t++)Z1(e[t],"updateTransform");l&&l()}},n));return t.__zr&&g(t.__zr),{fromIndividuals:i,toIndividuals:s,count:m}}function n2(e,t,n){var i=t.length,r=[],o=n.dividePath||Q1;function a(e){for(var t=0;t<e.length;t++){var n=e[t];G1(n)?a(n.childrenRef()):n instanceof Yl&&r.push(n)}}if(G1(e)){a(e.childrenRef());var s=r.length;if(s<i)for(var l=0,u=s;u<i;u++)r.push(om(r[l++%s]));r.length=i}else{r=o({path:e,count:i});var c=e.getComputedTransform();for(u=0;u<r.length;u++)r[u].setLocalTransform(c);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),e2()}r=J1(r),t=J1(t);var d=n.individualDelay;for(u=0;u<i;u++){var h=d?B({delay:(n.delay||0)+d(u,i,r[u],t[u])},n):n;X1(r[u],t[u],h)}return{fromIndividuals:r,toIndividuals:t,count:t.length}}function i2(e){return J(e[0])}function r2(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(r=0;r<t.length;r++){var o=t[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(t[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var o2={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=om(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function a2(e,t,n,i,r,o){if(e.length&&t.length){var a=$c("update",i,r);if(a&&a.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);i2(e)&&(s=e,l=t),i2(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,h=s?r2(l,s):r2(d?t:e,[d?e:t]),p=0,f=0;f<h.length;f++)p+=h[f].many.length;var g=0;for(f=0;f<h.length;f++)v(h[f],d,g,p),g+=h[f].many.length}}function v(e,t,i,r,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var d=B({dividePath:o2[n],individualDelay:u&&function(e,t,n,o){return u(e+i,r)}},c),h=t?t2(s,l,d):n2(l,s,d),p=h.fromIndividuals,f=h.toIndividuals,g=p.length,m=0;m<g;m++){_=u?B({delay:u(m,g)},c):c;o(p[m],f[m],t?s[m]:e.one,t?e.one:s[m],_)}else{var y=t?s[0]:l,x=t?l:s[0];if(G1(y))v({many:[y],one:x},!0,i,r,!0);else{var _=u?B({delay:u(i,r)},c):c;X1(y,x,_),o(y,x,y,x,_)}}}}function s2(e){if(!e)return[];if(J(e)){for(var t=[],n=0;n<e.length;n++)t.push(s2(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof Yl&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var l2=1e4,u2=Fa();function c2(e){for(var t=e.dimensions,n=0;n<t.length;n++){var i=e.getDimensionInfo(t[n]);if(i&&0===i.otherDims.itemGroupId)return t[n]}}function d2(e){var t=[];return W(e,(function(e){var n=e.data;if(!(n.count()>l2))for(var i=n.getIndices(),r=c2(n),o=0;o<i.length;o++)t.push({data:n,dim:e.dim||r,divide:e.divide,dataIndex:o})})),t}function h2(e,t,n){e.traverse((function(e){e instanceof Yl&&Kc(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function p2(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function f2(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function g2(e,t,n){var i=$c("update",n,t);i&&e.traverse((function(e){if(e instanceof Hs){var t=id(e);t&&e.animateFrom({style:t},i)}}))}function v2(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],o=t[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function m2(e,t,n){var i=d2(e),r=d2(t);function o(e,t,n,i,r){(n||e)&&t.animateFrom({style:n&&n!==e?F(F({},n.style),e.style):e.style},r)}function a(e){for(var t=0;t<e.length;t++)if(e[t].dim)return e[t].dim}var s=a(i),l=a(r),u=!1;function c(e,t){return function(n){var i=n.data,r=n.dataIndex;if(t)return i.getId(r);var o=i.hostModel&&i.hostModel.get("dataGroupId"),a=e?s||l:l||s,u=a&&i.getDimensionInfo(a),c=u&&u.ordinalMeta;if(u){var d=i.get(u.name,r);return c&&c.categories[d]||d+""}var h=i.getRawDataItem(r);return h&&h.groupId?h.groupId+"":o||i.getId(r)}}var d=v2(i,r),h={};if(!d)for(var p=0;p<r.length;p++){var f=r[p],g=f.data.getItemGraphicEl(f.dataIndex);g&&(h[g.id]=!0)}function v(e,t){var n=i[t],a=r[e],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),c=a.data.getItemGraphicEl(a.dataIndex);l!==c?l&&h[l.id]||c&&(f2(c),l?(f2(l),p2(l),u=!0,a2(s2(l),s2(c),a.divide,s,e,o)):h2(c,s,e)):c&&g2(c,a.dataIndex,s)}new wC(i,r,c(!0,d),c(!1,d),null,"multiple").update(v).updateManyToOne((function(e,t){var n=r[e],a=n.data,s=a.hostModel,l=a.getItemGraphicEl(n.dataIndex),c=j(G(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==l&&!h[e.id]}));l&&(f2(l),c.length?(W(c,(function(e){f2(e),p2(e)})),u=!0,a2(s2(c),s2(l),n.divide,s,e,o)):h2(l,s,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!h[a.id]){var s=j(G(e,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==a})),l=r[e[0]].data.hostModel;s.length&&(W(s,(function(e){return f2(e)})),a?(f2(a),p2(a),u=!0,a2(s2(a),s2(s),n.divide,l,e[0],o)):W(s,(function(t){return h2(t,l,e[0])})))}})).updateManyToMany((function(e,t){new wC(t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return r[e].data.getId(r[e].dataIndex)})).update((function(n,i){v(e[n],t[i])})).execute()})).execute(),u&&W(t,(function(e){var t=e.data,i=t.hostModel,r=i&&n.getViewOfSeriesModel(i),o=$c("update",i,0);r&&i.isAnimationEnabled()&&o&&o.duration>0&&r.group.traverse((function(e){e instanceof Yl&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function y2(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function x2(e){return J(e)?e.sort().join(","):e}function _2(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function b2(e,t){var n=we(),i=we(),r=we();return W(e.oldSeries,(function(t,n){var o=e.oldData[n],a=y2(t),s=x2(a);i.set(s,o),J(a)&&W(a,(function(e){r.set(e,{data:o,key:s})}))})),W(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),o=y2(e),a=x2(o),s=i.get(a);if(s)n.set(a,{oldSeries:[{divide:_2(s),data:s}],newSeries:[{divide:_2(t),data:t}]});else if(J(o)){0;var l=[];W(o,(function(e){var t=i.get(e);t&&l.push({divide:_2(t),data:t})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:t,divide:_2(t)}]})}else{var u=r.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:_2(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:t,divide:_2(t)})}}}})),n}function w2(e,t){for(var n=0;n<e.length;n++){var i=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(i)return n}}function S2(e,t,n,i){var r=[],o=[];W(ga(e.from),(function(e){var n=w2(t.oldSeries,e);n>=0&&r.push({data:t.oldData[n],divide:_2(t.oldData[n]),dim:e.dimension})})),W(ga(e.to),(function(e){var t=w2(n.updatedSeries,e);if(t>=0){var i=n.updatedSeries[t].getData();o.push({data:i,divide:_2(i),dim:e.dimension})}})),r.length>0&&o.length>0&&m2(r,o,i)}function M2(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){W(ga(n.seriesTransition),(function(e){W(ga(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][Sv]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=u2(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)W(ga(r),(function(e){S2(e,i,n,t)}));else{var o=b2(i,n);W(o.keys(),(function(e){var n=o.get(e);m2(n.oldSeries,n.newSeries,t)}))}W(n.updatedSeries,(function(e){e[Sv]&&(e[Sv]=!1)}))}for(var a=e.getSeries(),s=i.oldSeries=[],l=i.oldData=[],u=0;u<a.length;u++){var c=a[u].getData();c.count()<l2&&(s.push(a[u]),l.push(c))}}))}jw([US]),jw([yC]),jw([yT,gk,Bk,BL,oP,xR,mE,UN,lB,yB,AB,Rz,hq,Lq,rH,hH,EH,jH,wW,PW,KW,IU]),jw(Mj),jw(vZ),jw(yR),jw(HZ),jw(Oz),jw(JZ),jw(v$),jw(eX),jw(NX),jw(Sj),jw(vK),jw(xK),jw(HK),jw(fJ),jw(IJ),jw(VJ),jw(fQ),jw(YQ),jw(LQ),jw($Q),jw(U0),jw(F0),jw(G0),jw(K0),jw(f1),jw(m1),jw(M2),jw(OS)},4260:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}},3340:(e,t,n)=>{"use strict";function i(e){return e}n.d(t,{BC:()=>i})},8339:(e,t,n)=>{"use strict";n.d(t,{p7:()=>nt,r5:()=>z});var i=n(3673),r=n(1959);
/*!
* vue-router v4.1.3
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/
const o="undefined"!==typeof window;function a(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const s=Object.assign;function l(e,t){const n={};for(const i in t){const r=t[i];n[i]=c(r)?r.map(e):e(r)}return n}const u=()=>{},c=Array.isArray;const d=/\/$/,h=e=>e.replace(d,"");function p(e,t,n="/"){let i,r={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(i=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),r=e(o)),s>-1&&(i=i||t.slice(0,s),a=t.slice(s,t.length)),i=b(null!=i?i:t,n),{fullPath:i+(o&&"?")+o+a,path:i,query:r,hash:a}}function f(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function g(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function v(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&m(t.matched[i],n.matched[r])&&y(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function m(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!x(e[n],t[n]))return!1;return!0}function x(e,t){return c(e)?_(e,t):c(t)?_(t,e):e===t}function _(e,t){return c(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function b(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let r,o,a=n.length-1;for(r=0;r<i.length;r++)if(o=i[r],"."!==o){if(".."!==o)break;a>1&&a--}return n.slice(0,a).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var w,S;(function(e){e["pop"]="pop",e["push"]="push"})(w||(w={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(S||(S={}));function M(e){if(!e)if(o){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),h(e)}const C=/^[^#]+#/;function I(e,t){return e.replace(C,"#")+t}function T(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const k=()=>({left:window.pageXOffset,top:window.pageYOffset});function A(e){let t;if("el"in e){const n=e.el,i="string"===typeof n&&n.startsWith("#");0;const r="string"===typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=T(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function D(e,t){const n=history.state?history.state.position-t:-1;return n+e}const L=new Map;function P(e,t){L.set(e,t)}function O(e){const t=L.get(e);return L.delete(e),t}let R=()=>location.protocol+"//"+location.host;function E(e,t){const{pathname:n,search:i,hash:r}=t,o=e.indexOf("#");if(o>-1){let t=r.includes(e.slice(o))?e.slice(o).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),g(n,"")}const a=g(n,e);return a+i+r}function N(e,t,n,i){let r=[],o=[],a=null;const l=({state:o})=>{const s=E(e,location),l=n.value,u=t.value;let c=0;if(o){if(n.value=s,t.value=o,a&&a===l)return void(a=null);c=u?o.position-u.position:0}else i(s);r.forEach((e=>{e(n.value,l,{delta:c,type:w.pop,direction:c?c>0?S.forward:S.back:S.unknown})}))};function u(){a=n.value}function c(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return o.push(t),t}function d(){const{history:e}=window;e.state&&e.replaceState(s({},e.state,{scroll:k()}),"")}function h(){for(const e of o)e();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d),{pauseListeners:u,listen:c,destroy:h}}function F(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?k():null}}function B(e){const{history:t,location:n}=window,i={value:E(e,n)},r={value:t.state};function o(i,o,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+i:R()+e+i;try{t[a?"replaceState":"pushState"](o,"",l),r.value=o}catch(u){console.error(u),n[a?"replace":"assign"](l)}}function a(e,n){const a=s({},t.state,F(r.value.back,e,r.value.forward,!0),n,{position:r.value.position});o(e,a,!0),i.value=e}function l(e,n){const a=s({},r.value,t.state,{forward:e,scroll:k()});o(a.current,a,!0);const l=s({},F(i.value,e,null),{position:a.position+1},n);o(e,l,!1),i.value=e}return r.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:r,push:l,replace:a}}function V(e){e=M(e);const t=B(e),n=N(e,t.state,t.location,t.replace);function i(e,t=!0){t||n.pauseListeners(),history.go(e)}const r=s({location:"",base:e,go:i,createHref:I.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function z(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),V(e)}function q(e){return"string"===typeof e||e&&"object"===typeof e}function H(e){return"string"===typeof e||"symbol"===typeof e}const W={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},G=Symbol("");var U;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(U||(U={}));function j(e,t){return s(new Error,{type:e,[G]:!0},t)}function Z(e,t){return e instanceof Error&&G in e&&(null==t||!!(e.type&t))}const $="[^/]+?",Y={sensitive:!1,strict:!1,start:!0,end:!0},X=/[.+*?^${}()[\]/\\]/g;function K(e,t){const n=s({},Y,t),i=[];let r=n.start?"^":"";const o=[];for(const s of e){const e=s.length?[]:[90];n.strict&&!s.length&&(r+="/");for(let t=0;t<s.length;t++){const i=s[t];let a=40+(n.sensitive?.25:0);if(0===i.type)t||(r+="/"),r+=i.value.replace(X,"\\$&"),a+=40;else if(1===i.type){const{value:e,repeatable:n,optional:l,regexp:u}=i;o.push({name:e,repeatable:n,optional:l});const c=u||$;if(c!==$){a+=10;try{new RegExp(`(${c})`)}catch(d){throw new Error(`Invalid custom RegExp for param "${e}" (${c}): `+d.message)}}let h=n?`((?:${c})(?:/(?:${c}))*)`:`(${c})`;t||(h=l&&s.length<2?`(?:/${h})`:"/"+h),l&&(h+="?"),r+=h,a+=20,l&&(a+=-8),n&&(a+=-20),".*"===c&&(a+=-50)}e.push(a)}i.push(e)}if(n.strict&&n.end){const e=i.length-1;i[e][i[e].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const a=new RegExp(r,n.sensitive?"":"i");function l(e){const t=e.match(a),n={};if(!t)return null;for(let i=1;i<t.length;i++){const e=t[i]||"",r=o[i-1];n[r.name]=e&&r.repeatable?e.split("/"):e}return n}function u(t){let n="",i=!1;for(const r of e){i&&n.endsWith("/")||(n+="/"),i=!1;for(const e of r)if(0===e.type)n+=e.value;else if(1===e.type){const{value:o,repeatable:a,optional:s}=e,l=o in t?t[o]:"";if(c(l)&&!a)throw new Error(`Provided param "${o}" is an array but it is not repeatable (* or + modifiers)`);const u=c(l)?l.join("/"):l;if(!u){if(!s)throw new Error(`Missing required param "${o}"`);r.length<2&&(n.endsWith("/")?n=n.slice(0,-1):i=!0)}n+=u}}return n||"/"}return{re:a,score:i,keys:o,parse:l,stringify:u}}function J(e,t){let n=0;while(n<e.length&&n<t.length){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function Q(e,t){let n=0;const i=e.score,r=t.score;while(n<i.length&&n<r.length){const e=J(i[n],r[n]);if(e)return e;n++}if(1===Math.abs(r.length-i.length)){if(ee(i))return 1;if(ee(r))return-1}return r.length-i.length}function ee(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const te={type:0,value:""},ne=/[a-zA-Z0-9_]/;function ie(e){if(!e)return[[]];if("/"===e)return[[te]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}let n=0,i=n;const r=[];let o;function a(){o&&r.push(o),o=[]}let s,l=0,u="",c="";function d(){u&&(0===n?o.push({type:0,value:u}):1===n||2===n||3===n?(o.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}while(l<e.length)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(u&&d(),a()):":"===s?(d(),n=1):h();break;case 4:h(),n=i;break;case 1:"("===s?n=2:ne.test(s)?h():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==c[c.length-1]?c=c.slice(0,-1)+s:n=3:c+=s;break;case 3:d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,c="";break;default:t("Unknown state");break}else i=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${u}"`),d(),a(),r}function re(e,t,n){const i=K(ie(e.path),n);const r=s(i,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf===!t.record.aliasOf&&t.children.push(r),r}function oe(e,t){const n=[],i=new Map;function r(e){return i.get(e)}function o(e,n,i){const r=!i,l=se(e);l.aliasOf=i&&i.record;const d=de(t,e),h=[l];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)h.push(s({},l,{components:i?i.record.components:l.components,path:e,aliasOf:i?i.record:l}))}let p,f;for(const t of h){const{path:s}=t;if(n&&"/"!==s[0]){const e=n.record.path,i="/"===e[e.length-1]?"":"/";t.path=n.record.path+(s&&i+s)}if(p=re(t,n,d),i?i.alias.push(p):(f=f||p,f!==p&&f.alias.push(p),r&&e.name&&!ue(p)&&a(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)o(e[t],p,i&&i.children[t])}i=i||p,c(p)}return f?()=>{a(f)}:u}function a(e){if(H(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function l(){return n}function c(e){let t=0;while(t<n.length&&Q(e,n[t])>=0&&(e.record.path!==n[t].record.path||!he(e,n[t])))t++;n.splice(t,0,e),e.record.name&&!ue(e)&&i.set(e.record.name,e)}function d(e,t){let r,o,a,l={};if("name"in e&&e.name){if(r=i.get(e.name),!r)throw j(1,{location:e});a=r.record.name,l=s(ae(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params),o=r.stringify(l)}else if("path"in e)o=e.path,r=n.find((e=>e.re.test(o))),r&&(l=r.parse(o),a=r.record.name);else{if(r=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw j(1,{location:e,currentLocation:t});a=r.record.name,l=s({},t.params,e.params),o=r.stringify(l)}const u=[];let c=r;while(c)u.unshift(c.record),c=c.parent;return{name:a,path:o,params:l,matched:u,meta:ce(u)}}return t=de({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:d,removeRoute:a,getRoutes:l,getRecordMatcher:r}}function ae(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function se(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:le(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function le(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="boolean"===typeof n?n:n[i];return t}function ue(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ce(e){return e.reduce(((e,t)=>s(e,t.meta)),{})}function de(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function he(e,t){return t.children.some((t=>t===e||he(e,t)))}const pe=/#/g,fe=/&/g,ge=/\//g,ve=/=/g,me=/\?/g,ye=/\+/g,xe=/%5B/g,_e=/%5D/g,be=/%5E/g,we=/%60/g,Se=/%7B/g,Me=/%7C/g,Ce=/%7D/g,Ie=/%20/g;function Te(e){return encodeURI(""+e).replace(Me,"|").replace(xe,"[").replace(_e,"]")}function ke(e){return Te(e).replace(Se,"{").replace(Ce,"}").replace(be,"^")}function Ae(e){return Te(e).replace(ye,"%2B").replace(Ie,"+").replace(pe,"%23").replace(fe,"%26").replace(we,"`").replace(Se,"{").replace(Ce,"}").replace(be,"^")}function De(e){return Ae(e).replace(ve,"%3D")}function Le(e){return Te(e).replace(pe,"%23").replace(me,"%3F")}function Pe(e){return null==e?"":Le(e).replace(ge,"%2F")}function Oe(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Re(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],i=(n?e.slice(1):e).split("&");for(let r=0;r<i.length;++r){const e=i[r].replace(ye," "),n=e.indexOf("="),o=Oe(n<0?e:e.slice(0,n)),a=n<0?null:Oe(e.slice(n+1));if(o in t){let e=t[o];c(e)||(e=t[o]=[e]),e.push(a)}else t[o]=a}return t}function Ee(e){let t="";for(let n in e){const i=e[n];if(n=De(n),null==i){void 0!==i&&(t+=(t.length?"&":"")+n);continue}const r=c(i)?i.map((e=>e&&Ae(e))):[i&&Ae(i)];r.forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ne(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=c(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}const Fe=Symbol(""),Be=Symbol(""),Ve=Symbol(""),ze=Symbol(""),qe=Symbol("");function He(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function We(e,t,n,i,r){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const l=e=>{!1===e?s(j(4,{from:n,to:t})):e instanceof Error?s(e):q(e)?s(j(2,{from:t,to:e})):(o&&i.enterCallbacks[r]===o&&"function"===typeof e&&o.push(e),a())},u=e.call(i&&i.instances[r],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch((e=>s(e)))}))}function Ge(e,t,n,i){const r=[];for(const o of e){0;for(const e in o.components){let s=o.components[e];if("beforeRouteEnter"===t||o.instances[e])if(Ue(s)){const a=s.__vccOpts||s,l=a[t];l&&r.push(We(l,n,i,o,e))}else{let l=s();0,r.push((()=>l.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${o.path}"`));const s=a(r)?r.default:r;o.components[e]=s;const l=s.__vccOpts||s,u=l[t];return u&&We(u,n,i,o,e)()}))))}}}return r}function Ue(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function je(e){const t=(0,i.f3)(Ve),n=(0,i.f3)(ze),o=(0,i.Fl)((()=>t.resolve((0,r.SU)(e.to)))),a=(0,i.Fl)((()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const a=r.findIndex(m.bind(null,i));if(a>-1)return a;const s=Ke(e[t-2]);return t>1&&Ke(i)===s&&r[r.length-1].path!==s?r.findIndex(m.bind(null,e[t-2])):a})),s=(0,i.Fl)((()=>a.value>-1&&Xe(n.params,o.value.params))),l=(0,i.Fl)((()=>a.value>-1&&a.value===n.matched.length-1&&y(n.params,o.value.params)));function c(n={}){return Ye(n)?t[(0,r.SU)(e.replace)?"replace":"push"]((0,r.SU)(e.to)).catch(u):Promise.resolve()}return{route:o,href:(0,i.Fl)((()=>o.value.href)),isActive:s,isExactActive:l,navigate:c}}const Ze=(0,i.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:je,setup(e,{slots:t}){const n=(0,r.qj)(je(e)),{options:o}=(0,i.f3)(Ve),a=(0,i.Fl)((()=>({[Je(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Je(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:(0,i.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},r)}}}),$e=Ze;function Ye(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){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 Xe(e,t){for(const n in t){const i=t[n],r=e[n];if("string"===typeof i){if(i!==r)return!1}else if(!c(r)||r.length!==i.length||i.some(((e,t)=>e!==r[t])))return!1}return!0}function Ke(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Je=(e,t,n)=>null!=e?e:null!=t?t:n,Qe=(0,i.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=(0,i.f3)(qe),a=(0,i.Fl)((()=>e.route||o.value)),l=(0,i.f3)(Be,0),u=(0,i.Fl)((()=>{let e=(0,r.SU)(l);const{matched:t}=a.value;let n;while((n=t[e])&&!n.components)e++;return e})),c=(0,i.Fl)((()=>a.value.matched[u.value]));(0,i.JJ)(Be,(0,i.Fl)((()=>u.value+1))),(0,i.JJ)(Fe,c),(0,i.JJ)(qe,a);const d=(0,r.iH)();return(0,i.YP)((()=>[d.value,c.value,e.name]),(([e,t,n],[i,r,o])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&m(t,r)&&i||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=a.value,o=e.name,l=c.value,u=l&&l.components[o];if(!u)return et(n.default,{Component:u,route:r});const h=l.props[o],p=h?!0===h?r.params:"function"===typeof h?h(r):h:null,f=e=>{e.component.isUnmounted&&(l.instances[o]=null)},g=(0,i.h)(u,s({},p,t,{onVnodeUnmounted:f,ref:d}));return et(n.default,{Component:g,route:r})||g}}});function et(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const tt=Qe;function nt(e){const t=oe(e.routes,e),n=e.parseQuery||Re,a=e.stringifyQuery||Ee,d=e.history;const h=He(),g=He(),m=He(),y=(0,r.XI)(W);let x=W;o&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _=l.bind(null,(e=>""+e)),b=l.bind(null,Pe),S=l.bind(null,Oe);function M(e,n){let i,r;return H(e)?(i=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,i)}function C(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function I(){return t.getRoutes().map((e=>e.record))}function T(e){return!!t.getRecordMatcher(e)}function L(e,i){if(i=s({},i||y.value),"string"===typeof e){const r=p(n,e,i.path),o=t.resolve({path:r.path},i),a=d.createHref(r.fullPath);return s(r,o,{params:S(o.params),hash:Oe(r.hash),redirectedFrom:void 0,href:a})}let r;if("path"in e)r=s({},e,{path:p(n,e.path,i.path).path});else{const t=s({},e.params);for(const e in t)null==t[e]&&delete t[e];r=s({},e,{params:b(e.params)}),i.params=b(i.params)}const o=t.resolve(r,i),l=e.hash||"";o.params=_(S(o.params));const u=f(a,s({},e,{hash:ke(l),path:o.path})),c=d.createHref(u);return s({fullPath:u,hash:l,query:a===Ee?Ne(e.query):e.query||{}},o,{redirectedFrom:void 0,href:c})}function R(e){return"string"===typeof e?p(n,e,y.value.path):s({},e)}function E(e,t){if(x!==e)return j(8,{from:t,to:e})}function N(e){return V(e)}function F(e){return N(s(R(e),{replace:!0}))}function B(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"===typeof n?n(e):n;return"string"===typeof i&&(i=i.includes("?")||i.includes("#")?i=R(i):{path:i},i.params={}),s({query:e.query,hash:e.hash,params:"path"in i?{}:e.params},i)}}function V(e,t){const n=x=L(e),i=y.value,r=e.state,o=e.force,l=!0===e.replace,u=B(n);if(u)return V(s(R(u),{state:r,force:o,replace:l}),t||n);const c=n;let d;return c.redirectedFrom=t,!o&&v(a,i,n)&&(d=j(16,{to:c,from:i}),ne(i,i,!0,!1)),(d?Promise.resolve(d):q(c,i)).catch((e=>Z(e)?Z(e,2)?e:te(e):Q(e,c,i))).then((e=>{if(e){if(Z(e,2))return V(s({replace:l},R(e.to),{state:r,force:o}),t||c)}else e=U(c,i,!0,l,r);return G(c,i,e),e}))}function z(e,t){const n=E(e,t);return n?Promise.reject(n):Promise.resolve()}function q(e,t){let n;const[i,r,o]=rt(e,t);n=Ge(i.reverse(),"beforeRouteLeave",e,t);for(const s of i)s.leaveGuards.forEach((i=>{n.push(We(i,e,t))}));const a=z.bind(null,e,t);return n.push(a),it(n).then((()=>{n=[];for(const i of h.list())n.push(We(i,e,t));return n.push(a),it(n)})).then((()=>{n=Ge(r,"beforeRouteUpdate",e,t);for(const i of r)i.updateGuards.forEach((i=>{n.push(We(i,e,t))}));return n.push(a),it(n)})).then((()=>{n=[];for(const i of e.matched)if(i.beforeEnter&&!t.matched.includes(i))if(c(i.beforeEnter))for(const r of i.beforeEnter)n.push(We(r,e,t));else n.push(We(i.beforeEnter,e,t));return n.push(a),it(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Ge(o,"beforeRouteEnter",e,t),n.push(a),it(n)))).then((()=>{n=[];for(const i of g.list())n.push(We(i,e,t));return n.push(a),it(n)})).catch((e=>Z(e,8)?e:Promise.reject(e)))}function G(e,t,n){for(const i of m.list())i(e,t,n)}function U(e,t,n,i,r){const a=E(e,t);if(a)return a;const l=t===W,u=o?history.state:{};n&&(i||l?d.replace(e.fullPath,s({scroll:l&&u&&u.scroll},r)):d.push(e.fullPath,r)),y.value=e,ne(e,t,n,l),te()}let $;function Y(){$||($=d.listen(((e,t,n)=>{if(!se.listening)return;const i=L(e),r=B(i);if(r)return void V(s(r,{replace:!0}),i).catch(u);x=i;const a=y.value;o&&P(D(a.fullPath,n.delta),k()),q(i,a).catch((e=>Z(e,12)?e:Z(e,2)?(V(e.to,i).then((e=>{Z(e,20)&&!n.delta&&n.type===w.pop&&d.go(-1,!1)})).catch(u),Promise.reject()):(n.delta&&d.go(-n.delta,!1),Q(e,i,a)))).then((e=>{e=e||U(i,a,!1),e&&(n.delta&&!Z(e,8)?d.go(-n.delta,!1):n.type===w.pop&&Z(e,20)&&d.go(-1,!1)),G(i,a,e)})).catch(u)})))}let X,K=He(),J=He();function Q(e,t,n){te(e);const i=J.list();return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function ee(){return X&&y.value!==W?Promise.resolve():new Promise(((e,t)=>{K.add([e,t])}))}function te(e){return X||(X=!e,Y(),K.list().forEach((([t,n])=>e?n(e):t())),K.reset()),e}function ne(t,n,r,a){const{scrollBehavior:s}=e;if(!o||!s)return Promise.resolve();const l=!r&&O(D(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return(0,i.Y3)().then((()=>s(t,n,l))).then((e=>e&&A(e))).catch((e=>Q(e,t,n)))}const ie=e=>d.go(e);let re;const ae=new Set,se={currentRoute:y,listening:!0,addRoute:M,removeRoute:C,hasRoute:T,getRoutes:I,resolve:L,options:e,push:N,replace:F,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:h.add,beforeResolve:g.add,afterEach:m.add,onError:J.add,isReady:ee,install(e){const t=this;e.component("RouterLink",$e),e.component("RouterView",tt),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,r.SU)(y)}),o&&!re&&y.value===W&&(re=!0,N(d.location).catch((e=>{0})));const n={};for(const r in W)n[r]=(0,i.Fl)((()=>y.value[r]));e.provide(Ve,t),e.provide(ze,(0,r.qj)(n)),e.provide(qe,y);const a=e.unmount;ae.add(e),e.unmount=function(){ae.delete(e),ae.size<1&&(x=W,$&&$(),$=null,y.value=W,re=!1,X=!1),a()}}};return se}function it(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function rt(e,t){const n=[],i=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const o=t.matched[a];o&&(e.matched.find((e=>m(e,o)))?i.push(o):n.push(o));const s=e.matched[a];s&&(t.matched.find((e=>m(e,s)))||r.push(s))}return[n,i,r]}}}]);